Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2013 15:02:33 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249766 - head/sbin/dhclient
Message-ID:  <201304221502.r3MF2X74086909@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Apr 22 15:02:32 2013
New Revision: 249766
URL: http://svnweb.freebsd.org/changeset/base/249766

Log:
  Use a higher TTL (128) for DHCP packets.  This matches the ISC DHCP client.
  
  PR:		bin/170279
  MFC after:	1 week

Modified:
  head/sbin/dhclient/packet.c

Modified: head/sbin/dhclient/packet.c
==============================================================================
--- head/sbin/dhclient/packet.c	Mon Apr 22 13:02:41 2013	(r249765)
+++ head/sbin/dhclient/packet.c	Mon Apr 22 15:02:32 2013	(r249766)
@@ -128,7 +128,7 @@ assemble_udp_ip_header(unsigned char *bu
 	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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304221502.r3MF2X74086909>