Home
last modified time | relevance | path

Searched refs:nfct (Results 1 – 7 of 7) sorted by relevance

/net/netfilter/
Dnf_conntrack_bpf.c257 struct nf_conn *nfct; in bpf_xdp_ct_alloc() local
259 nfct = __bpf_nf_ct_alloc_entry(dev_net(ctx->rxq->dev), bpf_tuple, tuple__sz, in bpf_xdp_ct_alloc()
261 if (IS_ERR(nfct)) { in bpf_xdp_ct_alloc()
263 opts->error = PTR_ERR(nfct); in bpf_xdp_ct_alloc()
267 return (struct nf_conn___init *)nfct; in bpf_xdp_ct_alloc()
292 struct nf_conn *nfct; in bpf_xdp_ct_lookup() local
295 nfct = __bpf_nf_ct_lookup(caller_net, bpf_tuple, tuple__sz, opts, opts__sz); in bpf_xdp_ct_lookup()
296 if (IS_ERR(nfct)) { in bpf_xdp_ct_lookup()
298 opts->error = PTR_ERR(nfct); in bpf_xdp_ct_lookup()
301 return nfct; in bpf_xdp_ct_lookup()
[all …]
Dnf_nat_bpf.c33 __bpf_kfunc int bpf_ct_set_nat_info(struct nf_conn___init *nfct, in bpf_ct_set_nat_info() argument
37 struct nf_conn *ct = (struct nf_conn *)nfct; in bpf_ct_set_nat_info()
Dnf_synproxy_core.c420 struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, in synproxy_send_tcp() argument
434 if (nfct) { in synproxy_send_tcp()
435 nf_ct_set(nskb, (struct nf_conn *)nfct, ctinfo); in synproxy_send_tcp()
436 nf_conntrack_get(nfct); in synproxy_send_tcp()
814 struct nf_conntrack *nfct, enum ip_conntrack_info ctinfo, in synproxy_send_tcp_ipv6() argument
846 if (nfct) { in synproxy_send_tcp_ipv6()
847 nf_ct_set(nskb, (struct nf_conn *)nfct, ctinfo); in synproxy_send_tcp_ipv6()
848 nf_conntrack_get(nfct); in synproxy_send_tcp_ipv6()
Dcore.c714 void nf_conntrack_destroy(struct nf_conntrack *nfct) in nf_conntrack_destroy() argument
721 ct_hook->destroy(nfct); in nf_conntrack_destroy()
728 void nf_ct_set_closing(struct nf_conntrack *nfct) in nf_ct_set_closing() argument
732 if (!nfct) in nf_ct_set_closing()
738 ct_hook->set_closing(nfct); in nf_ct_set_closing()
Dnf_conntrack_core.c574 void nf_ct_destroy(struct nf_conntrack *nfct) in nf_ct_destroy() argument
576 struct nf_conn *ct = (struct nf_conn *)nfct; in nf_ct_destroy()
578 WARN_ON(refcount_read(&nfct->use) != 0); in nf_ct_destroy()
2752 static void nf_conntrack_set_closing(struct nf_conntrack *nfct) in nf_conntrack_set_closing() argument
2754 struct nf_conn *ct = nf_ct_to_nf_conn(nfct); in nf_conntrack_set_closing()
/net/bridge/netfilter/
Dnf_conntrack_bridge.c298 struct nf_conntrack *nfct = skb_nfct(skb); in nf_ct_bridge_in() local
306 if (!nfct || skb->pkt_type == PACKET_HOST) in nf_ct_bridge_in()
313 ct = container_of(nfct, struct nf_conn, ct_general); in nf_ct_bridge_in()
/net/bridge/
Dbr_netfilter_hooks.c604 struct nf_conntrack *nfct = skb_nfct(skb); in br_nf_local_in() local
614 if (!nfct || skb->pkt_type == PACKET_HOST) in br_nf_local_in()
617 ct = container_of(nfct, struct nf_conn, ct_general); in br_nf_local_in()
621 if (WARN_ON_ONCE(refcount_read(&nfct->use) != 1)) { in br_nf_local_in()
634 nf_conntrack_put(nfct); in br_nf_local_in()
648 ct = container_of(nfct, struct nf_conn, ct_general); in br_nf_local_in()