Hi Jan,
Thanks a lot for your help.
I have put the '[snmp] clientaddr' option to set source address of UDP packet
with the trap as in the following in my snmpd.conf file:
[snmp]
clientaddr 192.168.1.1
[snmpd]
.....(The rest of commands in my snmpd.conf file)
But when I capture the trap packet, it still shows the IP address of the
outgoing interface. Did i do something wrong in my config file?
Best regards,
Henry
> Date: Fri, 15 Aug 2008 15:25:39 +0200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: [email protected]
> Subject: Re: Is it possible to set the L3 source interface IP address in a
> trap packet?
>
> Zhouhuai Shen wrote:
> > Hi all,
> >
> > Is it possible to set the layer 3 source IP address for a trap packet to
> > a certain interface on the device, other than the outgoing interface?
> >
> > I have tried to set the member localname of the netsnmp_session data
> > structure to the desired interface address in the function
> > send_trap_to_sess() in agent_trap.c, but it doesn't work. The localname
> > in the function is null, I suppose the source interface for the trap
> > packet will be filled up later on.
> >
> > Can anyone please give me some help?
>
> You can use '[snmp] clientaddr' option to set source address of UDP
> packet with the trap and with patch [1] you can use 'v1trapaddress'
> option to set address of the agent sent inside the trap.
>
> [1]:
> http://sourceforge.net/tracker/index.php?func=detail&aid=1916840&group_id=12694&atid=312694
>
> Jan
_________________________________________________________________
Find singles in your area with Match.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fmatch%2Enz%2Emsn%2Ecom%2Fchannel%2Findex%2Easpx%3Ftrackingid%3D1043416&_r=WL_EMAL_TAG&_m=EXT
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders