Date: Mon, 23 Jan 2006 07:45:08 GMT From: "Shin'ya Kumabuchi" <kumabu@t3.rim.or.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/92187: dhclient-script(8) doesn't configure interface when $reason is TIMEOUT Message-ID: <200601230745.k0N7j8vl026855@www.freebsd.org> Resent-Message-ID: <200601230750.k0N7o3p7073930@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601230745.k0N7j8vl026855>