Multihomed UDP server

Poul-Henning Kamp phk at
Mon Jan 19 12:45:58 PST 2004

In message <Pine.BSF.4.53.0401192035030.94399 at>, "Bjo
ern A. Zeeb" writes:

>You mean for FreeBSD or in ISBN 0-13-490012-X ?
>For FreeBSD it is man 4 ip:
>--- cite ---
>     If the IP_RECVDSTADDR option is enabled on a SOCK_DGRAM socket, the
>     recvmsg(2) call will return the destination IP address for a UDP data-
>     gram.  The msg_control field in the msghdr structure points to a buffer
>     that contains a cmsghdr structure followed by the IP address.  The
>     cmsghdr fields have the following values:
>--- cite ---

That really belongs on udp(4) more than ip(4)...

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the freebsd-net mailing list