NetBSD Problem Report #12572

Received: (qmail 24109 invoked from network); 7 Apr 2001 20:28:28 -0000
Message-Id: <amwv8wv4ip.fsf@mom.e.kth.se>
Date: 07 Apr 2001 22:28:14 +0200
From: Love <lha@stacken.kth.se>
Sender: lha@e.kth.se
To: gnats-bugs@gnats.netbsd.org
Cc: mellon@netbsd.org
Subject: 1.5.1_BETA NetBSD/alpha 20010406

>Number:         12572
>Category:       bin
>Synopsis:       1.5.1_BETA problems with dhclient
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mellon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 07 20:29:00 +0000 2001
>Closed-Date:    Sun Apr 08 21:01:45 +0000 2001
>Last-Modified:  Mon Apr 09 21:16:02 +0000 2001
>Originator:     Love
>Release:        1.5.1_BETA
>Organization:
        Stacken Computer Club
>Environment:
System: NetBSD  1.5.1_BETA NetBSD 1.5.1_BETA (GENERIC) #27: Fri Apr  6 13:32:08 MEST 2001     he@albatross.runit.no:/usr/src/sys/arch/alpha/compile/GENERIC alpha
Architecture: alpha
Machine: alpha
>Description:

        dhclient have problems finding dhclient-script in /sbin

>How-To-Repeat:

	# /sbin/dhclient de0
	Internet Software Consortium DHCP Client V3.0b2pl23
	Copyright 1995-2001 Internet Software Consortium.
	All rights reserved.
	For info, please visit http://www.isc.org/products/DHCP

	execve (/sbin/dhclient-script, ...): No such file or directory
	de0: not found

	If you did not get this software from ftp.isc.org, please
	[...]
	# ls 
	# ls -l /sbin/dhclient /etc/dhclient
	ls: /sbin/dhclient: No such file or directory
	-r-xr-xr-x  1 root  wheel  758656 Apr  6 03:14 /etc/dhclient


When I fixed it, I got this error

	DHCPREQUEST on de0 to 255.255.255.255 port 67
	Discarding packet with bogus hlen.
	receive_packet failed on de0: Resource temporarily unavailable
	DHCPREQUEST on de0 to 255.255.255.255 port 67
	Discarding packet with bogus hlen.
	receive_packet failed on de0: Resource temporarily unavailable
	DHCPDISCOVER on de0 to 255.255.255.255 port 67 interval 3
	Discarding packet with bogus hlen.
	receive_packet failed on de0: Resource temporarily unavailable
	DHCPDISCOVER on de0 to 255.255.255.255 port 67 interval 7
	Discarding packet with bogus hlen.
	receive_packet failed on de0: Resource temporarily unavailable
	DHCPDISCOVER on de0 to 255.255.255.255 port 67 interval 11


Since there is no change between de driver between netbsd-1-5-RELEASE and
netbsd-1-5-branch (that the snapshot was based on). I tried dhclient from netbsd-1-5-RELEASE


	# /usr/netbsd-1.5/sbin/dhclient de0
	Internet Software Consortium DHCP Client V3.0b2pl9
	Copyright 1995-2000 Internet Software Consortium.
	All rights reserved.
	For info, please visit http://www.isc.org/products/DHCP

	Listening on BPF/de0/00:00:f8:22:7b:68
	Sending on   BPF/de0/00:00:f8:22:7b:68
	Sending on   Socket/fallback
	ifconfig: SIOCDIFADDR: Can't assign requested address
	DHCPDISCOVER on de0 to 255.255.255.255 port 67 interval 8
	DHCPOFFER from 130.237.7.66
	DHCPREQUEST on de0 to 255.255.255.255 port 67
	DHCPACK from 130.237.7.66
	New Network Number: 130.237.7.64
	New Broadcast Address: 130.237.7.127

	bound to 130.237.7.109 -- renewal in 1748 seconds.

>Fix:

Obvious in the first case.

Dunno where to start looking in the second case.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->mellon 
Responsible-Changed-By: fair 
Responsible-Changed-When: Sat Apr 7 19:44:04 PDT 2001 
Responsible-Changed-Why:  
Ted Lemon is our DHCP expert. 
State-Changed-From-To: open->closed 
State-Changed-By: mellon 
State-Changed-When: Sun Apr 8 13:00:09 PDT 2001 
State-Changed-Why:  
I have fixed both of these problems in -current and submitted pullup 
requests for the 1.5.1 release.   The non-obvious problem was a small 
bug in the use of BPF_WORDALIGN in common/bpf.c. 

From: Chris Pinnock <cjep@fawlty.net>
To: gnats-bugs@netbsd.org
Cc: mellon@netbsd.org, Love <lha@stacken.kth.se>
Subject: Re: bin/12572: 1.5.1_BETA NetBSD/alpha 20010406
Date: Mon, 9 Apr 2001 22:14:51 +0100

 > >Fix:
 > 
 > Obvious in the first case.

 I've had this problem today. Is it intentional that dhclient-script
 moves to /sbin? In which case, in usr.sbin/dhcp/client/scripts/Makefile,

 SCRIPTSDIR=/etc

 should be changed to

 SCRIPTSDIR=/sbin

 cheers,
 -- 
 Chris
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.