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/ip_state.h
          +++ new/usr/src/uts/common/inet/ipf/netinet/ip_state.h
   1    1  /*
   2    2   * Copyright (C) 1995-2001 by Darren Reed.
   3    3   *
   4    4   * See the IPFILTER.LICENCE file for details on licencing.
   5    5   *
   6    6   * @(#)ip_state.h       1.3 1/12/96 (C) 1995 Darren Reed
   7    7   * $Id: ip_state.h,v 2.68.2.5 2005/08/11 19:58:04 darrenr Exp $
   8    8   *
   9    9   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  10   10   * Use is subject to license terms.
       11 + * Copyright 2019 Joyent, Inc.
  11   12   */
  12   13  
  13   14  #ifndef __IP_STATE_H__
  14   15  #define __IP_STATE_H__
  15   16  
       17 +#include <sys/uuid.h>
       18 +
  16   19  #if defined(__STDC__) || defined(__GNUC__) || defined(_AIX51)
  17   20  # define        SIOCDELST       _IOW('r', 61, struct ipfobj)
  18   21  #else
  19   22  # define        SIOCDELST       _IOW(r, 61, struct ipfobj)
  20   23  #endif
  21   24  
  22   25  struct ipscan;
  23   26  
  24   27  #ifndef IPSTATE_SIZE
  25   28  # define        IPSTATE_SIZE    5737
↓ open down ↓ 33 lines elided ↑ open up ↑
  59   62          i6addr_t        is_dst;
  60   63          u_int   is_pass;
  61   64          u_char  is_p;                   /* Protocol */
  62   65          u_char  is_v;
  63   66          u_32_t  is_hv;
  64   67          u_32_t  is_tag;
  65   68          u_32_t  is_opt[2];              /* packet options set */
  66   69                                          /* in both directions */
  67   70          u_32_t  is_optmsk[2];           /*    "      "    mask */
  68   71                                          /* in both directions */
       72 +        uuid_t  is_uuid;
  69   73          u_short is_sec;                 /* security options set */
  70   74          u_short is_secmsk;              /*    "        "    mask */
  71   75          u_short is_auth;                /* authentication options set */
  72   76          u_short is_authmsk;             /*    "              "    mask */
  73   77          union {
  74   78                  icmpinfo_t      is_ics;
  75   79                  tcpinfo_t       is_ts;
  76   80                  udpinfo_t       is_us;
  77   81                  greinfo_t       is_ug;
  78   82          } is_ps;
↓ open down ↓ 175 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX