From owner-freebsd-net@FreeBSD.ORG Mon Jan 19 03:07:31 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 814A816A4CE for ; Mon, 19 Jan 2004 03:07:31 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 172A443D3F for ; Mon, 19 Jan 2004 03:07:30 -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 i0JB7PCf091263 for ; Mon, 19 Jan 2004 12:07:26 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: net@freebsd.org From: Poul-Henning Kamp Date: Mon, 19 Jan 2004 12:07:25 +0100 Message-ID: <91262.1074510445@critter.freebsd.dk> Subject: 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 11:07:31 -0000 Simple question: Very simple UDP server daemon. Many clients (connect(2)'ing a socket for each is not an option) Multihomed machine. What's the simple trick to replying with the same source-IP as the client used as destination-IP ? Notice I said "simple", monitoring the routetable or polling the interface configuration does not count as "simple". It seems to me that if there is no simple way to do this, it's about time we added it... As I see it, we need recvfromto() and sendtofrom(). Any takers ? Poul-Henning -- 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.