4 #define plog(fmt, ...) do{ fprintf(stdout, (fmt), ##__VA_ARGS__); }while(0)
6 #define olog(fmt, ...) do{ if(!(ISSET_CONFIG_QUIET(config))) fprintf(stdout, (fmt), ##__VA_ARGS__); }while(0)
8 #define dlog(fmt, ...) do { fprintf(stderr, ("[%s:%d(%s)] " fmt), __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__);} while(0)
9 #define vlog(v, fmt, ...) do{ if(DEBUG == v) fprintf(stderr, ("[%s:%d(%s)] " fmt), __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); }while(0)
10 #define elog(fmt, ...) fprintf(stderr, ("[%s:%d(%s)] " fmt), __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__);
12 #define elog(fmt, ...) fprintf(stderr, (fmt), ##__VA_ARGS__);
13 #define dlog(fmt, ...) do { ; } while(0)
14 #define vlog(fmt, ...) do { ; } while(0)
16 #define debug(x...) fprintf(stderr,x)
17 #define fatal(x...) do { debug("[-] ERROR: " x); exit(1); } while (0)
19 #define SETFLAG(key,flags) do{ key |= (flags); }while(0)
20 #define RESETFLAG(key,flags) do { key &= ~(flags); }while(0)
21 size_t strlcpy(char *dst
, const char *src
, size_t size
);
22 size_t strlcat(char *dst
, const char *src
, size_t len
);
23 const char *u_ntop(const struct in6_addr ip_addr
, int af
, char *dest
);
24 void bucket_keys_NULL();
27 int is_valid_path(const char *path
);
28 int create_pid_file(const char *path
);
30 void end_all_sessions();
31 void del_assets(int ctime
);
33 void set_end_sessions();
35 void check_interrupt();
36 void print_pcap_stats();
37 void print_prads_stats();
38 void unload_tcp_sigs();
39 uint8_t normalize_ttl (uint8_t ttl
);
40 char *hex2mac(const uint8_t *mac
);