Subject: bin/7192: dhclient/dhcpd refuse to get it on
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 03/17/1999 21:18:04
>Number:         7192
>Category:       bin
>Synopsis:       dhcpd (or dhclient) broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 17 21:20:01 1999
>Last-Modified:
>Originator:     Wolfgang Rupprecht
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Release:        NetBSD-current 3/14/99
>Environment:
	
System: NetBSD pasillo.wsrcc.com 1.3K NetBSD 1.3K (WSRCC505) #0: Sun Mar 14 20:21:08 PST 1999 root@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC505 i386

>Description:
	dhcpd/dhclient refuse to work together
>How-To-Repeat:
	dhcpd &
	dhclient &

# tcpdump -e -i de1 port 67
tcpdump: listening on de1
21:04:11.379486 pasillo.wsrcc.com Broadcast ip 342: 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xed19f56b [|bootp] [tos 0x10]
21:04:11.380518 capsicum.wsrcc.com pasillo.wsrcc.com ip 365: capsicum.wsrcc.com.bootps > 255.255.255.255.bootpc: xid:0xed19f56b Y:pasillo.wsrcc.com S:capsicum.wsrcc.com [|bootp] [tos 0x10]
21:04:13.521087 pasillo.wsrcc.com Broadcast ip 342: 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0xed19f56b [|bootp] [tos 0x10]
21:04:25.521337 pasillo.wsrcc.com Broadcast ip 342: 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x5e18a653 [|bootp] [tos 0x10]
21:04:25.522236 capsicum.wsrcc.com pasillo.wsrcc.com ip 365: capsicum.wsrcc.com.bootps > 255.255.255.255.bootpc: xid:0x5e18a653 Y:pasillo.wsrcc.com S:capsicum.wsrcc.com [|bootp] [tos 0x10]
21:04:27.661753 pasillo.wsrcc.com Broadcast ip 342: 0.0.0.0.bootpc > 255.255.255.255.bootps: xid:0x5e18a653 [|bootp] [tos 0x10]

It looks like the problem is that dhclient and dhcpd can't agree with
each over the validity of the return packet.  (unicast ether addr,
bcast IP addr)

>Fix:

change dhcpd to either use a bcast IP address, or change dhclient to
not be so pedantic.  (The ether unicast return is a *nice* idea. Why
bother everyone on the net when you don't have to.)


>Audit-Trail:
>Unformatted: