Lines Matching defs:opt_arg
87 parse_max_repetitions(struct snmp_toolinfo *snmptoolctx, char *opt_arg)
91 assert(opt_arg != NULL);
93 v = strtoul(opt_arg, (void *) NULL, 10);
106 parse_non_repeaters(struct snmp_toolinfo *snmptoolctx, char *opt_arg)
110 assert(opt_arg != NULL);
112 v = strtoul(opt_arg, (void *) NULL, 10);
125 parse_pdu_type(struct snmp_toolinfo *snmptoolctx, char *opt_arg)
127 assert(opt_arg != NULL);
129 if (strcasecmp(opt_arg, "getbulk") == 0)
131 else if (strcasecmp(opt_arg, "getnext") == 0)
133 else if (strcasecmp(opt_arg, "get") == 0)
136 warnx("PDU type '%s' not supported.", opt_arg);