Lines Matching refs:reqs
125 struct reqs { in send_query() struct
129 } *const reqs = tail_alloc(sizeof(*reqs)); in send_query() local
130 memcpy(&reqs->req1, &c_req, sizeof(c_req)); in send_query()
131 memcpy(&reqs->req2, &c_req, sizeof(c_req)); in send_query()
133 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); 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()
140 (unsigned) sizeof(*reqs), sprintrc(rc)); in send_query()
143 void *const efault2 = tail_memdup(&reqs->req1, sizeof(reqs->req1)); in send_query()
144 rc = sendto(fd, efault2, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); in send_query()
148 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP, in send_query()
149 &((struct reqs *) efault2)->req2, (unsigned) sizeof(*reqs), in send_query()
153 rc = sendto(fd, reqs, sizeof(*reqs) - sizeof(req->nlh), MSG_DONTWAIT, in send_query()
158 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP); in send_query()
159 print_quoted_memory((void *) &reqs->req2.nlh, in send_query()
160 sizeof(reqs->req2) - sizeof(req->nlh)); in send_query()
162 (unsigned) (sizeof(*reqs) - sizeof(req->nlh)), errstr); in send_query()
165 reqs->req2.nlh.nlmsg_len = 4; in send_query()
166 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0); 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()
173 (unsigned) sizeof(*reqs), sprintrc(rc)); in send_query()