RFC: fix clientaddr for 5.8

Bill Fenner <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAF4SogbXeEKVY+8+CtgzWXS0L9sxAThe56zWP49HGhU_sy8iiA@mail.gmail.com>
I've committed the following fix to the 5.7-patches branch:

https://sourceforge.net/p/net-snmp/code/ci/3defab66a7aee60ba582a8254412abd2e630c321/

It turns out that when you specify a clientaddr, the steps the function
takes are:

- zero out addr_pair
- store the remote address in addr_pair
- lookup the clientaddr
- zero out addr_pair
- store the clientaddr in addr_pair

The second zeroing out (added in cea974008da30de8d39a1f8ede7189265d93d598)
results in the remote address being 0.0.0.0, which results in simply
getting an error from sendto because you can not send to 0.0.0.0.

I'd like to merge this to master so that sessions using clientaddr work in
the 5.8 release.

Thanks,
  Bill

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.