From owner-freebsd-hackers Tue Aug 26 13:14:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA04762 for hackers-outgoing; Tue, 26 Aug 1997 13:14:26 -0700 (PDT) Received: from pahtoh.cwu.edu (root@pahtoh.cwu.edu [198.104.65.27]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA04754 for ; Tue, 26 Aug 1997 13:14:17 -0700 (PDT) Received: from opus.cts.cwu.edu (skynyrd@opus.cts.cwu.edu [198.104.92.71]) by pahtoh.cwu.edu (8.8.5/8.8.5) with ESMTP id NAA16820; Tue, 26 Aug 1997 13:14:14 -0700 (PDT) Received: from localhost (skynyrd@localhost) by opus.cts.cwu.edu (8.8.6/8.8.5) with SMTP id NAA24880; Tue, 26 Aug 1997 13:14:14 -0700 (PDT) Date: Tue, 26 Aug 1997 13:14:14 -0700 (PDT) From: Chris Timmons To: Aled Morris cc: hackers@FreeBSD.ORG Subject: Re: UDP "to" address? In-Reply-To: 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 Use bpf directly, like dhcpd does? I'd go looking for the isc dhcpd implementation at www.isc.org. The code is well written and easy to follow. -Chris On Tue, 26 Aug 1997, Aled Morris wrote: > 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 >