diff options
| author | luwenpeng <[email protected]> | 2023-09-12 14:34:56 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2023-09-12 14:39:33 +0800 |
| commit | 8755e95f068da56c099e9c51dc4a89b55960e48d (patch) | |
| tree | 3db6cea2db66eb55d64a67dc214af5ed4fd18157 /src/plugin | |
| parent | 88172ebc1d79a7b289b125418ddc50f20421d944 (diff) | |
[feature] Support IPv6 Extensions Decode
Diffstat (limited to 'src/plugin')
| -rw-r--r-- | src/plugin/example.rs | 7 |
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"); |
