Home
last modified time | relevance | path

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

/net/ipv4/netfilter/
Diptable_nat.c36 static const struct nf_hook_ops nf_nat_ipv4_ops[] = { variable
67 for (i = 0; i < ARRAY_SIZE(nf_nat_ipv4_ops); i++) { in ipt_nat_register_lookups()
68 ret = nf_nat_ipv4_register_fn(net, &nf_nat_ipv4_ops[i]); in ipt_nat_register_lookups()
71 nf_nat_ipv4_unregister_fn(net, &nf_nat_ipv4_ops[--i]); in ipt_nat_register_lookups()
84 for (i = 0; i < ARRAY_SIZE(nf_nat_ipv4_ops); i++) in ipt_nat_unregister_lookups()
85 nf_nat_ipv4_unregister_fn(net, &nf_nat_ipv4_ops[i]); in ipt_nat_unregister_lookups()
/net/netfilter/
Dnf_nat_proto.c753 static const struct nf_hook_ops nf_nat_ipv4_ops[] = { variable
786 return nf_nat_register_fn(net, ops->pf, ops, nf_nat_ipv4_ops, in nf_nat_ipv4_register_fn()
787 ARRAY_SIZE(nf_nat_ipv4_ops)); in nf_nat_ipv4_register_fn()
793 nf_nat_unregister_fn(net, ops->pf, ops, ARRAY_SIZE(nf_nat_ipv4_ops)); in nf_nat_ipv4_unregister_fn()
1050 ret = nf_nat_register_fn(net, NFPROTO_IPV4, ops, nf_nat_ipv4_ops, in nf_nat_inet_register_fn()
1051 ARRAY_SIZE(nf_nat_ipv4_ops)); in nf_nat_inet_register_fn()
1061 nf_nat_unregister_fn(net, NFPROTO_IPV4, ops, ARRAY_SIZE(nf_nat_ipv4_ops)); in nf_nat_inet_unregister_fn()