Signed-off-by: Nikola Pajkovsky <n.pajkovsky(a)gmail.com>
---
src/ipfrag.c | 23 +++++++++++++++++++++++
src/ipfrag.h | 23 -----------------------
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/src/ipfrag.c b/src/ipfrag.c
index e38550a710a5..27bc3f915035 100644
--- a/src/ipfrag.c
+++ b/src/ipfrag.c
@@ -19,6 +19,29 @@ the IP traffic monitor routine.
#include "ipfrag.h"
+struct fragdescent {
+ unsigned int min;
+ unsigned int max;
+ struct fragdescent *prev_entry;
+ struct fragdescent *next_entry;
+};
+
+struct fragent {
+ unsigned long s_addr;
+ in_port_t s_port;
+ unsigned long d_addr;
+ in_port_t d_port;
+ unsigned int id;
+ unsigned int protocol;
+ int firstin;
+ time_t starttime;
+ struct fragdescent *fragdesclist;
+ struct fragdescent *fragdesctail;
+ unsigned int bcount;
+ struct fragent *prev_entry;
+ struct fragent *next_entry;
+};
+
static struct fragent *fraglist = NULL;
static struct fragent *fragtail = NULL;
diff --git a/src/ipfrag.h b/src/ipfrag.h
index a04c4e7c1a23..6a0bc850c8e5 100644
--- a/src/ipfrag.h
+++ b/src/ipfrag.h
@@ -7,29 +7,6 @@ ipfrag.h - IP fragmentation hander definitions
***/
-struct fragdescent {
- unsigned int min;
- unsigned int max;
- struct fragdescent *prev_entry;
- struct fragdescent *next_entry;
-};
-
-struct fragent {
- unsigned long s_addr;
- in_port_t s_port;
- unsigned long d_addr;
- in_port_t d_port;
- unsigned int id;
- unsigned int protocol;
- int firstin;
- time_t starttime;
- struct fragdescent *fragdesclist;
- struct fragdescent *fragdesctail;
- unsigned int bcount;
- struct fragent *prev_entry;
- struct fragent *next_entry;
-};
-
static inline unsigned int ipv4_frag_offset(struct iphdr *ip)
{
return (ntohs(ip->frag_off) & 0x1fff) * 8;
--
2.0.0.rc2