Lines Matching refs:req
1532 snmp_parse_get_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
1536 for (i = 0; i < req->nbindings; i++) {
1537 if (asn_compare_oid(&req->bindings[i].var,
1553 snmp_parse_getbulk_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
1557 if (req->error_status > (int32_t) resp->nbindings) {
1562 for (N = 0; N < req->error_status; N++) {
1563 if (asn_is_suboid(&req->bindings[N].var,
1570 for (R = N , r = N; R < (int32_t) req->nbindings; R++) {
1571 for (M = 0; M < req->error_index && (r + M) <
1573 if (asn_is_suboid(&req->bindings[R].var,
1590 snmp_parse_getnext_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
1594 for (i = 0; i < req->nbindings; i++) {
1595 if (asn_is_suboid(&req->bindings[i].var, &resp->bindings[i].var)
1611 snmp_parse_resp(struct snmp_pdu *resp, struct snmp_pdu *req)
1613 if (resp == NULL || req == NULL)
1616 if (resp->version != req->version) {
1631 if (resp->nbindings != req->nbindings && req->type != SNMP_PDU_GETBULK){
1636 switch (req->type) {
1638 return (snmp_parse_get_resp(resp,req));
1640 return (snmp_parse_getbulk_resp(resp,req));
1642 return (snmp_parse_getnext_resp(resp,req));