diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-04-24 01:26:31 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2013-04-24 01:26:31 +0000 |
commit | 7b4ed9141fc4b2ac3e692cacdd9c14900ec35a79 (patch) | |
tree | e6c06957c9fa2081b3bad23507ce21b78ef01e91 | |
parent | 175408df566f1bff68af965875d11330b104de99 (diff) |
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.c | 4 |
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; |