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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"