Lines Matching refs:reqs
125 struct reqs { in send_query() struct
130 TAIL_ALLOC_OBJECT_CONST_PTR(struct reqs, reqs); in send_query()
131 memcpy(&reqs->req1, &c_req, sizeof(c_req)); in send_query()
132 memcpy(&reqs->req2, &c_req, sizeof(c_req)); in send_query()
134 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); 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()
142 (unsigned) sizeof(*reqs), sprintrc(rc)); in send_query()
145 void *const efault2 = tail_memdup(&reqs->req1, sizeof(reqs->req1)); in send_query()
146 rc = sendto(fd, efault2, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query()
150 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
151 &((struct reqs *) efault2)->req2, (unsigned) sizeof(*reqs), in send_query()
155 rc = sendto(fd, reqs, sizeof(*reqs) - sizeof(req->nlh), MSG_DONTWAIT, in send_query()
160 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP); in send_query()
161 print_quoted_hex(&reqs->req2.nlh, in send_query()
162 sizeof(reqs->req2) - sizeof(req->nlh)); in send_query()
164 (unsigned) (sizeof(*reqs) - sizeof(req->nlh)), errstr); in send_query()
167 reqs->req2.nlh.nlmsg_len = 4; in send_query()
168 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); 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()
175 (unsigned) sizeof(*reqs), sprintrc(rc)); in send_query()