Lines Matching refs:ifindex
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()
851 dev->ifindex, &idev->cnf); in dev_forward_change()
933 dev->ifindex, in addrconf_linkdown_change()
1487 int ifindex; member
1613 ret = (!dst->ifindex || in ipv6_get_saddr_eval()
1614 dst->ifindex == score->ifa->idev->dev->ifindex); in ipv6_get_saddr_eval()
1620 score->ifa->idev->dev->ifindex) == dst->label; in ipv6_get_saddr_eval()
1775 dst.ifindex = dst_dev ? dst_dev->ifindex : 0; in ipv6_dev_get_saddr()
1777 dst.label = ipv6_addr_label(net, daddr, dst_type, dst.ifindex); in ipv6_dev_get_saddr()
1823 master_idx = master->ifindex; in ipv6_dev_get_saddr()
2421 table = (unsigned) dev->ifindex + (-sysctl); in addrconf_rt_table()
2439 .fc_ifindex = dev->ifindex, in addrconf_prefix_route()
2488 if (rt->fib6_nh->fib_nh_dev->ifindex != dev->ifindex) in addrconf_get_prefix_route()
2513 .fc_ifindex = dev->ifindex, in addrconf_add_mroute()
2933 const struct in6_addr *addr, int ifindex) in ipv6_mc_config() argument
2941 ret = ipv6_sock_mc_join(sk, ifindex, addr); in ipv6_mc_config()
2943 ret = ipv6_sock_mc_drop(sk, ifindex, addr); in ipv6_mc_config()
2952 static int inet6_addr_add(struct net *net, int ifindex, in inet6_addr_add() argument
2975 dev = __dev_get_by_index(net, ifindex); in inet6_addr_add()
2985 true, cfg->pfx, ifindex); in inet6_addr_add()
3038 cfg->pfx, ifindex); in inet6_addr_add()
3044 static int inet6_addr_del(struct net *net, int ifindex, u32 ifa_flags, in inet6_addr_del() argument
3054 dev = __dev_get_by_index(net, ifindex); in inet6_addr_del()
3077 false, pfx, dev->ifindex); in inet6_addr_del()
4415 ifp->idev->dev->ifindex, in if6_seq_show()
4970 u8 scope, int ifindex) in put_ifaddrmsg() argument
4979 ifm->ifa_index = ifindex; in put_ifaddrmsg()
5029 int ifindex; member
5045 ifa->idev->dev->ifindex); in inet6_fill_ifaddr()
5106 int ifindex = ifmca->idev->dev->ifindex; in inet6_fill_ifmcaddr() local
5122 put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex); in inet6_fill_ifmcaddr()
5138 int ifindex = dev ? dev->ifindex : 1; in inet6_fill_ifacaddr() local
5156 put_ifaddrmsg(nlh, 128, IFA_F_PERMANENT, scope, ifindex); in inet6_fill_ifacaddr()
5251 fillargs->ifindex = ifm->ifa_index; in inet6_valid_dump_ifaddr_req()
5252 if (fillargs->ifindex) { in inet6_valid_dump_ifaddr_req()
5317 if (fillargs.ifindex) { in inet6_dump_addr()
5318 dev = __dev_get_by_index(tgt_net, fillargs.ifindex); in inet6_dump_addr()
5928 hdr->ifi_index = dev->ifindex; in inet6_fill_ifinfo()
5936 (dev->ifindex != dev_get_iflink(dev) && in inet6_fill_ifinfo()
6078 pmsg->prefix_ifindex = idev->dev->ifindex; in inet6_fill_prefix()
6342 idev->dev->ifindex, in addrconf_sysctl_proxy_ndp()
7011 int i, ifindex; in __addrconf_sysctl_register() local
7038 ifindex = NETCONFA_IFINDEX_ALL; in __addrconf_sysctl_register()
7040 ifindex = NETCONFA_IFINDEX_DEFAULT; in __addrconf_sysctl_register()
7042 ifindex = idev->dev->ifindex; in __addrconf_sysctl_register()
7044 ifindex, p); in __addrconf_sysctl_register()
7054 struct ipv6_devconf *p, int ifindex) in __addrconf_sysctl_unregister() argument
7066 inet6_netconf_notify_devconf(net, RTM_DELNETCONF, 0, ifindex, NULL); in __addrconf_sysctl_unregister()
7091 idev->dev->ifindex); in addrconf_sysctl_unregister()