mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-02 19:27:48 +00:00
* 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>
19 lines
527 B
C
19 lines
527 B
C
#ifndef UTILS_H
|
|
#define UTILS_H 1
|
|
|
|
int is_path_absolute(char const * const prefix,
|
|
char const * const path);
|
|
|
|
void daemonize_enable(void);
|
|
|
|
int daemonize_with_pidfile(char const * const pidfile);
|
|
|
|
int daemonize_shutdown(char const * const pidfile);
|
|
|
|
int change_user_group(char const * const user, char const * const group,
|
|
char const * const pidfile,
|
|
char const * const uds_collector_path,
|
|
char const * const uds_distributor_path);
|
|
|
|
#endif
|