summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-01-16 17:42:02 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-01-16 19:47:50 +0100
commita4b1c0c704d082a70fe68b3a97a9c03416f63ccf (patch)
treec5d304c9e72641fe6bf85262ba7ec8be4a7373e5 /src/main.c
parent998f010120cf91578717d3ed037bad16f80c963f (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
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 <directory> Add <directory> to the paths searched for include files.\n"
#ifdef DEBUG
-" --debug <level [,level...]> Specify debugging level (scanner, parser, eval, netlink, segtree, all)\n"
+" --debug <level [,level...]> Specify debugging level (scanner, parser, eval, netlink, mnl, segtree, all)\n"
#endif
"\n",
name);
@@ -139,6 +139,10 @@ static const struct {
.level = DEBUG_NETLINK,
},
{
+ .name = "mnl",
+ .level = DEBUG_MNL,
+ },
+ {
.name = "segtree",
.level = DEBUG_SEGTREE,
},