Subject: kern/23199: dhcpd or udp network output broken ?
To: None <gnats-bugs@gnats.netbsd.org>
From: Frank Kardel <kardel@acm.org>
List: netbsd-bugs
Date: 10/19/2003 23:26:18
>Number:         23199
>Category:       kern
>Synopsis:       dhcpd / udp sends fail with error / current-20031019
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 19 21:27:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frank Kardel
>Release:        NetBSD 1.6ZD
>Organization:
	
>Environment:
	
	
System: NetBSD pip 1.6ZD NetBSD 1.6ZD (SYSPIP_ISDN) #2: Sun Oct 19 11:27:14 MEST 2003 kardel@pip:/fs/IC35L120AVV207-0-e/src/NetBSD/netbsd/sys/arch/i386/compile/obj.i386/SYSPIP_ISDN i386
Architecture: i386
Machine: i386
>Description:
	After upgrading to 1.6ZD/20031019:

	I get "ECONNABORTED" on dhcp-clients as dhclient fails to refresh
	its lease (REQUEST-ACK sequence) until it re-aquires its lease (DISCOVER-OFFER-REQUEST-ACK sequence).
	Following log entries can be seen on the dhcp-server (that has been upgraded to 20031019):

        Oct 19 22:26:44 pip dhcpd: DHCPREQUEST for 10.0.3.10 from 00:10:a4:89:bd:dc via bge0
	Oct 19 22:26:44 pip dhcpd: DHCPACK on 10.0.3.10 to 00:10:a4:89:bd:dc via bge0
	Oct 19 22:26:44 pip dhcpd: send_packet: Invalid argument
				  ^ this is unusual and the client consequently does not receive the paket 8-(
	Oct 19 22:26:48 pip dhcpd: DHCPDISCOVER from 00:10:a4:89:bd:dc via bge0
	Oct 19 22:26:48 pip dhcpd: DHCPOFFER on 10.0.3.10 to 00:10:a4:89:bd:dc via bge0
	Oct 19 22:26:48 pip dhcpd: DHCPREQUEST for 10.0.3.10 (10.0.3.1) from 00:10:a4:89:bd:dc via bge0
	Oct 19 22:26:48 pip dhcpd: DHCPACK on 10.0.3.10 to 00:10:a4:89:bd:dc via bge0

	The client is a 1.6W 20030809 client that used to work up to 1.6ZC on the dhcp-server.

>How-To-Repeat:
	run current-20031019 in the dhcp server an watch previouly working clients fail
	with ECONNABORTED when re-initializing the interfaces (1.6W clients kill connections
	with ECONNABORTED when re-configuring interfaces in /sbin/dhclient-script)
>Fix:
	find out why dhcpd experiences an EINVAL when attempting a DHCPACK.
>Release-Note:
>Audit-Trail:
>Unformatted: