tc_nat.h 356 B

12345678910111213141516171819202122
  1. #ifndef __NET_TC_NAT_H
  2. #define __NET_TC_NAT_H
  3. #include <linux/types.h>
  4. #include <net/act_api.h>
  5. struct tcf_nat {
  6. struct tcf_common common;
  7. __be32 old_addr;
  8. __be32 new_addr;
  9. __be32 mask;
  10. u32 flags;
  11. };
  12. static inline struct tcf_nat *to_tcf_nat(struct tcf_common *pc)
  13. {
  14. return container_of(pc, struct tcf_nat, common);
  15. }
  16. #endif /* __NET_TC_NAT_H */