Lines Matching defs:nlh
110 struct nlmsghdr nlh;
113 .nlh = {
135 req.nlh.nlmsg_len += RTA_LENGTH(sizeof(proto));
261 static void parse_nlmsg(struct nlmsghdr *nlh, __u32 proto)
263 struct inet_diag_msg *r = NLMSG_DATA(nlh);
267 nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)),
305 struct nlmsghdr *nlh = (struct nlmsghdr *)rcv_buff;
323 while (NLMSG_OK(nlh, len)) {
324 if (nlh->nlmsg_type == NLMSG_DONE) {
327 } else if (nlh->nlmsg_type == NLMSG_ERROR) {
330 err = (struct nlmsgerr *)NLMSG_DATA(nlh);
335 parse_nlmsg(nlh, proto);
336 nlh = NLMSG_NEXT(nlh, len);