Lines Matching refs:ifm
66 struct ifaddrmsg *ifm; in addr_doit() local
75 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy); in addr_doit()
79 ifm = nlmsg_data(nlh); in addr_doit()
87 dev = __dev_get_by_index(net, ifm->ifa_index); in addr_doit()
103 struct ifaddrmsg *ifm; in fill_addr() local
106 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), 0); in fill_addr()
110 ifm = nlmsg_data(nlh); in fill_addr()
111 ifm->ifa_family = AF_PHONET; in fill_addr()
112 ifm->ifa_prefixlen = 0; in fill_addr()
113 ifm->ifa_flags = IFA_F_PERMANENT; in fill_addr()
114 ifm->ifa_scope = RT_SCOPE_LINK; in fill_addr()
115 ifm->ifa_index = dev->ifindex; in fill_addr()