]> git.kaiwu.me - nginx.git/commit
Set UDP datagram source address (ticket #1239).
authorRoman Arutyunyan <arut@nginx.com>
Tue, 11 Apr 2017 13:41:53 +0000 (16:41 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 11 Apr 2017 13:41:53 +0000 (16:41 +0300)
commit05841adfb2e5d50dee066b6f92cbb95b78c5b725
tree5c719a5c7ae8d897244cfa94639cf65337342fba
parent62b20ce87ae9dda51010742523ccad9650380f11
Set UDP datagram source address (ticket #1239).

Previously, the source IP address of a response UDP datagram could differ from
the original datagram destination address.  This could happen if the server UDP
socket is bound to a wildcard address and the network interface chosen to output
the response packet has a different default address than the destination address
of the original packet.  For example, if two addresses from the same network are
configured on an interface.

Now source address is set explicitly if a response is sent for a server UDP
socket bound to a wildcard address.
auto/unix
src/os/unix/ngx_udp_sendmsg_chain.c