From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 12 11:00:11 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1E911065673 for ; Thu, 12 Jul 2012 11:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A9F518FC14 for ; Thu, 12 Jul 2012 11:00:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6CB0Bd9004193 for ; Thu, 12 Jul 2012 11:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6CB0BlH004192; Thu, 12 Jul 2012 11:00:11 GMT (envelope-from gnats) Date: Thu, 12 Jul 2012 11:00:11 GMT Message-Id: <201207121100.q6CB0BlH004192@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Torfinn Ingolfsen Cc: Subject: Re: bin/166656: [patch] dhclient(8) doesn't exit os link down X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Torfinn Ingolfsen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2012 11:00:11 -0000 The following reply was made to PR bin/166656; it has been noted by GNATS. From: Torfinn Ingolfsen To: bug-followup@FreeBSD.org, peterjeremy@acm.org Cc: Subject: Re: bin/166656: [patch] dhclient(8) doesn't exit os link down Date: Thu, 12 Jul 2012 11:57:19 +0200 Hello, FWIW, I tested this patch on FreeBSD 8.1-stable: root@kg-omni1# uname -a FreeBSD kg-omni1.kg4.no 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Oct 17 12:35:38 CEST 2010 root@kg-i82.kg4.no:/usr/obj/usr/src/sys/GENERIC i386 It works flawlessly. Without the patch, dhclient would not exit, resulting in no new lease being aquired when the link goes down and up again. With the patch, dhclient exits and gets started when the link comes up again. From /var/log/messages: Jul 12 11:37:07 kg-omni1 dhclient[30335]: Link xl0 is down, dhclient exiting Jul 12 11:37:07 kg-omni1 kernel: xl0: link state changed to DOWN Jul 12 11:37:07 kg-omni1 dhclient[30322]: connection closed Jul 12 11:37:07 kg-omni1 dhclient[30322]: exiting. Jul 12 11:37:20 kg-omni1 kernel: xl0: link state changed to UP Jul 12 11:37:20 kg-omni1 dhclient: New IP Address (xl0): 84.215.134.159 Jul 12 11:37:20 kg-omni1 dhclient: New Subnet Mask (xl0): 255.255.192.0 Jul 12 11:37:20 kg-omni1 dhclient: New Broadcast Address (xl0): 255.255.255.255 Jul 12 11:37:20 kg-omni1 dhclient: New Routers (xl0): 84.215.128.1 HTH -- Torfinn Ingolfsen