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