Lines Matching refs:NLMSG_HDRLEN
208 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(*err) + 4); in test_nlmsgerr()
213 nlh->nlmsg_len = NLMSG_HDRLEN + 4; in test_nlmsgerr()
222 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr()
225 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsgerr()
230 rc = sendto(fd, nlh, NLMSG_HDRLEN + 2, MSG_DONTWAIT, NULL, 0); in test_nlmsgerr()
234 fd, NLMSG_HDRLEN + 2, NLMSG_HDRLEN + 2, sprintrc(rc)); in test_nlmsgerr()
238 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(err->error); in test_nlmsgerr()
265 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsgerr()
270 nlh->nlmsg_len = NLMSG_HDRLEN + sizeof(*err); in test_nlmsgerr()
277 err->msg.nlmsg_len = NLMSG_HDRLEN; 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()
324 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(num)); in test_nlmsg_done()
330 .nlmsg_len = NLMSG_HDRLEN + sizeof(num), in test_nlmsg_done()
338 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN, in test_nlmsg_done()
342 nlh->nlmsg_len = NLMSG_HDRLEN + 2; in test_nlmsg_done()
348 rc = sendto(fd, nlh, NLMSG_HDRLEN + 2, MSG_DONTWAIT, NULL, 0); in test_nlmsg_done()
351 fd, NLMSG_HDRLEN + 2, NLMSG_HDRLEN + 2, sprintrc(rc)); in test_nlmsg_done()
356 .nlmsg_len = NLMSG_HDRLEN + sizeof(num), in test_nlmsg_done()