Re: sender source IP address on UDP socket bound to INADDR_ANY in golang

2021-05-16 Thread Lutz Donnerhacke
On Sun, May 16, 2021 at 09:18:55PM +1000, Peter Jeremy via freebsd-net wrote: > This is getting outside my expertise but my understanding is that > the idea behind using IPv4-mapped addressed is to simplify building > dual-stack applications, particularly during the early introduction > of IPv6. T

Re: sender source IP address on UDP socket bound to INADDR_ANY in golang

2021-05-16 Thread Peter Jeremy via freebsd-net
Hi Patrick, On 2021-May-14 23:40:04 +0200, "Patrick M. Hausen" wrote: >do you have some spare time and would you be so kind to look at our discussion >here: https://github.com/AdguardTeam/AdGuardHome/issues/3015 > >Andrey from the AdGuard team references this golang issue: >https://github.com/gol

Re: sender source IP address on UDP socket bound to INADDR_ANY in golang

2021-05-14 Thread Patrick M. Hausen
Hi Peter and everyone else following, > Am 12.05.2021 um 14:06 schrieb Peter Jeremy via freebsd-net > : > As I see it, the possibilities boil down to: > 1) The Go code isn't enabling IPPROTO_IP.IP_RECVDSTADDR on the socket. > 2) There's a FreeBSD kernel bug that mean setting IP_RECVDSTADDR > is

Re: sender source IP address on UDP socket bound to INADDR_ANY in golang

2021-05-12 Thread Peter Jeremy via freebsd-net
On 2021-May-11 13:40:44 +0200, "Patrick M. Hausen" wrote: >> Am 11.05.2021 um 12:38 schrieb Peter Jeremy : >> >> On 2021-May-08 19:05:56 +0200, "Patrick M. Hausen" wrote: >>> I am facing a problem that is perfectly explained by the semantics >>> of the socket interface for UDP, if one assumes th

Re: sender source IP address on UDP socket bound to INADDR_ANY in golang

2021-05-11 Thread Patrick M. Hausen
Hi! > Am 11.05.2021 um 12:38 schrieb Peter Jeremy : > > On 2021-May-08 19:05:56 +0200, "Patrick M. Hausen" wrote: >> I am facing a problem that is perfectly explained by the semantics >> of the socket interface for UDP, if one assumes that the application >> in question binds to INADDR_ANY and d

Re: sender source IP address on UDP socket bound to INADDR_ANY in golang

2021-05-11 Thread Peter Jeremy via freebsd-net
On 2021-May-08 19:05:56 +0200, "Patrick M. Hausen" wrote: >I am facing a problem that is perfectly explained by the semantics >of the socket interface for UDP, if one assumes that the application >in question binds to INADDR_ANY and does not specifically set the >sender address when sending datagr

sender source IP address on UDP socket bound to INADDR_ANY in golang

2021-05-08 Thread Patrick M. Hausen
Hi all, I am facing a problem that is perfectly explained by the semantics of the socket interface for UDP, if one assumes that the application in question binds to INADDR_ANY and does not specifically set the sender address when sending datagrams. In the case of a DNS server and an interface wit