Lines Matching defs:error

186 	int error, rdrcount, len;
190 error = nbns_rq_create(NBNS_OPCODE_QUERY, ctx, &rqp);
191 if (error)
192 return (error);
209 error = nbns_rq_prepare(rqp);
210 if (error) {
212 return (error);
216 error = nbns_rq(rqp);
217 if (error)
225 error = NBERROR(NBERR_TOOMANYREDIRECTS);
228 error = nbns_rq_getrr(rqp, &rr);
229 if (error)
231 error = nbns_rq_getrr(rqp, &rr);
232 if (error)
238 error = NBERROR(NBERR_HOSTNOTFOUND);
241 error = nbns_rq_getrr(rqp, &rr);
242 if (error)
260 return (error);
277 int error, i, foundserver = 0, foundgroup = 0;
279 error = nbns_rq_create(NBNS_OPCODE_QUERY, ctx, &rqp);
280 if (error)
281 return (error);
294 error = nbns_rq_prepare(rqp);
295 if (error) {
297 return (error);
304 error = nbns_rq(rqp);
305 if (error)
308 error = NBERROR(NBERR_HOSTNOTFOUND);
311 error = nbns_rq_getrr(rqp, &rr);
312 if (error)
364 return (error);
372 int error;
380 error = mb_init_sz(&rqp->nr_rq, NBDG_MAXSIZE);
381 if (error) {
383 return (error);
415 int error, len;
423 error = md_get_mem(mbp, NULL, len, MB_MSYSTEM);
424 if (error)
425 return (error);
431 error = md_get_mem(mbp, NULL, rrp->rr_rdlength, MB_MSYSTEM);
432 return (error);
441 int error;
443 error = mb_init_sz(&rqp->nr_rp, NBDG_MAXSIZE);
444 if (error)
445 return (error);
458 error = mb_put_uint16be(mbp, rqp->nr_arcount);
464 error = mb_put_uint16be(mbp, rqp->nr_qdclass);
466 if (error)
467 return (error);
468 error = m_lineup(mbp->mb_top, &mbp->mb_top);
469 if (error)
470 return (error);
586 int error, tries, maxretry;
588 error = nbns_rq_opensocket(rqp);
589 if (error)
590 return (error);
600 error = nbns_rq_send(rqp, rqp->nr_dest.s_addr);
601 if (error) {
603 "nbns error %d sending to %s"),
604 0, error, inet_ntoa(rqp->nr_dest));
610 error = nbns_rq_send(rqp, ctx->nb_wins1);
611 if (error) {
613 "nbns error %d sending to wins1"),
614 0, error);
619 error = nbns_rq_send(rqp, ctx->nb_wins2);
620 if (error) {
622 "nbns error %d sending to wins2"),
623 0, error);
634 error = nbns_rq_send(rqp, INADDR_BROADCAST);
635 if (error) {
637 "nbns error %d sending broadcast"),
638 0, error);
646 error = nbns_rq_recv(rqp);
647 if (error == ETIMEDOUT)
649 if (error) {
651 "nbns recv error %d"),
652 0, error);
653 return (error);