From 58145ed8a0c6fc94ed42a1542a466e8d8ebc2afd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 9 Nov 2010 00:02:37 +0100 Subject: 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 --- utils/expect_events.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3