Re: Determining IP:port corresponding to an ICMP port unreachable

Alexey Kuznetsov (kuznet@ms2.inr.ac.ru)
Wed, 1 Aug 2001 02:53:01 -2000 (MSD)


Hello!

> >From my original message: "I'm able to retrieve the IP via recvmsg with the
> MSG_ERRQUEUE flag (and the IP_RECVERR sockopt), but the port that it gives
> me is bogus."

Sigh, please, send sample yet. It works here by some strange reason,
apparently, my applet is buggy. :-)

> extract the port and give it to me? It's obviously possible, since Winsock
> does it.**

Well, better ask those brave MS folks why they did this. :-)

Actually, please, check this again: I was not aware that nt posix env
break bsd api in such wicked way. This can be useful as a strong argument
in some curcumstances.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/