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

From: Alexey Kuznetsov (kuznet@ms2.inr.ac.ru)
Date: Wed Aug 01 2001 - 17:53:01 EST


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/



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:11 EST