Subject: Re: dhcpd(8) _cannot_ be completely disabled on an interface
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Chris Jones <chris@cjones.org>
List: tech-net
Date: 01/07/2002 14:56:01
--GZVR6ND4mMseVXL/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 07, 2002 at 04:03:43PM -0500, der Mouse wrote:

> I take it you mean "source hardware _address_", ie, MAC address, here.
>=20
> > doesn't dhcpd need to know that in order to send the reply?
> > and won't it need to use a bpf in order to do so?
>=20
> Not necessarily.  It is likely enough to install an ARP entry for the
> MAC address given and the IP address assigned to that client (which can
> be done with a routing socket), and then send the packet as a normal
> UDP packet.

Sometimes, the DHCPOFFER message needs to be sent broadcast back to
the client.  In other words, the dest IP address is 0xffffffff, and
the dest MAC address is the client's.  I don't think you can do this
with UDP.

But I guess you could do it with a raw IP socket.  I've never used one
of those, though.

Chris

--=20
---------------------------------------------------- chris@cjones.org
Chris Jones                                          Mad scientist at large
  www.netbsd.org www.postgresql.org www.schemers.org www.python.org

--GZVR6ND4mMseVXL/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjw6GXEACgkQDPY2T8RzaD8UAgCgjam/VhREfQ6sY5RKApaRce3n
nvQAnRR1a2ojtSwwVmD1Vk+rzeucKhCe
=mR+n
-----END PGP SIGNATURE-----

--GZVR6ND4mMseVXL/--