]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- In those cases where the DHCP software manufactures an IP header (to
authorDavid Hankins <dhankins@isc.org>
Wed, 19 Jul 2006 18:00:36 +0000 (18:00 +0000)
committerDavid Hankins <dhankins@isc.org>
Wed, 19 Jul 2006 18:00:36 +0000 (18:00 +0000)
  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]

RELNOTES
common/packet.c

index 2b8e10bc1980117aaa6a620f18178cb9c0589dca..ad73dbdb1ea19916d8ed2d6da888577857f25a27 100644 (file)
--- 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
index 57702fcbc389415e5d89b1c553bce2ac43060b23..7614f57610f1ff7c95d124877b589688226c143a 100644 (file)
@@ -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;