Lines Matching refs:ifm
3214 struct ifaddrmsg *ifm; in inet6_rtm_deladdr() local
3219 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); in inet6_rtm_deladdr()
3223 ifm = nlmsg_data(nlh); in inet6_rtm_deladdr()
3228 return inet6_addr_del(net, ifm->ifa_index, pfx, ifm->ifa_prefixlen); in inet6_rtm_deladdr()
3280 struct ifaddrmsg *ifm; in inet6_rtm_newaddr() local
3289 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); in inet6_rtm_newaddr()
3293 ifm = nlmsg_data(nlh); in inet6_rtm_newaddr()
3309 dev = __dev_get_by_index(net, ifm->ifa_index); in inet6_rtm_newaddr()
3314 ifa_flags = ifm->ifa_flags & (IFA_F_NODAD | IFA_F_HOMEADDRESS); in inet6_rtm_newaddr()
3322 return inet6_addr_add(net, ifm->ifa_index, pfx, in inet6_rtm_newaddr()
3323 ifm->ifa_prefixlen, ifa_flags, in inet6_rtm_newaddr()
3341 struct ifaddrmsg *ifm; in put_ifaddrmsg() local
3343 ifm = nlmsg_data(nlh); in put_ifaddrmsg()
3344 ifm->ifa_family = AF_INET6; in put_ifaddrmsg()
3345 ifm->ifa_prefixlen = prefixlen; in put_ifaddrmsg()
3346 ifm->ifa_flags = flags; in put_ifaddrmsg()
3347 ifm->ifa_scope = scope; in put_ifaddrmsg()
3348 ifm->ifa_index = ifindex; in put_ifaddrmsg()
3586 struct ifaddrmsg *ifm; in inet6_rtm_getaddr() local
3594 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy); in inet6_rtm_getaddr()
3604 ifm = nlmsg_data(nlh); in inet6_rtm_getaddr()
3605 if (ifm->ifa_index) in inet6_rtm_getaddr()
3606 dev = __dev_get_by_index(net, ifm->ifa_index); in inet6_rtm_getaddr()