Skip to content

Commit 37ce46d

Browse files
committed
fix: wrong tcp tsecr option for single packets
1 parent 5313f44 commit 37ce46d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ def send_single_packet(this_request, timeout):
204204
this_request[TCP].sport = ephemeral_port_reserve("tcp")
205205
if this_request[TCP].flags == "S":
206206
this_request[TCP].seq = RandInt()
207-
timestamp_start, new_timestamp = get_new_timestamp()
207+
_, new_timestamp = get_new_timestamp()
208208
this_request[TCP].options = tcp_options_correction(
209-
this_request[TCP].options, new_timestamp, int(timestamp_start))
209+
this_request[TCP].options, new_timestamp, 0)
210210
del(this_request[TCP].chksum)
211211
elif this_request.haslayer(UDP):
212212
this_request[UDP].sport = ephemeral_port_reserve("udp")

0 commit comments

Comments
 (0)