Home
last modified time | relevance | path

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

/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.c48 const char *indev, in ip6_packet_match() argument
65 ret = ifname_compare_aligned(indev, ip6info->iniface, ip6info->iniface_mask); in ip6_packet_match()
256 const char *indev, *outdev; in ip6t_do_table() local
266 indev = state->in ? state->in->name : nulldevname; in ip6t_do_table()
306 if (!ip6_packet_match(skb, indev, outdev, &e->ipv6, in ip6t_do_table()
/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.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()
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.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()
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.c462 const struct net_device *indev, in __build_packet_message() argument
491 if (indev) { in __build_packet_message()
494 htonl(indev->ifindex))) in __build_packet_message()
502 htonl(indev->ifindex)) || in __build_packet_message()
508 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in __build_packet_message()
516 htonl(indev->ifindex))) in __build_packet_message()
569 if (indev && skb->dev && in __build_packet_message()
584 if (indev && skb_mac_header_was_set(skb)) { in __build_packet_message()
Dnfnetlink_queue.c404 struct net_device *indev; in nfqnl_build_packet_message() local
512 indev = entry->state.in; in nfqnl_build_packet_message()
513 if (indev) { in nfqnl_build_packet_message()
515 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) in nfqnl_build_packet_message()
523 htonl(indev->ifindex)) || in nfqnl_build_packet_message()
527 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in nfqnl_build_packet_message()
535 htonl(indev->ifindex))) in nfqnl_build_packet_message()
589 if (indev && entskb->dev && in nfqnl_build_packet_message()
/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()
/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()
61 if (!indev) in nf_tproxy_laddr4()
64 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.c44 const char *indev, in ip_packet_match() argument
57 ret = ifname_compare_aligned(indev, ipinfo->iniface, ipinfo->iniface_mask); in ip_packet_match()
233 const char *indev, *outdev; in ipt_do_table() local
244 indev = state->in ? state->in->name : nulldevname; in ipt_do_table()
283 if (!ip_packet_match(ip, indev, outdev, in ipt_do_table()
/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()
71 dev_net(indev), NULL, skb, indev, NULL, in br_pass_frame_up()
Dbr_netfilter_hooks.c1140 struct net_device *indev, in br_nf_hook_thresh() argument
1175 nf_hook_state_init(&state, hook, NFPROTO_BRIDGE, indev, outdev, in br_nf_hook_thresh()
/net/ipv4/
Dip_output.c428 struct net_device *dev = skb_dst(skb)->dev, *indev = skb->dev; in ip_output() local
434 net, sk, skb, indev, dev, in ip_output()
/net/ipv6/
Dip6_output.c228 struct net_device *dev = skb_dst(skb)->dev, *indev = skb->dev; in ip6_output() local
241 net, sk, skb, indev, dev, in ip6_output()