From owner-freebsd-current@FreeBSD.ORG  Thu Jun 16 04:42:54 2005
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
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 31F7416A41F
	for <freebsd-current@freebsd.org>; Thu, 16 Jun 2005 04:42:54 +0000 (GMT)
	(envelope-from bsd@dino.sk)
Received: from bsd.dino.sk (bsd.dino.sk [213.215.72.60])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B486A43D4C
	for <freebsd-current@freebsd.org>; Thu, 16 Jun 2005 04:42:52 +0000 (GMT)
	(envelope-from bsd@dino.sk)
Received: from home.dino.sk ([213.215.74.194]) (AUTH: LOGIN milan)
	by bsd.dino.sk with esmtp; Thu, 16 Jun 2005 06:44:28 +0200
	id 000001CE.42B103AC.00008817
From: Milan Obuch <bsd@dino.sk>
To: freebsd-current@freebsd.org
Date: Thu, 16 Jun 2005 06:42:40 +0200
User-Agent: KMail/1.8
References: <20050615061009.GA11914@odin.ac.hmc.edu>
	<200506151140.56908.current@dino.sk>
	<20050615.211929.103236830.imp@bsdimp.com>
In-Reply-To: <20050615.211929.103236830.imp@bsdimp.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200506160642.41790.bsd@dino.sk>
X-Mailman-Approved-At: Thu, 16 Jun 2005 11:35:58 +0000
Subject: Re: 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
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Jun 2005 04:42:54 -0000

On Thursday 16 June 2005 05:19, M. Warner Losh wrote:
> In message: <200506151140.56908.current@dino.sk>
>
>             Milan Obuch <current@dino.sk> writes:
> : On Wednesday 15 June 2005 08:30, M. Warner Losh wrote:
> : ...
> :
> : > ifconfig fxp0 1.2.3.4/24
> : >
> : > will kill dhclient every time for me.
> :
> : Well, I would consider this a feature, not a bug, and a convenient one.
> : It happens on me from time to time that I have DHCP configured on one
> : interface, then after move to another place I issue 'ifconfig fxp0 ....'
> : and some time after network suddenly stops working due to dhclient
> : running and deleting my manually entered setting.
> : Where there also 'ifconfig fxp0 DHCP' for consistency...
> : I know this could be easily done with some scripting, but I could not
> : resist :)
>
> The problem that I have with it is that if I then unplug and plug the
> cable in (say press-ganging my laptop into service to test static IP
> addresses) causes dhclient to run again.  I'm not sure that's a bug,
> but it is a behavior change from the old dhclient.  It is doing what I
> told it to do, but much more enthusiastically.  I'm not sure what to
> suggest to fix it, however...
>

I am not sure I got your point.

I think unplugging and plugging network cable in should not cause any change 
whether dhclient runs or interface is statically configured, nor should it 
depend on whether interface is configured from boot script or manually.
As an alternative, from user's perspective equal, would be kill dhclient on 
unplugging and starting it again on plugging cable, but this looks to me as 
unnecessary complication.

I did not test this behaviour on my -current yet, though. Maybe I do not know 
all events coming into play here, either.

Milan