Home
last modified time | relevance | path

Searched refs:bufsz_p (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dasn1.c45 asn_build_sequence(uchar_t *buf, size_t *bufsz_p, uchar_t id, size_t length) in asn_build_sequence() argument
51 if ((bufsz_p) && (*bufsz_p < 4)) in asn_build_sequence()
59 if (bufsz_p) in asn_build_sequence()
60 *bufsz_p -= 4; in asn_build_sequence()
71 asn_build_header(uchar_t *buf, size_t *bufsz_p, uchar_t id, size_t length) in asn_build_header() argument
73 if (*bufsz_p < 1) in asn_build_header()
77 (*bufsz_p)--; in asn_build_header()
79 return (asn_build_length(buf + 1, bufsz_p, length)); in asn_build_header()
82 asn_build_length(uchar_t *buf, size_t *bufsz_p, size_t length) in asn_build_length() argument
85 if (*bufsz_p < 1) in asn_build_length()
[all …]
H A Dpdu.c392 snmp_build_pdu(snmp_pdu_t *pdu, uchar_t *buf, size_t *bufsz_p) in snmp_build_pdu() argument
406 p = asn_build_sequence(buf, bufsz_p, (uchar_t)pdu->command, 0); in snmp_build_pdu()
415 if ((p = asn_build_int(p, bufsz_p, id, pdu->reqid)) == NULL) in snmp_build_pdu()
423 if ((p = asn_build_int(p, bufsz_p, id, pdu->non_repeaters)) == NULL) in snmp_build_pdu()
427 if ((p = asn_build_int(p, bufsz_p, id, pdu->max_repetitions)) == NULL) in snmp_build_pdu()
436 if ((p = asn_build_sequence(p, bufsz_p, id, 0)) == NULL) in snmp_build_pdu()
444 p = snmp_build_variable(p, bufsz_p, vp->name, vp->name_len, in snmp_build_pdu()
474 snmp_build_variable(uchar_t *buf, size_t *bufsz_p, oid *name, size_t name_len, in snmp_build_variable() argument
487 if ((p = asn_build_sequence(buf, bufsz_p, id, 0)) == NULL) in snmp_build_variable()
495 if ((p = asn_build_objid(p, bufsz_p, id, name, name_len)) == NULL) in snmp_build_variable()
[all …]