/linux/net/ipv6/netfilter/ |
A D | nf_tproxy_ipv6.c | 13 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()
|
A D | nf_socket_ipv6.c | 98 const struct net_device *indev) in nf_sk_lookup_slow_v6() argument 140 sport, dport, indev); in nf_sk_lookup_slow_v6()
|
A D | ip6_tables.c | 50 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/net/netfilter/ |
A D | xt_physdev.c | 29 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()
|
A D | nft_flow_offload.c | 67 const struct net_device *indev; member 106 info->indev = path->dev; in nft_dev_path_info() 119 info->indev = NULL; in nft_dev_path_info() 151 info->indev = NULL; in nft_dev_path_info() 156 info->outdev = info->indev; in nft_dev_path_info() 158 info->hw_outdev = info->indev; in nft_dev_path_info() 161 nft_is_valid_ether_device(info->indev)) in nft_dev_path_info() 196 if (!info.indev || !nft_flowtable_find_dev(info.indev, ft)) in nft_dev_forward_path() 199 route->tuple[!dir].in.ifindex = info.indev->ifindex; in nft_dev_forward_path()
|
A D | nf_nat_redirect.c | 47 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()
|
A D | nf_tables_trace.c | 83 const struct net_device *indev, in nf_trace_fill_dev_info() argument 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()
|
A D | nfnetlink_log.c | 451 const struct net_device *indev, in __build_packet_message() argument 480 if (indev) { in __build_packet_message() 483 htonl(indev->ifindex))) in __build_packet_message() 491 htonl(indev->ifindex)) || in __build_packet_message() 497 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in __build_packet_message() 505 htonl(indev->ifindex))) in __build_packet_message() 558 if (indev && skb->dev && in __build_packet_message() 573 if (indev && skb_mac_header_was_set(skb)) { in __build_packet_message()
|
A D | nfnetlink_queue.c | 387 struct net_device *indev; in nfqnl_build_packet_message() local 489 indev = entry->state.in; in nfqnl_build_packet_message() 490 if (indev) { in nfqnl_build_packet_message() 492 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) in nfqnl_build_packet_message() 500 htonl(indev->ifindex)) || in nfqnl_build_packet_message() 504 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in nfqnl_build_packet_message() 512 htonl(indev->ifindex))) in nfqnl_build_packet_message() 562 if (indev && entskb->dev && in nfqnl_build_packet_message()
|
/linux/net/sched/ |
A D | em_ipset.c | 56 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()
|
A D | em_ipt.c | 210 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/include/net/netfilter/ |
A D | nf_socket.h | 8 const struct net_device *indev); 11 const struct net_device *indev);
|
A D | br_netfilter.h | 26 struct sk_buff *skb, struct net_device *indev,
|
/linux/net/bridge/ |
A D | br_forward.c | 77 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()
|
A D | br_input.c | 35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev; in br_pass_frame_up() local 52 indev = skb->dev; in br_pass_frame_up() 62 dev_net(indev), NULL, skb, indev, NULL, in br_pass_frame_up()
|
/linux/net/ipv4/netfilter/ |
A D | nf_tproxy_ipv4.c | 53 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()
|
A D | nf_socket_ipv4.c | 85 const struct net_device *indev) in nf_sk_lookup_slow_v4() argument 147 daddr, sport, dport, indev); in nf_sk_lookup_slow_v4()
|
A D | arp_tables.c | 84 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()
|
A D | ip_tables.c | 46 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/include/linux/ |
A D | netfilter.h | 148 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() 428 struct net_device *indev, struct net_device *outdev, in nf_hook() argument
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | tc_shblocks.sh | 78 $tcflags indev $swp1 dst_mac $swmac action drop 80 $tcflags indev $swp2 dst_mac $swmac action drop
|
A D | tc_flower_router.sh | 89 $tcflags indev $rp1 dst_ip 192.0.3.1 action drop 91 $tcflags indev $rp2 dst_ip 192.0.3.1 action drop
|
/linux/drivers/net/ethernet/mscc/ |
A D | ocelot_flower.c | 435 struct net_device *dev, *indev; in ocelot_flower_parse_indev() local 453 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev() 454 if (!indev) { in ocelot_flower_parse_indev() 460 ingress_port = ocelot->ops->netdev_to_port(indev); in ocelot_flower_parse_indev()
|
/linux/include/net/ |
A D | pkt_cls.h | 508 char indev[IFNAMSIZ]; in tcf_change_indev() local 511 if (nla_strscpy(indev, indev_tlv, IFNAMSIZ) < 0) { in tcf_change_indev() 516 dev = __dev_get_by_name(net, indev); in tcf_change_indev()
|
/linux/tools/testing/selftests/drivers/net/ocelot/ |
A D | tc_flower_chains.sh | 183 flower skip_sw indev $eth1 \
|