Zhouhuai Shen wrote: > Hi Jan, > > Thanks a lot for the patch. It fixed the agent address inside the UDP > payload. > > The '[snmp] clientaddr 192.168.1.1' in my snmpd.conf doesn't fix > the IP address in the UDP packet in my case. For example, the > outgoing interface IP for the trap is 172.16.1.1, but I expect the ip > address in the UDP packet of the trap to be 192.168.1.1. Even if I > configured with '[snmp] clientaddr 192.168.1.1', I can see that the > source IP is still 172.16.1.1. I wonder it might be the snmp.conf file > is not defined. > > Is there a easy way to get around with this? There was bug, which caused snmpd to ignore the clientaddr option in the config file, but this should be already fixed by patch #1775124 - please try latest version of net-snmp, i.e. net-snmp-5.4.2.rc1. You snmpd.conf looks OK, snmp.conf is not necessary.
Jan ------------------------------------------------------------------------- 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
