642 Commits

Author SHA1 Message Date
Aram Drevekenin
2e0f011285 docs(changelog): windows build and run support 2020-09-10 18:48:19 +02:00
remgodow
0756939753 feat(platform): windows build and run support (#180)
* 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>
2020-09-10 18:52:30 +02:00
Petteri Valkonen
16d9758abf docs(readme): add FreeBSD installation instructions (#183) 2020-09-09 10:22:55 +02:00
Aram Drevekenin
b730e36a90 docs(changelog): man page 2020-09-08 10:28:06 +02:00
Michael F. Schönitzer
b3ae95d7f8 docs(man): update and Improve MAN page (#182)
* Add all supported options to man page

This also fixes an error in the man page: It previously listed -v as
flag for printing the program version, this should be -V instead.

* Add more information to the man page

This enhances the description of bandwhich and adds common chapters:
"Copyright", "See also" and "Bugs".
2020-09-08 10:26:27 +02:00
Aram Drevekenin
4ef1d7ccee docs(changelog): windows infrastructure 2020-09-03 18:21:55 +02:00
remgodow
1db74c81eb feat(infra): replace termion with Windows compatible crossterm (#179)
* Replace termion backend with crossterm, which works on Windows as well.

* Remove tui default-features (termion), update unit tests for crossterm.

* Fix formatting.
2020-09-03 18:17:18 +02:00
Aram Drevekenin
b275ee61e1 chore(release): 0.17.0 0.17.0 2020-09-02 15:49:16 +02:00
Aram Drevekenin
96a2f36778 docs(changelog): units 2020-09-02 15:53:11 +02:00
Aram Drevekenin
dbc73a4d1a fix(formatting): improve accuracy (#178)
* fix(formatting): improve accuracy

* style(format): line length

* fix(formatting): use mebi/gibi/tibi bytes

* style(format): fmt
2020-09-02 15:51:07 +02:00
Aram Drevekenin
8b4bdf0789 hotfix(truncation): display long uneven hostnames properly (fixes small issue in #177) 2020-09-01 10:10:11 +02:00
Aram Drevekenin
896f8dc698 docs(changelog): chinese characters fix 2020-09-01 09:49:06 +02:00
zxlzy
f4009e4c6e fix(formatting): panic when slice str (#177)
* fix panic when slice str

* copy code from diskonaut

* typo fix
2020-09-01 09:47:22 +02:00
Aram Drevekenin
44c69f1355 docs(changelog): raw mode delimiters 2020-07-14 15:47:38 +02:00
sigmaSd
93a6178c00 feat(raw): add delimiters to raw output (#175) 2020-07-14 15:45:59 +02:00
Aram Drevekenin
b0d34311ab chore(release): 0.16.0 0.16.0 2020-07-13 16:44:06 +02:00
sigmaSd
5bc35a4217 fix(rawmode): honor RenderOpts flag when using raw mode (#174) 2020-07-13 16:15:23 +02:00
Aram Drevekenin
2b4bf440cb docs(changelog): change trunk branch name 2020-06-08 19:39:05 +02:00
Omer Katz
724bafcc80 docs(readme): brew works on Linux too (#171)
* brew works on Linux too.

Linuxbrew has been merged back to Homebrew so this tools can be installed using `brew install`.

* docs(readme): clarify brew installation

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-06-06 09:00:36 +02:00
Aram Drevekenin
b5b01bf08b docs(changelog): fix release date 2020-05-23 17:15:23 +02:00
Aram Drevekenin
337a1a0ccb docs(changelog): update for 0.15.0 0.15.0 2020-05-23 14:47:41 +02:00
Aram Drevekenin
80bf7baea6 chore(release): 0.15.0 2020-05-23 14:34:51 +02:00
Aram Drevekenin
b05d9bff81 docs(fix): remove accidental duplication 2020-05-23 14:35:19 +02:00
Aram Drevekenin
c43a90cdd5 docs(readme): rearrange installation instructions 2020-05-23 14:34:26 +02:00
Aram Drevekenin
41b5ce787a docs(readme): OpenWRT installation instructions 2020-05-23 14:32:25 +02:00
Brooks Rady
e9b8a189b2 Merge pull request #167 from Eosis/issue-163-elapsed-time
feat(interface): Added elapsed time (#167)
2020-05-23 12:16:55 +01:00
Rupert Rutledge
b6f7f42957 Implement style feedback
Thanks @TheLostLambda
2020-05-23 11:17:20 +01:00
Rupert Rutledge
83de3dec79 Update changelog 2020-05-20 20:04:57 +01:00
Rupert Rutledge
49aef183de Merge remote-tracking branch 'origin/master' into issue-163-elapsed-time
Conflicts:
  src/display/components/layout.rs
  src/display/ui.rs
  src/main.rs
2020-05-20 20:00:03 +01:00
Rupert Rutledge
d897e14eae Use correct elapsed time when resizing the terminal
- Split the logic for determining the elapsed time into a function
   as it was called in different placed in main.rs.
2020-05-19 21:26:25 +01:00
Rupert Rutledge
098af1f7be Rename the total_bandwidth file for clarity 2020-05-18 21:40:36 +01:00
Louis Lesage
55e8885302 feat(layout): 'Window' ordering ability (#118)
* 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
2020-05-17 22:40:04 +02:00
Rupert Rutledge
edea995ce9 Deal with clippy linting issues 2020-05-16 18:30:51 +01:00
Rupert Rutledge
18de3a1aea Merge remote-tracking branch 'origin/master' into issue-163-elapsed-time 2020-05-16 18:07:17 +01:00
Rupert Rutledge
07c734a90d Altering the snapshots for tests that are affected by new duration code
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.
2020-05-16 18:03:19 +01:00
Rupert Rutledge
24934963d2 Fix issue of duration being shown on non -t invocations 2020-05-16 17:55:46 +01:00
Rupert Rutledge
bc0db53b4e Address review feedback
Now selectively printing out the duration of the capture based on
calculating the exact length of the strings and the width of the
terminal window. This has simplified this code substantially as well, no
longer having to split the header into parts (currently we are printing
to the same rect, but left and right aligned for the respective parts of
the header).
2020-05-16 17:23:08 +01:00
Rupert Rutledge
e17f8e6242 Add days to the duration print 2020-05-09 17:24:13 +01:00
Rupert Rutledge
53b80c7175 Fix silly issue with altering logic
- Needed to set max number of columns to 3.
2020-05-09 17:23:43 +01:00
Rupert Rutledge
0122bf351a Simplify logic in the header_parts function 2020-05-09 17:10:20 +01:00
Rupert Rutledge
da17936d5c Split the header into different parts based on size of terminal
1, 2, or 3 sections will be used based on differing widths.
2020-05-09 16:55:24 +01:00
Rupert Rutledge
a177280040 Split the header row into 3 columns
We now have the bandwidth data, paused status and duration in separate
columns.
2020-05-09 15:48:11 +01:00
Aram Drevekenin
e6bb39a5e9 docs(changelog): add terabytes change 2020-05-08 16:20:38 +02:00
Brooks Rady
ae3ca6e5f1 fix(formatting): add terabytes as a display unit (#168) 2020-05-08 16:18:53 +02:00
Rupert Rutledge
598239a3bc Address PR feedback.
- Only show the capture time on use of the utilization flag
 - Make colour consistent in header
 - Prioritize rendering of the Bandwidth over the duration
 - Reduce length of time description
2020-05-08 11:54:30 +01:00
Aram Drevekenin
747076a2d7 docs(changelog): release 0.14.0 0.14.0 2020-05-03 20:50:45 +02:00
Aram Drevekenin
d4c8b021b9 chore(release): 0.14.0 2020-05-03 20:39:52 +02:00
Aram Drevekenin
d4d4769f0a style(lint): make clippy happy on all channels 2020-05-03 19:54:56 +02:00
Aram Drevekenin
62800d8b9e style(lint): make clippy happy 2020-05-03 19:07:35 +02:00
Aram Drevekenin
b663b563a6 chore(deps): remove pnet_bandwhich_fork and upgrade to latest pnet + packet_builder releases 2020-05-03 18:45:57 +02:00