Lines Matching refs:nlmsg_len
53 .nlmsg_len = sizeof(struct req), in send_query()
95 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
99 req->nlh.nlmsg_len = sizeof(req->nlh); in send_query()
103 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
107 req->nlh.nlmsg_len = sizeof(*req) + 8; in send_query()
112 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
116 req->nlh.nlmsg_len = 8; in send_query()
120 fd, req->nlh.nlmsg_len, NLM_F_DUMP, in send_query()
138 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
139 reqs->req2.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
148 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
158 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP); in send_query()
165 reqs->req2.nlh.nlmsg_len = 4; in send_query()
171 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
172 reqs->req2.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
181 msgs[i].nlmsg_len = sizeof(*msgs); in send_query()
196 msgs[i].nlmsg_len, NLM_F_DUMP, msgs[i].nlmsg_seq); in send_query()
211 nlh->nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr()
217 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
220 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr()
221 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
223 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsgerr()
236 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(err->error); in test_nlmsgerr()
244 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
247 " = %s\n", fd, nlh->nlmsg_len, nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
251 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
254 " = %s\n", fd, nlh->nlmsg_len, nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
257 nlh->nlmsg_len += sizeof(err->msg.nlmsg_len); in test_nlmsgerr()
259 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
263 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr()
264 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
268 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err); in test_nlmsgerr()
275 err->msg.nlmsg_len = NLMSG_HDRLEN; in test_nlmsgerr()
281 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
286 fd, nlh->nlmsg_len, err->msg.nlmsg_len, NLM_F_DUMP, in test_nlmsgerr()
288 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
292 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err) + 4; in test_nlmsgerr()
299 err->msg.nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr()
306 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
312 fd, nlh->nlmsg_len, err->msg.nlmsg_len, NLM_F_DUMP, in test_nlmsgerr()
314 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsgerr()
328 .nlmsg_len = NLMSG_HDRLEN + sizeof(num), in test_nlmsg_done()
333 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_done()
336 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsg_done()
337 nlh->nlmsg_len, sprintrc(rc)); in test_nlmsg_done()
340 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsg_done()
354 .nlmsg_len = NLMSG_HDRLEN + sizeof(num), in test_nlmsg_done()
360 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0); in test_nlmsg_done()
363 fd, nlh->nlmsg_len, num, nlh->nlmsg_len, sprintrc(rc)); in test_nlmsg_done()
372 .nlmsg_len = sizeof(nlh), in test_ack_flags()
382 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_ack_flags()
391 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_ack_flags()
400 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc)); in test_ack_flags()