From owner-freebsd-current Thu Jul 27 5:56:57 2000 Delivered-To: freebsd-current@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id B32EE37B5AC; Thu, 27 Jul 2000 05:56:48 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13Hmvw-0008lO-00; Thu, 27 Jul 2000 13:38:40 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13Hmvw-000H7r-00; Thu, 27 Jul 2000 13:38:40 +0100 Date: Thu, 27 Jul 2000 13:38:39 +0100 From: Ben Smithurst To: current@FreeBSD.org, obrien@FreeBSD.org Subject: Broadcast address with DHCP Message-ID: <20000727133839.A59315@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG dhclient seems to be broken, it's giving me the all zeroes broadcast address instead of all ones: inet 192.168.91.35 netmask 0xfffffff0 broadcast 192.168.91.32 (should be broadcast 192.168.91.47) Index: dhclient.c =================================================================== RCS file: /usr/cvs/src/contrib/isc-dhcp/client/dhclient.c,v retrieving revision 1.16 diff -u -r1.16 dhclient.c --- dhclient.c 2000/07/20 19:51:37 1.16 +++ dhclient.c 2000/07/27 12:21:38 @@ -1972,7 +1972,7 @@ if (broadcast.len) { client_envadd (ip -> client, prefix, "broadcast_address", - "%s", piaddr (subnet)); + "%s", piaddr (broadcast)); } } } I think this needs fixing. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message