ip6t_opts.h 580 B

1234567891011121314151617181920212223
  1. #ifndef _IP6T_OPTS_H
  2. #define _IP6T_OPTS_H
  3. #define IP6T_OPTS_OPTSNR 16
  4. struct ip6t_opts
  5. {
  6. u_int32_t hdrlen; /* Header Length */
  7. u_int8_t flags; /* */
  8. u_int8_t invflags; /* Inverse flags */
  9. u_int16_t opts[IP6T_OPTS_OPTSNR]; /* opts */
  10. u_int8_t optsnr; /* Nr of OPts */
  11. };
  12. #define IP6T_OPTS_LEN 0x01
  13. #define IP6T_OPTS_OPTS 0x02
  14. #define IP6T_OPTS_NSTRICT 0x04
  15. /* Values for "invflags" field in struct ip6t_rt. */
  16. #define IP6T_OPTS_INV_LEN 0x01 /* Invert the sense of length. */
  17. #define IP6T_OPTS_INV_MASK 0x01 /* All possible flags. */
  18. #endif /*_IP6T_OPTS_H*/