Lines Matching refs:nlh
51 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in addr_doit() argument
69 err = nlmsg_parse_deprecated(nlh, sizeof(*ifm), tb, IFA_MAX, in addr_doit()
74 ifm = nlmsg_data(nlh); in addr_doit()
86 if (nlh->nlmsg_type == RTM_NEWADDR) in addr_doit()
91 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); in addr_doit()
99 struct nlmsghdr *nlh; in fill_addr() local
101 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr()
102 if (nlh == NULL) in fill_addr()
105 ifm = nlmsg_data(nlh); in fill_addr()
113 nlmsg_end(skb, nlh); in fill_addr()
117 nlmsg_cancel(skb, nlh); in fill_addr()
145 cb->nlh->nlmsg_seq, RTM_NEWADDR) < 0) in getaddr_dumpit()
164 struct nlmsghdr *nlh; in fill_route() local
166 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); in fill_route()
167 if (nlh == NULL) in fill_route()
170 rtm = nlmsg_data(nlh); in fill_route()
183 nlmsg_end(skb, nlh); in fill_route()
187 nlmsg_cancel(skb, nlh); in fill_route()
218 static int route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in route_doit() argument
236 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX, in route_doit()
241 rtm = nlmsg_data(nlh); in route_doit()
254 if (nlh->nlmsg_type == RTM_NEWROUTE) in route_doit()
259 rtm_phonet_notify(nlh->nlmsg_type, dev, dst); in route_doit()
276 cb->nlh->nlmsg_seq, RTM_NEWROUTE) < 0) in route_dumpit()