Searched refs:snmptoolctx (Results 1 – 4 of 4) sorted by relevance
/freebsd/usr.sbin/bsnmpd/tools/libbsnmptools/ |
H A D | bsnmpmap.c | 174 snmp_mapping_free(struct snmp_toolinfo *snmptoolctx) in snmp_mapping_free() argument 176 if (snmptoolctx == NULL || snmptoolctx->mappings == NULL) in snmp_mapping_free() 179 snmp_mapping_listfree(&snmptoolctx->snmp_nodelist); in snmp_mapping_free() 180 snmp_mapping_listfree(&snmptoolctx->snmp_intlist); in snmp_mapping_free() 181 snmp_mapping_listfree(&snmptoolctx->snmp_octlist); in snmp_mapping_free() 182 snmp_mapping_listfree(&snmptoolctx->snmp_oidlist); in snmp_mapping_free() 183 snmp_mapping_listfree(&snmptoolctx->snmp_iplist); in snmp_mapping_free() 184 snmp_mapping_listfree(&snmptoolctx->snmp_ticklist); in snmp_mapping_free() 185 snmp_mapping_listfree(&snmptoolctx->snmp_cntlist); in snmp_mapping_free() 186 snmp_mapping_listfree(&snmptoolctx->snmp_gaugelist); in snmp_mapping_free() [all …]
|
H A D | bsnmptools.c | 122 snmptool_init(struct snmp_toolinfo *snmptoolctx) in snmptool_init() argument 127 memset(snmptoolctx, 0, sizeof(struct snmp_toolinfo)); in snmptool_init() 128 snmptoolctx->objects = 0; in snmptool_init() 129 snmptoolctx->mappings = NULL; in snmptool_init() 130 snmptoolctx->flags = SNMP_PDU_GET; /* XXX */ in snmptool_init() 131 SLIST_INIT(&snmptoolctx->filelist); in snmptool_init() 133 SET_MAXREP(snmptoolctx, SNMP_MAX_REPETITIONS); in snmptool_init() 135 if (add_filename(snmptoolctx, bsnmpd_defs, &IsoOrgDod_OID, 0) < 0) in snmptool_init() 138 if (add_filename(snmptoolctx, mibII_defs, &IsoOrgDod_OID, 0) < 0) in snmptool_init() 177 if ((snmptoolctx->passwd = malloc(slen + 1)) == NULL) { in snmptool_init() [all …]
|
H A D | bsnmpimport.c | 333 gettoken(struct snmp_toolinfo *snmptoolctx) in gettoken() argument 460 if ((t = snmp_enumtc_lookup(snmptoolctx, nexttok)) != NULL) { in gettoken() 515 parse_enum(struct snmp_toolinfo *snmptoolctx, int32_t *tok, in parse_enum() argument 518 while ((*tok = gettoken(snmptoolctx)) == TOK_STR) { in parse_enum() 521 if ((*tok = gettoken(snmptoolctx)) != TOK_NUM) in parse_enum() 534 parse_subtype(struct snmp_toolinfo *snmptoolctx, int32_t *tok, in parse_subtype() argument 537 if ((*tok = gettoken(snmptoolctx)) != TOK_STR) { in parse_subtype() 543 *tok = gettoken(snmptoolctx); in parse_subtype() 549 parse_type(struct snmp_toolinfo *snmptoolctx, int32_t *tok, in parse_type() argument 566 if (gettoken(snmptoolctx) != '(') { in parse_type() [all …]
|
/freebsd/usr.sbin/bsnmpd/tools/bsnmptools/ |
H A D | bsnmpget.c | 87 parse_max_repetitions(struct snmp_toolinfo *snmptoolctx, char *opt_arg) in parse_max_repetitions() argument 101 SET_MAXREP(snmptoolctx, v); in parse_max_repetitions() 106 parse_non_repeaters(struct snmp_toolinfo *snmptoolctx, char *opt_arg) in parse_non_repeaters() argument 120 SET_NONREP(snmptoolctx, v); in parse_non_repeaters() 125 parse_pdu_type(struct snmp_toolinfo *snmptoolctx, char *opt_arg) in parse_pdu_type() argument 130 SET_PDUTYPE(snmptoolctx, SNMP_PDU_GETBULK); in parse_pdu_type() 132 SET_PDUTYPE(snmptoolctx, SNMP_PDU_GETNEXT); in parse_pdu_type() 134 SET_PDUTYPE(snmptoolctx, SNMP_PDU_GET); in parse_pdu_type() 144 snmptool_parse_options(struct snmp_toolinfo *snmptoolctx, int argc, char **argv) in snmptool_parse_options() argument 167 count = parse_authentication(snmptoolctx, optarg); in snmptool_parse_options() [all …]
|