Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2000 14:46:14 -0400 
From:      Vinesh Christopher <vineshc@ami.com>
To:        'Ben Smithurst' <ben@FreeBSD.org>, Alan Edmonds <aedmonds@digitalconvergence.com>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   RE: Wrong Broadcast Address - Ping by name fails
Message-ID:  <4A78850EF802D211BB3900805FFE55550BA87D@atl_es1.megatrends.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A78850EF802D211BB3900805FFE55550BA87D>