[AGENT++] RE: agentx++win32master does not return all OIDs during walk

Samuel Lokshin slokshin at avtec.com
Thu Aug 11 16:57:06 CEST 2005


Frank,

I forgot to tell you, that also I had changed the agentx_pp_master.cpp file.
In the function Oidx ExtensionDLL::find_succ(const Oidx& oid, Request* req)
I commented checking (vbList.list[0].value.asnType == ASN_NULL)

Regards,
Sam

-----Original Message-----
From: Frank Fock [mailto:fock at agentpp.com]
Sent: Thursday, August 11, 2005 2:57 AM
To: Samuel Lokshin
Cc: agentpp at agentpp.org
Subject: Re: [AGENT++] RE: agentx++win32master does not return all OIDs
during walk


Hi Samuel,

I do not think that the fix is correct, because from my opinion it
causes an endless loop when access is denied to a table (or part
of it). The causing problem is, that some of the Win subagent DLLs
have many bugs. One of these bugs is that they do not handle
search regions correctly. A better place for a fix then, would be
the ExtensionDLL class, because this problem is specific to the
Win subagent DLLs.

Hope this helps.

Best regards,
Frank

Samuel Lokshin wrote:

>  
>
>> -----Original Message-----
>>From: 	Samuel Lokshin  
>>Sent:	Wednesday, August 10, 2005 7:58 PM
>>To:	'agentpp at agentpp.org'
>>Subject:	agentx++win32master does not return all OIDs during walk
>>
>>I think I found the solution.
>>    
>>
>	In the mib.cpp file 
>	in the function int Mib::next_access_control(Request* req, const MibEntryPtr entry, Oidx& oid)
>
>	I changed 
>
>		case AGENTPP_TABLE: 
>		case AGENTPP_COMPLEX:
>		case AGENTPP_PROXY: {
>			do {
>			  Oidx tmpoid(entry->find_succ(oid, req)); 
>			  if (tmpoid.len() <= 0) {
>	              oid = (oid < *entry->key()) ? *entry->key() : *entry->max_key();//this line was changed!!
>				return VACM_notInView;
>			  }
>
>	Please tell me if that it is the correct change.
>
>  
>
>>Thank you.
>>Sam
>>
>>
>>    
>>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/agentpp
>
>
>  
>


-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com





More information about the AGENTPP mailing list