summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2004-11-21 17:00:37 +0000
committerBart De Schuymer <bdschuym@pandora.be>2004-11-21 17:00:37 +0000
commit7c496af69cf98dbba1a12c344df9a0bd945f94e1 (patch)
treeb4e9338b61c3048abc7c984be1380f3f96ff308b
parentffcda648acb6bb54b85e5a01da7fbf22758cda3d (diff)
check the version
-rw-r--r--userspace/ebtables2/examples/ulog/test_ulog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/userspace/ebtables2/examples/ulog/test_ulog.c b/userspace/ebtables2/examples/ulog/test_ulog.c
index 754d677..cbb6c4f 100644
--- a/userspace/ebtables2/examples/ulog/test_ulog.c
+++ b/userspace/ebtables2/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;