On Mon, 2005-05-23 at 17:27, Rajeswari Natarajan wrote:
> Hi ,
> Can you please let us know ,how to get peer information when receiving
> trap.

The address information is held in the two PDU fields
     "pdu->transport_data"
and
     "pdu->transport_data_length"

It can be interpreted using the transport address formatting API:

    transport->f_fmtaddr(transport, pdu->transport_data,
                                    psu->transport_data_length);


where "transport" is the second parameter in the (5.2) trap
handling API, that Wes mentioned.

Dave


> We use net-snmp 5.0.19 to build the Snmp manager.
> 
> Thanks in advance,
> Rajeswari
> 
> -----Original Message-----
> From: Robert Story [mailto:[EMAIL PROTECTED]
> Sent: Saturday, May 21, 2005 9:33 AM
> To: Rajeswari Natarajan
> Cc: [email protected]; Vijaya Mani
> Subject: Re: Peername in snmp-seesion object
> 
> 
> On Fri, 20 May 2005 15:27:52 -0700 Rajeswari wrote:
> RN>      We use net-snmp 5.0.9 version to develop our snmp
> manager.When the
> RN>      trap
> RN> is received ,looks like peername is snmp-session
> RN> object is not getting populated.Has any one run across this
> problem? .If so
> RN> do let me know.
> 
> The session structure is used for sending, I don't think any of the
> structures
> are updates for receiving..
> 
> -- 
> NOTE: messages sent directly to me, instead of the lists, will be
> deleted
>       unless they are requests for paid consulting services.
> 
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
> Archive:
> <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
> 
> You are lost in a twisty maze of little standards, all different. 
> 



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to