From owner-freebsd-current@FreeBSD.ORG Tue Jun 7 03:46:21 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A281816A41C for ; Tue, 7 Jun 2005 03:46:21 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 674EB43D4C for ; Tue, 7 Jun 2005 03:46:21 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j573kK0o000338 for ; Mon, 6 Jun 2005 20:46:20 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j573kKdB000337 for freebsd-current@freebsd.org; Mon, 6 Jun 2005 20:46:20 -0700 Date: Mon, 6 Jun 2005 20:46:20 -0700 From: Brooks Davis To: freebsd-current@freebsd.org Message-ID: <20050607034620.GA32718@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Subject: HEADSUP: OpenBSD dhclient incoming X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2005 03:46:21 -0000 --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm about to start importing the OpenBSD dhclient and required support in /etc. I will unhook dhclient from the build while I work so there shouldn't be much breakage for most people. The OpenBSD version is a cut down version of the ISC client. The major changes are that there is one process per interface (actually two since it does priv-sep) and that the processes automatically exit when the link goes down. This means that dhclient needs to be started when the interface gets carrier. In OpenBSD this is handled by ifstated. I've chosen to advertise link state events to devd and handle it there instead. Since the interface configuration process had to change to accommodate this, I've taken the opportunity to streamline it. There are now less paths by which and interface will be configured. First, /etc/rc.d/dhclient is no longer a start script and simply exists to start and stop individual dhclients. Second, /etc/rc.d/netif now handles both DHCP and non-DHCP interfaces. As a bonus, it can handle interface which are both so the following is a valid configuration: ifconfig_fxp0=3D"DHCP media 100baseTX" The final big change is the deletion of most of /etc/pccard_ether. It now calls /etc/rc.d/netif start to handle 90% of it's work. Some ipv6 and routing configuration for non-DHCP interfaces is still there, but most of the code that duplicated code in /etc/network.subr is gone. In the process a few things have changed. First, extra arguments are now an error and are not passed to ifconfig. Second the pccard_ifconfig variable is only used as a default value for interfaces that are on the removable_interfaces list, but do not have an ifconfig_ variable. Third, interfaces must be on the removable_interfaces list for pccard_ether to work. Partial support for WPA is included and I'm working with Sam to finish it for the release. I'll send an all clear once I'm fairly confident things are working again. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCpRiLXY6L6fI4GtQRArILAKDiB9UfdZkNozIP7vssglnFopMA0gCePW1r hrr2o/8GfWw+QUFOp3ihzcY= =HgE/ -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--