From: David Hankins Date: Wed, 19 Jul 2006 18:00:36 +0000 (+0000) Subject: - In those cases where the DHCP software manufactures an IP header (to X-Git-Tag: DHCPv6_parsing_base~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=567e85616ce43c5e9c223a4c767f912e200dd5b6;p=thirdparty%2Fdhcp.git - In those cases where the DHCP software manufactures an IP header (to transmit via bpf, lpf, etc), the IP TTL the software selects has been increased from 16 to 128. This is intended to match Microsoft Windows DHCP Client behaviour, to increase compatibility. [ISC-Bugs #15583 and #3226] --- diff --git a/RELNOTES b/RELNOTES index 2b8e10bc1..ad73dbdb1 100644 --- a/RELNOTES +++ b/RELNOTES @@ -128,6 +128,11 @@ and for prodding me into improving it. instead trust the assigned name implicitly (removing any other bindings on that name). This option has not been made available in dhclient. +- In those cases where the DHCP software manufactures an IP header (to + transmit via bpf, lpf, etc), the IP TTL the software selects has been + increased from 16 to 128. This is intended to match Microsoft Windows + DHCP Client behaviour, to increase compatibility. + Changes since 3.0.4 - A warning that host statements declared within subnet or shared-network diff --git a/common/packet.c b/common/packet.c index 57702fcbc..7614f5761 100644 --- a/common/packet.c +++ b/common/packet.c @@ -33,7 +33,7 @@ #ifndef lint static char copyright[] = -"$Id: packet.c,v 1.43 2006/02/27 23:56:13 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n"; +"$Id: packet.c,v 1.44 2006/07/19 18:00:36 dhankins Exp $ Copyright (c) 2004-2005 Internet Systems Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -147,7 +147,7 @@ void assemble_udp_ip_header (interface, buf, bufix, ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len); ip.ip_id = 0; ip.ip_off = 0; - ip.ip_ttl = 16; + ip.ip_ttl = 128; ip.ip_p = IPPROTO_UDP; ip.ip_sum = 0; ip.ip_src.s_addr = from;