Lines Matching defs:ctx

90 op_vacm_context(struct snmp_context *ctx __unused, struct snmp_value *val,
138 op_vacm_security_to_group(struct snmp_context *ctx, struct snmp_value *val,
173 ctx->scratch->ptr1 = user->group->groupname;
174 ctx->scratch->int1 = strlen(user->group->groupname);
198 ctx->scratch->int1 = user->status;
227 return (vacm_user_set_group(user, ctx->scratch->ptr1,
228 ctx->scratch->int1));
231 if (ctx->scratch->int1 == RowStatus_destroy)
233 user->status = ctx->scratch->int1;
262 op_vacm_access(struct snmp_context *ctx, struct snmp_value *val, uint32_t sub,
291 ctx->scratch->int1 = acl->ctx_match;
301 ctx->scratch->ptr1 = acl->read_view;
304 acl->read_view = ctx->scratch->ptr1;
310 ctx->scratch->ptr1 = acl->write_view;
314 acl->write_view = ctx->scratch->ptr1;
320 ctx->scratch->ptr1 = acl->notify_view;
324 acl->notify_view = ctx->scratch->ptr1;
349 ctx->scratch->int1 = acl->status;
371 acl->ctx_match = ctx->scratch->int1;
374 acl->read_view = ctx->scratch->ptr1;
377 acl->write_view = ctx->scratch->ptr1;
380 acl->notify_view = ctx->scratch->ptr1;
383 if (ctx->scratch->int1 == RowStatus_destroy)
426 op_vacm_view_lock(struct snmp_context *ctx __unused, struct snmp_value *val,
457 op_vacm_view(struct snmp_context *ctx, struct snmp_value *val, uint32_t sub,
493 ctx->scratch->ptr1 = malloc(sizeof(view->mask));
494 if (ctx->scratch->ptr1 == NULL)
496 memset(ctx->scratch->ptr1, 0, sizeof(view->mask));
497 memcpy(ctx->scratch->ptr1, view->mask,
505 ctx->scratch->int1 = view->exclude;
533 ctx->scratch->int1 = view->status;
542 free(ctx->scratch->ptr1);
569 memcpy(view->mask, ctx->scratch->ptr1,
571 free(ctx->scratch->ptr1);
574 view->exclude = ctx->scratch->int1;
577 if (ctx->scratch->int1 == RowStatus_destroy)
921 const struct vacm_context *ctx)
925 oid->len = sub + strlen(ctx->ctxname) + 1;
926 oid->subs[sub] = strlen(ctx->ctxname);
927 for (i = 1; i <= strlen(ctx->ctxname); i++)
928 oid->subs[sub + i] = ctx->ctxname[i - 1];