Date: Tue, 01 Aug 2000 02:16:07 +0000 From: Tony Finch <dot@dotat.at> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/20331: dhclient configures the broadcast address incorrectly Message-ID: <E13JRbD-0001xv-00@hand.dotat.at>
next in thread | raw e-mail | index | archive | help
>Number: 20331 >Category: bin >Synopsis: dhclient configures the broadcast address incorrectly >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 31 19:20:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Tony Finch <dot@dotat.at> >Release: FreeBSD 4.1-STABLE-20000729 i386 >Organization: dotat >Environment: FreeBSD hand.dotat.at 4.1-STABLE-20000729 FreeBSD 4.1-STABLE-20000729 #0: Sun Jul 30 00:30:12 UTC 2000 root@hand.dotat.at:/other/obj/other/src/sys/DELL-Latitude-CPx i386 >Description: dhclient configures the broadcast address of an interface to the subnet's base address >How-To-Repeat: This is the situation on my machine right now. fanf@hand.dotat.at:~ :; ifconfig -a lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::280:c8ff:fe87:ec91%ed0 prefixlen 64 scopeid 0x2 inet 10.0.0.35 netmask 0xffffff00 broadcast 10.0.0.0 ether 00:80:c8:87:ec:91 fanf@hand.dotat.at:~ :; ps aux | grep dhc fanf 7528 0.0 0.4 1036 512 p1 S+ 2:14AM 0:00.00 grep dhc root 1277 0.0 0.2 536 280 ?? Is 4:45AM 0:00.00 /sbin/dhclient ed0 fanf@hand.dotat.at:~ :; >Fix: Fortunately it's just a simple cut & paste coding error. --- dhclient.c.orig Thu Jul 20 20:29:53 2000 +++ dhclient.c Tue Aug 1 02:11:22 2000 @@ -1972,7 +1972,7 @@ if (broadcast.len) { client_envadd (ip -> client, prefix, "broadcast_address", - "%s", piaddr (subnet)); + "%s", piaddr (broadcast)); } } } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E13JRbD-0001xv-00>