summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-11-09 00:02:37 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-11-09 00:39:19 +0100
commit58145ed8a0c6fc94ed42a1542a466e8d8ebc2afd (patch)
treea9c4318d11ab887fa23afc91eee9b2070a0f7669
parentb245e4092c5a7f09729e64868a42e13f48ac5db8 (diff)
utils: expect_events now listens to all sort of expectation events
With this patch, the expect_events example also listens to other sort of expectation events that were added in Linux kernel 2.6.37-rc. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--utils/expect_events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/expect_events.c b/utils/expect_events.c
index a8b84cc..89426f4 100644
--- a/utils/expect_events.c
+++ b/utils/expect_events.c
@@ -25,7 +25,9 @@ int main()
int ret;
struct nfct_handle *h;
- h = nfct_open(EXPECT, NF_NETLINK_CONNTRACK_EXP_NEW);
+ h = nfct_open(EXPECT, NF_NETLINK_CONNTRACK_EXP_NEW |
+ NF_NETLINK_CONNTRACK_EXP_UPDATE |
+ NF_NETLINK_CONNTRACK_EXP_DESTROY);
if (!h) {
perror("nfct_open");
return -1;