diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index fea0db7..9dd7318 100644 --- a/src/common.h +++ b/src/common.h @@ -1,3 +1,6 @@ +#ifndef COMMON_H +#define COMMON_H + #ifdef DEBUG #define DBG(...) do { fprintf(stderr, __VA_ARGS__); putc('\n', stderr); } while (0) #else @@ -7,3 +10,14 @@ #define IN_ADDR_PORT(addr) (((struct sockaddr_in *)addr)->sin_port) extern int free_mem_on_exit; +extern void *libpcap; + +struct common_data { + const char *listen_host; + const char *listen_port; + const char *remote_host; + const char *remote_port; + const char *device; +}; + +#endif |