Home
last modified time | relevance | path

Searched refs:varbind (Results 1 – 12 of 12) sorted by relevance

/openbsd/regress/usr.sbin/snmpd/
H A Dbackend.c34 struct varbind varbind = { in backend_get_integer() local
71 struct varbind varbind = { in backend_get_octetstring() local
109 struct varbind varbind = { in backend_get_objectidentifier() local
146 struct varbind varbind = { in backend_get_ipaddress() local
184 struct varbind varbind = { in backend_get_counter32() local
221 struct varbind varbind = { in backend_get_gauge32() local
258 struct varbind varbind = { in backend_get_timeticks() local
295 struct varbind varbind = { in backend_get_opaque() local
343 struct varbind varbind = { in backend_get_counter64() local
380 struct varbind varbind = { in backend_get_nosuchobject() local
[all …]
H A Dtransport.c23 struct varbind varbind = { in transport_tcp_get() local
45 varbind.type = TYPE_INTEGER; in transport_tcp_get()
46 agentx_response(ax_s, buf, NOERROR, 0, &varbind, 1); in transport_tcp_get()
49 &varbind, 1); in transport_tcp_get()
60 struct varbind varbind = { in transport_tcp_disconnect() local
84 varbind.type = TYPE_INTEGER; in transport_tcp_disconnect()
85 agentx_response(ax_s, buf, NOERROR, 0, &varbind, 1); in transport_tcp_disconnect()
96 struct varbind varbind = { in transport_tcp_double_get_disconnect() local
144 varbind.type = TYPE_INTEGER; in transport_tcp_double_get_disconnect()
145 agentx_response(ax_s, buf, NOERROR, 0, &varbind, 1); in transport_tcp_double_get_disconnect()
[all …]
H A Dregress.h83 struct varbind { struct
159 void agentx_response(int, void *, enum error, uint16_t, struct varbind *,
162 struct varbind *, size_t);
164 uint32_t, struct searchrange *, struct varbind *, size_t);
166 struct varbind *, size_t, struct varbind *);
248 int32_t snmpv2_get(int, const char *, int32_t, struct varbind *, size_t);
249 int32_t snmpv2_getnext(int, const char *, int32_t, struct varbind *, size_t);
251 struct varbind *, size_t);
253 int32_t, int32_t, struct varbind *, size_t);
255 struct varbind *, size_t);
H A Dsnmp.c93 int32_t, struct varbind *, size_t);
95 int32_t, struct varbind *, size_t);
99 struct varbind *, size_t);
112 struct varbind *, size_t);
131 struct varbind varbind = { in snmp_v3_usm_noauthpriv() local
163 varbind.type = TYPE_INTEGER; in snmp_v3_usm_noauthpriv()
168 &varbind, 1); in snmp_v3_usm_noauthpriv()
408 struct varbind vb = { in snmpv3_usm_discovery()
1142 struct ber_element *mvarbindlist, *varbind; in snmp_pdu_validate() local
1149 &merror, &mindex, &varbind) == -1) in snmp_pdu_validate()
[all …]
H A Dagentx.c721 struct varbind varbind = { in agentx_ping_invalid_version_close() local
745 &varbind, 1); in agentx_ping_invalid_version_close()
2399 uint8_t flags, uint32_t sessionid, struct varbind *varbind, in agentx_get_handle() argument
2409 struct varbind *pool; in agentx_get_handle()
2468 struct varbind *varbind, size_t nvarbind) in agentx_getnext_handle() argument
2477 struct varbind *pool; in agentx_getnext_handle()
2655 varbind[match] = varbind[--nvarbind]; in agentx_getbulk_handle()
2656 varbind[nvarbind] = (struct varbind){}; in agentx_getbulk_handle()
2994 message_add_varbind(struct message *msg, struct varbind *varbind) in message_add_varbind() argument
3003 message_add_oid(msg, varbind->name.subid, varbind->name.n_subid, 0); in message_add_varbind()
[all …]
/openbsd/usr.bin/snmp/
H A Dsnmpc.c582 for (; varbind != NULL; varbind = varbind->be_next) { in snmpc_get()
671 for (; varbind != NULL; varbind = varbind->be_next) { in snmpc_walk()
773 for (; varbind != NULL; varbind = varbind->be_next) { in snmpc_set()
895 for (; varbind != NULL; varbind = varbind->be_next) { in snmpc_df()
901 for (; varbind != NULL; varbind = varbind->be_next) { in snmpc_df()
911 for (; i < rows; varbind = varbind->be_next, i++) { in snmpc_df()
970 for (; varbind != NULL; varbind = varbind->be_next) { in snmpc_df()
981 varbind = varbind->be_next->be_next->be_next; in snmpc_df()
1151 varbind = varbind->be_next) in snmpc_printerror()
1484 if ((varbind = ober_printf_elements(varbind, "{Oi}", in snmpc_varbindparse()
[all …]
H A Dsnmp.c161 varbind = ober_printf_elements(varbind, "{O0}", &oid[i]); in snmp_get()
162 if (varbind == NULL) in snmp_get()
184 varbind = ober_printf_elements(varbind, "{O0}", &oid[i]); in snmp_getnext()
185 if (varbind == NULL) in snmp_getnext()
213 if ((varbind = ober_printf_elements(varbind, "{Oit}", &sysuptime, ticks, in snmp_trap()
218 if ((varbind = ober_printf_elements(varbind, "{OO}", &trap, oid)) == NULL) in snmp_trap()
244 varbind = ober_printf_elements(varbind, "{O0}", &oid[i]); in snmp_getbulk()
245 if (varbind == NULL) in snmp_getbulk()
359 for (varbind = varbind->be_sub; varbind != NULL; in snmp_resolve()
360 varbind = varbind->be_next) { in snmp_resolve()
[all …]
/openbsd/usr.sbin/snmpd/
H A Dapplication.c906 varbind = varbindlist->be_sub; in appl_processpdu()
907 for (; varbind != NULL; varbind = varbind->be_next) in appl_processpdu()
920 varbind = varbindlist->be_sub; in appl_processpdu()
927 if (varbind == NULL) { in appl_processpdu()
935 ober_get_oid(varbind->be_sub, in appl_processpdu()
944 varbind = varbind->be_next; in appl_processpdu()
1274 varbind = ober_printf_elements(varbind, "{Oe}", in appl_request_upstream_reply()
1278 if (varbind == NULL) in appl_request_upstream_reply()
1281 varbindlist = varbind; in appl_request_upstream_reply()
1440 if (varbind->av_value == NULL) { in appl_varbind_valid()
[all …]
H A Dax.c100 struct ax_varbind *varbind; in ax_recv() local
343 varbind = recallocarray(vbl->ap_varbind, in ax_recv()
346 if (varbind == NULL) in ax_recv()
348 vbl->ap_varbind = varbind; in ax_recv()
410 if (varbind == NULL) in ax_recv()
412 response->ap_varbindlist = varbind; in ax_recv()
755 ax_varbind_free(struct ax_varbind *varbind) in ax_varbind_free() argument
757 switch (varbind->avb_type) { in ax_varbind_free()
761 free(varbind->avb_data.avb_ostring.aos_string); in ax_varbind_free()
1440 varbind->avb_type = ax_pdutoh16(header, buf); in ax_pdutovarbind()
[all …]
/openbsd/lib/libagentx/
H A Dax.c102 struct ax_varbind *varbind; in ax_recv() local
246 varbind = recallocarray(vbl->ap_varbind, in ax_recv()
249 if (varbind == NULL) in ax_recv()
251 vbl->ap_varbind = varbind; in ax_recv()
304 if (varbind == NULL) in ax_recv()
306 response->ap_varbindlist = varbind; in ax_recv()
604 ax_varbind_free(struct ax_varbind *varbind) in ax_varbind_free() argument
606 switch (varbind->avb_type) { in ax_varbind_free()
610 free(varbind->avb_data.avb_ostring.aos_string); in ax_varbind_free()
1318 varbind->avb_type = ax_pdutoh16(header, buf); in ax_pdutovarbind()
[all …]
/openbsd/share/snmp/
H A DSNMPv2-MIB.txt397 the second varbind in every SNMPv2-Trap-PDU and
412 last varbind."
H A DSNMPv2-TC.txt249 contained a varbind that would change the RowStatus
252 received, or if the varbind sets the status to a value