Lines Matching refs:ctx
97 static int nbns_rq_create(int opcode, struct nb_ctx *ctx,
180 nbns_resolvename(const char *name, struct nb_ctx *ctx, struct sockaddr **adpp)
190 error = nbns_rq_create(NBNS_OPCODE_QUERY, ctx, &rqp);
201 nn.nn_scope = ctx->nb_scope;
256 ctx->nb_lastns = rqp->nr_sender;
267 nbns_getnodestatus(struct nb_ctx *ctx,
279 error = nbns_rq_create(NBNS_OPCODE_QUERY, ctx, &rqp);
284 nn.nn_scope = ctx->nb_scope;
360 ctx->nb_lastns = rqp->nr_sender;
368 nbns_rq_create(int opcode, struct nb_ctx *ctx, struct nbns_rq **rqpp)
386 rqp->nr_nbd = ctx;
438 struct nb_ctx *ctx = rqp->nr_nbd;
471 if (ctx->nb_timo == 0)
472 ctx->nb_timo = 1; /* by default 1 second */
517 struct nb_ctx *ctx = rqp->nr_nbd;
522 if (ctx->nb_flags & NBCF_BC_ENABLE) {
583 struct nb_ctx *ctx = rqp->nr_nbd;
609 if (ctx->nb_wins1) {
610 error = nbns_rq_send(rqp, ctx->nb_wins1);
618 if (ctx->nb_wins2 && (tries > 0)) {
619 error = nbns_rq_send(rqp, ctx->nb_wins2);
632 if ((ctx->nb_flags & NBCF_BC_ENABLE) &&
633 ((tries > 1) || (ctx->nb_wins1 == 0))) {