tc_nat.h 359 B

123456789101112131415161718192021
  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 tc_action *a)
  13. {
  14. return container_of(a->priv, struct tcf_nat, common);
  15. }
  16. #endif /* __NET_TC_NAT_H */