Lines Matching refs:rc
60 DOHcode rc; member
79 DOHcode rc; member
164 DOHcode rc = doh_req_encode(req[i].name, req[i].type, variable
166 if(rc != req[i].rc) {
168 req[i].rc, rc);
169 abort_if(rc != req[i].rc, "return code");
188 DOHcode rc; variable
193 rc = doh_resp_decode((const unsigned char *)resp[i].packet, resp[i].size,
195 if(rc != resp[i].rc) {
197 resp[i].rc, rc);
198 abort_if(rc != resp[i].rc, "return code");
246 DOHcode rc; variable
248 rc = doh_resp_decode((const unsigned char *)full49, i, DNS_TYPE_A, &d);
249 if(!rc) {
251 fprintf(stderr, "%zu: %d\n", i, rc);
252 abort_if(!rc, "error rc");
259 DOHcode rc; variable
261 rc = doh_resp_decode((const unsigned char *)&full49[i], sizeof(full49)-i-1,
263 if(!rc) {
265 fprintf(stderr, "2 %zu: %d\n", i, rc);
266 abort_if(!rc, "error rc");
271 DOHcode rc; variable
275 rc = doh_resp_decode((const unsigned char *)full49, sizeof(full49)-1,
282 if(rc || strcmp((char *)buffer, "127.0.0.1")) {
283 fprintf(stderr, "bad address decoded: %s, rc == %d\n", buffer, rc);
284 abort_if(rc || strcmp((char *)buffer, "127.0.0.1"), "bad address");