bin/166656: [patch] dhclient(8) doesn't exit os link down
Torfinn Ingolfsen
torfinn.ingolfsen at getmail.no
Thu Jul 12 11:00:11 UTC 2012
The following reply was made to PR bin/166656; it has been noted by GNATS.
From: Torfinn Ingolfsen <torfinn.ingolfsen at getmail.no>
To: bug-followup at FreeBSD.org, peterjeremy at 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 at 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 at 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 <torfinn.ingolfsen at getmail.no>
More information about the freebsd-bugs
mailing list