Mercurial > hg > dhcpcd
changeset 25:2fb1ab954ee6 draft
Don't set the broadcast flag anymore as all BPF and Linux sockets should be
able to unicast correctly.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 11 Dec 2006 13:16:28 +0000 |
| parents | 5742985b6aa0 |
| children | f700e79e9497 |
| files | ChangeLog Makefile dhcp.c |
| diffstat | 3 files changed, 6 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Dec 06 11:34:46 2006 +0000 +++ b/ChangeLog Mon Dec 11 13:16:28 2006 +0000 @@ -1,3 +1,7 @@ +dhcpcd-3.0.6 +Don't set the broadcast flag anymore as all BPF and Linux sockets should be +able to unicast correctly. + dhcpcd-3.0.5 Fix yp.conf creation.
--- a/Makefile Wed Dec 06 11:34:46 2006 +0000 +++ b/Makefile Mon Dec 11 13:16:28 2006 +0000 @@ -1,6 +1,6 @@ -# Should work for both GNU make and BSD mke +# Should work for both GNU make and BSD make -VERSION = 3.0.5 +VERSION = 3.0.6 INSTALL ?= install CFLAGS ?= -Wall -O2 -pedantic -std=gnu99
--- a/dhcp.c Wed Dec 06 11:34:46 2006 +0000 +++ b/dhcp.c Mon Dec 11 13:16:28 2006 +0000 @@ -91,15 +91,6 @@ memcpy (&message.hwaddr, &iface->ethernet_address, ETHER_ADDR_LEN); message.cookie = htonl (MAGIC_COOKIE); - /* This logic should be improved so that we don't need to set the 0 - flag as it's done in the above memset statement */ - if (type == DHCP_REQUEST - && dhcp->address.s_addr == iface->previous_address.s_addr - && iface->previous_address.s_addr != 0) - message.flags = 0; - else - message.flags = htons (BROADCAST_FLAG); - if (iface->previous_address.s_addr != 0 && (type == DHCP_INFORM || type == DHCP_RELEASE || (type == DHCP_REQUEST
