Lines Matching refs:ifm
1844 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet6_rtm_deladdr() local
1861 return inet6_addr_del(ifm->ifa_index, pfx, ifm->ifa_prefixlen); in inet6_rtm_deladdr()
1868 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet6_rtm_newaddr() local
1885 return inet6_addr_add(ifm->ifa_index, pfx, ifm->ifa_prefixlen); in inet6_rtm_newaddr()
1891 struct ifaddrmsg *ifm; in inet6_fill_ifaddr() local
1896 nlh = NLMSG_PUT(skb, pid, seq, event, sizeof(*ifm)); in inet6_fill_ifaddr()
1898 ifm = NLMSG_DATA(nlh); in inet6_fill_ifaddr()
1899 ifm->ifa_family = AF_INET6; in inet6_fill_ifaddr()
1900 ifm->ifa_prefixlen = ifa->prefix_len; in inet6_fill_ifaddr()
1901 ifm->ifa_flags = ifa->flags; in inet6_fill_ifaddr()
1902 ifm->ifa_scope = RT_SCOPE_UNIVERSE; in inet6_fill_ifaddr()
1904 ifm->ifa_scope = RT_SCOPE_HOST; in inet6_fill_ifaddr()
1906 ifm->ifa_scope = RT_SCOPE_LINK; in inet6_fill_ifaddr()
1908 ifm->ifa_scope = RT_SCOPE_SITE; in inet6_fill_ifaddr()
1909 ifm->ifa_index = ifa->idev->dev->ifindex; in inet6_fill_ifaddr()