Date: Sun, 16 Apr 2017 06:48:28 +0700
From: Robert Elz <[email protected]>
Message-ID: <[email protected]>
| I suspect the IP_RECVDSTADDR setsockopt()
Actually, more probably IP_PKTINFO as that's the one named uses for IPv6.
Either would do for the purpose of determining the incoming address of a
UDP datagram, so the reply can be sent from the correct src addr, but
the interface identifier returned by IP_PKTINFO might be needed to make views
work (that is, even if sent to an external address, a packet received on
an internal interface is probably shown the internal view, not the external
one.)
kre