/net/l3mdev/ |
D | l3mdev.c | 81 int ifindex = -EINVAL; in l3mdev_ifindex_lookup_by_table_id() local 96 ifindex = lookup(net, table_id); in l3mdev_ifindex_lookup_by_table_id() 101 return ifindex; in l3mdev_ifindex_lookup_by_table_id() 112 int ifindex = 0; in l3mdev_master_ifindex_rcu() local 118 ifindex = dev->ifindex; in l3mdev_master_ifindex_rcu() 131 ifindex = master->ifindex; in l3mdev_master_ifindex_rcu() 134 return ifindex; in l3mdev_master_ifindex_rcu() 144 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu() argument 148 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_upper_ifindex_by_index_rcu() 152 return dev ? dev->ifindex : 0; in l3mdev_master_upper_ifindex_by_index_rcu() [all …]
|
/net/can/ |
D | bcm.c | 104 int ifindex; member 128 int ifindex; member 175 static char *bcm_proc_getifname(struct net *net, char *result, int ifindex) in bcm_proc_getifname() argument 179 if (!ifindex) in bcm_proc_getifname() 183 dev = dev_get_by_index_rcu(net, ifindex); in bcm_proc_getifname() 205 seq_printf(m, " / bound %s", bcm_proc_getifname(net, ifname, bo->ifindex)); in bcm_proc_show() 217 bcm_proc_getifname(net, ifname, op->ifindex)); in bcm_proc_show() 246 bcm_proc_getifname(net, ifname, op->ifindex)); in bcm_proc_show() 280 if (!op->ifindex) in bcm_can_tx() 283 dev = dev_get_by_index(sock_net(op->sk), op->ifindex); in bcm_can_tx() [all …]
|
D | raw.c | 85 int ifindex; member 171 addr->can_ifindex = skb->dev->ifindex; in raw_rcv() 278 if (ro->ifindex != dev->ifindex) in raw_notify() 291 ro->ifindex = 0; in raw_notify() 337 ro->ifindex = 0; in raw_init() 387 if (ro->ifindex) { in raw_release() 390 dev = dev_get_by_index(sock_net(sk), ro->ifindex); in raw_release() 403 ro->ifindex = 0; in raw_release() 422 int ifindex; in raw_bind() local 433 if (ro->bound && addr->can_ifindex == ro->ifindex) in raw_bind() [all …]
|
D | isotp.c | 139 int ifindex; member 211 dev = dev_get_by_index(sock_net(sk), so->ifindex); in isotp_send_fc() 218 can_skb_prv(nskb)->ifindex = dev->ifindex; in isotp_send_fc() 272 addr->can_ifindex = skb->dev->ifindex; in isotp_rcv_skb() 745 dev = dev_get_by_index(sock_net(sk), so->ifindex); in isotp_send_cframe() 756 can_skb_prv(skb)->ifindex = dev->ifindex; in isotp_send_cframe() 961 dev = dev_get_by_index(sock_net(sk), so->ifindex); in isotp_sendmsg() 975 can_skb_prv(skb)->ifindex = dev->ifindex; in isotp_sendmsg() 1173 if (so->ifindex) { in isotp_release() 1176 dev = dev_get_by_index(net, so->ifindex); in isotp_release() [all …]
|
/net/ipv6/ |
D | addrlabel.c | 35 int ifindex; member 116 int addrtype, int ifindex) in __ip6addrlbl_match() argument 118 if (p->ifindex && p->ifindex != ifindex) in __ip6addrlbl_match() 129 int type, int ifindex) in __ipv6_addr_label() argument 134 if (__ip6addrlbl_match(p, addr, type, ifindex)) in __ipv6_addr_label() 141 const struct in6_addr *addr, int type, int ifindex) in ipv6_addr_label() argument 149 p = __ipv6_addr_label(net, addr, type, ifindex); in ipv6_addr_label() 154 __func__, addr, type, ifindex, label); in ipv6_addr_label() 161 int prefixlen, int ifindex, in ip6addrlbl_alloc() argument 168 __func__, prefix, prefixlen, ifindex, (unsigned int)label); in ip6addrlbl_alloc() [all …]
|
D | anycast.c | 63 int ipv6_sock_ac_join(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_ac_join() argument 80 if (ifindex) in ipv6_sock_ac_join() 81 dev = __dev_get_by_index(net, ifindex); in ipv6_sock_ac_join() 92 if (ifindex == 0) { in ipv6_sock_ac_join() 116 if (ifindex) in ipv6_sock_ac_join() 125 pac->acl_ifindex = dev->ifindex; in ipv6_sock_ac_join() 155 int ipv6_sock_ac_drop(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_ac_drop() argument 166 if ((ifindex == 0 || pac->acl_ifindex == ifindex) && in ipv6_sock_ac_drop() 573 state->dev->ifindex, state->dev->name, in ac6_seq_show()
|
D | addrconf.c | 518 static int inet6_netconf_fill_devconf(struct sk_buff *skb, int ifindex, in inet6_netconf_fill_devconf() argument 538 if (nla_put_s32(skb, NETCONFA_IFINDEX, ifindex) < 0) in inet6_netconf_fill_devconf() 572 int ifindex, struct ipv6_devconf *devconf) in inet6_netconf_notify_devconf() argument 581 err = inet6_netconf_fill_devconf(skb, ifindex, devconf, 0, 0, in inet6_netconf_notify_devconf() 651 int ifindex; in inet6_netconf_get_devconf() local 662 ifindex = nla_get_s32(tb[NETCONFA_IFINDEX]); in inet6_netconf_get_devconf() 663 switch (ifindex) { in inet6_netconf_get_devconf() 671 dev = dev_get_by_index(net, ifindex); in inet6_netconf_get_devconf() 686 err = inet6_netconf_fill_devconf(skb, ifindex, devconf, in inet6_netconf_get_devconf() 762 if (inet6_netconf_fill_devconf(skb, dev->ifindex, in inet6_netconf_dump_devconf() [all …]
|
/net/wimax/ |
D | id-table.c | 73 struct genl_info *info, int ifindex) in wimax_dev_get_by_genl_info() argument 77 d_fnstart(3, NULL, "(info %p ifindex %d)\n", info, ifindex); in wimax_dev_get_by_genl_info() 80 if (wimax_dev->net_dev->ifindex == ifindex) { in wimax_dev_get_by_genl_info() 87 ifindex); in wimax_dev_get_by_genl_info() 91 info, ifindex, wimax_dev); in wimax_dev_get_by_genl_info() 126 __func__, wimax_dev, wimax_dev->net_dev->ifindex); in wimax_id_table_release()
|
D | op-state-get.c | 33 int result, ifindex; in wimax_gnl_doit_state_get() local 42 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_STGET_IFIDX]); in wimax_gnl_doit_state_get() 43 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_state_get()
|
D | op-reset.c | 89 int result, ifindex; in wimax_gnl_doit_reset() local 98 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_RESET_IFIDX]); in wimax_gnl_doit_reset() 99 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_reset()
|
D | op-msg.c | 130 wimax_dev->net_dev->ifindex); in wimax_msg_alloc() 319 int result, ifindex; in wimax_gnl_doit_msg_from_user() local 334 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_MSG_IFIDX]); in wimax_gnl_doit_msg_from_user() 335 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_msg_from_user()
|
/net/bridge/ |
D | br_mdb.c | 39 if (nla_put_nohdr(skb, sizeof(u32), &p->dev->ifindex) || in br_rports_fill_info() 159 int ifindex; in __mdb_fill_info() local 163 ifindex = p->key.port->dev->ifindex; in __mdb_fill_info() 167 ifindex = mp->br->dev->ifindex; in __mdb_fill_info() 172 e.ifindex = ifindex; in __mdb_fill_info() 308 if (bpm->ifindex) { in br_mdb_valid_dump_req() 355 bpm->ifindex = dev->ifindex; in br_mdb_dump() 393 bpm->ifindex = dev->ifindex; in nlmsg_populate_mdb_fill() 607 int ifindex, u32 pid, in nlmsg_populate_rtr_fill() argument 621 bpm->ifindex = dev->ifindex; in nlmsg_populate_rtr_fill() [all …]
|
/net/netlabel/ |
D | netlabel_unlabeled.c | 83 int ifindex; member 186 static u32 netlbl_unlhsh_hash(int ifindex) in netlbl_unlhsh_hash() argument 188 return ifindex & (netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->size - 1); in netlbl_unlhsh_hash() 202 static struct netlbl_unlhsh_iface *netlbl_unlhsh_search_iface(int ifindex) in netlbl_unlhsh_search_iface() argument 208 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_search_iface() 212 if (iter->valid && iter->ifindex == ifindex) in netlbl_unlhsh_search_iface() 312 static struct netlbl_unlhsh_iface *netlbl_unlhsh_add_iface(int ifindex) in netlbl_unlhsh_add_iface() argument 321 iface->ifindex = ifindex; in netlbl_unlhsh_add_iface() 327 if (ifindex > 0) { in netlbl_unlhsh_add_iface() 328 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_add_iface() [all …]
|
/net/netfilter/ |
D | nf_nat_masquerade.c | 16 int ifindex; member 61 nat->masq_index = out->ifindex; in nf_nat_masquerade_ipv4() 98 int ifindex, in nf_nat_masq_schedule() argument 120 w->ifindex = ifindex; in nf_nat_masq_schedule() 141 return nat->masq_index == w->ifindex; in device_cmp() 157 nf_nat_masq_schedule(net, NULL, dev->ifindex, in masq_device_event() 203 nf_nat_masq_schedule(dev_net(idev->dev), &addr, dev->ifindex, in masq_inet_event() 255 nat->masq_index = out->ifindex; in nf_nat_masquerade_ipv6() 290 nf_nat_masq_schedule(dev_net(dev), &addr, dev->ifindex, inet_cmp, in masq_inet6_event()
|
D | xt_TEE.c | 73 priv->oif = dev->ifindex; in tee_netdev_event() 76 if (dev->ifindex == priv->oif) in tee_netdev_event() 81 priv->oif = dev->ifindex; in tee_netdev_event() 82 else if (dev->ifindex == priv->oif) in tee_netdev_event() 119 priv->oif = dev->ifindex; in tee_tg_check()
|
D | nfnetlink_queue.c | 490 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) in nfqnl_build_packet_message() 498 htonl(indev->ifindex)) || in nfqnl_build_packet_message() 502 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in nfqnl_build_packet_message() 510 htonl(indev->ifindex))) in nfqnl_build_packet_message() 524 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex))) in nfqnl_build_packet_message() 532 htonl(outdev->ifindex)) || in nfqnl_build_packet_message() 536 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) in nfqnl_build_packet_message() 544 htonl(outdev->ifindex))) in nfqnl_build_packet_message() 901 dev_cmp(struct nf_queue_entry *entry, unsigned long ifindex) in dev_cmp() argument 909 if (physinif == ifindex || physoutif == ifindex) in dev_cmp() [all …]
|
/net/ipv4/netfilter/ |
D | ipt_CLUSTERIP.c | 46 int ifindex; /* device ifindex */ member 201 c->ifindex = dev->ifindex; in clusterip_netdev_event() 206 if (dev->ifindex == c->ifindex) { in clusterip_netdev_event() 208 c->ifindex = -1; in clusterip_netdev_event() 213 c->ifindex = dev->ifindex; in clusterip_netdev_event() 215 } else if (dev->ifindex == c->ifindex) { in clusterip_netdev_event() 217 c->ifindex = -1; in clusterip_netdev_event() 251 c->ifindex = dev->ifindex; in clusterip_config_init() 640 if (c->ifindex != state->out->ifindex) { in arp_mangle() 642 c->ifindex, state->out->ifindex); in arp_mangle()
|
D | nf_tproxy_ipv4.c | 100 in->ifindex, 0); in nf_tproxy_get_sock_v4() 113 in->ifindex); in nf_tproxy_get_sock_v4() 122 in->ifindex); in nf_tproxy_get_sock_v4()
|
/net/ipv6/ila/ |
D | ila_xlat.c | 15 int ifindex; member 56 struct ila_addr *iaddr, int ifindex) in ila_cmp_wildcards() argument 58 return (ila->xp.ifindex && ila->xp.ifindex != ifindex); in ila_cmp_wildcards() 64 return (ila->xp.ifindex != xp->ifindex); in ila_cmp_params() 79 if (ila->xp.ifindex) in ila_order() 121 xp->ifindex = nla_get_s32(info->attrs[ILA_ATTR_IFINDEX]); in parse_nl_config() 128 int ifindex, in ila_lookup_wildcards() argument 136 if (!ila_cmp_wildcards(ila, iaddr, ifindex)) in ila_lookup_wildcards() 432 nla_put_s32(msg, ILA_ATTR_IFINDEX, ila->xp.ifindex) || in ila_fill_info() 649 ila = ila_lookup_wildcards(iaddr, skb->dev->ifindex, ilan); in ila_xlat_addr()
|
/net/dcb/ |
D | dcbnl.c | 1118 if (itr->ifindex == netdev->ifindex) { in dcbnl_ieee_fill() 1277 if (itr->ifindex == netdev->ifindex) { in dcbnl_cee_fill() 1800 int ifindex, int prio) in dcb_app_lookup() argument 1807 itr->ifindex == ifindex && in dcb_app_lookup() 1815 static int dcb_app_add(const struct dcb_app *app, int ifindex) in dcb_app_add() argument 1824 entry->ifindex = ifindex; in dcb_app_add() 1843 itr = dcb_app_lookup(app, dev->ifindex, -1); in dcb_getapp() 1865 event.ifindex = dev->ifindex; in dcb_setapp() 1872 itr = dcb_app_lookup(new, dev->ifindex, -1); in dcb_setapp() 1884 err = dcb_app_add(new, dev->ifindex); in dcb_setapp() [all …]
|
/net/ipv4/ |
D | devinet.c | 113 int ifindex; member 588 struct in_device *inetdev_by_index(struct net *net, int ifindex) in inetdev_by_index() argument 594 dev = dev_get_by_index_rcu(net, ifindex); in inetdev_by_index() 624 .imr_ifindex = ifa->ifa_dev->dev->ifindex, in ip_mc_autojoin_config() 1666 ifm->ifa_index = ifa->ifa_dev->dev->ifindex; in inet_fill_ifaddr() 1737 fillargs->ifindex = ifm->ifa_index; in inet_valid_dump_ifaddr_req() 1738 if (fillargs->ifindex) { in inet_valid_dump_ifaddr_req() 1847 if (fillargs.ifindex) { in inet_dump_ifaddr() 1848 dev = __dev_get_by_index(tgt_net, fillargs.ifindex); in inet_dump_ifaddr() 2041 static int inet_netconf_fill_devconf(struct sk_buff *skb, int ifindex, in inet_netconf_fill_devconf() argument [all …]
|
/net/caif/ |
D | cfcnfg.c | 46 int ifindex; member 174 if (phy->ifindex == ifi && phy->up) in cfcnfg_get_id_from_ifi() 230 if (s->ifindex != 0) { in caif_connect_req_to_link_param() 231 res = cfcnfg_get_id_from_ifi(cnfg, s->ifindex); in caif_connect_req_to_link_param() 301 struct cflayer *adap_layer, int *ifindex, in caif_connect_client() argument 347 *ifindex = phy->ifindex; in caif_connect_client() 469 phyid = (dev->ifindex + i) & 0x7; in cfcnfg_add_phy_layer() 492 phyinfo->ifindex = dev->ifindex; in cfcnfg_add_phy_layer()
|
/net/tipc/ |
D | udp_media.c | 95 u32 ifindex; member 196 .flowi6_oif = ub->ifindex, in tipc_udp_xmit() 407 mreqn.imr_ifindex = ub->ifindex; in enable_mcast() 411 err = ipv6_stub->ipv6_sock_mc_join(sk, ub->ifindex, in enable_mcast() 686 &ub->ifindex); in tipc_udp_enable() 732 ub->ifindex = dev->ifindex; in tipc_udp_enable() 741 dev = ub->ifindex ? __dev_get_by_index(net, ub->ifindex) : NULL; in tipc_udp_enable() 754 ub->ifindex = dev->ifindex; in tipc_udp_enable()
|
/net/hsr/ |
D | hsr_netlink.c | 129 if (nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex)) in hsr_fill_info() 135 if (nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex)) in hsr_fill_info() 207 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex); in hsr_nl_ringerror() 323 res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex); in hsr_get_node_status() 366 port->dev->ifindex); in hsr_get_node_status() 379 port->dev->ifindex); in hsr_get_node_status() 451 res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex); in hsr_get_node_list()
|
/net/sched/ |
D | cls_fw.c | 37 int ifindex; member 65 if (!tcf_match_indev(skb, f->ifindex)) in fw_classify() 218 f->ifindex = ret; in fw_set_parms() 269 fnew->ifindex = f->ifindex; in fw_change() 396 if (f->ifindex) { in fw_dump() 398 dev = __dev_get_by_index(net, f->ifindex); in fw_dump()
|