On Apr 16, 8:23am, Robert Elz wrote: } } | 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.)
There are issues with IP_PKTINFO on NetBSD, see 48166 and 48280. }-- End of excerpt from Robert Elz