diff --git a/hping2.h b/hping2.h index 27cb0ff..60d4370 100644 --- a/hping2.h +++ b/hping2.h @@ -357,7 +357,7 @@ struct delaytable_element { int status; }; -volatile struct delaytable_element delaytable[TABLESIZE]; +extern volatile struct delaytable_element delaytable[TABLESIZE]; /* protos */ void nop(void); /* nop */ diff --git a/main.c b/main.c index 3aedd86..f7bace6 100644 --- a/main.c +++ b/main.c @@ -30,6 +30,8 @@ #include "hping2.h" +volatile struct delaytable_element delaytable[TABLESIZE]; + /* globals */ unsigned int tcp_th_flags = 0,