/net/ipv6/ |
D | addrlabel.c | 37 int ifindex; member 150 int addrtype, int ifindex) in __ip6addrlbl_match() argument 154 if (p->ifindex && p->ifindex != ifindex) in __ip6addrlbl_match() 165 int type, int ifindex) in __ipv6_addr_label() argument 170 if (__ip6addrlbl_match(net, p, addr, type, ifindex)) in __ipv6_addr_label() 177 const struct in6_addr *addr, int type, int ifindex) in ipv6_addr_label() argument 185 p = __ipv6_addr_label(net, addr, type, ifindex); in ipv6_addr_label() 190 __func__, addr, type, ifindex, label); in ipv6_addr_label() 198 int prefixlen, int ifindex, in ip6addrlbl_alloc() argument 205 __func__, prefix, prefixlen, ifindex, (unsigned int)label); in ip6addrlbl_alloc() [all …]
|
D | anycast.c | 56 int ipv6_sock_ac_join(struct sock *sk, int ifindex, struct in6_addr *addr) in ipv6_sock_ac_join() argument 79 if (ifindex == 0) { in ipv6_sock_ac_join() 96 dev = dev_get_by_index(net, ifindex); in ipv6_sock_ac_join() 105 if (ifindex) in ipv6_sock_ac_join() 115 pac->acl_ifindex = dev->ifindex; in ipv6_sock_ac_join() 152 int ipv6_sock_ac_drop(struct sock *sk, int ifindex, struct in6_addr *addr) in ipv6_sock_ac_drop() argument 162 if ((ifindex == 0 || pac->acl_ifindex == ifindex) && in ipv6_sock_ac_drop() 226 int inet6_ac_check(struct sock *sk, struct in6_addr *addr, int ifindex) 235 if (ifindex && pac->acl_ifindex != ifindex) 516 state->dev->ifindex, state->dev->name, in ac6_seq_show()
|
D | mcast.c | 175 int ipv6_sock_mc_join(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_mc_join() argument 188 if ((ifindex == 0 || mc_lst->ifindex == ifindex) && in ipv6_sock_mc_join() 204 if (ifindex == 0) { in ipv6_sock_mc_join() 213 dev = dev_get_by_index(net, ifindex); in ipv6_sock_mc_join() 220 mc_lst->ifindex = dev->ifindex; in ipv6_sock_mc_join() 250 int ipv6_sock_mc_drop(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_mc_drop() argument 258 if ((ifindex == 0 || mc_lst->ifindex == ifindex) && in ipv6_sock_mc_drop() 265 dev = dev_get_by_index(net, mc_lst->ifindex); in ipv6_sock_mc_drop() 288 int ifindex) in ip6_mc_find_dev() argument 293 if (ifindex == 0) { in ip6_mc_find_dev() [all …]
|
D | addrconf.c | 809 rt = rt6_lookup(net, &prefix, NULL, ifp->idev->dev->ifindex, 1); in ipv6_del_addr() 978 int ifindex; member 1067 ret = (!dst->ifindex || in ipv6_get_saddr_eval() 1068 dst->ifindex == score->ifa->idev->dev->ifindex); in ipv6_get_saddr_eval() 1074 score->ifa->idev->dev->ifindex) == dst->label; in ipv6_get_saddr_eval() 1124 dst.ifindex = dst_dev ? dst_dev->ifindex : 0; in ipv6_dev_get_saddr() 1126 dst.label = ipv6_addr_label(net, daddr, dst_type, dst.ifindex); in ipv6_dev_get_saddr() 1152 dst.ifindex && dev->ifindex != dst.ifindex) in ipv6_dev_get_saddr() 1689 .fc_ifindex = dev->ifindex, in addrconf_prefix_route() 1718 .fc_ifindex = dev->ifindex, in addrconf_add_mroute() [all …]
|
/net/can/ |
D | bcm.c | 87 int ifindex; member 112 int ifindex; member 133 static char *bcm_proc_getifname(int ifindex) in bcm_proc_getifname() argument 137 if (!ifindex) in bcm_proc_getifname() 141 dev = __dev_get_by_index(&init_net, ifindex); in bcm_proc_getifname() 163 bcm_proc_getifname(bo->ifindex)); in bcm_read_proc() 176 op->can_id, bcm_proc_getifname(op->ifindex)); in bcm_read_proc() 212 op->can_id, bcm_proc_getifname(op->ifindex), in bcm_read_proc() 250 if (!op->ifindex) in bcm_can_tx() 253 dev = dev_get_by_index(&init_net, op->ifindex); in bcm_can_tx() [all …]
|
D | raw.c | 81 int ifindex; member 122 addr->can_ifindex = skb->dev->ifindex; in raw_rcv() 220 if (ro->ifindex != dev->ifindex) in raw_notifier() 234 ro->ifindex = 0; in raw_notifier() 259 ro->ifindex = 0; in raw_init() 290 if (ro->ifindex) { in raw_release() 293 dev = dev_get_by_index(&init_net, ro->ifindex); in raw_release() 305 ro->ifindex = 0; in raw_release() 320 int ifindex; in raw_bind() local 329 if (ro->bound && addr->can_ifindex == ro->ifindex) in raw_bind() [all …]
|
/net/wimax/ |
D | id-table.c | 88 struct genl_info *info, int ifindex) in wimax_dev_get_by_genl_info() argument 92 d_fnstart(3, NULL, "(info %p ifindex %d)\n", info, ifindex); in wimax_dev_get_by_genl_info() 95 if (wimax_dev->net_dev->ifindex == ifindex) { in wimax_dev_get_by_genl_info() 102 ifindex); in wimax_dev_get_by_genl_info() 106 info, ifindex, wimax_dev); in wimax_dev_get_by_genl_info() 141 __func__, wimax_dev, wimax_dev->net_dev->ifindex); in wimax_id_table_release()
|
D | op-reset.c | 112 int result, ifindex; in wimax_gnl_doit_reset() local 123 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_RESET_IFIDX]); in wimax_gnl_doit_reset() 124 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_reset()
|
D | op-msg.c | 137 wimax_dev->net_dev->ifindex); in wimax_msg_alloc() 336 int result, ifindex; in wimax_gnl_doit_msg_from_user() local 352 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_MSG_IFIDX]); in wimax_gnl_doit_msg_from_user() 353 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_msg_from_user()
|
/net/netfilter/ |
D | nfnetlink_queue.c | 291 NLA_PUT_BE32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex)); in nfqnl_build_packet_message() 298 htonl(indev->ifindex)); in nfqnl_build_packet_message() 301 htonl(indev->br_port->br->dev->ifindex)); in nfqnl_build_packet_message() 306 htonl(indev->ifindex)); in nfqnl_build_packet_message() 309 htonl(entskb->nf_bridge->physindev->ifindex)); in nfqnl_build_packet_message() 316 NLA_PUT_BE32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex)); in nfqnl_build_packet_message() 323 htonl(outdev->ifindex)); in nfqnl_build_packet_message() 326 htonl(outdev->br_port->br->dev->ifindex)); in nfqnl_build_packet_message() 331 htonl(outdev->ifindex)); in nfqnl_build_packet_message() 334 htonl(entskb->nf_bridge->physoutdev->ifindex)); in nfqnl_build_packet_message() [all …]
|
D | nf_tproxy_core.c | 35 in->ifindex); in nf_tproxy_get_sock_v4() 39 in->ifindex); in nf_tproxy_get_sock_v4() 43 in->ifindex); in nf_tproxy_get_sock_v4()
|
D | nfnetlink_log.c | 395 htonl(indev->ifindex)); in __build_packet_message() 402 htonl(indev->ifindex)); in __build_packet_message() 405 htonl(indev->br_port->br->dev->ifindex)); in __build_packet_message() 410 htonl(indev->ifindex)); in __build_packet_message() 413 htonl(skb->nf_bridge->physindev->ifindex)); in __build_packet_message() 419 tmp_uint = htonl(outdev->ifindex); in __build_packet_message() 422 htonl(outdev->ifindex)); in __build_packet_message() 429 htonl(outdev->ifindex)); in __build_packet_message() 432 htonl(outdev->br_port->br->dev->ifindex)); in __build_packet_message() 437 htonl(outdev->ifindex)); in __build_packet_message() [all …]
|
/net/netlabel/ |
D | netlabel_unlabeled.c | 97 int ifindex; member 241 static u32 netlbl_unlhsh_hash(int ifindex) in netlbl_unlhsh_hash() argument 246 return ifindex & (rcu_dereference(netlbl_unlhsh)->size - 1); in netlbl_unlhsh_hash() 259 static struct netlbl_unlhsh_iface *netlbl_unlhsh_search_iface(int ifindex) in netlbl_unlhsh_search_iface() argument 265 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_search_iface() 268 if (iter->valid && iter->ifindex == ifindex) in netlbl_unlhsh_search_iface() 286 static struct netlbl_unlhsh_iface *netlbl_unlhsh_search_iface_def(int ifindex) in netlbl_unlhsh_search_iface_def() argument 290 entry = netlbl_unlhsh_search_iface(ifindex); in netlbl_unlhsh_search_iface_def() 400 static struct netlbl_unlhsh_iface *netlbl_unlhsh_add_iface(int ifindex) in netlbl_unlhsh_add_iface() argument 409 iface->ifindex = ifindex; in netlbl_unlhsh_add_iface() [all …]
|
/net/ipv6/netfilter/ |
D | ip6_queue.c | 381 dev_cmp(struct nf_queue_entry *entry, unsigned long ifindex) in dev_cmp() argument 384 if (entry->indev->ifindex == ifindex) in dev_cmp() 388 if (entry->outdev->ifindex == ifindex) in dev_cmp() 393 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp() 396 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp() 404 ipq_dev_drop(int ifindex) in ipq_dev_drop() argument 406 ipq_flush(dev_cmp, ifindex); in ipq_dev_drop() 488 ipq_dev_drop(dev->ifindex); in ipq_rcv_dev_event()
|
/net/ipv4/netfilter/ |
D | ip_queue.c | 379 dev_cmp(struct nf_queue_entry *entry, unsigned long ifindex) in dev_cmp() argument 382 if (entry->indev->ifindex == ifindex) in dev_cmp() 385 if (entry->outdev->ifindex == ifindex) in dev_cmp() 390 entry->skb->nf_bridge->physindev->ifindex == ifindex) in dev_cmp() 393 entry->skb->nf_bridge->physoutdev->ifindex == ifindex) in dev_cmp() 401 ipq_dev_drop(int ifindex) in ipq_dev_drop() argument 403 ipq_flush(dev_cmp, ifindex); in ipq_dev_drop() 485 ipq_dev_drop(dev->ifindex); in ipq_rcv_dev_event()
|
D | ipt_MASQUERADE.c | 83 nat->masq_index = par->out->ifindex; in masquerade_tg() 97 device_cmp(struct nf_conn *i, void *ifindex) in device_cmp() argument 106 ret = (nat->masq_index == (int)(long)ifindex); in device_cmp() 123 NF_CT_ASSERT(dev->ifindex != 0); in masq_device_event() 126 (void *)(long)dev->ifindex); in masq_device_event()
|
/net/sched/ |
D | act_mirred.c | 83 if (parm->ifindex) { in tcf_mirred_init() 84 dev = __dev_get_by_index(&init_net, parm->ifindex); in tcf_mirred_init() 104 if (!parm->ifindex) in tcf_mirred_init() 122 if (parm->ifindex) { in tcf_mirred_init() 123 m->tcfm_ifindex = parm->ifindex; in tcf_mirred_init() 198 skb2->iif = skb->dev->ifindex; in tcf_mirred() 216 opt.ifindex = m->tcfm_ifindex; in tcf_mirred_dump()
|
/net/packet/ |
D | af_packet.c | 142 int ifindex; member 183 int ifindex; /* bound device */ member 550 sll->sll_ifindex = orig_dev->ifindex; in packet_rcv() 552 sll->sll_ifindex = dev->ifindex; in packet_rcv() 724 sll->sll_ifindex = orig_dev->ifindex; in tpacket_rcv() 726 sll->sll_ifindex = dev->ifindex; in tpacket_rcv() 776 int ifindex, err, reserve = 0; in packet_sendmsg() local 785 ifindex = po->ifindex; in packet_sendmsg() 794 ifindex = saddr->sll_ifindex; in packet_sendmsg() 800 dev = dev_get_by_index(sock_net(sk), ifindex); in packet_sendmsg() [all …]
|
/net/core/ |
D | fib_rules.c | 138 if (rule->ifindex && (rule->ifindex != fl->iif)) in fib_rule_match() 254 rule->ifindex = -1; in fib_nl_newrule() 258 rule->ifindex = dev->ifindex; in fib_nl_newrule() 487 if (rule->ifindex == -1) in fib_nl_fill_rule() 602 if (rule->ifindex == -1 && in attach_rules() 604 rule->ifindex = dev->ifindex; in attach_rules() 613 if (rule->ifindex == dev->ifindex) in detach_rules() 614 rule->ifindex = -1; in detach_rules()
|
/net/mac80211/ |
D | debugfs_key.c | 59 KEY_READ(ifindex, sdata->dev->ifindex, 20, "%d\n"); 60 KEY_OPS(ifindex); 226 DEBUGFS_ADD(ifindex); in ieee80211_debugfs_key_add() 247 DEBUGFS_DEL(ifindex); in ieee80211_debugfs_key_remove()
|
/net/wireless/ |
D | core.c | 58 int ifindex; in __cfg80211_drv_from_info() local 70 ifindex = nla_get_u32(info->attrs[NL80211_ATTR_IFINDEX]); in __cfg80211_drv_from_info() 71 dev = dev_get_by_index(&init_net, ifindex); in __cfg80211_drv_from_info() 116 cfg80211_get_dev_from_ifindex(int ifindex) in cfg80211_get_dev_from_ifindex() argument 122 dev = dev_get_by_index(&init_net, ifindex); in cfg80211_get_dev_from_ifindex()
|
D | nl80211.c | 37 int ifindex; in get_drv_dev_by_info_ifindex() local 42 ifindex = nla_get_u32(attrs[NL80211_ATTR_IFINDEX]); in get_drv_dev_by_info_ifindex() 43 *dev = dev_get_by_index(&init_net, ifindex); in get_drv_dev_by_info_ifindex() 47 *drv = cfg80211_get_dev_from_ifindex(ifindex); in get_drv_dev_by_info_ifindex() 445 NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, dev->ifindex); in nl80211_send_iface() 563 int err, ifindex; in nl80211_set_interface() local 573 ifindex = dev->ifindex; in nl80211_set_interface() 610 err = drv->ops->change_virtual_intf(&drv->wiphy, ifindex, in nl80211_set_interface() 613 dev = __dev_get_by_index(&init_net, ifindex); in nl80211_set_interface() 676 int ifindex, err; in nl80211_del_interface() local [all …]
|
/net/bridge/ |
D | br_netlink.c | 55 hdr->ifi_index = dev->ifindex; in br_fill_ifinfo() 60 NLA_PUT_U32(skb, IFLA_MASTER, br->dev->ifindex); in br_fill_ifinfo() 67 if (dev->ifindex != dev->iflink) in br_fill_ifinfo()
|
D | br_ioctl.c | 33 indices[i++] = dev->ifindex; in get_bridge_ifindices() 46 ifindices[p->port_no] = p->dev->ifindex; in get_port_ifindices() 84 static int add_del_if(struct net_bridge *br, int ifindex, int isadd) in add_del_if() argument 92 dev = dev_get_by_index(dev_net(br->dev), ifindex); in add_del_if()
|
/net/phonet/ |
D | pep.c | 615 int ifindex = 0; in pep_sock_close() local 629 ifindex = pn->ifindex; in pep_sock_close() 630 pn->ifindex = 0; in pep_sock_close() 633 if (ifindex) in pep_sock_close() 759 if (!pn->ifindex == !val) in pep_setsockopt() 769 pn->ifindex = err; in pep_setsockopt() 773 pn->ifindex = 0; in pep_setsockopt() 801 val = pn->ifindex ? PNPIPE_ENCAP_IP : PNPIPE_ENCAP_NONE; in pep_getsockopt() 804 val = pn->ifindex; in pep_getsockopt()
|