Thomas Anders wrote:
> Vladislav Bogdanov wrote:
>> I attach the patch which corrects this behaviour for linux
> 
> What's the relationship/difference between your patch and the one in the 
> patches
> tracker:
> 
> [ 1509943 ] send udp replies from the ip alias they have been received
> http://sourceforge.net/tracker/index.php?func=detail&aid=1509943&group_id=12694&atid=312694

Hmm, looks like both patches have similar functionality but with a bit 
different approach. That patch doesn't exist when I decided to solve 
that problem :). But there is always some time between decision and 
implementation, especially when implementing it in spare time. OK, two 
is better then zero, anyway :)

It doesn't matter, which of patches will be included, I think both are 
acceptable. Main difference is that patch in tracker has 
netsnmp_udp_{send,recv} functions redefined (so it has some code 
duplication) while mine replaces recvfrom and sendto functions with 
wrappers around recvmsg and sendmsg.

And, about the comments to above link, I think it should be default and 
unconditional behaviour of any UDP server implementation to send replies 
from address it received requests on. And it is not good that 
implementation of this task is very OS-dependent :(

--
Vladislav

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to