Home
last modified time | relevance | path

Searched refs:netns_id (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/net/netfilter/
Dnf_conntrack_bpf.c49 s32 netns_id; member
113 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) in __bpf_nf_ct_alloc_entry()
126 if (opts->netns_id >= 0) { in __bpf_nf_ct_alloc_entry()
127 net = get_net_ns_by_id(net, opts->netns_id); in __bpf_nf_ct_alloc_entry()
141 if (opts->netns_id >= 0) in __bpf_nf_ct_alloc_entry()
162 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) in __bpf_nf_ct_lookup()
170 if (opts->netns_id >= 0) { in __bpf_nf_ct_lookup()
171 net = get_net_ns_by_id(net, opts->netns_id); in __bpf_nf_ct_lookup()
177 if (opts->netns_id >= 0) in __bpf_nf_ct_lookup()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_bpf_nf.c40 s32 netns_id; member
70 struct bpf_ct_opts___local opts_def = { .l4proto = IPPROTO_TCP, .netns_id = -1 }; in nf_ct_test()
93 opts_def.netns_id = -2; in nf_ct_test()
96 opts_def.netns_id = -1; in nf_ct_test()
118 opts_def.netns_id = 0xf00f; in nf_ct_test()
121 opts_def.netns_id = -1; in nf_ct_test()
Dtest_bpf_nf_fail.c10 s32 netns_id; member
Dxdp_synproxy_kern.c85 s32 netns_id; member
411 .netns_id = BPF_F_CURRENT_NETNS, in tcp_lookup()
/linux-6.1.9/net/core/
Dfilter.c6476 struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, in __bpf_skc_lookup() argument
6491 if (unlikely(flags || !((s32)netns_id < 0 || netns_id <= S32_MAX))) in __bpf_skc_lookup()
6499 if ((s32)netns_id < 0) { in __bpf_skc_lookup()
6503 net = get_net_ns_by_id(caller_net, netns_id); in __bpf_skc_lookup()
6516 struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, in __bpf_sk_lookup() argument
6520 ifindex, proto, netns_id, flags); in __bpf_sk_lookup()
6546 u8 proto, u64 netns_id, u64 flags) in bpf_skc_lookup() argument
6560 netns_id, flags); in bpf_skc_lookup()
6565 u8 proto, u64 netns_id, u64 flags) in bpf_sk_lookup() argument
6567 struct sock *sk = bpf_skc_lookup(skb, tuple, len, proto, netns_id, in bpf_sk_lookup()
[all …]