Lines Matching refs:ifm
364 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet_rtm_deladdr() local
369 if ((in_dev = inetdev_by_index(ifm->ifa_index)) == NULL) in inet_rtm_deladdr()
377 (ifm->ifa_prefixlen != ifa->ifa_prefixlen || in inet_rtm_deladdr()
393 struct ifaddrmsg *ifm = NLMSG_DATA(nlh); in inet_rtm_newaddr() local
398 if (ifm->ifa_prefixlen > 32 || rta[IFA_LOCAL-1] == NULL) in inet_rtm_newaddr()
401 if ((dev = __dev_get_by_index(ifm->ifa_index)) == NULL) in inet_rtm_newaddr()
417 ifa->ifa_prefixlen = ifm->ifa_prefixlen; in inet_rtm_newaddr()
418 ifa->ifa_mask = inet_make_mask(ifm->ifa_prefixlen); in inet_rtm_newaddr()
423 ifa->ifa_flags = ifm->ifa_flags; in inet_rtm_newaddr()
424 ifa->ifa_scope = ifm->ifa_scope; in inet_rtm_newaddr()
976 struct ifaddrmsg *ifm; in inet_fill_ifaddr() local
980 nlh = NLMSG_PUT(skb, pid, seq, event, sizeof(*ifm)); in inet_fill_ifaddr()
982 ifm = NLMSG_DATA(nlh); in inet_fill_ifaddr()
983 ifm->ifa_family = AF_INET; in inet_fill_ifaddr()
984 ifm->ifa_prefixlen = ifa->ifa_prefixlen; in inet_fill_ifaddr()
985 ifm->ifa_flags = ifa->ifa_flags|IFA_F_PERMANENT; in inet_fill_ifaddr()
986 ifm->ifa_scope = ifa->ifa_scope; in inet_fill_ifaddr()
987 ifm->ifa_index = ifa->ifa_dev->dev->ifindex; in inet_fill_ifaddr()