Skip to content

Commit 4fcc67c

Browse files
committed
add TCP User Timout Option (RFC 5482)
Allow one to send the TCP User Timeout Option described in RFC 5482 in a crafted TCP segment.
1 parent 0eae79b commit 4fcc67c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scapy/layers/inet.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ class IPOption_SDBM(IPOption):
213213
8 : ("Timestamp","!II"),
214214
14 : ("AltChkSum","!BH"),
215215
15 : ("AltChkSumOpt",None),
216-
25 : ("Mood","!p")
216+
25 : ("Mood","!p"),
217+
28 : ("UTO", "!H")
217218
},
218219
{ "EOL":0,
219220
"NOP":1,
@@ -224,7 +225,8 @@ class IPOption_SDBM(IPOption):
224225
"Timestamp":8,
225226
"AltChkSum":14,
226227
"AltChkSumOpt":15,
227-
"Mood":25
228+
"Mood":25,
229+
"UTO":28
228230
} )
229231

230232
class TCPOptionsField(StrField):

0 commit comments

Comments
 (0)