Lines Matching refs:ifm

652 	struct ifaddrmsg *ifm;  in inet_rtm_deladdr()  local
658 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in inet_rtm_deladdr()
663 ifm = nlmsg_data(nlh); in inet_rtm_deladdr()
664 in_dev = inetdev_by_index(net, ifm->ifa_index); in inet_rtm_deladdr()
680 (ifm->ifa_prefixlen != ifa->ifa_prefixlen || in inet_rtm_deladdr()
829 struct ifaddrmsg *ifm; in rtm_to_ifaddr() local
834 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in rtm_to_ifaddr()
839 ifm = nlmsg_data(nlh); in rtm_to_ifaddr()
841 if (ifm->ifa_prefixlen > 32 || !tb[IFA_LOCAL]) in rtm_to_ifaddr()
844 dev = __dev_get_by_index(net, ifm->ifa_index); in rtm_to_ifaddr()
870 ifa->ifa_prefixlen = ifm->ifa_prefixlen; in rtm_to_ifaddr()
871 ifa->ifa_mask = inet_make_mask(ifm->ifa_prefixlen); in rtm_to_ifaddr()
873 ifm->ifa_flags; in rtm_to_ifaddr()
874 ifa->ifa_scope = ifm->ifa_scope; in rtm_to_ifaddr()
1656 struct ifaddrmsg *ifm; in inet_fill_ifaddr() local
1660 nlh = nlmsg_put(skb, args->portid, args->seq, args->event, sizeof(*ifm), in inet_fill_ifaddr()
1665 ifm = nlmsg_data(nlh); in inet_fill_ifaddr()
1666 ifm->ifa_family = AF_INET; in inet_fill_ifaddr()
1667 ifm->ifa_prefixlen = ifa->ifa_prefixlen; in inet_fill_ifaddr()
1668 ifm->ifa_flags = ifa->ifa_flags; in inet_fill_ifaddr()
1669 ifm->ifa_scope = ifa->ifa_scope; in inet_fill_ifaddr()
1670 ifm->ifa_index = ifa->ifa_dev->dev->ifindex; in inet_fill_ifaddr()
1676 if (!(ifm->ifa_flags & IFA_F_PERMANENT)) { in inet_fill_ifaddr()
1729 struct ifaddrmsg *ifm; in inet_valid_dump_ifaddr_req() local
1732 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ifm))) { in inet_valid_dump_ifaddr_req()
1737 ifm = nlmsg_data(nlh); in inet_valid_dump_ifaddr_req()
1738 if (ifm->ifa_prefixlen || ifm->ifa_flags || ifm->ifa_scope) { in inet_valid_dump_ifaddr_req()
1743 fillargs->ifindex = ifm->ifa_index; in inet_valid_dump_ifaddr_req()
1749 err = nlmsg_parse_deprecated_strict(nlh, sizeof(*ifm), tb, IFA_MAX, in inet_valid_dump_ifaddr_req()