Searched refs:nfct (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/net/netfilter/ |
D | nf_conntrack_bpf.c | 260 struct nf_conn *nfct; in bpf_xdp_ct_alloc() local 262 nfct = __bpf_nf_ct_alloc_entry(dev_net(ctx->rxq->dev), bpf_tuple, tuple__sz, in bpf_xdp_ct_alloc() 264 if (IS_ERR(nfct)) { in bpf_xdp_ct_alloc() 266 opts->error = PTR_ERR(nfct); in bpf_xdp_ct_alloc() 270 return (struct nf_conn___init *)nfct; in bpf_xdp_ct_alloc() 295 struct nf_conn *nfct; in bpf_xdp_ct_lookup() local 298 nfct = __bpf_nf_ct_lookup(caller_net, bpf_tuple, tuple__sz, opts, opts__sz); in bpf_xdp_ct_lookup() 299 if (IS_ERR(nfct)) { in bpf_xdp_ct_lookup() 301 opts->error = PTR_ERR(nfct); in bpf_xdp_ct_lookup() 304 return nfct; in bpf_xdp_ct_lookup() [all …]
|
D | nf_nat_bpf.c | 33 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()
|
D | nf_synproxy_core.c | 420 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()
|
D | core.c | 693 void nf_conntrack_destroy(struct nf_conntrack *nfct) in nf_conntrack_destroy() argument 700 ct_hook->destroy(nfct); in nf_conntrack_destroy()
|
D | nf_conntrack_core.c | 585 void nf_ct_destroy(struct nf_conntrack *nfct) in nf_ct_destroy() argument 587 struct nf_conn *ct = (struct nf_conn *)nfct; in nf_ct_destroy() 590 WARN_ON(refcount_read(&nfct->use) != 0); in nf_ct_destroy()
|
/linux-6.1.9/include/linux/netfilter/ |
D | nf_conntrack_common.h | 31 void nf_conntrack_destroy(struct nf_conntrack *nfct); 34 static inline void nf_conntrack_put(struct nf_conntrack *nfct) in nf_conntrack_put() argument 36 if (nfct && refcount_dec_and_test(&nfct->use)) in nf_conntrack_put() 37 nf_conntrack_destroy(nfct); in nf_conntrack_put() 39 static inline void nf_conntrack_get(struct nf_conntrack *nfct) in nf_conntrack_get() argument 41 if (nfct) in nf_conntrack_get() 42 refcount_inc(&nfct->use); in nf_conntrack_get()
|
/linux-6.1.9/include/net/netfilter/ |
D | nf_conntrack.h | 170 unsigned long nfct = skb_get_nfct(skb); in nf_ct_get() local 172 *ctinfo = nfct & NFCT_INFOMASK; in nf_ct_get() 173 return (struct nf_conn *)(nfct & NFCT_PTRMASK); in nf_ct_get() 176 void nf_ct_destroy(struct nf_conntrack *nfct);
|
/linux-6.1.9/include/linux/ |
D | skbuff.h | 4552 static inline void skb_set_nfct(struct sk_buff *skb, unsigned long nfct) in skb_set_nfct() argument 4555 skb->slow_gro |= !!nfct; in skb_set_nfct() 4556 skb->_nfct = nfct; in skb_set_nfct()
|