Searched refs:indev (Results 1 - 25 of 33) sorted by last modified time

12

/linux-master/net/ipv6/
H A Dip6_output.c231 struct net_device *dev = skb_dst(skb)->dev, *indev = skb->dev; local
244 net, sk, skb, indev, dev,
/linux-master/net/ipv4/
H A Dip_output.c428 struct net_device *dev = skb_dst(skb)->dev, *indev = skb->dev; local
434 net, sk, skb, indev, dev,
/linux-master/net/bridge/
H A Dbr_netfilter_hooks.c778 * netfilter with indev and outdev set to the bridge device,
779 * but we are still able to filter on the 'real' indev/outdev
780 * because of the physdev module. For ARP, indev and outdev are the
1133 struct net_device *indev,
1168 nf_hook_state_init(&state, hook, NFPROTO_BRIDGE, indev, outdev,
1131 br_nf_hook_thresh(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
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/include/net/
H A Dpkt_cls.h557 char indev[IFNAMSIZ]; local
560 if (nla_strscpy(indev, indev_tlv, IFNAMSIZ) < 0) {
565 dev = __dev_get_by_name(net, indev);
/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/net/ipv6/netfilter/
H A Dip6_tables.c48 const char *indev,
65 ret = ifname_compare_aligned(indev, ip6info->iniface, ip6info->iniface_mask);
256 const char *indev, *outdev; local
266 indev = state->in ? state->in->name : nulldevname;
306 if (!ip6_packet_match(skb, indev, outdev, &e->ipv6,
47 ip6_packet_match(const struct sk_buff *skb, const char *indev, const char *outdev, const struct ip6t_ip6 *ip6info, unsigned int *protoff, u16 *fragoff, bool *hotdrop) argument
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);
/linux-master/net/ipv4/netfilter/
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
H A Darp_tables.c84 const char *indev,
132 ret = ifname_compare(indev, arpinfo->iniface, arpinfo->iniface_mask);
192 const char *indev, *outdev; local
202 indev = state->in ? state->in->name : nulldevname;
225 if (!arp_packet_match(arp, skb->dev, indev, outdev, &e->arp)) {
82 arp_packet_match(const struct arphdr *arphdr, struct net_device *dev, const char *indev, const char *outdev, const struct arpt_arp *arpinfo) argument
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) {
/linux-master/net/netfilter/
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...]
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 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 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 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 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
/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/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_flower.sh357 $tcflags indev $h1 dst_mac $h2mac action drop
359 $tcflags indev $h2 dst_mac $h2mac action drop
373 log_test "indev match ($tcflags)"
/linux-master/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_main.c3234 struct in_device *indev; local
3240 indev = in_dev_get(dev);
3241 if (!indev)
3245 in_dev_for_each_ifa_rcu(ifa, indev) {
3258 in_dev_put(indev);
/linux-master/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_main.c4067 struct in_device *indev; local
4069 indev = in_dev_get(dev);
4070 if (!indev)
4073 in_dev_for_each_ifa_rtnl(ifa, indev) {
4088 in_dev_put(indev);
/linux-master/tools/testing/selftests/drivers/net/ocelot/
H A Dtc_flower_chains.sh165 flower skip_sw indev $swp2 \

Completed in 516 milliseconds

12