From owner-freebsd-stable Wed Aug 9 11:41: 2 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail3.megatrends.com (mail3.megatrends.com [155.229.80.33]) by hub.freebsd.org (Postfix) with ESMTP id 264A037BF8B; Wed, 9 Aug 2000 11:40:58 -0700 (PDT) (envelope-from vineshc@ami.com) Received: by atl_es1.megatrends.com with Internet Mail Service (5.0.1461.28) id ; Wed, 9 Aug 2000 14:46:15 -0400 Message-ID: <4A78850EF802D211BB3900805FFE55550BA87D@atl_es1.megatrends.com> From: Vinesh Christopher To: 'Ben Smithurst' , Alan Edmonds Cc: freebsd-stable@FreeBSD.ORG Subject: RE: Wrong Broadcast Address - Ping by name fails Date: Wed, 9 Aug 2000 14:46:14 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1461.28) Content-Type: text/plain Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks. It worked. I applied the patch on /usr/src/contrib/isc-dhcp/client/dhclient.c and did a "make all install" in /usr/src/sbin/dhclient > -----Original Message----- > From: Ben Smithurst [SMTP:ben@FreeBSD.org] > Sent: Wednesday, August 09, 2000 12:18 PM > To: Alan Edmonds > Cc: Vinesh Christopher; freebsd-stable@FreeBSD.ORG > Subject: Re: Wrong Broadcast Address - Ping by name fails > > Alan Edmonds wrote: > > > Ditto here. The wrong bcast addr is preventing ntpd receiving > > broadcast ntp packets. It only happens with DHCP client > > machines. The static IP 4.1-RELEASE machine works fine. > > I've reported this to David O'Brien (DHCP maintainer in FreeBSD) and Ted > Lemon (DHCP maintainer at ISC) and the problem has been fixed in the ISC > tree. I think David is going to bring the fix into FreeBSD soon. > > If you can't wait, the fix is trivial: > > 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)); > } > } > } > > The whitespaces have probably been screwed by cut-n-paste, so you'll > probably have to use 'patch -l' or apply it manually. > > -- > Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D > FreeBSD Documentation Project / > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message