Date: Thu, 27 Jul 2000 13:38:39 +0100 From: Ben Smithurst <ben@FreeBSD.org> To: current@FreeBSD.org, obrien@FreeBSD.org Subject: Broadcast address with DHCP Message-ID: <20000727133839.A59315@strontium.scientia.demon.co.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000727133839.A59315>
