summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-01-15 13:14:25 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-01-15 14:38:32 +0100
commitfd0ca1166e3c3e98c1cec3d8f59693b8da328798 (patch)
treed907036a0fd3cd850fff72b68097c35aca9c8c16 /src/main.c
parentd5e4f94cf130c79758d285ad88f4bd10674e409e (diff)
segtree: add new segtree debugging option
Currently, nft displays the debugging information if it's compiled with --enable-debug (which seems a good idea) and when intervals are used in maps. Add a new option to enable debugging to segtree, so we only get this information when explicitly requested. 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 e8be423d..d78eea79 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, all)\n"
+" --debug <level [,level...]> Specify debugging level (scanner, parser, eval, netlink, segtree, all)\n"
#endif
"\n",
name);
@@ -139,6 +139,10 @@ static const struct {
.level = DEBUG_NETLINK,
},
{
+ .name = "segtree",
+ .level = DEBUG_SEGTREE,
+ },
+ {
.name = "all",
.level = ~0,
},