projects
/
platform
/
upstream
/
ebtables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b78a7e8
)
check the version
author
Bart De Schuymer
<bdschuym@pandora.be>
Sun, 21 Nov 2004 17:00:37 +0000
(17:00 +0000)
committer
Bart De Schuymer
<bdschuym@pandora.be>
Sun, 21 Nov 2004 17:00:37 +0000
(17:00 +0000)
examples/ulog/test_ulog.c
patch
|
blob
|
history
diff --git
a/examples/ulog/test_ulog.c
b/examples/ulog/test_ulog.c
index
754d677
..
cbb6c4f
100644
(file)
--- 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;