Print this page
OS-7667 IPFilter needs to keep and report state for cloud firewall logging
Portions contributed by: Mike Gerdts <mike.gerdts@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ipf/netinet/ipf_stack.h
          +++ new/usr/src/uts/common/inet/ipf/netinet/ipf_stack.h
   1    1  /*
   2    2   * Copyright (C) 1993-2001, 2003 by Darren Reed.
   3    3   *
   4    4   * See the IPFILTER.LICENCE file for details on licencing.
   5    5   *
   6    6   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   7    7   * Use is subject to license terms.
   8    8   *
   9      - * Copyright 2018 Joyent, Inc.  All rights reserved.
        9 + * Copyright 2019, Joyent, Inc.
  10   10   */
  11   11  
  12   12  #ifndef __IPF_STACK_H__
  13   13  #define __IPF_STACK_H__
  14   14  
  15   15  /* FIXME: appears needed for ip_proxy.h - tcpseq */
  16   16  #include <net/route.h>
  17   17  #include <netinet/in.h>
  18   18  #include <netinet/in_systm.h>
  19   19  #include <netinet/ip.h>
↓ open down ↓ 19 lines elided ↑ open up ↑
  39   39  
  40   40  /*
  41   41   * IPF stack instances
  42   42   */
  43   43  struct ipf_stack {
  44   44          struct ipf_stack        *ifs_next;
  45   45          struct ipf_stack        **ifs_pnext;
  46   46          struct ipf_stack        *ifs_gz_cont_ifs;
  47   47          netid_t                 ifs_netid;
  48   48          zoneid_t                ifs_zone;
       49 +        zoneid_t                ifs_zone_did;
  49   50          boolean_t               ifs_gz_controlled;
  50   51  
  51   52          /* ipf module */
  52   53          fr_info_t               ifs_frcache[2][8];
  53   54  
  54   55          filterstats_t           ifs_frstats[2];
  55   56          frentry_t               *ifs_ipfilter[2][2];
  56   57          frentry_t               *ifs_ipfilter6[2][2];
  57   58          frentry_t               *ifs_ipacct6[2][2];
  58   59          frentry_t               *ifs_ipacct[2][2];
↓ open down ↓ 250 lines elided ↑ open up ↑
 309  310          ipstate_t               *ifs_ips_list;
 310  311          ulong_t                 ifs_fr_iptimeout;
 311  312  
 312  313          /* radix.c */
 313  314          int                     ifs_max_keylen;
 314  315          struct radix_mask       *ifs_rn_mkfreelist;
 315  316          struct radix_node_head  *ifs_mask_rnhead;
 316  317          char                    *ifs_addmask_key;
 317  318          char                    *ifs_rn_zeros;
 318  319          char                    *ifs_rn_ones;
      320 +
 319  321  #ifdef KERNEL
 320  322          /* kstats for inbound and outbound */
 321  323          kstat_t                 *ifs_kstatp[2];
 322  324  #endif
 323  325  };
 324  326  
 325  327  #endif  /* __IPF_STACK_H__ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX