Print this page
3168 pfmod commands could be more useful

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/pfmod.h
          +++ new/usr/src/uts/common/sys/pfmod.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  #ifndef _SYS_PFMOD_H
  27   27  #define _SYS_PFMOD_H
  28   28  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   29  #ifdef  __cplusplus
  32   30  extern "C" {
  33   31  #endif
  34   32  
  35   33  /*
  36   34   * Ioctls.
  37   35   */
  38   36  #define PFIOC           ('P' << 8)
  39   37  #define PFIOCSETF       (PFIOC|1)       /* replace current packet filter */
  40   38  
↓ open down ↓ 67 lines elided ↑ open up ↑
 108  106  #define ENF_PUSHLIT     1  /* Push the next word on the stack */
 109  107  #define ENF_PUSHZERO    2  /* Push 0 on the stack */
 110  108  #define ENF_PUSHONE     3  /* Push 1 on the stack */
 111  109  #define ENF_PUSHFFFF    4  /* Push 0xffff on the stack */
 112  110  #define ENF_PUSHFF00    5  /* Push 0xff00 on the stack */
 113  111  #define ENF_PUSH00FF    6  /* Push 0x00ff on the stack */
 114  112  #define ENF_LOAD_OFFSET 7  /* Load the next word into the offset register */
 115  113  #define ENF_BRTR        8  /* Branch if the stack's top element is true */
 116  114  #define ENF_BRFL        9  /* Branch if the stack's top element is false */
 117  115  #define ENF_POP         10 /* Pop the top element from the stack */
      116 +#define ENF_PUSHFF00_N  11 /* Push 0xff00 in network byte order on the stack */
      117 +#define ENF_PUSH00FF_N  12 /* Push 0x00ff in network byte order on the stack */
 118  118  #define ENF_PUSHWORD    16
 119  119  
 120  120  #ifdef  __cplusplus
 121  121  }
 122  122  #endif
 123  123  
 124  124  #endif  /* _SYS_PFMOD_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX