tc_nat.h 370 B

123456789101112131415161718192021222324252627
  1. #ifndef __LINUX_TC_NAT_H
  2. #define __LINUX_TC_NAT_H
  3. #include <linux/pkt_cls.h>
  4. #include <linux/types.h>
  5. #define TCA_ACT_NAT 9
  6. enum {
  7. TCA_NAT_UNSPEC,
  8. TCA_NAT_PARMS,
  9. TCA_NAT_TM,
  10. __TCA_NAT_MAX
  11. };
  12. #define TCA_NAT_MAX (__TCA_NAT_MAX - 1)
  13. #define TCA_NAT_FLAG_EGRESS 1
  14. struct tc_nat {
  15. tc_gen;
  16. __be32 old_addr;
  17. __be32 new_addr;
  18. __be32 mask;
  19. __u32 flags;
  20. };
  21. #endif