Hi!

> Am 11.05.2021 um 12:38 schrieb Peter Jeremy <pe...@rulingia.com>:
> 
> On 2021-May-08 19:05:56 +0200, "Patrick M. Hausen" <hau...@punkt.de> 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 datagrams.
> ...
>> Their code in question is here:
>> https://github.com/AdguardTeam/dnsproxy/blob/1163404e605c3dfbeab360fc3540fc290f61a321/proxyutil/udp_unix.go#L47
> 
> So, they say that they retrieve "the net interface IP the packet was
> sent to (dst addr) from the socket's OOB data" and I agree that's what
> the referenced code does.  I hadn't heard of that behaviour before and
> went digging...

Thank you. I received some code with internal debugging added from the
AdGuard core team and will try that today or tomorrow. If I read the quote
from the documentation correctly, on possible explanation would be them
calling recvmsg() but forgetting to setsockopt()?

Kind regards,
Patrick
--
punkt.de GmbH
Patrick M. Hausen
.infrastructure

Kaiserallee 13a
76133 Karlsruhe

Tel. +49 721 9109500

https://infrastructure.punkt.de
i...@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to