Searched refs:bufsz_p (Results 1 – 2 of 2) sorted by relevance
/titanic_41/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | asn1.c | 47 asn_build_sequence(uchar_t *buf, size_t *bufsz_p, uchar_t id, size_t length) in asn_build_sequence() argument 53 if ((bufsz_p) && (*bufsz_p < 4)) in asn_build_sequence() 61 if (bufsz_p) in asn_build_sequence() 62 *bufsz_p -= 4; in asn_build_sequence() 75 asn_build_header(uchar_t *buf, size_t *bufsz_p, uchar_t id, size_t length) in asn_build_header() argument 77 if (*bufsz_p < 1) in asn_build_header() 81 (*bufsz_p)--; in asn_build_header() 83 return (asn_build_length(buf + 1, bufsz_p, length)); in asn_build_header() 86 asn_build_length(uchar_t *buf, size_t *bufsz_p, size_t length) in asn_build_length() argument 89 if (*bufsz_p < 1) in asn_build_length() [all …]
|
H A D | pdu.c | 396 snmp_build_pdu(snmp_pdu_t *pdu, uchar_t *buf, size_t *bufsz_p) in snmp_build_pdu() argument 410 p = asn_build_sequence(buf, bufsz_p, (uchar_t)pdu->command, 0); in snmp_build_pdu() 419 if ((p = asn_build_int(p, bufsz_p, id, pdu->reqid)) == NULL) in snmp_build_pdu() 427 if ((p = asn_build_int(p, bufsz_p, id, pdu->non_repeaters)) == NULL) in snmp_build_pdu() 431 if ((p = asn_build_int(p, bufsz_p, id, pdu->max_repetitions)) == NULL) in snmp_build_pdu() 440 if ((p = asn_build_sequence(p, bufsz_p, id, 0)) == NULL) in snmp_build_pdu() 448 p = snmp_build_variable(p, bufsz_p, vp->name, vp->name_len, in snmp_build_pdu() 478 snmp_build_variable(uchar_t *buf, size_t *bufsz_p, oid *name, size_t name_len, in snmp_build_variable() argument 491 if ((p = asn_build_sequence(buf, bufsz_p, id, 0)) == NULL) in snmp_build_variable() 499 if ((p = asn_build_objid(p, bufsz_p, id, name, name_len)) == NULL) in snmp_build_variable() [all …]
|