Searched refs:nat_ops (Results 1 – 2 of 2) sorted by relevance
1082 struct nf_hook_ops *nat_ops; in nf_nat_register_fn() local1104 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 …]
72 const struct nf_hook_ops *nat_ops, unsigned int ops_count);