From 451dafe6f5e1add75793597ba9bd0e3fddf2d7f9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 22 Jan 2012 22:00:54 +0100 Subject: conntrackd: support `-i exp -x' and `-e exp -x' options This patch allows you to dump the internal and external expectation cache in XML. % conntrackd -i exp -x 192.168.1.135130.89.148.12255.255.255.255255.255.255.255192.168.1.135130.89.148.12090820655355051821ftp Signed-off-by: Pablo Neira Ayuso --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 342ed45..0850a29 100644 --- a/src/main.c +++ b/src/main.c @@ -290,6 +290,10 @@ int main(int argc, char *argv[]) action = CT_DUMP_INT_XML; else if (action == CT_DUMP_EXTERNAL) action = CT_DUMP_EXT_XML; + else if (action == EXP_DUMP_INTERNAL) + action = EXP_DUMP_INT_XML; + else if (action == EXP_DUMP_EXTERNAL) + action = EXP_DUMP_EXT_XML; else { show_usage(argv[0]); fprintf(stderr, "Error: Invalid parameters\n"); -- cgit v1.2.3