/net/l3mdev/ |
D | l3mdev.c | 23 int ifindex = 0; in l3mdev_master_ifindex_rcu() local 29 ifindex = dev->ifindex; in l3mdev_master_ifindex_rcu() 42 ifindex = master->ifindex; in l3mdev_master_ifindex_rcu() 45 return ifindex; in l3mdev_master_ifindex_rcu() 82 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument 87 if (!ifindex) in l3mdev_fib_table_by_index() 92 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_fib_table_by_index() 173 int ifindex; in l3mdev_update_flow() local 180 ifindex = l3mdev_master_ifindex_rcu(dev); in l3mdev_update_flow() 181 if (ifindex) { in l3mdev_update_flow() [all …]
|
/net/can/ |
D | bcm.c | 99 int ifindex; member 126 int ifindex; member 152 static char *bcm_proc_getifname(char *result, int ifindex) in bcm_proc_getifname() argument 156 if (!ifindex) in bcm_proc_getifname() 160 dev = dev_get_by_index_rcu(&init_net, ifindex); in bcm_proc_getifname() 181 seq_printf(m, " / bound %s", bcm_proc_getifname(ifname, bo->ifindex)); in bcm_proc_show() 193 bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show() 222 bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show() 267 if (!op->ifindex) in bcm_can_tx() 270 dev = dev_get_by_index(&init_net, op->ifindex); in bcm_can_tx() [all …]
|
D | raw.c | 86 int ifindex; member 170 addr->can_ifindex = skb->dev->ifindex; in raw_rcv() 276 if (ro->ifindex != dev->ifindex) in raw_notifier() 290 ro->ifindex = 0; in raw_notifier() 315 ro->ifindex = 0; in raw_init() 358 if (ro->ifindex) { in raw_release() 361 dev = dev_get_by_index(&init_net, ro->ifindex); in raw_release() 373 ro->ifindex = 0; in raw_release() 392 int ifindex; in raw_bind() local 401 if (ro->bound && addr->can_ifindex == ro->ifindex) in raw_bind() [all …]
|
/net/ipv6/ |
D | addrlabel.c | 35 int ifindex; member 153 int addrtype, int ifindex) in __ip6addrlbl_match() argument 157 if (p->ifindex && p->ifindex != ifindex) in __ip6addrlbl_match() 168 int type, int ifindex) in __ipv6_addr_label() argument 172 if (__ip6addrlbl_match(net, p, addr, type, ifindex)) in __ipv6_addr_label() 179 const struct in6_addr *addr, int type, int ifindex) in ipv6_addr_label() argument 187 p = __ipv6_addr_label(net, addr, type, ifindex); in ipv6_addr_label() 192 __func__, addr, type, ifindex, label); in ipv6_addr_label() 200 int prefixlen, int ifindex, in ip6addrlbl_alloc() argument 207 __func__, prefix, prefixlen, ifindex, (unsigned int)label); in ip6addrlbl_alloc() [all …]
|
D | anycast.c | 53 int ipv6_sock_ac_join(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_ac_join() argument 78 if (ifindex == 0) { in ipv6_sock_ac_join() 94 dev = __dev_get_by_index(net, ifindex); in ipv6_sock_ac_join() 103 if (ifindex) in ipv6_sock_ac_join() 112 pac->acl_ifindex = dev->ifindex; in ipv6_sock_ac_join() 142 int ipv6_sock_ac_drop(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_ac_drop() argument 153 if ((ifindex == 0 || pac->acl_ifindex == ifindex) && in ipv6_sock_ac_drop() 517 state->dev->ifindex, state->dev->name, in ac6_seq_show()
|
D | addrconf.c | 516 static int inet6_netconf_fill_devconf(struct sk_buff *skb, int ifindex, in inet6_netconf_fill_devconf() argument 536 if (nla_put_s32(skb, NETCONFA_IFINDEX, ifindex) < 0) in inet6_netconf_fill_devconf() 565 void inet6_netconf_notify_devconf(struct net *net, int type, int ifindex, in inet6_netconf_notify_devconf() argument 575 err = inet6_netconf_fill_devconf(skb, ifindex, devconf, 0, 0, in inet6_netconf_notify_devconf() 606 int ifindex; in inet6_netconf_get_devconf() local 618 ifindex = nla_get_s32(tb[NETCONFA_IFINDEX]); in inet6_netconf_get_devconf() 619 switch (ifindex) { in inet6_netconf_get_devconf() 627 dev = __dev_get_by_index(net, ifindex); in inet6_netconf_get_devconf() 642 err = inet6_netconf_fill_devconf(skb, ifindex, devconf, in inet6_netconf_get_devconf() 683 if (inet6_netconf_fill_devconf(skb, dev->ifindex, in inet6_netconf_dump_devconf() [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-state-get.c | 46 int result, ifindex; in wimax_gnl_doit_state_get() local 55 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_STGET_IFIDX]); in wimax_gnl_doit_state_get() 56 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_state_get()
|
D | op-reset.c | 104 int result, ifindex; in wimax_gnl_doit_reset() local 113 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_RESET_IFIDX]); in wimax_gnl_doit_reset() 114 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_reset()
|
D | op-msg.c | 145 wimax_dev->net_dev->ifindex); in wimax_msg_alloc() 334 int result, ifindex; in wimax_gnl_doit_msg_from_user() local 349 ifindex = nla_get_u32(info->attrs[WIMAX_GNL_MSG_IFIDX]); in wimax_gnl_doit_msg_from_user() 350 wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); in wimax_gnl_doit_msg_from_user()
|
/net/batman-adv/ |
D | netlink.c | 139 nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || in batadv_netlink_mesh_info_put() 158 hard_iface->ifindex) || in batadv_netlink_mesh_info_put() 190 int ifindex; in batadv_netlink_get_mesh_info() local 196 ifindex = nla_get_u32(info->attrs[BATADV_ATTR_MESH_IFINDEX]); in batadv_netlink_get_mesh_info() 197 if (!ifindex) in batadv_netlink_get_mesh_info() 200 soft_iface = dev_get_by_index(net, ifindex); in batadv_netlink_get_mesh_info() 331 int ifindex; in batadv_netlink_tp_meter_start() local 345 ifindex = nla_get_u32(info->attrs[BATADV_ATTR_MESH_IFINDEX]); in batadv_netlink_tp_meter_start() 346 if (!ifindex) in batadv_netlink_tp_meter_start() 353 soft_iface = dev_get_by_index(net, ifindex); in batadv_netlink_tp_meter_start() [all …]
|
/net/bridge/ |
D | br_mdb.c | 38 if (nla_put_nohdr(skb, sizeof(u32), &p->dev->ifindex) || in br_rports_fill_info() 124 e.ifindex = port->dev->ifindex; in br_mdb_fill_info() 193 bpm->ifindex = dev->ifindex; in br_mdb_dump() 230 bpm->ifindex = dev->ifindex; in nlmsg_populate_mdb_fill() 310 port_dev = __dev_get_by_index(net, entry->ifindex); in __br_mdb_notify() 355 entry.ifindex = port->dev->ifindex; in br_mdb_notify() 368 int ifindex, u32 pid, in nlmsg_populate_rtr_fill() argument 382 bpm->ifindex = dev->ifindex; in nlmsg_populate_rtr_fill() 387 if (nla_put_u32(skb, MDBA_ROUTER_PORT, ifindex)) in nlmsg_populate_rtr_fill() 413 int ifindex; in br_rtr_notify() local [all …]
|
/net/ipv6/netfilter/ |
D | nf_nat_masquerade_ipv6.c | 45 nfct_nat(ct)->masq_index = out->ifindex; in nf_nat_masquerade_ipv6() 57 static int device_cmp(struct nf_conn *ct, void *ifindex) in device_cmp() argument 65 return nat->masq_index == (int)(long)ifindex; in device_cmp() 76 (void *)(long)dev->ifindex, 0, 0); in masq_device_event() 88 int ifindex; member 98 index = w->ifindex; in iterate_cleanup_work() 146 w->ifindex = dev->ifindex; in masq_inet_event()
|
/net/netlabel/ |
D | netlabel_unlabeled.c | 97 int ifindex; member 206 static u32 netlbl_unlhsh_hash(int ifindex) in netlbl_unlhsh_hash() argument 208 return ifindex & (netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->size - 1); in netlbl_unlhsh_hash() 222 static struct netlbl_unlhsh_iface *netlbl_unlhsh_search_iface(int ifindex) in netlbl_unlhsh_search_iface() argument 228 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_search_iface() 231 if (iter->valid && iter->ifindex == ifindex) in netlbl_unlhsh_search_iface() 331 static struct netlbl_unlhsh_iface *netlbl_unlhsh_add_iface(int ifindex) in netlbl_unlhsh_add_iface() argument 340 iface->ifindex = ifindex; in netlbl_unlhsh_add_iface() 346 if (ifindex > 0) { in netlbl_unlhsh_add_iface() 347 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_add_iface() [all …]
|
/net/ipv6/ila/ |
D | ila_xlat.c | 14 int ifindex; member 82 struct ila_addr *iaddr, int ifindex) in ila_cmp_wildcards() argument 84 return (ila->xp.ifindex && ila->xp.ifindex != ifindex); in ila_cmp_wildcards() 90 return (ila->xp.ifindex != xp->ifindex); in ila_cmp_params() 105 if (ila->xp.ifindex) in ila_order() 156 xp->ifindex = nla_get_s32(info->attrs[ILA_ATTR_IFINDEX]); in parse_nl_config() 163 int ifindex, in ila_lookup_wildcards() argument 171 if (!ila_cmp_wildcards(ila, iaddr, ifindex)) in ila_lookup_wildcards() 411 nla_put_s32(msg, ILA_ATTR_IFINDEX, ila->xp.ifindex) || in ila_fill_info() 618 ila = ila_lookup_wildcards(iaddr, skb->dev->ifindex, ilan); in ila_xlat_addr()
|
/net/ipv4/netfilter/ |
D | nf_nat_masquerade_ipv4.c | 59 nat->masq_index = out->ifindex; in nf_nat_masquerade_ipv4() 75 static int device_cmp(struct nf_conn *i, void *ifindex) in device_cmp() argument 83 return nat->masq_index == (int)(long)ifindex; in device_cmp() 98 NF_CT_ASSERT(dev->ifindex != 0); in masq_device_event() 101 (void *)(long)dev->ifindex, 0, 0); in masq_device_event()
|
/net/netfilter/ |
D | xt_TEE.c | 64 priv->oif = dev->ifindex; in tee_netdev_event() 67 if (dev->ifindex == priv->oif) in tee_netdev_event() 72 priv->oif = dev->ifindex; in tee_netdev_event() 73 else if (dev->ifindex == priv->oif) in tee_netdev_event()
|
D | nfnetlink_queue.c | 471 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) in nfqnl_build_packet_message() 479 htonl(indev->ifindex)) || in nfqnl_build_packet_message() 483 htonl(br_port_get_rcu(indev)->br->dev->ifindex))) in nfqnl_build_packet_message() 491 htonl(indev->ifindex))) in nfqnl_build_packet_message() 505 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex))) in nfqnl_build_packet_message() 513 htonl(outdev->ifindex)) || in nfqnl_build_packet_message() 517 htonl(br_port_get_rcu(outdev)->br->dev->ifindex))) in nfqnl_build_packet_message() 525 htonl(outdev->ifindex))) in nfqnl_build_packet_message() 866 dev_cmp(struct nf_queue_entry *entry, unsigned long ifindex) in dev_cmp() argument 869 if (entry->state.in->ifindex == ifindex) in dev_cmp() [all …]
|
D | xt_TPROXY.c | 128 in->ifindex); in nf_tproxy_get_sock_v4() 141 in->ifindex); in nf_tproxy_get_sock_v4() 149 in->ifindex); in nf_tproxy_get_sock_v4() 198 in->ifindex); in nf_tproxy_get_sock_v6() 211 in->ifindex); in nf_tproxy_get_sock_v6() 219 in->ifindex); in nf_tproxy_get_sock_v6()
|
/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() 303 struct cflayer *adap_layer, int *ifindex, in caif_connect_client() argument 349 *ifindex = phy->ifindex; in caif_connect_client() 474 phyid = (dev->ifindex + i) & 0x7; in cfcnfg_add_phy_layer() 494 phyinfo->ifindex = dev->ifindex; in cfcnfg_add_phy_layer()
|
/net/hsr/ |
D | hsr_netlink.c | 87 res = nla_put_u32(skb, IFLA_HSR_SLAVE1, port->dev->ifindex); in hsr_fill_info() 95 res = nla_put_u32(skb, IFLA_HSR_SLAVE2, port->dev->ifindex); in hsr_fill_info() 172 res = nla_put_u32(skb, HSR_A_IFINDEX, port->dev->ifindex); in hsr_nl_ringerror() 291 res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex); in hsr_get_node_status() 333 port->dev->ifindex); in hsr_get_node_status() 348 port->dev->ifindex); in hsr_get_node_status() 417 res = nla_put_u32(skb_out, HSR_A_IFINDEX, hsr_dev->ifindex); in hsr_get_node_list()
|
/net/sched/ |
D | cls_fw.c | 45 int ifindex; member 75 if (!tcf_match_indev(skb, f->ifindex)) in fw_classify() 219 f->ifindex = ret; in fw_change_attrs() 271 fnew->ifindex = f->ifindex; in fw_change() 397 if (f->ifindex) { in fw_dump() 399 dev = __dev_get_by_index(net, f->ifindex); in fw_dump()
|
D | act_mirred.c | 91 if (parm->ifindex) { in tcf_mirred_init() 92 dev = __dev_get_by_index(net, parm->ifindex); in tcf_mirred_init() 134 m->tcfm_ifindex = parm->ifindex; in tcf_mirred_init() 192 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred() 228 .ifindex = m->tcfm_ifindex, in tcf_mirred_dump()
|
/net/ipv4/ |
D | devinet.c | 527 struct in_device *inetdev_by_index(struct net *net, int ifindex) in inetdev_by_index() argument 533 dev = dev_get_by_index_rcu(net, ifindex); in inetdev_by_index() 559 .imr_ifindex = ifa->ifa_dev->dev->ifindex, in ip_mc_config() 1545 ifm->ifa_index = ifa->ifa_dev->dev->ifindex; in inet_fill_ifaddr() 1779 static int inet_netconf_fill_devconf(struct sk_buff *skb, int ifindex, in inet_netconf_fill_devconf() argument 1799 if (nla_put_s32(skb, NETCONFA_IFINDEX, ifindex) < 0) in inet_netconf_fill_devconf() 1831 void inet_netconf_notify_devconf(struct net *net, int type, int ifindex, in inet_netconf_notify_devconf() argument 1841 err = inet_netconf_fill_devconf(skb, ifindex, devconf, 0, 0, in inet_netconf_notify_devconf() 1874 int ifindex; in inet_netconf_get_devconf() local 1886 ifindex = nla_get_s32(tb[NETCONFA_IFINDEX]); in inet_netconf_get_devconf() [all …]
|
/net/dcb/ |
D | dcbnl.c | 1110 if (itr->ifindex == netdev->ifindex) { in dcbnl_ieee_fill() 1268 if (itr->ifindex == netdev->ifindex) { in dcbnl_cee_fill() 1759 int ifindex, int prio) in dcb_app_lookup() argument 1766 itr->ifindex == ifindex && in dcb_app_lookup() 1774 static int dcb_app_add(const struct dcb_app *app, int ifindex) in dcb_app_add() argument 1783 entry->ifindex = ifindex; in dcb_app_add() 1802 if ((itr = dcb_app_lookup(app, dev->ifindex, 0))) in dcb_getapp() 1823 event.ifindex = dev->ifindex; in dcb_setapp() 1830 if ((itr = dcb_app_lookup(new, dev->ifindex, 0))) { in dcb_setapp() 1841 err = dcb_app_add(new, dev->ifindex); in dcb_setapp() [all …]
|