Re: trap listener

th exterit <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Nevermind, I am being an idiot.  I don't need to use libpcap since traps are
being broadcast.

On Wed, Feb 2, 2011 at 3:40 PM, th exterit <[email protected]> wrote:

> After a little digging, it seems as though I need to look at snmp_read()
> which calls snmp_parse().  snmp_parse() is a static function so can't call
> it directly, and it looks like it passes the parsed pdu to a call back
> function.  I have no need for snmp_read() since I already have the packets
> handed to me from libpcap.  Is there an alternative that I have missed?
>
> Note, I am not writing a daemon to accept traps, I am 'sniffing' traps from
> a local LAN.
>
> Thanks for any help.
>
>
> On Wed, Feb 2, 2011 at 10:52 AM, th exterit <[email protected]> wrote:
>
>> Hi.
>>
>> I am currently writing a trap listener.  Basically traps are being sent to
>> 255.255.255.255 on port 162 and I am 'sniffing' the traps using libpcap
>> which was simple enough.  But now I have raw snmp trap packets and I do not
>> fancy learning how to parse these myself.  Are there a set of simple
>> functions I can use to extract information from the variable bindings?  I
>> have had a look at the tutorial section on the web site but can't see
>> anything specific for what I need.
>>
>> Thanks,
>> T
>>
>
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.