Subject: Re: Flag to exclude an interface from INADDR_ANY?
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-net
Date: 01/03/2002 13:09:14
>> Also, it would be nice if you could ask the kernel what address an
>> incoming UDP packet had "connected" with.

> You can.

> You have to set a socket option and then use recvmsg(2). You get an
> additional sockaddr in the control structure.  I can never remember
> the name of the option, or I'd point you right at it.

UTSLing makes me think it's IP_RECVDSTADDR, at level IPPROTO_IP.
Search for RECVDSTADDR in /sys/netinet if you want to see for yourself.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B