Lines Matching defs:pdu
1458 struct snmp_pdu *pdu, int32_t maxcount)
1463 if (pdu == NULL || afunc == NULL)
1477 if ((vfunc != NULL) && (vfunc(snmptoolctx, pdu, obj) < 0)) {
1481 if ((abind = afunc(pdu, obj)) < 0) {
2004 snmp_output_err_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu)
2009 if (pdu == NULL || (pdu->error_index > (int32_t) pdu->nbindings)) {
2023 &(pdu->bindings[pdu->error_index - 1])) > 0))
2026 asn_oid2str_r(&(pdu->bindings[pdu->error_index - 1].var), buf);
2031 if ((pdu->error_status > 0) && (pdu->error_status <=
2033 fprintf(stdout, "%s\n", error_strings[pdu->error_status].str);
2042 snmp_output_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu,
2054 while (i < pdu->nbindings) {
2056 &(pdu->bindings[i].var))))
2062 &(pdu->bindings[i])) > 0))
2065 asn_oid2str_r(&(pdu->bindings[i].var), p);
2069 error |= snmp_output_numval(snmptoolctx, &(pdu->bindings[i]),