From owner-freebsd-net@FreeBSD.ORG Mon Jan 19 12:45:58 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A02F16A4CE for ; Mon, 19 Jan 2004 12:45:58 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id D20A743D53 for ; Mon, 19 Jan 2004 12:45:56 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0JKjnCf098635; Mon, 19 Jan 2004 21:45:54 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "Bjoern A. Zeeb" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 19 Jan 2004 20:44:34 GMT." Date: Mon, 19 Jan 2004 21:45:49 +0100 Message-ID: <98634.1074545149@critter.freebsd.dk> cc: net@FreeBSD.ORG cc: Garrett Wollman Subject: Re: Multihomed UDP server X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2004 20:45:58 -0000 In message , "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@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.