Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2000 17:18:01 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        Alan Edmonds <aedmonds@digitalconvergence.com>
Cc:        Vinesh Christopher <vineshc@ami.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: Wrong Broadcast Address - Ping by name fails
Message-ID:  <20000809171801.E48327@strontium.scientia.demon.co.uk>
In-Reply-To: <39917D0A.F5C9BBB8@digitalconvergence.com>
References:  <4A78850EF802D211BB3900805FFE55550BA87A@atl_es1.megatrends.com> <39917D0A.F5C9BBB8@digitalconvergence.com>

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




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