Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 1997 13:14:14 -0700 (PDT)
From:      Chris Timmons <skynyrd@opus.cts.cwu.edu>
To:        Aled Morris <aledm@routers.co.uk>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: UDP "to" address?
Message-ID:  <Pine.BSF.3.95.970826131258.24610B-100000@opus.cts.cwu.edu>
In-Reply-To: <Pine.BSF.3.91.970826134032.21490D-100000@ns.uk.peer.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970826131258.24610B-100000>