Home
last modified time | relevance | path

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

/linux/net/netfilter/
H A Dnf_nat_core.c1199 struct nf_hook_ops *nat_ops; in nf_nat_register_fn() local
1221 nat_ops = kmemdup_array(orig_nat_ops, ops_count, sizeof(*orig_nat_ops), GFP_KERNEL); in nf_nat_register_fn()
1222 if (!nat_ops) { in nf_nat_register_fn()
1230 nat_ops[i].priv = priv; in nf_nat_register_fn()
1235 kfree(nat_ops[--i].priv); in nf_nat_register_fn()
1236 kfree(nat_ops); in nf_nat_register_fn()
1240 ret = nf_register_net_hooks(net, nat_ops, ops_count); in nf_nat_register_fn()
1244 kfree(nat_ops[i].priv); in nf_nat_register_fn()
1245 kfree(nat_ops); in nf_nat_register_fn()
1249 nat_proto_net->nat_hook_ops = nat_ops; in nf_nat_register_fn()
[all …]
/linux/include/net/netfilter/
H A Dnf_nat.h72 const struct nf_hook_ops *nat_ops, unsigned int ops_count);