>>>>> On Wed, 15 Jun 2005 20:38:48 -0700 (PDT), Mihir Lala <[EMAIL PROTECTED]> 
>>>>> said:

Mihir> What I'd like to do is to get an "Unknown OID" in the second case;
Mihir> basically having read_objid() return a failure.

Mihir> Is this possible? 

Mihir> I am trying to write a trap receiver application, that can filter traps
Mihir> (drop them) if they are coming from an enterprise (or MIB) that is not
Mihir> loaded into this application.

No...  It's not.  All OIDs are completely legal, even if you can't
translate them into a name.  It'd be better to look for
enterprises.NUMBER in a regular expression or something and drop
anything did wasn't a number.

-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to