Lines Matching refs:ctx
151 op_ip(struct snmp_context *ctx, struct snmp_value *value,
172 ctx->scratch->int1 = ip_forwarding ? 1 : 2;
173 ctx->scratch->int2 = value->v.integer;
177 ctx->scratch->int1 = old ? 1 : 2;
181 ctx->scratch->int1 = old;
187 ctx->scratch->int1 = ip_defttl;
188 ctx->scratch->int2 = value->v.integer;
194 ctx->scratch->int1 = old;
203 if (ctx->scratch->int1 == 1) {
204 if (ctx->scratch->int2 == 2)
207 if (ctx->scratch->int2 == 1)
213 if (ctx->scratch->int1 != ctx->scratch->int2)
214 (void)ip_setttl(ctx->scratch->int1, NULL);
244 op_ipstat(struct snmp_context *ctx __unused, struct snmp_value *value,
347 op_icmpstat(struct snmp_context *ctx __unused, struct snmp_value *value,