diff options
author | netblue30 <netblue30@protonmail.com> | 2022-02-02 10:58:14 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2022-02-02 10:58:14 -0500 |
commit | f5c0b6af59b4c5e4c677d8bd9703beb4d2e628c3 (patch) | |
tree | acc78a5c8591f832c25bee1f988373540993db9e /src/fnettrace/fnettrace.h | |
parent | Bump github/codeql-action from 1.0.29 to 1.0.30 (diff) | |
download | firejail-f5c0b6af59b4c5e4c677d8bd9703beb4d2e628c3.tar.gz firejail-f5c0b6af59b4c5e4c677d8bd9703beb4d2e628c3.tar.zst firejail-f5c0b6af59b4c5e4c677d8bd9703beb4d2e628c3.zip |
netlocker fixes
Diffstat (limited to 'src/fnettrace/fnettrace.h')
-rw-r--r-- | src/fnettrace/fnettrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fnettrace/fnettrace.h b/src/fnettrace/fnettrace.h index 66b7378da..b30a9f10d 100644 --- a/src/fnettrace/fnettrace.h +++ b/src/fnettrace/fnettrace.h | |||
@@ -23,10 +23,15 @@ | |||
23 | #include "../include/common.h" | 23 | #include "../include/common.h" |
24 | #include <unistd.h> | 24 | #include <unistd.h> |
25 | #include <sys/stat.h> | 25 | #include <sys/stat.h> |
26 | #include <sys/types.h> | ||
26 | #include <sys/socket.h> | 27 | #include <sys/socket.h> |
27 | #include <netinet/in.h> | 28 | #include <netinet/in.h> |
28 | #include <time.h> | 29 | #include <time.h> |
29 | #include <stdarg.h> | 30 | #include <stdarg.h> |
31 | #include <fcntl.h> | ||
32 | #include <sys/mman.h> | ||
33 | |||
34 | |||
30 | //#define DEBUG 1 | 35 | //#define DEBUG 1 |
31 | 36 | ||
32 | #define NETLOCK_INTERVAL 60 // seconds | 37 | #define NETLOCK_INTERVAL 60 // seconds |
@@ -62,4 +67,7 @@ extern int geoip_calls; | |||
62 | void load_hostnames(const char *fname); | 67 | void load_hostnames(const char *fname); |
63 | char* retrieve_hostname(uint32_t ip); | 68 | char* retrieve_hostname(uint32_t ip); |
64 | 69 | ||
70 | // tail.c | ||
71 | void tail(const char *logfile); | ||
72 | |||
65 | #endif \ No newline at end of file | 73 | #endif \ No newline at end of file |