Lines Matching defs:pdu
1455 struct snmp_pdu *pdu, int32_t maxcount)
1460 if (pdu == NULL || afunc == NULL)
1474 if ((vfunc != NULL) && (vfunc(snmptoolctx, pdu, obj) < 0)) {
1478 if ((abind = afunc(pdu, obj)) < 0) {
2001 snmp_output_err_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu)
2006 if (pdu == NULL || (pdu->error_index > (int32_t) pdu->nbindings)) {
2020 &(pdu->bindings[pdu->error_index - 1])) > 0))
2023 asn_oid2str_r(&(pdu->bindings[pdu->error_index - 1].var), buf);
2028 if ((pdu->error_status > 0) && (pdu->error_status <=
2030 fprintf(stdout, "%s\n", error_strings[pdu->error_status].str);
2039 snmp_output_resp(struct snmp_toolinfo *snmptoolctx, struct snmp_pdu *pdu,
2051 while (i < pdu->nbindings) {
2053 &(pdu->bindings[i].var))))
2059 &(pdu->bindings[i])) > 0))
2062 asn_oid2str_r(&(pdu->bindings[i].var), p);
2066 error |= snmp_output_numval(snmptoolctx, &(pdu->bindings[i]),