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.
This commit is contained in:
Jeffrey Bencteux 2016-03-05 09:19:44 +01:00
parent 0eae79be7a
commit 4fcc67c199
1 changed files with 4 additions and 2 deletions

View File

@ -213,7 +213,8 @@ TCPOptions = (
8 : ("Timestamp","!II"),
14 : ("AltChkSum","!BH"),
15 : ("AltChkSumOpt",None),
25 : ("Mood","!p")
25 : ("Mood","!p"),
28 : ("UTO", "!H")
},
{ "EOL":0,
"NOP":1,
@ -224,7 +225,8 @@ TCPOptions = (
"Timestamp":8,
"AltChkSum":14,
"AltChkSumOpt":15,
"Mood":25
"Mood":25,
"UTO":28
} )
class TCPOptionsField(StrField):