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

12

/linux-master/include/net/netfilter/
H A Dnf_socket.h8 const struct net_device *indev);
11 const struct net_device *indev);
H A Dbr_netfilter.h26 struct sk_buff *skb, struct net_device *indev,
/linux-master/net/netfilter/
H A Dxt_physdev.c29 const char *indev, *outdev; local
63 indev = physdev ? physdev->name : NULL;
66 (!indev ^ !!(info->invert & XT_PHYSDEV_OP_ISIN))) ||
74 if (indev) {
75 ret = ifname_compare_aligned(indev, info->physindev,
H A Dnf_nat_redirect.c62 const struct in_device *indev; local
64 indev = __in_dev_get_rcu(skb->dev);
65 if (indev) {
68 ifa = rcu_dereference(indev->ifa_list);
H A Dnft_socket.c60 const struct net_device *indev = nft_in(pkt); local
64 if (!indev)
69 sk = nf_sk_lookup_slow_v4(nft_net(pkt), skb, indev);
73 sk = nf_sk_lookup_slow_v6(nft_net(pkt), skb, indev);
H A Dnft_flow_offload.c80 const struct net_device *indev; member in struct:nft_forward_info
110 info->indev = path->dev;
123 info->indev = NULL;
156 info->indev = NULL;
161 info->outdev = info->indev;
163 info->hw_outdev = info->indev;
166 nft_is_valid_ether_device(info->indev))
201 if (!info.indev || !nft_flowtable_find_dev(info.indev, ft))
204 route->tuple[!dir].in.ifindex = info.indev
[all...]
H A Dnf_tables_trace.c67 const struct net_device *indev,
70 if (indev) {
72 htonl(indev->ifindex)))
76 htons(indev->type)))
66 nf_trace_fill_dev_info(struct sk_buff *nlskb, const struct net_device *indev, const struct net_device *outdev) argument
H A Dnfnetlink_log.c462 const struct net_device *indev,
491 if (indev) {
494 htonl(indev->ifindex)))
502 htonl(indev->ifindex)) ||
508 htonl(br_port_get_rcu(indev)->br->dev->ifindex)))
513 /* Case 2: indev is bridge group, we need to look for
516 htonl(indev->ifindex)))
550 /* Case 2: indev is a bridge group, we need to look
569 if (indev && skb->dev &&
584 if (indev
456 __build_packet_message(struct nfnl_log_net *log, struct nfulnl_instance *inst, const struct sk_buff *skb, unsigned int data_len, u_int8_t pf, unsigned int hooknum, const struct net_device *indev, const struct net_device *outdev, const char *prefix, unsigned int plen, const struct nfnl_ct_hook *nfnl_ct, struct nf_conn *ct, enum ip_conntrack_info ctinfo) argument
[all...]
H A Dnfnetlink_queue.c554 struct net_device *indev; local
662 indev = entry->state.in;
663 if (indev) {
665 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex)))
669 /* Case 1: indev is physical input device, we need to
673 htonl(indev->ifindex)) ||
677 htonl(br_port_get_rcu(indev)->br->dev->ifindex)))
682 /* Case 2: indev is bridge group, we need to look for
685 htonl(indev->ifindex)))
739 if (indev
[all...]
/linux-master/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c13 struct inet6_dev *indev; local
21 indev = __in6_dev_get(skb->dev);
22 if (indev) {
23 read_lock_bh(&indev->lock);
24 list_for_each_entry(ifa, &indev->addr_list, if_list) {
31 read_unlock_bh(&indev->lock);
H A Dnf_socket_ipv6.c98 const struct net_device *indev)
140 sport, dport, indev);
97 nf_sk_lookup_slow_v6(struct net *net, const struct sk_buff *skb, const struct net_device *indev) argument
/linux-master/net/sched/
H A Dem_ipset.c56 struct net_device *dev, *indev = NULL; local
94 indev = dev_get_by_index_rcu(em->net, skb->skb_iif);
96 state.in = indev ? indev : dev;
H A Dem_ipt.c210 struct net_device *indev = NULL; local
235 indev = dev_get_by_index_rcu(em->net, skb->skb_iif);
238 indev ?: skb->dev, skb->dev, NULL, em->net, NULL);
/linux-master/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c53 struct in_device *indev; local
60 indev = __in_dev_get_rcu(skb->dev);
62 in_dev_for_each_ifa_rcu(ifa, indev) {
H A Dnf_socket_ipv4.c85 const struct net_device *indev)
147 daddr, sport, dport, indev);
84 nf_sk_lookup_slow_v4(struct net *net, const struct sk_buff *skb, const struct net_device *indev) argument
H A Dip_tables.c44 const char *indev,
57 ret = ifname_compare_aligned(indev, ipinfo->iniface, ipinfo->iniface_mask);
233 const char *indev, *outdev; local
244 indev = state->in ? state->in->name : nulldevname;
283 if (!ip_packet_match(ip, indev, outdev,
43 ip_packet_match(const struct iphdr *ip, const char *indev, const char *outdev, const struct ipt_ip *ipinfo, int isfrag) argument
/linux-master/net/bridge/
H A Dbr_forward.c77 struct net_device *indev; local
91 indev = skb->dev;
100 net = dev_net(indev);
112 indev = NULL;
116 net, NULL, skb, indev, skb->dev,
H A Dbr_input.c35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev; local
59 indev = skb->dev;
71 dev_net(indev), NULL, skb, indev, NULL,
/linux-master/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)"
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_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
114 log_test "indev egress match ($tcflags)"
/linux-master/include/linux/
H A Dnetfilter.h160 struct net_device *indev,
168 p->in = indev;
225 struct net_device *indev, struct net_device *outdev,
266 nf_hook_state_init(&state, hook, pf, indev, outdev,
435 struct net_device *indev, struct net_device *outdev,
157 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 *)) argument
223 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 *)) argument
433 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 *)) argument
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_flower.c528 struct net_device *dev, *indev; local
546 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex);
547 if (!indev) {
553 ingress_port = ocelot->ops->netdev_to_port(indev);
/linux-master/tools/testing/selftests/drivers/net/ocelot/
H A Dtc_flower_chains.sh165 flower skip_sw indev $swp2 \
/linux-master/include/net/
H A Dpkt_cls.h548 char indev[IFNAMSIZ]; local
551 if (nla_strscpy(indev, indev_tlv, IFNAMSIZ) < 0) {
556 dev = __dev_get_by_name(net, indev);

Completed in 386 milliseconds

12