From 84f120b150d14adb1cefec601e28b2522612a620 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Sun, 6 May 2007 17:39:00 +0000 Subject: - add warning note to ctnl_test.c: old API is deprecated - split expect_api_test.c into small example files expect_*.c - introduce alias tags for original tuple attributes - introduce nfexp_sizeof and nfexp_maxsize - build expectation attributes iif they are set - fix l3num setting in expect/build.c --- utils/expect_flush.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 utils/expect_flush.c (limited to 'utils/expect_flush.c') diff --git a/utils/expect_flush.c b/utils/expect_flush.c new file mode 100644 index 0000000..22ae3d3 --- /dev/null +++ b/utils/expect_flush.c @@ -0,0 +1,27 @@ +#include +#include +#include + +#include + +int main() +{ + int ret; + u_int8_t family = AF_INET; + struct nfct_handle *h; + + h = nfct_open(EXPECT, 0); + if (!h) { + perror("nfct_open"); + return -1; + } + + ret = nfexp_query(h, NFCT_Q_FLUSH, &family); + + printf("TEST: flush expectation (%d)(%s)\n", ret, strerror(errno)); + + if (ret == -1) + exit(EXIT_FAILURE); + + exit(EXIT_SUCCESS); +} -- cgit v1.2.3