Age | Commit message (Collapse) | Author |
|
* added interface names
* some fixes
* Set interface name in UI only once
* Code style
* Add changelog entry
---------
Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
|
|
- Build regex only once using `once_cell::sync::Lazy`
- Reduce code duplication
|
|
* Refactor `OsInputOutput` (combine interfaces & frames into single Vec)
* Add note on handling a separate failure case
* Reduce code duplication
|
|
* Table formatting logic overhaul
- Columns now auto-expand and auto-shrink proportionally
- Data column selection logic is now set per-table
- Necessary boilerplate added to allow tables with more (or fewer) columns in the future
* Better naming: `TableLayout` -> `DisplayLayout`
* Fix clippy complaints
* Optimise layout cutoff widths
- These values are pretty much arbitrary. I'm open to further optimising them in the future.
* Updated test snapshots to match new layout settings
* Remove unnecessary logging
* Correct `debug_fn` impl for `column_selector`
* Further optimise bandwidth column display
* Update test snapshots
* Layout width preset minor adjustment
|
|
* Minor code style changes
* Disable rendering of timestamps in tests
* Update test snapshots
* Test everything with insta macros (no more `assert(_eq)?`)
- This has the benefit of creating snapshots for everything, allowing for later diffing
* Don't use `assert_debug_snapshot` for large string outputs
- This makes snapshots more human-inspectable
* Code style improvement on two tests
- `pause_by_space`
- `rearranged_by_tab`
* Minor code style improvements
|
|
|
|
* Move CLI structs to their own file
* `main` returns `Result` directly
* Slightly reduced nesting
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Binary build is fixed, but `packet_builder` crate seems to have some issues
|
|
* feat(dns): allow custom dns server as cli flag
* fix(style): remove commented debugging line (oops)
|
|
* fix(ui): upgrade tui to latest version and fix for breaking changes in the api
* fix(style): address PR comments
|
|
Event::Resize (#186)
|
|
* Remove connections vector from OpenSockets, use common OpenSockets implementation based on sysinfo and netstat2.
* Replace termion backend with crossterm, which works on Windows as well.
* More fixes for windows build.
* Remove tui default-features (termion), update unit tests for crossterm.
* Windows compilation fixes.
* Remove unused get_open_sockets implementations for linux and mac. Fix formatting.
* Add build.rs for windows to download and extract Packet.lib from npcap SDK.
* Resolve Cargo.lock after merging main.
* fix(tests): adjust snapshots new location of the dns resolution
* style(clippy): clippy
* style(clippy): remove dead code
* style(clippy): use write_all in build.rs
* style(clippy): remove unused import added by Intellij
* style(review): use String instead of str
* fix(build): run build.rs only once
* fix(regression): skip iface_is_up() filter only for Windows
* fix(review): restore per os implementation of get_open_sockets()
* fix(cargo): add missing os specific packages
* fix: conditional compilation of windows module
* fix: compilation errors
* fix: missing Protocol::from_str() implementation
* style(clippy): remove unused methods
Co-authored-by: Aram Drevekenin <aram@poor.dev>
|
|
* Replace termion backend with crossterm, which works on Windows as well.
* Remove tui default-features (termion), update unit tests for crossterm.
* Fix formatting.
|
|
issue in #177)
|
|
|
|
Conflicts:
src/display/components/layout.rs
src/display/ui.rs
src/main.rs
|
|
* Window ordering ability
Added ability to change display order of the windows using tab. Added a help tooltip.
* fix redundant clone
* fix fmt check
* cargo fmt fix 2
* Fixed help layout and added tests
* Fix fmt check
|
|
|
|
Simply replacing the "1 \n" write events with "2 \n" when we check the
snapshots to make them consistent. There may still be issues with timing
in the tests, but can serve as a stop-gap.
|
|
|
|
packet_builder releases
|
|
|
|
* Add accumlated usage
* Fixed a nasty performace leak
* Fix a silly reverse-ordering bug
* Address some feedback
* Finished some reorganizing
* Another silly reversal bug
* Let the test cases run
* Most tests are working
* Fix some formatting that got left behind
* Fix the rest of the tests
* Add some new tests to cover the total mode
* Whoops, a double newline
|
|
* add filter by dns queries
* update snapshots with cargo fmt
* add tests with filtering improvement
|
|
|
|
* added first version (no tests)
* fixed layout
* added support for 2 windows
* comments
* breathing windows
* added tests
* format
* fixed rebase
* review
* added more tests
* simplified table creation
* fix(table): do not overflow on max size
Co-authored-by: Aram Drevekenin <aram@poor.dev>
|
|
* fix(ui-state): do not overcalculate bandwidth and connections
* fix(ui-state): style and bug
* style(format): make clippy happy
|
|
* feat(helptext): communicate pause/resume to the user
* style(format): rustfmt
|
|
Display weighted average of bandwidth
|
|
|
|
|
|
|
|
|
|
When using e.g. WireGuard (a VPN which completely acts on layer3), no
packages will be matched as it's attempted to parse those as
ethernet (=layer2) packets. This is a problem as all layer3-packets fail
to get parsed properly (due to different offsets in the packet, wrong
protocols will be determined for instance).
This change inherits the basic idea from
`<libpnet/examples/packetdump.rs>` to check if it's possible to parse
version info using the IpPacket-parsers and if that fails, the sniffer
will fall-back to the ethernet-based approach.
|
|
Fix bug that non-connected Udp sockets aren't displayed
|
|
|
|
* chore(packages): use pnet fork until they fix the pselect bug
* fix(deps): undo accidental dep change
|
|
readability (#58)
|
|
* moved keyboard_events_to_utils
* refactored ui keyboard events
* refactored raw mod
* format
* renamed sleep events function
* refactored OsInputOutput
* refactored opts
* refactored backend first test
* refactored backend ui tests
* refactored backend raw tests
* simplified terminal events read
* format
|