From owner-freebsd-hackers Tue Aug 26 15:42:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA13785 for hackers-outgoing; Tue, 26 Aug 1997 15:42:12 -0700 (PDT) Received: from iafnl.es.iaf.nl (uucp@iafnl.es.iaf.nl [195.108.17.20]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA13776 for ; Tue, 26 Aug 1997 15:42:01 -0700 (PDT) Received: by iafnl.es.iaf.nl with UUCP id AA29825 (5.67b/IDA-1.5 for hackers@FreeBSD.ORG); Wed, 27 Aug 1997 00:42:15 +0200 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.5/8.6.12) id XAA03122; Tue, 26 Aug 1997 23:46:55 +0200 (MET DST) From: Wilko Bulte Message-Id: <199708262146.XAA03122@yedi.iaf.nl> Subject: Re: UDP "to" address? To: skynyrd@opus.cts.cwu.edu (Chris Timmons) Date: Tue, 26 Aug 1997 23:46:55 +0200 (MET DST) Cc: aledm@routers.co.uk, hackers@FreeBSD.ORG In-Reply-To: from "Chris Timmons" at Aug 26, 97 01:14:14 pm X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Chris Timmons wrote... > > 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. Which incedently is also available as a port ... > -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. _ ____________________________________________________________________ | / o / / _ Bulte email: wilko@yedi.iaf.nl http://www.tcja.nl/~wilko |/|/ / / /( (_) Arnhem, The Netherlands - Do, or do not. There is no 'try' ----------------------------------------------------------------------Yoda