Lines Matching refs:nlmsg_len

54 			.nlmsg_len = sizeof(struct req),  in send_query()
96 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
100 req->nlh.nlmsg_len = sizeof(req->nlh); in send_query()
104 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
108 req->nlh.nlmsg_len = sizeof(*req) + 8; in send_query()
113 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
117 req->nlh.nlmsg_len = 8; in send_query()
121 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
140 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
141 reqs->req2.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
150 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
160 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP); in send_query()
167 reqs->req2.nlh.nlmsg_len = 4; in send_query()
173 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
174 reqs->req2.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
183 msgs[i].nlmsg_len = sizeof(*msgs); in send_query()
198 msgs[i].nlmsg_len, NLM_F_DUMP, msgs[i].nlmsg_seq); in send_query()
213 nlh->nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr()
219 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
222 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr()
223 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
225 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsgerr()
238 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(err->error); in test_nlmsgerr()
246 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
249 " = %s\n", fd, nlh->nlmsg_len, nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
253 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
256 " = %s\n", fd, nlh->nlmsg_len, nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
259 nlh->nlmsg_len += sizeof(err->msg.nlmsg_len); in test_nlmsgerr()
261 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
265 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr()
266 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
270 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err); in test_nlmsgerr()
277 err->msg.nlmsg_len = NLMSG_HDRLEN; in test_nlmsgerr()
283 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
288 fd, nlh->nlmsg_len, err->msg.nlmsg_len, NLM_F_DUMP, in test_nlmsgerr()
290 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
294 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err) + 4; in test_nlmsgerr()
301 err->msg.nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr()
308 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
314 fd, nlh->nlmsg_len, err->msg.nlmsg_len, NLM_F_DUMP, in test_nlmsgerr()
316 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
330 .nlmsg_len = NLMSG_HDRLEN + sizeof(num), in test_nlmsg_done()
335 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_done()
338 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsg_done()
339 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsg_done()
342 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsg_done()
356 .nlmsg_len = NLMSG_HDRLEN + sizeof(num), in test_nlmsg_done()
362 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_done()
365 fd, nlh->nlmsg_len, num, nlh->nlmsg_len, sprintrc(rc)); in test_nlmsg_done()
374 .nlmsg_len = sizeof(nlh), in test_ack_flags()
384 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_ack_flags()
393 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_ack_flags()
402 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_ack_flags()