Lines Matching defs:pdu
1456 struct snmp_pdu *pdu, int32_t maxcount)
1461 if (pdu == NULL || afunc == NULL)
1475 if ((vfunc != NULL) && (vfunc(snmptoolctx, pdu, obj) < 0)) {
1479 if ((abind = afunc(pdu, obj)) < 0) {
2002 snmp_output_err_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu)
2007 if (pdu == NULL || (pdu->error_index > (int32_t) pdu->nbindings)) {
2021 &(pdu->bindings[pdu->error_index - 1])) > 0))
2024 asn_oid2str_r(&(pdu->bindings[pdu->error_index - 1].var), buf);
2029 if ((pdu->error_status > 0) && (pdu->error_status <=
2031 fprintf(stdout, "%s\n", error_strings[pdu->error_status].str);
2040 snmp_output_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu,
2052 while (i < pdu->nbindings) {
2054 &(pdu->bindings[i].var))))
2060 &(pdu->bindings[i])) > 0))
2063 asn_oid2str_r(&(pdu->bindings[i].var), p);
2067 error |= snmp_output_numval(snmptoolctx, &(pdu->bindings[i]),