[AGENT++] Unexpected request type for SNMP set

David Nedde dnedde at integralaccess.com
Wed Apr 27 23:28:49 CEST 2005


Hi,

I'm trying to detect a request type of sNMP_PDU_SET in my process request loop
so that I can save off the persistent mibs if there is a set operation.  When I
do a set operation from the snmp client though, the req->get_type() is
sNMP_PDU_RESPONSE instead of sNMP_PDU_SET.  Am I doing something wrong here?

Thanks,

David Nedde

--

Request* req = reqList->receive(0);
if ( req )
{
    mib->process_request(req);

    if ( req->get_type() == sNMP_PDU_SET )
    {
        mib->save_all();
    }
}




More information about the AGENTPP mailing list