aboutsummaryrefslogtreecommitdiff
path: root/utils.h
Commit message (Collapse)AuthorAge
* Moved some code out of `change_user_group()` to `chmod_chown()`.Toni Uhlig2024-10-16
| | | | | | | | * makes lots sense for nDPIsrvd and some examples * added debian dpkg scripts for user mgmt * nDPIsrvd: set different groups for collector/distributor UNIX socket Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Renamed `GET_CMDARG_BOOLEAN()` to `GET_CMDARG_BOOL()`Toni Uhlig2024-10-16
| | | | | | * added WARN_UNUSED Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Added support for parsing (global) libnDPI options via config file.Toni Uhlig2024-10-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Added support for setting tuning options via config file.Toni Uhlig2024-10-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Improved/Added (tuning) subopt parsing and config file reading.Toni Uhlig2024-10-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Read and parse configuration files. Fixes #41.Toni Uhlig2024-10-16
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Warn about unused return values that are quite important.Toni Uhlig2023-12-01
| | | | | | | * CI: ArchLinux build should now instrument `-Werror` * CI: Increased OpenWrt build verbosity Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Apple/BSD port (#30)Toni2023-11-06
| | | | | | | | * Add MacOS to Github CI builds. * Fixed libnDPI-4.8 CI build. * Fixed missing include for `struct sockaddr*`. * Reworked IPv4 address and netmask retrieval. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Unified nDPId/nDPIsrvd command line argument storage.Toni Uhlig2022-11-21
| | | | Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Added logging interface used by nDPId, nDPIsrvd and nDPId-test.Toni Uhlig2022-02-03
| | | | | | | | | * fixed GitLab pipeline * nDPId: added static assert (just for a test) * nDPId: memory profiling for total bytes compressed * nDPId-test: enable zLib compression if configured with ENABLE_ZLIB Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* Git tag/commit version printing for nDPId/nDPIsrvd. Reduces confusion.Toni Uhlig2021-06-08
| | | | | | * disabled subshell spawn for run_tests.sh, common pitfall while using counters Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPId-test: added JSON distribution + JSON parsing (Multithreaded design ↵Toni Uhlig2021-04-09
| | | | | | | | | | | | | | re-using most of nDPId/nDPIsrvd core) * improved Makefile.old install targets * splitted nDPIsrvd_parse into nDPIsrvd_parse_line and nDPIsrvd_parse_all for the sake of readability * minor Python script improvments (check for nDPIsrvd.py on multiple locations, may be superseeded by setuptools in the future) * some paths needs to be absolute (chdir() during daemonize) and therefor additional checks introduced * test run script checks and fails if certain files are are missing (PCAP file <=> result output file) * removed not very useful "internal format error" JSON serialization if a BUG for same exists * fixed invalid l4 type statistics counters for nDPIsrvd-collectd Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPId/nDPIsrvd: change_user_group does now chown/chmod collector/distributor ↵Toni Uhlig2020-10-07
| | | | | | socket paths Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* nDPIsrvd: Change user/group, allow listening on UNIX socket for incoming ↵Toni Uhlig2020-09-05
| | | | | | distributor connections Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* added utils module to share some code parts with other appsToni Uhlig2020-08-05
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>