Home
last modified time | relevance | path

Searched refs:asn_buf (Results 1 – 11 of 11) sorted by relevance

/freebsd-14.2/contrib/bsnmp/lib/
H A Dasn1.h38 struct asn_buf { struct
99 enum asn_err asn_get_integer(struct asn_buf *, int32_t *);
100 enum asn_err asn_put_integer(struct asn_buf *, int32_t);
107 enum asn_err asn_get_null(struct asn_buf *);
108 enum asn_err asn_put_null(struct asn_buf *);
110 enum asn_err asn_put_exception(struct asn_buf *, u_int);
119 enum asn_err asn_get_ipaddress(struct asn_buf *, u_char *);
126 enum asn_err asn_put_counter64(struct asn_buf *, uint64_t);
129 enum asn_err asn_put_timeticks(struct asn_buf *, uint32_t);
131 enum asn_err asn_skip(struct asn_buf *, asn_len_t);
[all …]
H A Dasn1.c439 asn_get_integer(struct asn_buf *b, int32_t *vp) in asn_get_integer()
456 asn_put_integer(struct asn_buf *b, int32_t val) in asn_put_integer()
532 asn_get_null_raw(struct asn_buf *b, asn_len_t len) in asn_get_null_raw()
548 asn_get_null(struct asn_buf *b) in asn_get_null()
564 asn_put_null(struct asn_buf *b) in asn_put_null()
570 asn_put_exception(struct asn_buf *b, u_int except) in asn_put_exception()
793 asn_get_ipaddress(struct asn_buf *b, u_char *addr) in asn_get_ipaddress()
866 asn_put_counter64(struct asn_buf *b, uint64_t val) in asn_put_counter64()
877 asn_get_timeticks(struct asn_buf *b, uint32_t *vp) in asn_get_timeticks()
931 asn_skip(struct asn_buf *b, asn_len_t len) in asn_skip()
[all …]
H A Dsnmpagent.h132 enum snmp_ret snmp_get(struct snmp_pdu *pdu, struct asn_buf *resp_b,
134 enum snmp_ret snmp_getnext(struct snmp_pdu *pdu, struct asn_buf *resp_b,
136 enum snmp_ret snmp_getbulk(struct snmp_pdu *pdu, struct asn_buf *resp_b,
138 enum snmp_ret snmp_set(struct snmp_pdu *pdu, struct asn_buf *resp_b,
141 enum snmp_ret snmp_make_errresp(const struct snmp_pdu *, struct asn_buf *,
142 struct asn_buf *);
H A Dsnmppriv.h35 enum asn_err snmp_binding_encode(struct asn_buf *, const struct snmp_value *);
36 enum snmp_code snmp_pdu_encode_header(struct asn_buf *, struct snmp_pdu *);
37 enum snmp_code snmp_fix_encoding(struct asn_buf *, struct snmp_pdu *);
38 enum asn_err snmp_parse_pdus_hdr(struct asn_buf *b, struct snmp_pdu *pdu,
H A Dsnmp.h266 enum snmp_code snmp_pdu_decode(struct asn_buf *b, struct snmp_pdu *pdu, int32_t *);
267 enum snmp_code snmp_pdu_decode_header(struct asn_buf *, struct snmp_pdu *);
268 enum snmp_code snmp_pdu_decode_scoped(struct asn_buf *, struct snmp_pdu *, int32_t *);
269 enum snmp_code snmp_pdu_encode(struct snmp_pdu *, struct asn_buf *);
270 enum snmp_code snmp_pdu_decode_secmode(struct asn_buf *, struct snmp_pdu *);
272 int snmp_pdu_snoop(const struct asn_buf *);
H A Dsnmp.c72 get_var_binding(struct asn_buf *b, struct snmp_value *binding) in get_var_binding()
284 parse_secparams(struct asn_buf *b, struct snmp_pdu *pdu) in parse_secparams()
288 struct asn_buf tb; in parse_secparams()
357 pdu_encode_secparams(struct asn_buf *b, struct snmp_pdu *pdu) in pdu_encode_secparams()
360 struct asn_buf tb; in pdu_encode_secparams()
680 snmp_pdu_snoop(const struct asn_buf *b0) in snmp_pdu_snoop()
684 struct asn_buf b = *b0; in snmp_pdu_snoop()
842 snmp_pdu_fix_padd(struct asn_buf *b, struct snmp_pdu *pdu) in snmp_pdu_fix_padd()
857 snmp_fix_encoding(struct asn_buf *b, struct snmp_pdu *pdu) in snmp_fix_encoding()
913 struct asn_buf save = *b; in snmp_binding_encode()
[all …]
H A Dsnmpagent.c202 snmp_get(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_get()
404 snmp_getnext(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_getnext()
459 snmp_getbulk(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_getbulk()
675 snmp_set(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_set()
976 snmp_make_errresp(const struct snmp_pdu *pdu, struct asn_buf *pdu_b, in snmp_make_errresp()
977 struct asn_buf *resp_b) in snmp_make_errresp()
H A Dsnmpclient.c1244 struct asn_buf b; in snmp_send_packet()
1360 struct asn_buf abuf; in snmp_receive_packet()
/freebsd-14.2/contrib/bsnmp/tests/
H A Dasn1.cc48 static std::enable_if_t<!std::is_integral_v<T>, asn_buf>
51 asn_buf abuf; in mk_asn_buf()
59 static asn_buf
62 asn_buf abuf; in mk_asn_buf()
73 save_g_errstr(const struct asn_buf *b, const char *fmt, ...) in save_g_errstr()
99 struct asn_buf buf;
195 check_buf(const asn_buf &s, const Tbuf &exp, bool print = false) in check_buf()
/freebsd-14.2/lib/libbsnmp/tests/
H A Dbsnmpd_test.c34 struct asn_buf b = {}; in ATF_TC_BODY()
/freebsd-14.2/contrib/bsnmp/snmpd/
H A Dmain.c248 static void asn_error_func(const struct asn_buf *b, const char *err, ...);
285 struct asn_buf resp_b; in snmp_output()
486 struct asn_buf b; in snmp_input_start()
665 struct asn_buf resp_b, pdu_b; in snmp_input_finish()
2031 asn_error_func(const struct asn_buf *b, const char *err, ...) in asn_error_func()