From a4b1c0c704d082a70fe68b3a97a9c03416f63ccf Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 16 Jan 2014 17:42:02 +0100 Subject: src: add new --debug=mnl option to enable libmnl debugging This allows you to dump the netlink message that is send via libmnl. Signed-off-by: Pablo Neira Ayuso --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index d78eea79..3f5dd04e 100644 --- a/src/main.c +++ b/src/main.c @@ -111,7 +111,7 @@ static void show_help(const char *name) " -a/--handle Output rule handle.\n" " -I/--includepath Add to the paths searched for include files.\n" #ifdef DEBUG -" --debug Specify debugging level (scanner, parser, eval, netlink, segtree, all)\n" +" --debug Specify debugging level (scanner, parser, eval, netlink, mnl, segtree, all)\n" #endif "\n", name); @@ -138,6 +138,10 @@ static const struct { .name = "netlink", .level = DEBUG_NETLINK, }, + { + .name = "mnl", + .level = DEBUG_MNL, + }, { .name = "segtree", .level = DEBUG_SEGTREE, -- cgit v1.2.3