From 427fb7c19af2ecce59b29f400f4d55551b4027ac Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Sat, 9 Oct 2021 08:53:40 -0700 Subject: [PATCH] fix(fake-tcp) use 64 as TTL value, fixes #11 --- fake-tcp/src/packet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fake-tcp/src/packet.rs b/fake-tcp/src/packet.rs index c73d3ad..16d01ea 100644 --- a/fake-tcp/src/packet.rs +++ b/fake-tcp/src/packet.rs @@ -32,7 +32,7 @@ pub fn build_tcp_packet( v4.set_version(4); v4.set_header_length(IPV4_HEADER_LEN as u8 / 4); v4.set_next_level_protocol(ip::IpNextHeaderProtocols::Tcp); - v4.set_ttl(32); + v4.set_ttl(64); v4.set_source(*local_addr.ip()); v4.set_destination(*remote_addr.ip()); v4.set_total_length(total_len.try_into().unwrap());