summaryrefslogtreecommitdiff
path: root/src/plugin
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2023-09-12 14:34:56 +0800
committerluwenpeng <[email protected]>2023-09-12 14:39:33 +0800
commit8755e95f068da56c099e9c51dc4a89b55960e48d (patch)
tree3db6cea2db66eb55d64a67dc214af5ed4fd18157 /src/plugin
parent88172ebc1d79a7b289b125418ddc50f20421d944 (diff)
[feature] Support IPv6 Extensions Decode
Diffstat (limited to 'src/plugin')
-rw-r--r--src/plugin/example.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugin/example.rs b/src/plugin/example.rs
index a3ca852..6819d75 100644
--- a/src/plugin/example.rs
+++ b/src/plugin/example.rs
@@ -82,6 +82,13 @@ impl EventHandle for ExamplePulgin {
return;
}
+ let length = packet.unwrap().orig_len;
+ let flow_id = packet.unwrap().get_flow_id();
+ println!(
+ "{} handle Packet: {:?} {:?}",
+ self.plugin_name, length, flow_id
+ );
+
self.plugin_ctx.borrow_mut().clear();
self.plugin_ctx.borrow_mut().push_str("1");