netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Varsha Rao <rvarsha016@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft v3] src: Pass stateless, numeric, ip2name and handle variables as structure members.
Date: Sun, 18 Jun 2017 11:24:09 +0200	[thread overview]
Message-ID: <20170618092409.GA2214@salvia> (raw)
In-Reply-To: <5943a3bc.4c17620a.524bc.7af5@mx.google.com>

On Fri, Jun 16, 2017 at 02:54:06PM +0530, Varsha Rao wrote:
> libnftables library will be created soon. So declare numeric_output,
> stateless_output, ip2name_output and handle_output as members of
> structure output_ctx, instead of global variables. Rename these
> variables as following,
> 
> numeric_output -> numeric
> stateless_output -> stateless
> ip2name_output -> ip2name
> handle_output -> handle
> 
> Also add struct output_ctx *octx as member of struct netlink_ctx.

Applied, thanks Varsha. Some small changes though, see below.

> diff --git a/src/main.c b/src/main.c
> index 5089ff2..d09fd78 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -28,11 +28,8 @@
>  #include <iface.h>
>  #include <cli.h>
>  
> +struct output_ctx octx;

I turned this into 'static struct ...'

>  unsigned int max_errors = 10;
> -unsigned int numeric_output;
> -unsigned int stateless_output;
> -unsigned int ip2name_output;
> -unsigned int handle_output;
>  #ifdef DEBUG
>  unsigned int debug_level;
>  #endif
[...]

And some other small comestic changes, but overall looks good!

Thanks!

      reply	other threads:[~2017-06-18  9:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-16  9:24 [PATCH nft v3] src: Pass stateless, numeric, ip2name and handle variables as structure members Varsha Rao
2017-06-18  9:24 ` Pablo Neira Ayuso [this message]

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=20170618092409.GA2214@salvia \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=rvarsha016@gmail.com \
    /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).