summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2013-04-24 01:26:30 +0000
committerkrw <krw@openbsd.org>2013-04-24 01:26:30 +0000
commit4320fcdaa2975a471fbb5f8f0dfc68d03a725480 (patch)
tree7eaada186d7618801137bbe852eda4a1c0a3e3d8
parentcreate a method to print the unp_ino (ino_t) properly once it becomes (diff)
downloadwireguard-openbsd-4320fcdaa2975a471fbb5f8f0dfc68d03a725480.tar.xz
wireguard-openbsd-4320fcdaa2975a471fbb5f8f0dfc68d03a725480.zip
Follow ISC and freebsd by increasing ip_ttl on packets from 16 to
128, so people living many hops from their dhcp server can still get leases. Pointed out by deraadt@
-rw-r--r--sbin/dhclient/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/packet.c b/sbin/dhclient/packet.c
index 3210b8f273c..d1e880dc89b 100644
--- a/sbin/dhclient/packet.c
+++ b/sbin/dhclient/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.16 2013/02/03 21:04:19 krw Exp $ */
+/* $OpenBSD: packet.c,v 1.17 2013/04/24 01:26:30 krw Exp $ */
/* Packet assembly code, originally contributed by Archie Cobbs. */
@@ -118,7 +118,7 @@ assemble_udp_ip_header(unsigned char *buf, int *bufix, u_int32_t from,
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;