summaryrefslogtreecommitdiffstats
path: root/examples/ulog/test_ulog.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ulog/test_ulog.c')
-rw-r--r--examples/ulog/test_ulog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/ulog/test_ulog.c b/examples/ulog/test_ulog.c
index 754d677..cbb6c4f 100644
--- a/examples/ulog/test_ulog.c
+++ b/examples/ulog/test_ulog.c
@@ -171,6 +171,11 @@ int main(int argc, char **argv)
if (!(msg = ulog_get_packet()))
continue;
+ if (msg->version != EBT_ULOG_VERSION) {
+ printf("WRONG VERSION: %d INSTEAD OF %d\n",
+ msg->version, EBT_ULOG_VERSION);
+ continue;
+ }
printf("PACKET NR: %d\n", ++pktcnt);
iph = NULL;
curr_len = ETH_HLEN;