Lines Matching defs:ret
73 int ret;
87 ret = lwres_nooprequest_render(ctx, &nooprequest, &pkt, &b);
88 CHECK(ret, "lwres_nooprequest_render");
96 ret = lwres_lwpacket_parseheader(&b, &pkt2);
97 CHECK(ret, "lwres_lwpacket_parseheader");
102 ret = lwres_nooprequest_parse(ctx, &b, &pkt2, &nooprequest2);
103 CHECK(ret, "lwres_nooprequest_parse");
123 ret = lwres_noopresponse_render(ctx, &noopresponse, &pkt, &b);
124 CHECK(ret, "lwres_noopresponse_render");
132 ret = lwres_lwpacket_parseheader(&b, &pkt2);
133 CHECK(ret, "lwres_lwpacket_parseheader");
138 ret = lwres_noopresponse_parse(ctx, &b, &pkt2, &noopresponse2);
139 CHECK(ret, "lwres_noopresponse_parse");
156 int ret;
161 ret = lwres_getaddrsbyname(ctx, target,
164 printf("gabn %s ret == %d\n", target, ret);
165 if (ret != 0) {
199 int ret;
206 ret = inet_pton(AF_INET, target, addrbuf);
207 assert(ret == 1);
210 ret = inet_pton(AF_INET6, target, addrbuf);
211 assert(ret == 1);
215 ret = lwres_getnamebyaddr(ctx, af, len, addrbuf, &res);
216 printf("gnba %s ret == %d\n", target, ret);
217 assert(ret == 0);
246 int ret;
263 ret = lwres_context_create(&ctx, mem, mem_alloc, mem_free, 0);
265 ret = lwres_context_create(&ctx, NULL, NULL, NULL, 0);
268 CHECK(ret, "lwres_context_create");
270 ret = lwres_conf_parse(ctx, "/etc/resolv.conf");
271 CHECK(ret, "lwres_conf_parse");