diff options
author | jhb <jhb@FreeBSD.org> | 2013-04-22 15:02:32 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2013-04-22 15:02:32 +0000 |
commit | 4373fbb501b6b8d794e42adb82c98df282ba17f7 (patch) | |
tree | 5396230fd146816736dd8df09e5e46699ed95297 /sbin/dhclient | |
parent | 3a6405f6721f107e9ffa0672da1b03f6892acc64 (diff) | |
download | FreeBSD-src-4373fbb501b6b8d794e42adb82c98df282ba17f7.zip FreeBSD-src-4373fbb501b6b8d794e42adb82c98df282ba17f7.tar.gz |
Use a higher TTL (128) for DHCP packets. This matches the ISC DHCP client.
PR: bin/170279
MFC after: 1 week
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient/packet.c b/sbin/dhclient/packet.c index 2e90cc8..b7a4f21 100644 --- a/sbin/dhclient/packet.c +++ b/sbin/dhclient/packet.c @@ -128,7 +128,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; |