Home
last modified time | relevance | path

Searched refs:snmp_pdu (Results 1 – 14 of 14) sorted by relevance

/freebsd-head/contrib/bsnmp/lib/
HDsnmpclient.h57 typedef void (*snmp_send_cb_f)(struct snmp_pdu *, struct snmp_pdu *, void *);
134 void snmp_pdu_create(struct snmp_pdu *, u_int _op);
137 int snmp_add_binding(struct snmp_pdu *, ...);
140 int snmp_pdu_check(const struct snmp_pdu *_req, const struct snmp_pdu *_resp);
142 int32_t snmp_pdu_send(struct snmp_pdu *_pdu, snmp_send_cb_f _func, void *_arg);
194 int snmp_dialog(struct snmp_pdu *_req, struct snmp_pdu *_resp);
HDsnmpagent.h132 enum snmp_ret snmp_get(struct snmp_pdu *pdu, struct asn_buf *resp_b,
133 struct snmp_pdu *resp, void *);
134 enum snmp_ret snmp_getnext(struct snmp_pdu *pdu, struct asn_buf *resp_b,
135 struct snmp_pdu *resp, void *);
136 enum snmp_ret snmp_getbulk(struct snmp_pdu *pdu, struct asn_buf *resp_b,
137 struct snmp_pdu *resp, void *);
138 enum snmp_ret snmp_set(struct snmp_pdu *pdu, struct asn_buf *resp_b,
139 struct snmp_pdu *resp, void *);
141 enum snmp_ret snmp_make_errresp(const struct snmp_pdu *, struct asn_buf *,
HDsnmppriv.h36 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,
41 enum snmp_code snmp_pdu_calc_digest(const struct snmp_pdu *, uint8_t *);
42 enum snmp_code snmp_pdu_encrypt(const struct snmp_pdu *);
43 enum snmp_code snmp_pdu_decrypt(const struct snmp_pdu *);
HDsnmp.h152 struct snmp_pdu { struct
200 #define snmp_v1_pdu snmp_pdu argument
264 void snmp_pdu_free(struct snmp_pdu *);
265 void snmp_pdu_init_secparams(struct snmp_pdu *);
266 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 *);
274 void snmp_pdu_dump(const struct snmp_pdu *pdu);
HDsnmpcrypto.c89 snmp_pdu_calc_digest(const struct snmp_pdu *pdu, uint8_t *digest) in snmp_pdu_calc_digest()
145 snmp_pdu_cipher_init(const struct snmp_pdu *pdu, int32_t len, in snmp_pdu_cipher_init()
178 snmp_pdu_encrypt(const struct snmp_pdu *pdu) in snmp_pdu_encrypt()
211 snmp_pdu_decrypt(const struct snmp_pdu *pdu) in snmp_pdu_decrypt()
374 snmp_pdu_calc_digest(const struct snmp_pdu *pdu, uint8_t *digest __unused) in snmp_pdu_calc_digest()
384 snmp_pdu_encrypt(const struct snmp_pdu *pdu) in snmp_pdu_encrypt()
393 snmp_pdu_decrypt(const struct snmp_pdu *pdu) in snmp_pdu_decrypt()
HDsnmp.c199 snmp_parse_pdus_hdr(struct asn_buf *b, struct snmp_pdu *pdu, asn_len_t *lenp) in snmp_parse_pdus_hdr()
246 parse_pdus(struct asn_buf *b, struct snmp_pdu *pdu, int32_t *ip) in parse_pdus()
284 parse_secparams(struct asn_buf *b, struct snmp_pdu *pdu) in parse_secparams()
357 pdu_encode_secparams(struct asn_buf *b, struct snmp_pdu *pdu) in pdu_encode_secparams()
431 snmp_pdu_decode(struct asn_buf *b, struct snmp_pdu *pdu, int32_t *ip) in snmp_pdu_decode()
464 snmp_pdu_decode_header(struct asn_buf *b, struct snmp_pdu *pdu) in snmp_pdu_decode_header()
551 snmp_pdu_decode_scoped(struct asn_buf *b, struct snmp_pdu *pdu, int32_t *ip) in snmp_pdu_decode_scoped()
637 snmp_pdu_decode_secmode(struct asn_buf *b, struct snmp_pdu *pdu) in snmp_pdu_decode_secmode()
738 snmp_pdu_encode_header(struct asn_buf *b, struct snmp_pdu *pdu) in snmp_pdu_encode_header()
842 snmp_pdu_fix_padd(struct asn_buf *b, struct snmp_pdu *pdu) in snmp_pdu_fix_padd()
[all …]
HDsnmpagent.c169 snmp_pdu_create_response(const struct snmp_pdu *pdu, struct snmp_pdu *resp) in snmp_pdu_create_response()
202 snmp_get(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_get()
203 struct snmp_pdu *resp, void *data) in snmp_get()
336 struct snmp_value *outb, struct snmp_pdu *pdu) in do_getnext()
404 snmp_getnext(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_getnext()
405 struct snmp_pdu *resp, void *data) in snmp_getnext()
459 snmp_getbulk(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_getbulk()
460 struct snmp_pdu *resp, void *data) in snmp_getbulk()
571 rollback(struct context *context, struct snmp_pdu *pdu, u_int i) in rollback()
675 snmp_set(struct snmp_pdu *pdu, struct asn_buf *resp_b, in snmp_set()
[all …]
HDsnmpclient.c79 struct snmp_pdu *pdu;
124 struct snmp_pdu pdu;
446 table_init_pdu(const struct snmp_table *descr, struct snmp_pdu *pdu) in table_init_pdu()
474 table_check_response(struct tabwork *work, const struct snmp_pdu *resp) in table_check_response()
567 struct snmp_pdu resp; in snmp_table_fetch()
632 table_cb(struct snmp_pdu *req __unused, struct snmp_pdu *resp, void *arg) in table_cb()
1151 snmp_pdu_create(struct snmp_pdu *pdu, u_int op) in snmp_pdu_create()
1153 memset(pdu, 0, sizeof(struct snmp_pdu)); in snmp_pdu_create()
1241 snmp_send_packet(struct snmp_pdu * pdu) in snmp_send_packet()
1305 snmp_pdu_send(struct snmp_pdu *pdu, snmp_send_cb_f func, void *arg) in snmp_pdu_send()
[all …]
/freebsd-head/usr.sbin/bsnmpd/tools/libbsnmptools/
HDbsnmptools.h314 struct snmp_pdu *, struct snmp_object *);
315 typedef int32_t (*snmp_add_vbind_f) (struct snmp_pdu *, struct snmp_object *);
317 snmp_add_vbind_f, struct snmp_pdu *, int32_t);
319 int32_t snmp_parse_get_resp(struct snmp_pdu *, struct snmp_pdu *);
320 int32_t snmp_parse_getbulk_resp(struct snmp_pdu *, struct snmp_pdu *);
321 int32_t snmp_parse_getnext_resp(struct snmp_pdu *, struct snmp_pdu *);
322 int32_t snmp_parse_resp(struct snmp_pdu *, struct snmp_pdu *);
326 int32_t snmp_output_resp(struct snmp_toolinfo *, struct snmp_pdu *, struct asn_oid *);
327 void snmp_output_err_resp(struct snmp_toolinfo *, struct snmp_pdu *);
HDbsnmptools.c1455 struct snmp_pdu *pdu, int32_t maxcount) in snmp_pdu_add_bindings()
1521 snmp_parse_get_resp(struct snmp_pdu *resp, struct snmp_pdu *req) in snmp_parse_get_resp()
1542 snmp_parse_getbulk_resp(struct snmp_pdu *resp, struct snmp_pdu *req) in snmp_parse_getbulk_resp()
1579 snmp_parse_getnext_resp(struct snmp_pdu *resp, struct snmp_pdu *req) in snmp_parse_getnext_resp()
1600 snmp_parse_resp(struct snmp_pdu *resp, struct snmp_pdu *req) in snmp_parse_resp()
2001 snmp_output_err_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu) in snmp_output_err_resp()
2039 snmp_output_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu, in snmp_output_resp()
/freebsd-head/usr.sbin/bsnmpd/tools/bsnmptools/
HDbsnmpget.c322 snmptool_add_vbind(struct snmp_pdu *pdu, struct snmp_object *obj) in snmptool_add_vbind()
337 snmpget_verify_vbind(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu, in snmpget_verify_vbind()
365 snmpget_fix_getbulk(struct snmp_pdu *pdu, uint32_t max_rep, uint32_t non_rep) in snmpget_fix_getbulk()
383 struct snmp_pdu req, resp; in snmptool_get()
454 snmpwalk_nextpdu_create(uint32_t op, struct asn_oid *var, struct snmp_pdu *pdu) in snmpwalk_nextpdu_create()
464 struct snmp_pdu req, resp; in snmptool_walk()
1041 snmpset_verify_vbind(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu, in snmpset_verify_vbind()
1063 snmpset_add_vbind(struct snmp_pdu *pdu, struct snmp_object *obj) in snmpset_add_vbind()
1086 struct snmp_pdu req, resp; in snmptool_set()
/freebsd-head/contrib/bsnmp/snmpd/
HDsnmpmod.h337 enum snmpd_proxy_err (*proxy)(struct snmp_pdu *, void *,
627 struct snmp_pdu *, int32_t *, size_t *);
630 enum snmpd_input_err snmp_input_finish(struct snmp_pdu *, const u_char *,
634 void snmp_output(struct snmp_pdu *, u_char *, size_t *, const char *);
635 void snmp_send_port(void *, const struct asn_oid *, struct snmp_pdu *,
637 enum snmp_code snmp_pdu_auth_access(struct snmp_pdu *, int32_t *);
HDtrap.c423 snmp_create_v1_trap(struct snmp_pdu *pdu, char *com, in snmp_create_v1_trap()
440 snmp_create_v2_trap(struct snmp_pdu *pdu, char *com, in snmp_create_v2_trap()
466 snmp_create_v3_trap(struct snmp_pdu *pdu, struct target_param *target, in snmp_create_v3_trap()
526 struct snmp_pdu pdu; in snmp_send_trap()
HDmain.c282 snmp_output(struct snmp_pdu *pdu, u_char *sndbuf, size_t *sndlen, in snmp_output()
306 snmp_pdu_auth_user(struct snmp_pdu *pdu) in snmp_pdu_auth_user()
372 snmp_pdu_auth_access(struct snmp_pdu *pdu, int32_t *ip) in snmp_pdu_auth_access()
484 struct snmp_pdu *pdu, int32_t *ip, size_t *pdulen) in snmp_input_start()
660 snmp_input_finish(struct snmp_pdu *pdu, const u_char *rcvbuf, size_t rcvlen, in snmp_input_finish()
664 struct snmp_pdu resp; in snmp_input_finish()
1037 struct snmp_pdu pdu; in snmpd_input()
1214 snmp_send_port(void *targ, const struct asn_oid *port, struct snmp_pdu *pdu, in snmp_send_port()