From owner-freebsd-hackers Tue Aug 26 05:43:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA08151 for hackers-outgoing; Tue, 26 Aug 1997 05:43:36 -0700 (PDT) Received: from ns.uk.peer.net ([194.117.157.5]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id FAA08140 for ; Tue, 26 Aug 1997 05:42:53 -0700 (PDT) Received: (from aledm@localhost) by ns.uk.peer.net (8.6.12/8.6.12) id NAA21647; Tue, 26 Aug 1997 13:42:51 +0100 Date: Tue, 26 Aug 1997 13:42:45 +0100 (BST) From: Aled Morris X-Sender: aledm@ns.uk.peer.net To: hackers@freebsd.org Subject: UDP "to" address? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Does anyone have a way of recovering the address to which a UDP packet has been addressed? recvfrom(2) only returns the source address and getpeername(2) is no use for UDP. The problem I have is a multi-homed machine which needs to know the address the client has used to reach it. Aled -- tel +44 973 207987 O- aledm@routers.co.uk