Home
last modified time | relevance | path

Searched refs:nat_ops (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/net/netfilter/
Dnf_nat_core.c1082 struct nf_hook_ops *nat_ops; in nf_nat_register_fn() local
1104 nat_ops = kmemdup(orig_nat_ops, sizeof(*orig_nat_ops) * ops_count, GFP_KERNEL); in nf_nat_register_fn()
1105 if (!nat_ops) { in nf_nat_register_fn()
1113 nat_ops[i].priv = priv; in nf_nat_register_fn()
1118 kfree(nat_ops[--i].priv); in nf_nat_register_fn()
1119 kfree(nat_ops); in nf_nat_register_fn()
1123 ret = nf_register_net_hooks(net, nat_ops, ops_count); in nf_nat_register_fn()
1127 kfree(nat_ops[i].priv); in nf_nat_register_fn()
1128 kfree(nat_ops); in nf_nat_register_fn()
1132 nat_proto_net->nat_hook_ops = nat_ops; in nf_nat_register_fn()
[all …]
/Linux-v6.6/include/net/netfilter/
Dnf_nat.h72 const struct nf_hook_ops *nat_ops, unsigned int ops_count);