2014-06-18 2:38 GMT+02:00 Sam Roberts <[email protected]>:
>> But yes, I'm been searching and reading, and seems that there is no
>> way for the same in UDP (there is no way to know which real
>> destination IP the received datagram has arrived to).
>
> On Linux, check man 7 ip, particularly IP_RECVORIGDSTADDR and
> IP_PKTINFO. Kernel can give you that info. Whether you can enable and
> receive them with libuv's recvmsg wrapper, I have not looked.
>
> Also, if you are willing to just get general routing info, rather than
> the specific dst headers for a specific incoming packet, you can
> connect a socket to the src IP for the packet, and see what the local
> socket name is. Its kind of an old trick for finding what local IP
> would be used as src for a particular destination, but doesn't sound
> like what you want.

Interesting. Finally I can live without it (in my application) but
will consider your suggestion if I needed it later.

Thanks a lot.


-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to