Home
last modified time | relevance | path

Searched refs:indev (Results 1 - 25 of 65) sorted by relevance

123

/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c13 struct inet6_dev *indev; in nf_tproxy_laddr6() local
21 indev = __in6_dev_get(skb->dev); in nf_tproxy_laddr6()
22 if (indev) { in nf_tproxy_laddr6()
23 read_lock_bh(&indev->lock); in nf_tproxy_laddr6()
24 list_for_each_entry(ifa, &indev->addr_list, if_list) { in nf_tproxy_laddr6()
31 read_unlock_bh(&indev->lock); in nf_tproxy_laddr6()
/kernel/linux/linux-6.6/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c13 struct inet6_dev *indev; in nf_tproxy_laddr6() local
21 indev = __in6_dev_get(skb->dev); in nf_tproxy_laddr6()
22 if (indev) { in nf_tproxy_laddr6()
23 read_lock_bh(&indev->lock); in nf_tproxy_laddr6()
24 list_for_each_entry(ifa, &indev->addr_list, if_list) { in nf_tproxy_laddr6()
31 read_unlock_bh(&indev->lock); in nf_tproxy_laddr6()
/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_physdev.c29 const char *indev, *outdev; in physdev_mt() local
63 indev = physdev ? physdev->name : NULL; in physdev_mt()
66 (!indev ^ !!(info->invert & XT_PHYSDEV_OP_ISIN))) || in physdev_mt()
74 if (indev) { in physdev_mt()
75 ret = ifname_compare_aligned(indev, info->physindev, in physdev_mt()
H A Dnf_nat_redirect.c62 const struct in_device *indev; in nf_nat_redirect_ipv4() local
64 indev = __in_dev_get_rcu(skb->dev); in nf_nat_redirect_ipv4()
65 if (indev) { in nf_nat_redirect_ipv4()
68 ifa = rcu_dereference(indev->ifa_list); in nf_nat_redirect_ipv4()
H A Dnft_socket.c38 const struct net_device *indev = nft_in(pkt); in nft_socket_do_lookup() local
42 if (!indev) in nft_socket_do_lookup()
47 sk = nf_sk_lookup_slow_v4(nft_net(pkt), skb, indev); in nft_socket_do_lookup()
51 sk = nf_sk_lookup_slow_v6(nft_net(pkt), skb, indev); in nft_socket_do_lookup()
H A Dnf_tables_trace.c83 const struct net_device *indev, in nf_trace_fill_dev_info()
86 if (indev) { in nf_trace_fill_dev_info()
88 htonl(indev->ifindex))) in nf_trace_fill_dev_info()
92 htons(indev->type))) in nf_trace_fill_dev_info()
82 nf_trace_fill_dev_info(struct sk_buff *nlskb, const struct net_device *indev, const struct net_device *outdev) nf_trace_fill_dev_info() argument
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_physdev.c29 const char *indev, *outdev; in physdev_mt() local
63 indev = physdev ? physdev->name : NULL; in physdev_mt()
66 (!indev ^ !!(info->invert & XT_PHYSDEV_OP_ISIN))) || in physdev_mt()
74 if (indev) { in physdev_mt()
75 ret = ifname_compare_aligned(indev, info->physindev, in physdev_mt()
H A Dnf_nat_redirect.c62 const struct in_device *indev; in nf_nat_redirect_ipv4() local
64 indev = __in_dev_get_rcu(skb->dev); in nf_nat_redirect_ipv4()
65 if (indev) { in nf_nat_redirect_ipv4()
68 ifa = rcu_dereference(indev->ifa_list); in nf_nat_redirect_ipv4()
H A Dnft_flow_offload.c80 const struct net_device *indev; member
110 info->indev = path->dev; in nft_dev_path_info()
123 info->indev = NULL; in nft_dev_path_info()
156 info->indev = NULL; in nft_dev_path_info()
161 info->outdev = info->indev; in nft_dev_path_info()
163 info->hw_outdev = info->indev; in nft_dev_path_info()
166 nft_is_valid_ether_device(info->indev)) in nft_dev_path_info()
201 if (!info.indev || !nft_flowtable_find_dev(info.indev, ft)) in nft_dev_forward_path()
204 route->tuple[!dir].in.ifindex = info.indev in nft_dev_forward_path()
[all...]
H A Dnf_tables_trace.c67 const struct net_device *indev, in nf_trace_fill_dev_info()
70 if (indev) { in nf_trace_fill_dev_info()
72 htonl(indev->ifindex))) in nf_trace_fill_dev_info()
76 htons(indev->type))) in nf_trace_fill_dev_info()
66 nf_trace_fill_dev_info(struct sk_buff *nlskb, const struct net_device *indev, const struct net_device *outdev) nf_trace_fill_dev_info() argument
H A Dnft_socket.c60 const struct net_device *indev = nft_in(pkt); in nft_socket_do_lookup() local
64 if (!indev) in nft_socket_do_lookup()
69 sk = nf_sk_lookup_slow_v4(nft_net(pkt), skb, indev); in nft_socket_do_lookup()
73 sk = nf_sk_lookup_slow_v6(nft_net(pkt), skb, indev); in nft_socket_do_lookup()
/kernel/linux/linux-5.10/net/sched/
H A Dem_ipset.c56 struct net_device *dev, *indev = NULL; in em_ipset_match() local
94 indev = dev_get_by_index_rcu(em->net, skb->skb_iif); in em_ipset_match()
96 state.in = indev ? indev : dev; in em_ipset_match()
/kernel/linux/linux-6.6/net/sched/
H A Dem_ipset.c56 struct net_device *dev, *indev = NULL; in em_ipset_match() local
94 indev = dev_get_by_index_rcu(em->net, skb->skb_iif); in em_ipset_match()
96 state.in = indev ? indev : dev; in em_ipset_match()
/kernel/linux/linux-5.10/include/net/netfilter/
H A Dnf_socket.h8 const struct net_device *indev);
11 const struct net_device *indev);
/kernel/linux/linux-6.6/include/net/netfilter/
H A Dnf_socket.h8 const struct net_device *indev);
11 const struct net_device *indev);
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c53 struct in_device *indev; in nf_tproxy_laddr4() local
60 indev = __in_dev_get_rcu(skb->dev); in nf_tproxy_laddr4()
61 if (!indev) in nf_tproxy_laddr4()
64 in_dev_for_each_ifa_rcu(ifa, indev) { in nf_tproxy_laddr4()
/kernel/linux/linux-5.10/net/bridge/
H A Dbr_forward.c76 struct net_device *indev; in __br_forward() local
85 indev = skb->dev; in __br_forward()
94 net = dev_net(indev); in __br_forward()
106 indev = NULL; in __br_forward()
110 net, NULL, skb, indev, skb->dev, in __br_forward()
H A Dbr_input.c35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev; in br_pass_frame_up() local
63 indev = skb->dev; in br_pass_frame_up()
73 dev_net(indev), NULL, skb, indev, NULL, in br_pass_frame_up()
/kernel/linux/linux-6.6/net/bridge/
H A Dbr_forward.c77 struct net_device *indev; in __br_forward() local
91 indev = skb->dev; in __br_forward()
100 net = dev_net(indev); in __br_forward()
112 indev = NULL; in __br_forward()
116 net, NULL, skb, indev, skb->dev, in __br_forward()
/kernel/linux/linux-6.6/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c53 struct in_device *indev; in nf_tproxy_laddr4() local
60 indev = __in_dev_get_rcu(skb->dev); in nf_tproxy_laddr4()
62 in_dev_for_each_ifa_rcu(ifa, indev) { in nf_tproxy_laddr4()
/kernel/linux/linux-5.10/include/linux/
H A Dnetfilter.h142 struct net_device *indev, in nf_hook_state_init()
150 p->in = indev; in nf_hook_state_init()
207 struct net_device *indev, struct net_device *outdev, in nf_hook()
248 nf_hook_state_init(&state, hook, pf, indev, outdev, in nf_hook()
417 struct net_device *indev, struct net_device *outdev, in nf_hook()
139 nf_hook_state_init(struct nf_hook_state *p, unsigned int hook, u_int8_t pf, struct net_device *indev, struct net_device *outdev, struct sock *sk, struct net *net, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook_state_init() argument
205 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument
415 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument
/kernel/linux/linux-6.6/include/linux/
H A Dnetfilter.h150 struct net_device *indev, in nf_hook_state_init()
158 p->in = indev; in nf_hook_state_init()
215 struct net_device *indev, struct net_device *outdev, in nf_hook()
256 nf_hook_state_init(&state, hook, pf, indev, outdev, in nf_hook()
426 struct net_device *indev, struct net_device *outdev, in nf_hook()
147 nf_hook_state_init(struct nf_hook_state *p, unsigned int hook, u_int8_t pf, struct net_device *indev, struct net_device *outdev, struct sock *sk, struct net *net, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook_state_init() argument
213 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument
424 nf_hook(u_int8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) nf_hook() argument
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dtc_flower_l2_miss.sh81 flower indev $swp1 l2_miss 1 dst_mac $dmac src_ip $sip \
85 flower indev $swp1 l2_miss 0 dst_mac $dmac src_ip $sip \
138 flower indev $swp1 l2_miss 1 src_ip $sip dst_ip $dip \
142 flower indev $swp1 l2_miss 0 src_ip $sip dst_ip $dip \
255 flower indev $swp1 l2_miss 1 dst_mac $dmac src_ip $sip \
H A Dtc_shblocks.sh78 $tcflags indev $swp1 dst_mac $swmac action drop
80 $tcflags indev $swp2 dst_mac $swmac action drop
97 log_test "indev match ($tcflags)"
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
H A Dtc_shblocks.sh78 $tcflags indev $swp1 dst_mac $swmac action drop
80 $tcflags indev $swp2 dst_mac $swmac action drop
97 log_test "indev match ($tcflags)"

Completed in 10 milliseconds

123