ip6t_ipv6header.h 568 B

123456789101112131415161718192021222324252627
  1. /* ipv6header match - matches IPv6 packets based
  2. on whether they contain certain headers */
  3. /* Original idea: Brad Chapman
  4. * Rewritten by: Andras Kis-Szabo <kisza@sch.bme.hu> */
  5. #ifndef __IPV6HEADER_H
  6. #define __IPV6HEADER_H
  7. struct ip6t_ipv6header_info
  8. {
  9. u_int8_t matchflags;
  10. u_int8_t invflags;
  11. u_int8_t modeflag;
  12. };
  13. #define MASK_HOPOPTS 128
  14. #define MASK_DSTOPTS 64
  15. #define MASK_ROUTING 32
  16. #define MASK_FRAGMENT 16
  17. #define MASK_AH 8
  18. #define MASK_ESP 4
  19. #define MASK_NONE 2
  20. #define MASK_PROTO 1
  21. #endif /* __IPV6HEADER_H */