summaryrefslogtreecommitdiff
path: root/src/protocol/tcp.rs
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-10-09 10:43:45 +0800
committerluwenpeng <[email protected]>2023-10-09 11:27:54 +0800
commita48db093e708f7aba47386a3de3f828ad2370e90 (patch)
tree2b66f9004942b8ef5035a56a5cd8bd7144abc008 /src/protocol/tcp.rs
parente0c7dfa5bd9d424249b87ec07d377e94d49d139a (diff)
[feature] Support IPv4 Options Decodedev-lwp
Diffstat (limited to 'src/protocol/tcp.rs')
-rw-r--r--src/protocol/tcp.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol/tcp.rs b/src/protocol/tcp.rs
index 09a5690..687ccea 100644
--- a/src/protocol/tcp.rs
+++ b/src/protocol/tcp.rs
@@ -241,10 +241,12 @@ impl Decode for TCPHeader {
header.options = Some(options);
Ok((&left[options_length..], header))
} else {
+ // TODO
println!("tcp header options parser error, skip tcp options");
Ok((&left[options_length..], header))
}
} else {
+ // TODO
println!("tcp header options data not enough");
Err(Err::Incomplete(Needed::new(options_length - left.len())))
}