Hi
Snmptrapd when started with "%b" as format specification, prints PDU
source address which is of form <protocol>: [<Ip Addr>]:<port no>.
So, as snmptrapd handles this "%b" option, snmptrapd code walk might
help you.
Regards,
Suresh.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mirko
Viviani
Sent: Wednesday, July 04, 2007 6:09 PM
To: [email protected]
Subject: trap sender ip
Hi to everybody.
I'm just writing my own trap receiver, having "snmptrapd" code as help.
How can I obtain the sender ip address of the incoming trap?
Thanks in advance.
--
-- Mirko Viviani --
GPG-PGP Public Key: 0xE4E8FAB1
Fingerprint: 14D3 A373 E926 7737 DF32 502B A4C4 1CE2 E4E8 FAB1
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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