bin/92187: dhclient-script(8) doesn't configure interface when
$reason is TIMEOUT
Shin'ya Kumabuchi
kumabu at t3.rim.or.jp
Sun Jan 22 23:50:04 PST 2006
>Number: 92187
>Category: bin
>Synopsis: dhclient-script(8) doesn't configure interface when $reason is TIMEOUT
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 23 07:50:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Shin'ya Kumabuchi
>Release: 6.0-STABLE
>Organization:
>Environment:
FreeBSD hoge 6.0-STABLE FreeBSD 6.0-STABLE #1: Mon Jan 23 05:39:57 JST 2006 root at hoge:/usr/local/obj/usr/src/sys/KUMA i386
>Description:
dhclient-script is executed by dhclient for configuring interface.
After configuring the interface with ifconfig, dhclient-script checks the interface's sanity with ping command when $reason is TIMEOUT.
And back out preceding ifconfig operation, if ping command fails.
But dhclient-script uses ping command with '-w' option that isn't valid for FreeBSD's ping command.
So ping command always fails, and the interface remains unconfigured.
>How-To-Repeat:
>Fix:
--- /usr/src/sbin/dhclient/dhclient-script Sun Sep 11 02:01:16 2005
+++ /sbin/dhclient-script Mon Jan 23 16:37:24 2006
@@ -272,7 +272,7 @@
if [ -n "$new_routers" ]; then
$LOGGER "New Routers ($interface): $new_routers"
set "$new_routers"
- if ping -q -c 1 -w 1 "$1"; then
+ if ping -q -c 1 -t 1 "$1"; then
if [ "$new_ip_address" != "$alias_ip_address" ]; then
add_new_alias
fi
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list