aboutsummaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.h b/main.h
index 71ed7ca..c955b18 100644
--- a/main.h
+++ b/main.h
@@ -49,7 +49,7 @@
}
#define debug(format, ...) \
if (DEBUG_ON) { \
- fprintf(stdout, format, ##__VA_ARGS__); \
+ fprintf(stdout, format "\n", ##__VA_ARGS__); \
}
#define CEILING(a,b) ((a)%(b) == 0 ? ((a)/(b)) : ((a)/(b)+1))
@@ -106,3 +106,6 @@ typedef struct _nflog_state_t {
pthread_mutex_t lock;
pthread_t thread;
} nflog_state_t;
+
+// only copy size of ipv4 header + tcp header
+static const int nflog_recv_size = sizeof(struct iphdr) + sizeof(struct tcphdr);