RE: trap pdu forwarding [was Re: File Descriptor Event Management]

This is a discussion on RE: trap pdu forwarding [was Re: File Descriptor Event Management] within the SNMP Coders forums, part of the Networking and Network Related category; On Fri, 2005-02-25 at 15:56, Olsson, Sten wrote: > I assume you can specify the protocol to ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2005
Dave Shield
 
Posts: n/a
Default RE: trap pdu forwarding [was Re: File Descriptor Event Management]

On Fri, 2005-02-25 at 15:56, Olsson, Sten wrote:
> I assume you can specify the protocol to use too? TCP/UDP?


Yes.
The destination is specified using the usual
protocol:host:port
syntax, so has the same range
of valid destination addresses.


> I think what it was is the forward function was not available back
> when I was writing this code (couple years back).


Probably depends exactly when you looked at this (and which version
of the code). Checking the logs, it seems that I added this feature
in June 2003, so it was probably first included in v5.1.


> How does one receive the PDU on the other side?


The usual "snmp_read" approach - e.g. by running another snmptrapd
(or similar standard trap receiver). The whole idea was that this
should be as standard as possible.


> I may just be able to put this PDU reception code into my management app
> in place of what I currently have (pack/unpack). This would be good.
> Can you point me to the code that does this?


Have a look at apps/snmptrapd.c:main()
In particular, the "while (running) { ... }" loop.

Dave



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0