From 9064374e7758bc4fa167d1c30ccc751ea588f5db Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 22 Jan 2012 19:41:07 +0100 Subject: expect: add XML support for nfexp_snprintf() Example of the XML output: 192.168.0.2 192.168.1.2 255.255.255.255 255.255.255.255 192.168.0.2 192.168.1.2 0 41739 0 65535 36390 21 ftp 300 0 Signed-off-by: Pablo Neira Ayuso --- utils/expect_events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/expect_events.c b/utils/expect_events.c index 8adacb6..03161b9 100644 --- a/utils/expect_events.c +++ b/utils/expect_events.c @@ -12,7 +12,7 @@ static int event_cb(enum nf_conntrack_msg_type type, static int n = 0; char buf[1024]; - nfexp_snprintf(buf, 1024, exp, type, NFCT_O_DEFAULT, 0); + nfexp_snprintf(buf, 1024, exp, type, NFCT_O_XML, 0); printf("%s\n", buf); if (++n == 10) -- cgit v1.2.3