From 500a56efd310396f142440019aee671b5f747efb Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 7 Jan 2022 09:52:00 -0500 Subject: more on nettrace --- src/fnettrace/fnettrace.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/fnettrace/fnettrace.h') diff --git a/src/fnettrace/fnettrace.h b/src/fnettrace/fnettrace.h index 93c9613ab..8384f1770 100644 --- a/src/fnettrace/fnettrace.h +++ b/src/fnettrace/fnettrace.h @@ -27,12 +27,14 @@ #include #include #include +//#define DEBUG 1 //#define NETLOCK_INTERVAL 15 #define NETLOCK_INTERVAL 60 -#define DISPLAY_INTERVAL 3 +#define DISPLAY_INTERVAL 2 +#define DISPLAY_TTL 4 +#define DISPLAY_BW_UNITS 20 -void logprintf(char* fmt, ...); static inline void ansi_topleft(void) { char str[] = {0x1b, '[', '1', ';', '1', 'H', '\0'}; @@ -53,6 +55,12 @@ static inline uint8_t hash(uint32_t ip) { return *ptr ^ *(ptr + 1) ^ *(ptr + 2) ^ *(ptr + 3); } +// main.c +void logprintf(char* fmt, ...); +// hostnames.c +void load_hostnames(const char *fname); +char* retrieve_hostname(uint32_t ip); +void build_list(const char *fname); #endif \ No newline at end of file -- cgit v1.2.3-70-g09d2