Lines Matching refs:ifm
439 struct ifaddrmsg *ifm;
445 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy);
449 ifm = nlmsg_data(nlh);
450 in_dev = inetdev_by_index(net, ifm->ifa_index);
468 (ifm->ifa_prefixlen != ifa->ifa_prefixlen ||
485 struct ifaddrmsg *ifm;
490 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy);
494 ifm = nlmsg_data(nlh);
496 if (ifm->ifa_prefixlen > 32 || tb[IFA_LOCAL] == NULL)
499 dev = __dev_get_by_index(net, ifm->ifa_index);
523 ifa->ifa_prefixlen = ifm->ifa_prefixlen;
524 ifa->ifa_mask = inet_make_mask(ifm->ifa_prefixlen);
525 ifa->ifa_flags = ifm->ifa_flags;
526 ifa->ifa_scope = ifm->ifa_scope;
1143 struct ifaddrmsg *ifm;
1146 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), flags);
1150 ifm = nlmsg_data(nlh);
1151 ifm->ifa_family = AF_INET;
1152 ifm->ifa_prefixlen = ifa->ifa_prefixlen;
1153 ifm->ifa_flags = ifa->ifa_flags|IFA_F_PERMANENT;
1154 ifm->ifa_scope = ifa->ifa_scope;
1155 ifm->ifa_index = ifa->ifa_dev->dev->ifindex;