Lines Matching refs:ifm
436 struct ifaddrmsg *ifm; in inet_rtm_deladdr() local
442 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in inet_rtm_deladdr()
446 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
447 in_dev = inetdev_by_index(net, ifm->ifa_index); in inet_rtm_deladdr()
465 (ifm->ifa_prefixlen != ifa->ifa_prefixlen || in inet_rtm_deladdr()
482 struct ifaddrmsg *ifm; in rtm_to_ifaddr() local
487 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in rtm_to_ifaddr()
491 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
493 if (ifm->ifa_prefixlen > 32 || tb[IFA_LOCAL] == NULL) in rtm_to_ifaddr()
496 dev = __dev_get_by_index(net, ifm->ifa_index); in rtm_to_ifaddr()
520 ifa->ifa_prefixlen = ifm->ifa_prefixlen; in rtm_to_ifaddr()
521 ifa->ifa_mask = inet_make_mask(ifm->ifa_prefixlen); in rtm_to_ifaddr()
522 ifa->ifa_flags = ifm->ifa_flags; in rtm_to_ifaddr()
523 ifa->ifa_scope = ifm->ifa_scope; in rtm_to_ifaddr()
1126 struct ifaddrmsg *ifm; in inet_fill_ifaddr() local
1129 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), flags); in inet_fill_ifaddr()
1133 ifm = nlmsg_data(nlh); in inet_fill_ifaddr()
1134 ifm->ifa_family = AF_INET; in inet_fill_ifaddr()
1135 ifm->ifa_prefixlen = ifa->ifa_prefixlen; in inet_fill_ifaddr()
1136 ifm->ifa_flags = ifa->ifa_flags|IFA_F_PERMANENT; in inet_fill_ifaddr()
1137 ifm->ifa_scope = ifa->ifa_scope; in inet_fill_ifaddr()
1138 ifm->ifa_index = ifa->ifa_dev->dev->ifindex; in inet_fill_ifaddr()