Re: MSG_ERRQUEUE in socket recvmsg ?

Damjan Jovanovic <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <CAJm2B-=eOeOdEq6suiGVvKdOh9BEBa7+F5qJkwMq7XFmuv1zhQ@mail.gmail.com>
On Tue, Nov 26, 2024 at 1:37 PM Kurt Jaeger <[email protected]> wrote:

> Hello,
>
> there's a tool called tracepath (similar to traceroute) and some
> implementation in python:
>
> https://github.com/keiichishima/pytracepath
>
> It depends on recv(2) having some MSG_ERRQUEUE flag.
>
> Does anyone know if that is being worked on or if there's
> a reason that FreeBSD does not have that flag ?
>
> Thanks!
>
> --
> [email protected]         +49 171 3101372                  Now what ?
>
>
It looks like pytracepath not only uses that non-standard flag to enable
reporting of errors for some optional purpose, but relies on the specific
format of those errors, such as the embedded IP addresses, to implement its
core functionality.

That tool is completely locked into Linux.

FreeBSD's traceroute is implemented using raw sockets instead.

Regards
Damjan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.