Linux Audio

Check our new training course

Loading...
v4.6
 
 1#ifndef __NET_TC_NAT_H
 2#define __NET_TC_NAT_H
 3
 4#include <linux/types.h>
 5#include <net/act_api.h>
 6
 7struct tcf_nat {
 8	struct tcf_common common;
 9
10	__be32 old_addr;
11	__be32 new_addr;
12	__be32 mask;
13	u32 flags;
14};
15
16static inline struct tcf_nat *to_tcf_nat(struct tc_action *a)
17{
18	return container_of(a->priv, struct tcf_nat, common);
19}
20
21#endif /* __NET_TC_NAT_H */
v5.9
 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 {
 9	struct tc_action common;
10
11	__be32 old_addr;
12	__be32 new_addr;
13	__be32 mask;
14	u32 flags;
15};
16
17#define to_tcf_nat(a) ((struct tcf_nat *)a)
 
 
 
18
19#endif /* __NET_TC_NAT_H */