tc_nat.h 404 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NET_TC_NAT_H
  3. #define __NET_TC_NAT_H
  4. #include <linux/types.h>
  5. #include <net/act_api.h>
  6. struct tcf_nat_parms {
  7. __be32 old_addr;
  8. __be32 new_addr;
  9. __be32 mask;
  10. u32 flags;
  11. struct rcu_head rcu;
  12. };
  13. struct tcf_nat {
  14. struct tc_action common;
  15. struct tcf_nat_parms __rcu *parms;
  16. };
  17. #define to_tcf_nat(a) ((struct tcf_nat *)a)
  18. #endif /* __NET_TC_NAT_H */