Lines Matching refs:prefix

317 snmp_get_int(picl_snmphdl_t hdl, char *prefix, int row, int *val,  in snmp_get_int()  argument
325 if (smd == NULL || prefix == NULL || val == NULL) in snmp_get_int()
332 if ((grp = locate_oid_group(smd, prefix)) == NULL) { in snmp_get_int()
333 ret = fetch_single_int(smd, prefix, row, val, &err); in snmp_get_int()
344 if (lookup_int(prefix, row, val, grp->is_volatile) == 0) in snmp_get_int()
357 if (lookup_int(prefix, row, val, grp->is_volatile) < 0) in snmp_get_int()
371 snmp_get_str(picl_snmphdl_t hdl, char *prefix, int row, char **strp, in snmp_get_str() argument
380 if (smd == NULL || prefix == NULL || strp == NULL) in snmp_get_str()
388 if ((grp = locate_oid_group(smd, prefix)) == NULL) { in snmp_get_str()
389 ret = fetch_single_str(smd, prefix, row, strp, &err); in snmp_get_str()
400 if (lookup_str(prefix, row, &val, grp->is_volatile) == 0) { in snmp_get_str()
417 if (lookup_str(prefix, row, &val, grp->is_volatile) < 0) in snmp_get_str()
435 snmp_get_bitstr(picl_snmphdl_t hdl, char *prefix, int row, uchar_t **bitstrp, in snmp_get_bitstr() argument
444 if (smd == NULL || prefix == NULL || bitstrp == NULL || nbytes == NULL) in snmp_get_bitstr()
452 if ((grp = locate_oid_group(smd, prefix)) == NULL) { in snmp_get_bitstr()
453 ret = fetch_single_bitstr(smd, prefix, row, bitstrp, in snmp_get_bitstr()
465 if (lookup_bitstr(prefix, row, &val, nbytes, grp->is_volatile) == 0) { in snmp_get_bitstr()
482 if (lookup_bitstr(prefix, row, &val, nbytes, grp->is_volatile) < 0) in snmp_get_bitstr()
501 snmp_get_nextrow(picl_snmphdl_t hdl, char *prefix, int row, int *nextrow, in snmp_get_nextrow() argument
510 if (smd == NULL || prefix == NULL || nextrow == NULL) { in snmp_get_nextrow()
520 if ((reply_pdu = fetch_next(smd, prefix, row, &err)) == NULL) { in snmp_get_nextrow()
557 if (strcmp(nxt_oidstr, prefix) != 0) { in snmp_get_nextrow()
595 lookup_int(char *prefix, int row, int *valp, int is_vol) in lookup_int() argument
619 if (nvlist_lookup_int32_array(mibcache[row], prefix, in lookup_int()
637 if (nvlist_lookup_int32(mibcache[row], prefix, valp) != 0) { in lookup_int()
649 lookup_str(char *prefix, int row, char **valp, int is_vol) in lookup_str() argument
673 if (nvlist_lookup_string_array(mibcache[row], prefix, in lookup_str()
691 if (nvlist_lookup_string(mibcache[row], prefix, valp) != 0) { in lookup_str()
703 lookup_bitstr(char *prefix, int row, uchar_t **valp, uint_t *nelem, int is_vol) in lookup_bitstr() argument
730 if (nvlist_lookup_byte_array(mibcache[row], prefix, valp, nelem) != 0) { in lookup_bitstr()
741 search_oid_in_group(char *prefix, char *oidstrs, int n_oids) in search_oid_in_group() argument
748 if (strcmp(p, prefix) == 0) in search_oid_in_group()
758 locate_oid_group(struct picl_snmphdl *smd, char *prefix) in locate_oid_group() argument
769 if (search_oid_in_group(prefix, grp->oidstrs, in locate_oid_group()
779 fetch_single_int(struct picl_snmphdl *smd, char *prefix, int row, int *ival, in fetch_single_int() argument
785 if ((reply_pdu = fetch_single(smd, prefix, row, snmp_syserr)) == NULL) in fetch_single_int()
814 fetch_single_str(struct picl_snmphdl *smd, char *prefix, int row, char **valp, in fetch_single_str() argument
820 if ((reply_pdu = fetch_single(smd, prefix, row, snmp_syserr)) == NULL) in fetch_single_str()
837 fetch_single_bitstr(struct picl_snmphdl *smd, char *prefix, int row, in fetch_single_bitstr() argument
843 if ((reply_pdu = fetch_single(smd, prefix, row, snmp_syserr)) == NULL) in fetch_single_bitstr()
867 fetch_single(struct picl_snmphdl *smd, char *prefix, int row, int *snmp_syserr) in fetch_single() argument
871 if ((pdu = snmp_create_pdu(SNMP_MSG_GET, 0, prefix, 1, row)) == NULL) in fetch_single()
965 fetch_next(struct picl_snmphdl *smd, char *prefix, int row, int *snmp_syserr) in fetch_next() argument
969 pdu = snmp_create_pdu(SNMP_MSG_GETNEXT, 0, prefix, 1, row); in fetch_next()