path: root/utils/expect_events.c
diff options
authorPablo Neira Ayuso <>2012-01-22 19:41:07 +0100
committerPablo Neira Ayuso <>2012-01-22 21:26:12 +0100
commit9064374e7758bc4fa167d1c30ccc751ea588f5db (patch)
tree8fa4252ed572a12b279469fb0038efe4a4445d88 /utils/expect_events.c
parent14b50313556eb7ad86de21438ae5837624db381f (diff)
expect: add XML support for nfexp_snprintf()
Example of the XML output: <flow type="new"> <layer3 protonum="2" protoname="IPv4"> <expected> <src></src> <dst></dst> </expected> <mask> <src></src> <dst></dst> </mask> <master> <src></src> <dst></dst> </master> </layer3> <layer4 protonum="6" protoname="tcp"> <expected> <sport>0</sport> <dport>41739</dport> </expected> <mask> <sport>0</sport> <dport>65535</dport> </mask> <master> <sport>36390</sport> <dport>21</dport> </master> </layer4> <meta> <helper-name>ftp</helper-name> <timeout>300</timeout> <zone>0</zone> </meta> </flow> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'utils/expect_events.c')
1 files changed, 1 insertions, 1 deletions
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)