From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 25 12:20:00 2014 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A42874EA for ; Fri, 25 Apr 2014 12:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7FBE81AE9 for ; Fri, 25 Apr 2014 12:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3PCK0nV094380 for ; Fri, 25 Apr 2014 12:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3PCK0rP094379; Fri, 25 Apr 2014 12:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 25 Apr 2014 12:20:00 GMT Resent-Message-Id: <201404251220.s3PCK0rP094379@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Zelch Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B8128FD7 for ; Fri, 25 Apr 2014 12:15:20 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97DE21AA2 for ; Fri, 25 Apr 2014 12:15:20 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3PCFKoW002280 for ; Fri, 25 Apr 2014 12:15:20 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3PCFK1v002266; Fri, 25 Apr 2014 12:15:20 GMT (envelope-from nobody) Message-Id: <201404251215.s3PCFK1v002266@cgiserv.freebsd.org> Date: Fri, 25 Apr 2014 12:15:20 GMT From: Thomas Zelch To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/188990: dhclient does not accept DHCP Offer on FreeBSD 10 as Xen DomU Guest X-Mailman-Approved-At: Fri, 25 Apr 2014 12:27:05 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2014 12:20:00 -0000 >Number: 188990 >Category: amd64 >Synopsis: dhclient does not accept DHCP Offer on FreeBSD 10 as Xen DomU Guest >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Apr 25 12:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Thomas Zelch >Release: 10.0-RELEASE-p1 >Organization: >Environment: FreeBSD hostname 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When trying to get a DHCP Lease with the Xen-PV Network Device xn0, DHCP Offers from the DHCP Server are ignored and the following Error Message is shown: [root@hostname ~]# dhclient xn0 DHCPDISCOVER on xn0 to 255.255.255.255 port 67 interval 3 DHCPDISCOVER on xn0 to 255.255.255.255 port 67 interval 3 DHCPDISCOVER on xn0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on xn0 to 255.255.255.255 port 67 interval 14 DHCPDISCOVER on xn0 to 255.255.255.255 port 67 interval 14 5 bad udp checksums in 5 packets DHCPDISCOVER on xn0 to 255.255.255.255 port 67 interval 20 No DHCPOFFERS received. No working leases in persistent database - sleeping. When taking a tcpdump while dhclient is running, the DHCP Offers from the DHCP Server are visible, but it seems dhclient is ignoring them, as the udp checksum is bad out of whatever Reason. As Google search turned up a lot of Bugs in Linux which were caused by UDP Checksum Offload, i have tried disabling all NIC Features both in the FreeBSD Guest and the dom0, without any success. See tcpdump Output below: 14:07:26.709519 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:16:3e:19:5e:75, length 300, xid 0x738d8779, secs 4, Flags [none] (0x0000) Client-Ethernet-Address 00:16:3e:19:5e:75 Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Discover Client-ID Option 61, length 7: ether 00:16:3e:19:5e:75 Hostname Option 12, length 7: "hostname" Parameter-Request Option 55, length 9: Subnet-Mask, BR, Time-Zone, Classless-Static-Route Default-Gateway, Domain-Name, Domain-Name-Server, Hostname Option 119 END Option 255, length 0 PAD Option 0, length 0, occurs 27 14:07:26.710162 IP (tos 0xc0, ttl 64, id 13977, offset 0, flags [none], proto UDP (17), length 345) 10.1.0.1.67 > 10.1.0.15.68: [bad udp cksum 0x1568 -> 0x37a9!] BOOTP/DHCP, Reply, length 317, xid 0x738d8779, secs 4, Flags [none] (0x0000) Your-IP 10.1.0.15 Server-IP 10.1.0.1 Client-Ethernet-Address 00:16:3e:19:5e:75 Vendor-rfc1048 Extensions Magic Cookie 0x63825363 DHCP-Message Option 53, length 1: Offer Server-ID Option 54, length 4: 10.1.0.1 Lease-Time Option 51, length 4: 43200 RN Option 58, length 4: 21600 RB Option 59, length 4: 37800 Subnet-Mask Option 1, length 4: 255.255.255.0 BR Option 28, length 4: 10.1.0.255 Default-Gateway Option 3, length 4: 10.1.0.1 Domain-Name-Server Option 6, length 4: 10.1.0.1 Domain-Name Option 15, length 14: "localdomain" Hostname Option 12, length 7: "hostname" END Option 255, length 0 >How-To-Repeat: Execute a dhclient xn0 on the Guest. >Fix: >Release-Note: >Audit-Trail: >Unformatted: