Home
last modified time | relevance | path

Searched refs:nf (Results 1 – 10 of 10) sorted by relevance

/net/ipv4/
Dinet_fragment.c222 void inet_frags_exit_net(struct netns_frags *nf, struct inet_frags *f) in inet_frags_exit_net() argument
227 nf->low_thresh = 0; in inet_frags_exit_net()
240 sum_frag_mem_limit(nf)) in inet_frags_exit_net()
292 struct netns_frags *nf; in inet_frag_destroy() local
300 nf = q->net; in inet_frag_destroy()
314 sub_frag_mem_limit(nf, sum); in inet_frag_destroy()
318 static struct inet_frag_queue *inet_frag_intern(struct netns_frags *nf, in inet_frag_intern() argument
332 if (qp->net == nf && f->match(qp, arg)) { in inet_frag_intern()
342 if (!mod_timer(&qp->timer, jiffies + nf->timeout)) in inet_frag_intern()
353 static struct inet_frag_queue *inet_frag_alloc(struct netns_frags *nf, in inet_frag_alloc() argument
[all …]
/net/netfilter/
Dnf_log.c45 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set()
49 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set()
51 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set()
66 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset()
68 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset()
81 if (pf >= ARRAY_SIZE(init_net.nf.nf_loggers)) in nf_log_register()
128 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf()
135 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf()
143 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_unbind_pf()
146 RCU_INIT_POINTER(net->nf.nf_loggers[pf], NULL); in nf_log_unbind_pf()
[all …]
Dnf_queue.c35 WARN_ON(rcu_access_pointer(net->nf.queue_handler)); in nf_register_queue_handler()
36 rcu_assign_pointer(net->nf.queue_handler, qh); in nf_register_queue_handler()
43 RCU_INIT_POINTER(net->nf.queue_handler, NULL); in nf_unregister_queue_handler()
104 qh = rcu_dereference(net->nf.queue_handler); in nf_queue_nf_hook_drop()
120 qh = rcu_dereference(net->nf.queue_handler); in __nf_queue()
Dcore.c71 return net->nf.hooks[reg->pf]+reg->hooknum; in nf_hook_entry_head()
490 for (i = 0; i < ARRAY_SIZE(net->nf.hooks); i++) { in netfilter_net_init()
492 RCU_INIT_POINTER(net->nf.hooks[i][h], NULL); in netfilter_net_init()
496 net->nf.proc_netfilter = proc_net_mkdir(net, "netfilter", in netfilter_net_init()
498 if (!net->nf.proc_netfilter) { in netfilter_net_init()
Dnf_conntrack_proto_gre.c58 struct nf_proto_net nf; member
Dnfnetlink_log.c1078 net->nf.proc_netfilter, &nful_file_ops); in nfnl_log_net_init()
1093 remove_proc_entry("nfnetlink_log", net->nf.proc_netfilter); in nfnl_log_net_exit()
Dnfnetlink_queue.c1487 net->nf.proc_netfilter, &nfqnl_file_ops)) in nfnl_queue_net_init()
1498 remove_proc_entry("nfnetlink_queue", net->nf.proc_netfilter); in nfnl_queue_net_exit()
/net/sched/
Dcls_route.c325 struct route4_filter *nf; in route4_delete() local
337 for (nf = rtnl_dereference(*fp); nf; in route4_delete()
338 fp = &nf->next, nf = rtnl_dereference(*fp)) { in route4_delete()
339 if (nf == f) { in route4_delete()
Dsch_fq.c588 struct fq_flow *of, *nf; in fq_rehash() local
609 nf = container_of(parent, struct fq_flow, fq_node); in fq_rehash()
610 BUG_ON(nf->sk == of->sk); in fq_rehash()
612 if (nf->sk > of->sk) in fq_rehash()
/net/bridge/
Dbr_netfilter_hooks.c990 elem = rcu_dereference(net->nf.hooks[NFPROTO_BRIDGE][hook]); in br_nf_hook_thresh()