Searched refs:ASN_ERR_OK (Results 1 – 5 of 5) sorted by relevance
/freebsd/contrib/bsnmp/lib/ |
H A D | snmp.c | 78 if (asn_get_sequence(b, &len) != ASN_ERR_OK) { in get_var_binding() 89 if (asn_get_objid(b, &binding->var) != ASN_ERR_OK) { in get_var_binding() 93 if (asn_get_header(b, &type, &len) != ASN_ERR_OK) { in get_var_binding() 173 if ((err = asn_skip(b, len)) == ASN_ERR_OK) in get_var_binding() 202 if (asn_get_objid(b, &pdu->enterprise) != ASN_ERR_OK) { in snmp_parse_pdus_hdr() 206 if (asn_get_ipaddress(b, pdu->agent_addr) != ASN_ERR_OK) { in snmp_parse_pdus_hdr() 210 if (asn_get_integer(b, &pdu->generic_trap) != ASN_ERR_OK) { in snmp_parse_pdus_hdr() 214 if (asn_get_integer(b, &pdu->specific_trap) != ASN_ERR_OK) { in snmp_parse_pdus_hdr() 218 if (asn_get_timeticks(b, &pdu->time_stamp) != ASN_ERR_OK) { in snmp_parse_pdus_hdr() 223 if (asn_get_integer(b, &pdu->request_id) != ASN_ERR_OK) { in snmp_parse_pdus_hdr() [all …]
|
H A D | asn1.c | 116 return (ASN_ERR_OK); in asn_get_header() 187 return (ASN_ERR_OK); in asn_put_header() 207 if ((ret = asn_put_header(b, type, ASN_MAXLEN)) == ASN_ERR_OK) in asn_put_temp_header() 234 return (ASN_ERR_OK); in asn_commit_header() 261 err = ASN_ERR_OK; in asn_get_real_integer() 330 return (ASN_ERR_OK); in asn_put_real_integer() 362 enum asn_err err = ASN_ERR_OK; in asn_get_real_unsigned() 412 return (ASN_ERR_OK); in asn_put_real_unsigned() 424 if ((ret = asn_get_real_integer(b, len, &val)) == ASN_ERR_OK) { in asn_get_integer_raw() 445 if ((err = asn_get_header(b, &type, &len)) != ASN_ERR_OK) in asn_get_integer() [all …]
|
H A D | snmpagent.c | 272 if (err != ASN_ERR_OK) { in snmp_get() 440 if (err != ASN_ERR_OK) { in snmp_getnext() 499 if (err != ASN_ERR_OK) { in snmp_getbulk() 545 if (err != ASN_ERR_OK) { in snmp_getbulk() 772 } else if (asnerr != ASN_ERR_OK) { in snmp_set() 992 (asn_get_header(pdu_b, &type, &resp.scoped_len) != ASN_ERR_OK in snmp_make_errresp() 998 if (asn_get_sequence(pdu_b, &len) != ASN_ERR_OK) { in snmp_make_errresp() 1005 &len) != ASN_ERR_OK) { in snmp_make_errresp() 1012 &len) != ASN_ERR_OK) { in snmp_make_errresp() 1020 if (asn_get_header(pdu_b, &type, &len) != ASN_ERR_OK) { in snmp_make_errresp()
|
H A D | asn1.h | 65 ASN_ERR_OK = 0, enumerator
|
/freebsd/contrib/bsnmp/tests/ |
H A D | asn1.cc | 139 check_header(const Tbuf &buf, asn_err err = ASN_ERR_OK, in check_header() 145 if (r.err != ASN_ERR_OK) 275 REQUIRE(asn_put_header(&b, type, vlen) == ASN_ERR_OK); in __anon4d4e46190202() 312 REQUIRE(asn_get_counter64_raw(&r.buf, r.alen, &val) == ASN_ERR_OK); in __anon4d4e46190302() 423 REQUIRE(asn_put_counter64(&b, val) == ASN_ERR_OK); in __anon4d4e46190502() 504 REQUIRE(asn_get_uint32_raw(&r.buf, r.alen, &val) == ASN_ERR_OK); in __anon4d4e46190702() 600 REQUIRE(asn_put_uint32(&b, ASN_APP_COUNTER, val) == ASN_ERR_OK); in __anon4d4e46190902() 661 REQUIRE(asn_get_integer_raw(&r.buf, r.alen, &val) == ASN_ERR_OK); in __anon4d4e46190b02() 777 REQUIRE(asn_put_integer(&b, val) == ASN_ERR_OK); in __anon4d4e46190d02() 853 REQUIRE(asn_get_objid_raw(&r.buf, r.alen, &val) == ASN_ERR_OK); in __anon4d4e46190f02() [all …]
|