Lines Matching refs:nlh
64 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh) in addr_doit() argument
81 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy); in addr_doit()
85 ifm = nlmsg_data(nlh); in addr_doit()
97 if (nlh->nlmsg_type == RTM_NEWADDR) in addr_doit()
102 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); in addr_doit()
110 struct nlmsghdr *nlh; in fill_addr() local
112 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr()
113 if (nlh == NULL) in fill_addr()
116 ifm = nlmsg_data(nlh); in fill_addr()
124 nlmsg_end(skb, nlh); in fill_addr()
128 nlmsg_cancel(skb, nlh); in fill_addr()
156 cb->nlh->nlmsg_seq, RTM_NEWADDR) < 0) in getaddr_dumpit()
175 struct nlmsghdr *nlh; in fill_route() local
177 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); in fill_route()
178 if (nlh == NULL) in fill_route()
181 rtm = nlmsg_data(nlh); in fill_route()
194 nlmsg_end(skb, nlh); in fill_route()
198 nlmsg_cancel(skb, nlh); in fill_route()
229 static int route_doit(struct sk_buff *skb, struct nlmsghdr *nlh) in route_doit() argument
246 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_phonet_policy); in route_doit()
250 rtm = nlmsg_data(nlh); in route_doit()
263 if (nlh->nlmsg_type == RTM_NEWROUTE) in route_doit()
268 rtm_phonet_notify(nlh->nlmsg_type, dev, dst); in route_doit()
285 cb->nlh->nlmsg_seq, RTM_NEWROUTE) < 0) in route_dumpit()