]> git.ipfire.org Git - thirdparty/chrony.git/commit
socket: don't set interface for sent packets
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 May 2020 10:27:34 +0000 (12:27 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 14 May 2020 13:37:38 +0000 (15:37 +0200)
commite49aececceaa480799fe43fa1ccb1420c3dbe6d4
tree09880ff237684bb15553ad0117dc00ec6f603a1b
parent814b07c3a21ca93265a7d54589b3ca077b4068a6
socket: don't set interface for sent packets

With asymmetric routing (e.g. with BGP) it may not be possible to
respond to a request using the same interface. In such case, setting the
interface index in IP*_PKTINFO* causes the packet to be silently dropped
by the kernel.

Until we can predict if sending with the specified interface will
succeed, or provide only a hint, don't set the interface and leave it
to the kernel to select an interface.

This reverts commit 5fc7674e366f ("ntp: set interface index in
IP*_PKTINFO when responding").

Reported-by: Arkadiusz Miƛkiewicz <arekm@maven.pl>
socket.c