diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-15 13:14:25 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-01-15 14:38:32 +0100 |
commit | fd0ca1166e3c3e98c1cec3d8f59693b8da328798 (patch) | |
tree | d907036a0fd3cd850fff72b68097c35aca9c8c16 /src/main.c | |
parent | d5e4f94cf130c79758d285ad88f4bd10674e409e (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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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, }, |