mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Also storing tcf_action into struct tcf_nat_params makes sure there is no discrepancy in tcf_nat_act(). Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20250709090204.797558-9-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
24 lines
417 B
C
24 lines
417 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NET_TC_NAT_H
|
|
#define __NET_TC_NAT_H
|
|
|
|
#include <linux/types.h>
|
|
#include <net/act_api.h>
|
|
|
|
struct tcf_nat_parms {
|
|
int action;
|
|
__be32 old_addr;
|
|
__be32 new_addr;
|
|
__be32 mask;
|
|
u32 flags;
|
|
struct rcu_head rcu;
|
|
};
|
|
|
|
struct tcf_nat {
|
|
struct tc_action common;
|
|
struct tcf_nat_parms __rcu *parms;
|
|
};
|
|
|
|
#define to_tcf_nat(a) ((struct tcf_nat *)a)
|
|
|
|
#endif /* __NET_TC_NAT_H */
|