/openbsd-current/usr.sbin/snmpd/ |
H A D | traphandler.c | 66 struct ber_element *vblist = NULL, *elm; local 77 if ((vblist = traphandler_v1translate(msg, 0)) == NULL) 89 vblist = ober_unlink_elements(elm); 97 if (ober_scanf_elements(vblist, "{{od$}{oo$}", &o1, &sysUpTime, &o2, 104 (void)ober_scanf_elements(vblist, "{Se", &elm); 114 if ((buflen = ober_write_elements(&ber, vblist)) == -1 || 134 if (vblist != NULL) 135 ober_free_elements(vblist); 145 struct ber_element *elm, *last, *vblist, *vb0 = NULL; local 153 &time_stamp, &vblist) 281 struct ber_element *vblist; local [all...] |
H A D | application_blocklist.c | 94 int32_t requestid, __unused const char *ctx, struct appl_varbind *vblist) 99 for (i = 0, vb = vblist; vb != NULL; vb = vb->av_next) 104 for (vb = vblist; vb != NULL; vb = vb->av_next, rvb = rvb->av_next) { 123 struct appl_varbind *vblist) 128 for (i = 0, vb = vblist; vb != NULL; vb = vb->av_next) 133 for (vb = vblist; vb != NULL; vb = vb->av_next, rvb = rvb->av_next) { 93 appl_blocklist_get(struct appl_backend *backend, __unused int32_t transactionid, int32_t requestid, __unused const char *ctx, struct appl_varbind *vblist) argument 121 appl_blocklist_getnext(struct appl_backend *backend, __unused int32_t transactionid, int32_t requestid, __unused const char *ctx, struct appl_varbind *vblist) argument
|
H A D | trap.c | 47 struct ber_element *vblist, *trap; local 62 vblist = ober_printf_elements(trap, "{Odt}{OO}", 67 ober_link_elements(vblist, elm);
|
H A D | ax.c | 578 struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) 589 if (ax_pdu_add_varbindlist(ax, vblist, nvb) == -1) 597 struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) 603 if (ax_pdu_add_varbindlist(ax, vblist, nvb) == -1) 697 struct ax_varbind *vblist, size_t nvb) 708 if (ax_pdu_add_varbindlist(ax, vblist, nvb) == -1) 720 struct ax_pdu_varbindlist *vblist; local 737 vblist = &(pdu->ap_payload.ap_vbl); 738 for (i = 0; i < vblist->ap_nvarbind; i++) 739 ax_varbind_free(&(vblist 577 ax_indexallocate(struct ax *ax, uint8_t flags, uint32_t sessionid, struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) argument 596 ax_indexdeallocate(struct ax *ax, uint32_t sessionid, struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) argument 695 ax_response(struct ax *ax, uint32_t sessionid, uint32_t transactionid, uint32_t packetid, uint32_t sysuptime, uint16_t error, uint16_t index, struct ax_varbind *vblist, size_t nvb) argument 1261 ax_pdu_add_varbindlist(struct ax *ax, struct ax_varbind *vblist, size_t nvb) argument [all...] |
H A D | application_internal.c | 316 int32_t requestid, __unused const char *ctx, struct appl_varbind *vblist) 324 for (i = 0, vb = vblist; vb != NULL; vb = vb->av_next, i++) 329 appl_response(backend, requestid, APPL_ERROR_GENERR, 1, vblist); 333 for (i = 0, vb = vblist; vb != NULL; vb = vb->av_next, i++) { 368 appl_response(backend, requestid, APPL_ERROR_GENERR, i + 1, vblist); 374 struct appl_varbind *vblist) 383 for (i = 0, vb = vblist; vb != NULL; vb = vb->av_next, i++) 388 appl_response(backend, requestid, APPL_ERROR_GENERR, 1, vblist); 392 for (i = 0, vb = vblist; vb != NULL; vb = vb->av_next, i++) { 453 appl_response(backend, requestid, APPL_ERROR_GENERR, i + 1, vblist); 315 appl_internal_get(struct appl_backend *backend, __unused int32_t transactionid, int32_t requestid, __unused const char *ctx, struct appl_varbind *vblist) argument 372 appl_internal_getnext(struct appl_backend *backend, __unused int32_t transactionid, int32_t requestid, __unused const char *ctx, struct appl_varbind *vblist) argument [all...] |
H A D | application_agentx.c | 714 int32_t requestid, const char *ctx, struct appl_varbind *vblist) 725 for (nsr = 0, vb = vblist; vb != NULL; vb = vb->av_next) 730 appl_response(backend, requestid, APPL_ERROR_GENERR, 1, vblist); 734 for (i = 0, vb = vblist; i < nsr; i++, vb = vb->av_next) { 746 APPL_ERROR_GENERR, 1, vblist); 755 appl_response(backend, requestid, APPL_ERROR_GENERR, 1, vblist); 765 int32_t requestid, const char *ctx, struct appl_varbind *vblist) 776 for (nsr = 0, vb = vblist; vb != NULL; vb = vb->av_next) 781 appl_response(backend, requestid, APPL_ERROR_GENERR, 1, vblist); 785 for (i = 0, vb = vblist; 713 appl_agentx_get(struct appl_backend *backend, int32_t transactionid, int32_t requestid, const char *ctx, struct appl_varbind *vblist) argument 764 appl_agentx_getnext(struct appl_backend *backend, int32_t transactionid, int32_t requestid, const char *ctx, struct appl_varbind *vblist) argument [all...] |
H A D | application.c | 1293 enum appl_error error, int16_t index, struct appl_varbind *vblist) 1305 appl_pdu_log(backend, SNMP_C_RESPONSE, requestid, error, index, vblist); 1325 vb = vblist; 1838 struct appl_varbind *vblist) 1850 for (vb = vblist; vb != NULL; vb = vb->av_next) { 1292 appl_response(struct appl_backend *backend, int32_t requestid, enum appl_error error, int16_t index, struct appl_varbind *vblist) argument 1836 appl_pdu_log(struct appl_backend *backend, enum snmp_pdutype pdutype, int32_t requestid, uint16_t error, uint16_t index, struct appl_varbind *vblist) argument
|
/openbsd-current/lib/libagentx/ |
H A D | ax.c | 438 struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) 449 if (ax_pdu_add_varbindlist(ax, vblist, nvb) == -1) 457 struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) 463 if (ax_pdu_add_varbindlist(ax, vblist, nvb) == -1) 557 struct ax_varbind *vblist, size_t nvb) 568 if (ax_pdu_add_varbindlist(ax, vblist, nvb) == -1) 1149 struct ax_varbind *vblist, size_t nvb) 1155 temp = (uint16_t) vblist[i].avb_type; 1161 if (ax_pdu_add_oid(ax, &(vblist[i].avb_oid), 0) == -1) 1163 switch (vblist[ 437 ax_indexallocate(struct ax *ax, uint8_t flags, uint32_t sessionid, struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) argument 456 ax_indexdeallocate(struct ax *ax, uint32_t sessionid, struct ax_ostring *context, struct ax_varbind *vblist, size_t nvb) argument 555 ax_response(struct ax *ax, uint32_t sessionid, uint32_t transactionid, uint32_t packetid, uint32_t sysuptime, uint16_t error, uint16_t index, struct ax_varbind *vblist, size_t nvb) argument 1148 ax_pdu_add_varbindlist(struct ax *ax, struct ax_varbind *vblist, size_t nvb) argument [all...] |
/openbsd-current/usr.bin/snmp/ |
H A D | snmp.c | 256 snmp_set(struct snmp_agent *agent, struct ber_element *vblist) argument 263 SNMP_C_SETREQ, arc4random() & 0x7fffffff, 0, 0, vblist) == NULL) { 265 ober_free_elements(vblist);
|
H A D | snmpc.c | 1390 struct ber_element *varbind = NULL, *vblist = NULL; local 1560 if (vblist == NULL) 1561 vblist = varbind; 1564 return vblist;
|
/openbsd-current/regress/usr.sbin/snmpd/ |
H A D | snmp.c | 667 struct ber_element *vblist, *prev = NULL; local 671 if ((vblist = prev = ober_add_sequence(NULL)) == NULL) 681 return vblist;
|