diff options
Diffstat (limited to 'src/plugin/example.rs')
| -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"); |
