Lines Matching defs:ret

60 	lwres_result_t ret;
73 ret = lwres_nooprequest_render(ctx, &nooprequest, &pkt, &b);
74 CHECK(ret, "lwres_nooprequest_render");
80 ret = lwres_lwpacket_parseheader(&b, &pkt2);
81 CHECK(ret, "lwres_lwpacket_parseheader");
84 ret = lwres_nooprequest_parse(ctx, &b, &pkt2, &nooprequest2);
85 CHECK(ret, "lwres_nooprequest_parse");
104 ret = lwres_noopresponse_render(ctx, &noopresponse, &pkt, &b);
105 CHECK(ret, "lwres_noopresponse_render");
111 ret = lwres_lwpacket_parseheader(&b, &pkt2);
112 CHECK(ret, "lwres_lwpacket_parseheader");
115 ret = lwres_noopresponse_parse(ctx, &b, &pkt2, &noopresponse2);
116 CHECK(ret, "lwres_noopresponse_parse");
138 lwres_result_t ret;
141 ret = lwres_getaddrsbyname(ctx, target,
144 if (ret != expected) {
145 printf("I:gabn(%s) failed: %d\n", target, ret);
151 if (ret == LWRES_R_SUCCESS) {
154 ret = inet_pton(AF_INET, address, addrbuf);
155 assert(ret == 1);
158 ret = inet_pton(AF_INET6, address, addrbuf);
159 assert(ret == 1);
196 lwres_result_t ret;
202 ret = inet_pton(AF_INET, target, addrbuf);
203 assert(ret == 1);
206 ret = inet_pton(AF_INET6, target, addrbuf);
207 assert(ret == 1);
211 ret = lwres_getnamebyaddr(ctx, af, len, addrbuf, &res);
212 if (ret != expected) {
213 printf("I:gnba(%s) failed: %d\n", target, ret);
219 if (ret == LWRES_R_SUCCESS && strcasecmp(res->realname, name) != 0) {
233 int ret;
251 ret = inet_pton(AF_INET, address, addrbuf);
252 assert(ret == 1);
269 int len, ret;
291 ret = inet_pton(af, address, addrbuf);
292 assert(ret == 1);
319 int len, ret;
348 ret = inet_pton(af, address, addrbuf);
349 assert(ret == 1);
377 int len, ret;
383 ret = inet_pton(af, address, addrbuf);
384 assert(ret == 1);
416 int len, ret;
423 ret = inet_pton(af, address, addrbuf);
424 assert(ret == 1);
459 int ret;
465 ret = getaddrinfo(name, NULL, NULL, &ai);
472 ret = getaddrinfo(name, NULL, &hint, &ai);
474 if (ret != 0) {
475 if (address == NULL && ret == EAI_NODATA)
477 else if (ret != EAI_NODATA) {
479 name, v4ok, v6ok, gai_strerror(ret));
493 ret = inet_pton(af, address, addrbuf);
494 assert(ret == 1);
546 int ret;
555 ret = inet_pton(AF_INET, address, &sin.sin_addr.s_addr);
556 assert(ret == 1);
565 ret = inet_pton(AF_INET6, address, sin6.sin6_addr.s6_addr);
566 assert(ret == 1);
576 ret = getnameinfo(sa, salen, host, sizeof(host), NULL, 0, NI_NAMEREQD);
578 if (ret != 0) {
579 if (name == NULL && ret == ENI_NOHOSTNAME)
581 else if (ret != ENI_NOHOSTNAME) {
583 address, ret);
612 int ret;
614 ret = getrrsetbyname(name, rdclass, rdtype, 0, &rrinfo);
615 if (ret != 0 && should_pass == 1) {
619 } else if (ret == 0 && should_pass == 0) {
625 } else if (ret != 0)
643 lwres_result_t ret;
648 ret = lwres_context_create(&ctx, NULL, NULL, NULL, 0);
649 CHECK(ret, "lwres_context_create");
651 ret = lwres_conf_parse(ctx, "resolv.conf");
652 CHECK(ret, "lwres_conf_parse");