--- a/sn_cfgfile.h 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_cfgfile.h 2010-09-16 18:14:53.000000000 +0200 @@ -10,3 +10,4 @@ void make_nr_dot (char *); void interprete_line (char *); void read_cfg_file (char *); +char *strlower (char *); --- a/sn_structs.h 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_structs.h 2010-09-16 18:14:53.000000000 +0200 @@ -67,7 +67,7 @@ struct snif_mask /* struct for mask */ { _32_bit source_ip, destination_ip; - _32_bit short source_port, destination_port; + _32_bit source_port, destination_port; }; /* (packet generation) */ --- a/sn_analyse.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_analyse.c 2010-09-16 18:14:53.000000000 +0200 @@ -1,6 +1,9 @@ /* Analyse traffic for logging mode */ /* - by: Brecht Claerhout */ +#include +#include + const unsigned char *data; memcpy(&tcphead,header,sizeof(struct TCP_header)); --- a/sn_cfgfile.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_cfgfile.c 2010-09-16 18:14:53.000000000 +0200 @@ -3,6 +3,11 @@ /* - improvements: Shudoh Kazuyuki */ #include +#include +#include "sn_interface.h" +#include +#include +#include #include /* for getservbyname() */ #include "sn_config.h" --- a/sn_conn_desc.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_conn_desc.c 2010-09-16 18:14:53.000000000 +0200 @@ -1,6 +1,8 @@ /* Connection description detection file */ /* - by: Brecht Claerhout */ +#include +#include /* Simple PORT BASED detection */ --- a/sn_generation.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_generation.c 2010-09-16 18:18:31.000000000 +0200 @@ -6,12 +6,16 @@ #ifdef INCLUDE_INTERFACE #ifdef GENERATION #include +#include +#include #include #include #include "sn_curses.h" #include "sn_defines.h" #include "sn_structs.h" #include "sn_generation.h" +#include "sn_interface.h" /* input_field() */ +#include "sn_packets.h" /* in_cksum() */ extern volatile int screen_busy; --- a/sniffit.0.3.7.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sniffit.0.3.7.c 2010-09-16 18:14:53.000000000 +0200 @@ -4,6 +4,9 @@ #include "sn_config.h" /* Config header file */ #include +#include +#include +#include #include #include #include --- a/sn_interface.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_interface.c 2010-09-16 18:15:59.000000000 +0200 @@ -6,6 +6,9 @@ #ifdef INCLUDE_INTERFACE #include #include +#include +#include +#include #include #include #include "sn_curses.h" --- a/sn_logfile.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_logfile.c 2010-09-16 18:16:44.000000000 +0200 @@ -4,6 +4,9 @@ #include "sn_config.h" #include +#include /* exit() */ +#include /* strcpy() */ +#include /* time() ctime() */ #include #include #include "sn_defines.h" --- a/sn_packets.c 1998-07-16 18:17:10.000000000 +0200 +++ b/sn_packets.c 2010-09-16 18:14:53.000000000 +0200 @@ -5,6 +5,7 @@ #include "sn_defines.h" #include "sn_structs.h" #include +#include /* memcpy() strcpy() */ extern int PROTO_HEAD; extern char NO_CHKSUM;