Arnout Engelen
90c1abc2fb
Merge pull request #290 from polkornyipt/main
...
Add missing security flags and include CPPFLAGS in libnethogs
2025-03-26 14:10:46 +01:00
Matheus Polkorny
1407f83485
Include $(CPPFLAGS) for devices.cpp and libnethogs.cpp
2025-03-25 00:48:30 -03:00
Matheus Polkorny
42e7950db8
Add security flags to LDFLAGS for Linux
2025-03-25 00:47:04 -03:00
Arnout Engelen
16f2dbd56c
Merge pull request #288 from CAB233/main
...
meson: fix library name
2025-02-24 13:18:37 +01:00
CAB233
ba25a64dcd
meson: fix library name
2025-02-24 20:06:52 +08:00
Arnout Engelen
d8badf2803
Merge pull request #285 from thesamesam/meson
...
meson: cleanup version detection
2025-01-26 12:39:39 +01:00
Sam James
fcbde46b00
meson: run meson format
2025-01-25 16:06:29 +00:00
Sam James
5afce747f1
meson: fix build with libnethogs disabled
...
Fix `meson.build:43:19: ERROR: Unknown variable "libnethogs".`.
While src/ has this correct, the top-level meson.build wasn't right.
2025-01-25 16:05:20 +00:00
Sam James
049fff5623
meson: cleanup version detection
...
Tell Meson what version the project is, so that we set the right versioning
on libnethogs.
2025-01-25 16:03:12 +00:00
Arnout Engelen
632a78846e
Merge pull request #279 from BubuOT/version_fix
...
determineVersion.sh: prevent traversing into outer git repo for git-describe call
2024-09-20 12:12:57 +02:00
Marcus Hoffmann
6423bdf05d
determineVersion.sh: prevent traversing into outer git repo for git-describe call
...
When building nethogs inside another git repo (as is i.e. done as part
of a buildroot build) the version is picked up from the outer git repo,
which is confusing as well as introducing reproducibility problems when
rebuilding the same nethogs version produces different results if the
outer repository changes.
2024-09-20 12:06:26 +02:00
Arnout Engelen
0fe341eeba
Merge pull request #275 from lleon95/main
...
Add meson buildsystem
2024-05-23 16:05:34 +02:00
Luis Leon
ce9dd7c7c3
Add meson buildsystem
2024-05-23 15:29:22 +02:00
Arnout Engelen
e6afe4e2ff
Merge pull request #269 from AndreasGocht/add_udp
...
allow the library to enable UDP recording
2024-01-08 23:00:47 +01:00
Andreas Gocht-Zech
52dbb174d8
allow the library to enable UDP recording
2024-01-08 22:19:27 +01:00
Arnout Engelen
89c195104f
Merge pull request #267 from AndreasGocht/fix_adding_devices
...
Fix nethogsmonitor_loop_devices_py to accept more than one device
2023-12-23 10:55:51 +01:00
Andreas Gocht-Zech
8958ef0b3e
Fix nethogsmonitor_loop_devices_py to accept more than one device
...
Without the ref only the last element of __devicenames is stored in
_devicenames: The temporary is deleted at the end of the for body,
therefore the pointer to the c_str is no longer valid and might be
reused by the implementation. By using a reference in the for head
the c_str does not return a ref to the temporary but to the original
array wich's lifetime is till the end of the function.
2023-12-22 18:42:02 +01:00
Arnout Engelen
eed54a0543
Merge pull request #264 from AndreasGocht/report_pcap_stas
...
Report pcap stas
2023-10-02 16:30:14 +02:00
Andreas Gocht-Zech
bdbb504569
Merge branch 'raboof:main' into report_pcap_stas
2023-09-29 22:55:59 +02:00
Michal Suchanek
08524d2740
Clarify units
...
On the internet the usage of b and B for bits or bytes is inconsistent.
Lowercase b seems to be used for either, and upperace B is more often
used to mean bytes but usege for bits also exists.
I am not aware of any standard that would mandate one or other use.
Consequently, spelling out the whole word in the output or adding
explanation in documentation is the only way to make sure the output is
interpreted correctly.
To save space on small screens only alter documentation and the bytes
label without prefixes/suffixes.
While at it change uppercase K to lowercase k to correctly spell the
kilo- prefix.
Fixes : #261
Signed-off-by: Michal Suchanek <msuchanek@suse.de >
2023-09-29 22:54:31 +02:00
Andreas Gocht-Zech
b9abb65df0
add pcap packet stats
2023-09-29 22:54:31 +02:00
Andreas Gocht-Zech
5375587282
move C-style-list to std::list
2023-09-29 22:53:59 +02:00
Arnout Engelen
cd55fef395
Merge pull request #263 from AndreasGocht/report_changes
...
fix an copy-and-paste error in the bindings
2023-09-06 00:10:39 +02:00
Andreas Gocht-Zech
059390b145
fix an error in the bindings
2023-09-05 23:07:42 +02:00
Arnout Engelen
dc44edb9b1
Merge pull request #262 from hramrach/main
...
Clarify units
2023-08-28 14:21:10 +02:00
Michal Suchanek
e40699fba4
Clarify units
...
On the internet the usage of b and B for bits or bytes is inconsistent.
Lowercase b seems to be used for either, and upperace B is more often
used to mean bytes but usege for bits also exists.
I am not aware of any standard that would mandate one or other use.
Consequently, spelling out the whole word in the output or adding
explanation in documentation is the only way to make sure the output is
interpreted correctly.
To save space on small screens only alter documentation and the bytes
label without prefixes/suffixes.
While at it change uppercase K to lowercase k to correctly spell the
kilo- prefix.
Fixes : #261
Signed-off-by: Michal Suchanek <msuchanek@suse.de >
2023-08-28 13:07:17 +02:00
Arnout Engelen
eafc6e7ebc
Merge pull request #260 from AndreasGocht/report_changes
...
Report only changes of send and received data
2023-08-22 10:03:56 +02:00
Andreas Gocht-Zech
a11eb726bf
Merge branch 'raboof:main' into report_changes
2023-08-21 21:41:32 +02:00
Andreas Gocht-Zech
9d8c92356c
fix
2023-08-20 22:28:43 +02:00
Andreas Gocht-Zech
668ae29c0a
add reporting of changes since last request
2023-08-20 22:07:43 +02:00
Arnout Engelen
1c06371dcd
Merge pull request #258 from AndreasGocht/main
...
fix python bindings
2023-07-13 22:13:41 +02:00
Andreas Gocht-Zech
b581af6990
fix python bindings
2023-07-12 20:46:59 +02:00
Arnout Engelen
f281ca30d1
Merge pull request #255 from DiedByDisgust/main
...
fix get_devlen function from being pointless
2023-04-23 11:09:55 +02:00
DiedByDisgust
bf44e39240
fix get_devlen function from being pointless
2023-04-22 18:02:44 -04:00
Arnout Engelen
24973112ba
Merge pull request #251 from sgtcortez/main
...
Fix wrong extern declaration of pidsToWatch
2023-03-22 14:22:39 +01:00
Matheus Rambo
c55a10bf26
fix: Wrong definition of "pidsToWatch" #230
2023-03-22 10:00:52 -03:00
Arnout Engelen
8f43d02d8c
Merge pull request #250 from orhun/docs/update_readme
...
Add Arch Linux instructions to README.md
2023-02-25 12:09:25 +01:00
Orhun Parmaksız
6763ff9aa2
Add Arch Linux instructions to README.md
2023-02-25 00:24:55 +03:00
Arnout Engelen
d30c5226a0
Format source code
...
It appears we have failed to run `make format` in the last few
commits. Doing it now. We should really add it to CI
2023-01-09 12:39:07 +01:00
Arnout Engelen
80df0044ec
Merge pull request #242 from a1346054/fixes
...
Use `s` instead of `sec` for units of seconds
2022-10-17 09:00:13 +02:00
a1346054
56c9348372
Trim trailing whitespace
2022-10-13 00:05:35 +00:00
a1346054
22c43c5523
Fix typo
2022-10-13 00:05:35 +00:00
a1346054
aefa6cf194
Use s instead of sec for units of seconds
2022-10-12 23:55:29 +00:00
Arnout Engelen
0dcba3c81f
Merge pull request #236 from NeilZhy/app-std-c++14
...
Add -std=c++14 for application build
2022-07-25 12:33:00 +02:00
yingzhang
4c30af3b9c
Add -std=c++14 for application build
2022-07-25 18:27:19 +08:00
Arnout Engelen
93604685f4
Merge pull request #234 from qouoq/main
...
Additional useful capabilities
2022-07-11 09:11:58 +02:00
Elie Huvier
a9258d10f4
Additional capabilities required
...
Specify additional capabilities in main.cpp (error message and comment),
and in man page.
2022-07-10 05:26:51 +08:00
Arnout Engelen
90fb48d109
Merge pull request #233 from qouoq/main
...
Capabilities for reading process names
2022-07-07 08:48:28 +02:00
qouoq
a2b7881dbe
Capabilities for reading process names
...
Adding cap_dac_read_search and cap_sys_ptrace to the setcap command, which allows non-root nethogs to display process names.
See https://stackoverflow.com/questions/41631927/read-proc-pid-fd-fd-without-full-root-access/47982314 and raboof/nethogs#142
2022-07-07 06:35:06 +08:00
Arnout Engelen
8a468d829c
Merge pull request #231 from zevweiss/hide-cursor
...
Hide cursor during initialization and restore at exit
2022-06-21 11:56:41 +02:00