Skip to content

Commit

Permalink
Implement Real-time Network Traffic Visualization in Console
Browse files Browse the repository at this point in the history
- Introduced a Tokio task for processing incoming PacketInfo using a HashMap.
- Implemented periodic display updates using prettytable-rs and crossterm.
- Shared PacketInfo table between tasks with Arc<Mutex> for thread safety.
- Adjusted display logic to show top 10 entries with IpProtocol, source and destination addresses/ports, and count.
- Sorted PacketInfo entries by frequency for effective visualization.
  • Loading branch information
wiresock committed Dec 26, 2023
1 parent 57613b2 commit 29a3823
Show file tree
Hide file tree
Showing 2 changed files with 549 additions and 141 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ clap = {version = "4.0.32", features = ["derive"]}
ctrlc = "3.2.4"
futures = "0.3.28"
tokio = { version = "1.28.2", features = ["full"] }
smoltcp = "0.10.0"
smoltcp = "0.11.0"
prettytable-rs = "0.10.0"
crossterm = "0.27.0"

Loading

0 comments on commit 29a3823

Please sign in to comment.