Home
last modified time | relevance | path

Searched refs:indev (Results 1 – 25 of 32) sorted by relevance

12

/linux-5.19.10/net/ipv6/netfilter/
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()
Dnf_socket_ipv6.c98 const struct net_device *indev) in nf_sk_lookup_slow_v6() argument
140 sport, dport, indev); in nf_sk_lookup_slow_v6()
Dip6_tables.c50 const char *indev, in ip6_packet_match() argument
67 ret = ifname_compare_aligned(indev, ip6info->iniface, ip6info->iniface_mask); in ip6_packet_match()
258 const char *indev, *outdev; in ip6t_do_table() local
268 indev = state->in ? state->in->name : nulldevname; in ip6t_do_table()
308 if (!ip6_packet_match(skb, indev, outdev, &e->ipv6, in ip6t_do_table()
/linux-5.19.10/net/netfilter/
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()
Dnf_nat_redirect.c47 const struct in_device *indev; in nf_nat_redirect_ipv4() local
51 indev = __in_dev_get_rcu(skb->dev); in nf_nat_redirect_ipv4()
52 if (indev) { in nf_nat_redirect_ipv4()
55 ifa = rcu_dereference(indev->ifa_list); in nf_nat_redirect_ipv4()
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->ifindex; in nft_dev_forward_path()
Dnft_socket.c59 const struct net_device *indev = nft_in(pkt); in nft_socket_do_lookup() local
63 if (!indev) in nft_socket_do_lookup()
68 sk = nf_sk_lookup_slow_v4(nft_net(pkt), skb, indev); in nft_socket_do_lookup()
72 sk = nf_sk_lookup_slow_v6(nft_net(pkt), skb, indev); in nft_socket_do_lookup()
Dnf_tables_trace.c67 const struct net_device *indev, in nf_trace_fill_dev_info() argument
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()
Dnfnetlink_log.c452 const struct net_device *indev, in __build_packet_message() argument
482 if (indev) { in __build_packet_message()
485 htonl(indev->ifindex))) in __build_packet_message()
493 htonl(indev->ifindex)) || in __build_packet_message()
499 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in __build_packet_message()
507 htonl(indev->ifindex))) in __build_packet_message()
560 if (indev && skb->dev && in __build_packet_message()
575 if (indev && skb_mac_header_was_set(skb)) { in __build_packet_message()
Dnfnetlink_queue.c387 struct net_device *indev; in nfqnl_build_packet_message() local
492 indev = entry->state.in; in nfqnl_build_packet_message()
493 if (indev) { in nfqnl_build_packet_message()
495 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) in nfqnl_build_packet_message()
503 htonl(indev->ifindex)) || in nfqnl_build_packet_message()
507 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in nfqnl_build_packet_message()
515 htonl(indev->ifindex))) in nfqnl_build_packet_message()
569 if (indev && entskb->dev && in nfqnl_build_packet_message()
/linux-5.19.10/net/sched/
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()
Dem_ipt.c210 struct net_device *indev = NULL; in em_ipt_match() local
235 indev = dev_get_by_index_rcu(em->net, skb->skb_iif); in em_ipt_match()
238 indev ?: skb->dev, skb->dev, NULL, em->net, NULL); in em_ipt_match()
/linux-5.19.10/include/net/netfilter/
Dnf_socket.h8 const struct net_device *indev);
11 const struct net_device *indev);
Dbr_netfilter.h26 struct sk_buff *skb, struct net_device *indev,
/linux-5.19.10/net/bridge/
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()
Dbr_input.c35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev; in br_pass_frame_up() local
59 indev = skb->dev; in br_pass_frame_up()
69 dev_net(indev), NULL, skb, indev, NULL, in br_pass_frame_up()
/linux-5.19.10/net/ipv4/netfilter/
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()
Dnf_socket_ipv4.c85 const struct net_device *indev) in nf_sk_lookup_slow_v4() argument
147 daddr, sport, dport, indev); in nf_sk_lookup_slow_v4()
Darp_tables.c84 const char *indev, in arp_packet_match() argument
132 ret = ifname_compare(indev, arpinfo->iniface, arpinfo->iniface_mask); in arp_packet_match()
192 const char *indev, *outdev; in arpt_do_table() local
202 indev = state->in ? state->in->name : nulldevname; in arpt_do_table()
225 if (!arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) { in arpt_do_table()
Dip_tables.c46 const char *indev, in ip_packet_match() argument
59 ret = ifname_compare_aligned(indev, ipinfo->iniface, ipinfo->iniface_mask); in ip_packet_match()
235 const char *indev, *outdev; in ipt_do_table() local
246 indev = state->in ? state->in->name : nulldevname; in ipt_do_table()
285 if (!ip_packet_match(ip, indev, outdev, in ipt_do_table()
/linux-5.19.10/include/linux/
Dnetfilter.h148 struct net_device *indev, in nf_hook_state_init() argument
156 p->in = indev; in nf_hook_state_init()
213 struct net_device *indev, struct net_device *outdev, in nf_hook() argument
259 nf_hook_state_init(&state, hook, pf, indev, outdev, in nf_hook()
429 struct net_device *indev, struct net_device *outdev, in nf_hook() argument
/linux-5.19.10/tools/testing/selftests/net/forwarding/
Dtc_shblocks.sh78 $tcflags indev $swp1 dst_mac $swmac action drop
80 $tcflags indev $swp2 dst_mac $swmac action drop
Dtc_flower_router.sh89 $tcflags indev $rp1 dst_ip 192.0.3.1 action drop
91 $tcflags indev $rp2 dst_ip 192.0.3.1 action drop
/linux-5.19.10/drivers/net/ethernet/mscc/
Docelot_flower.c528 struct net_device *dev, *indev; in ocelot_flower_parse_indev() local
546 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev()
547 if (!indev) { in ocelot_flower_parse_indev()
553 ingress_port = ocelot->ops->netdev_to_port(indev); in ocelot_flower_parse_indev()
/linux-5.19.10/include/net/
Dpkt_cls.h522 char indev[IFNAMSIZ]; in tcf_change_indev() local
525 if (nla_strscpy(indev, indev_tlv, IFNAMSIZ) < 0) { in tcf_change_indev()
530 dev = __dev_get_by_name(net, indev); in tcf_change_indev()

12