netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft] segtree: add new segtree debugging option
Date: Wed, 15 Jan 2014 14:48:10 +0000	[thread overview]
Message-ID: <20140115144810.GA32750@macbook.localnet> (raw)
In-Reply-To: <1389788704-21079-1-git-send-email-pablo@netfilter.org>

On Wed, Jan 15, 2014 at 01:25:04PM +0100, Pablo Neira Ayuso wrote:
> 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>
> ---
> We need this in master to avoid inconditional display of the
> debugging information when --enable-debug is passed at configuration
> / compilation time. I'm aware this patch conflicts with next-3.14,
> that conflict should be easy to resolve.

Looks good, thanks, I wanted to change this myself.

A few more things about debugging, some are easy, some might be a bit more
work:

- we should use stdout for netlink rule debugging

- netlink rule debugging is very very verbose since it dumps the entire
  netlink message. I'd prefer to only have the netlink expressions
  ([meta load ...]) and have the netlink message as another option.
  It keeps scrolling everything off the screen.

- netlink message debugging colors break in less. We should check for
  isatty().

  reply	other threads:[~2014-01-15 14:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 12:25 [PATCH nft] segtree: add new segtree debugging option Pablo Neira Ayuso
2014-01-15 14:48 ` Patrick McHardy [this message]
2014-01-15 15:03   ` Pablo Neira Ayuso
2014-01-15 15:06     ` Patrick McHardy
2014-01-15 15:15       ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140115144810.GA32750@macbook.localnet \
    --to=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).