Home
last modified time | relevance | path

Searched refs:nvarbind (Results 1 – 6 of 6) sorted by relevance

/openbsd-src/usr.sbin/snmpd/
H A Dapplication_blocklist.c54 appl_blocklist_response(size_t nvarbind) in appl_blocklist_response() argument
59 if (responsesz < nvarbind) { in appl_blocklist_response()
60 if ((tmp = recallocarray(response, responsesz, nvarbind, in appl_blocklist_response()
65 responsesz = nvarbind; in appl_blocklist_response()
68 for (i = 0; i < nvarbind; i++) in appl_blocklist_response()
69 response[i].av_next = i + 1 == nvarbind ? in appl_blocklist_response()
H A Dapplication_agentx.c874 size_t i, nvarbind; in appl_agentx_response() local
876 nvarbind = pdu->ap_payload.ap_response.ap_nvarbind; in appl_agentx_response()
877 if ((response = calloc(nvarbind, sizeof(*response))) == NULL) { in appl_agentx_response()
887 for (i = 0; i < nvarbind; i++) { in appl_agentx_response()
888 response[i].av_next = i + 1 == nvarbind ? in appl_agentx_response()
/openbsd-src/regress/usr.sbin/snmpd/
H A Dsnmp.c212 struct varbind *varbindlist, size_t nvarbind) in snmpv2_get() argument
215 varbindlist, nvarbind); in snmpv2_get()
220 struct varbind *varbindlist, size_t nvarbind) in snmpv2_getnext() argument
223 varbindlist, nvarbind); in snmpv2_getnext()
228 int32_t maxrep, struct varbind *varbindlist, size_t nvarbind) in snmpv2_getbulk() argument
231 maxrep, varbindlist, nvarbind); in snmpv2_getbulk()
237 struct varbind *varbindlist, size_t nvarbind) in snmpv2_build() argument
244 snmp_pdu(request, requestid, error, index, varbindlist, nvarbind)); in snmpv2_build()
254 struct varbind *varbindlist, size_t nvarbind) in snmpv2_send() argument
265 varbindlist,nvarbind); in snmpv2_send()
[all …]
H A Dagentx.c2400 size_t nvarbind) in agentx_get_handle() argument
2432 if ((pool = calloc(nvarbind, sizeof(*pool))) == NULL) in agentx_get_handle()
2434 memcpy(pool, varbind, nvarbind * sizeof(*pool)); in agentx_get_handle()
2451 for (j = 0; j < nvarbind; j++) { in agentx_get_handle()
2455 if (j == nvarbind) in agentx_get_handle()
2468 struct varbind *varbind, size_t nvarbind) in agentx_getnext_handle() argument
2500 if ((pool = calloc(nvarbind, sizeof(*pool))) == NULL) in agentx_getnext_handle()
2502 memcpy(pool, varbind, nvarbind * sizeof(*pool)); in agentx_getnext_handle()
2519 for (j = 0; j < nvarbind; j++) { in agentx_getnext_handle()
2568 uint8_t flags, int32_t sessionid, struct varbind *varbind, size_t nvarbind, in agentx_getbulk_handle() argument
[all …]
H A Dbackend.c3144 size_t n, nvarbind = nitems(ax_request), nout; in backend_getbulk_nonrep_zero_maxrep_one() local
3157 while (nvarbind > 0) { in backend_getbulk_nonrep_zero_maxrep_one()
3160 sessionid, ax_request, nvarbind, ax_response); in backend_getbulk_nonrep_zero_maxrep_one()
3162 nvarbind -= nout; in backend_getbulk_nonrep_zero_maxrep_one()
3194 size_t n, nvarbind = nitems(ax_request), nout; in backend_getbulk_nonrep_zero_maxrep_two() local
3207 while (nvarbind > 0) { in backend_getbulk_nonrep_zero_maxrep_two()
3210 sessionid, ax_request, nvarbind, ax_response); in backend_getbulk_nonrep_zero_maxrep_two()
3212 nvarbind -= nout; in backend_getbulk_nonrep_zero_maxrep_two()
3250 size_t n, nvarbind = nitems(ax_request), nout; in backend_getbulk_nonrep_one_maxrep_one() local
3263 while (nvarbind > 0) { in backend_getbulk_nonrep_one_maxrep_one()
[all …]
/openbsd-src/lib/libagentx/
H A Dagentx.c2670 size_t i, j, nvarbind = 0; local
2680 nvarbind++;
2692 if ((vbl = calloc(nvarbind, sizeof(*vbl))) == NULL) {
2736 axg->axg_packetid, 0, error, index, vbl, nvarbind) == -1) {