Warning: This file is not a C or C++ file. It does not have highlighting.

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

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of linux/include/net/tc_act/tc_nat.h