Re: MSG_ERRQUEUE in socket recvmsg ?

Kurt Jaeger <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>
Hi!

> > 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.

> 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.

Yes, I'm aware. But maybe someone is working on some MSG_ERRQUEUE ?

> FreeBSD's traceroute is implemented using raw sockets instead.

Yes, this forces it to have a root s-bit.

I've found a python traceroute code:

https://github.com/mihika09/Python-Traceroute

and will have a look at that.

-- 
[email protected]         +49 171 3101372                  Now what ?
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.