Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/netfilter/
Dnf_nat_core.c1022 struct nf_hook_ops *nat_ops; in nf_nat_register_fn() local
1044 nat_ops = kmemdup(orig_nat_ops, sizeof(*orig_nat_ops) * ops_count, GFP_KERNEL); in nf_nat_register_fn()
1045 if (!nat_ops) { in nf_nat_register_fn()
1053 nat_ops[i].priv = priv; in nf_nat_register_fn()
1058 kfree(nat_ops[--i].priv); in nf_nat_register_fn()
1059 kfree(nat_ops); in nf_nat_register_fn()
1063 ret = nf_register_net_hooks(net, nat_ops, ops_count); in nf_nat_register_fn()
1067 kfree(nat_ops[i].priv); in nf_nat_register_fn()
1068 kfree(nat_ops); in nf_nat_register_fn()
1072 nat_proto_net->nat_hook_ops = nat_ops; in nf_nat_register_fn()
[all …]
/kernel/linux/linux-5.10/include/net/netfilter/
Dnf_nat.h72 const struct nf_hook_ops *nat_ops, unsigned int ops_count);