netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Carlos Falgueras García" <carlosfg@riseup.net>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] src: Add command "replace" for rules
Date: Fri, 6 Nov 2015 14:42:35 +0100	[thread overview]
Message-ID: <20151106134235.GA7030@salvia> (raw)
In-Reply-To: <1445947087-25861-1-git-send-email-carlosfg@riseup.net>

On Tue, Oct 27, 2015 at 12:58:07PM +0100, Carlos Falgueras García wrote:
> Modify the parser and add necessary functions to provide the command "nft
> replace rule <ruleid_spec> <new_rule>"
> 
> Example of use:
> 	# nft list ruleset -a
> 	table ip filter {
> 		chain output {
> 			ip daddr 8.8.8.7 counter packets 0 bytes 0 # handle 3
> 		}
> 	}
> 	# nft replace rule filter output handle 3 ip daddr 8.8.8.8 counter
> 	# nft list ruleset -a
> 	table ip filter {
> 		chain output {
> 			ip daddr 8.8.8.8 counter packets 0 bytes 0 # handle 3
> 		}
> 	}

Applied, thanks Carlos.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2015-11-06 13:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 11:58 [PATCH] src: Add command "replace" for rules Carlos Falgueras García
2015-11-06 13:42 ` 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=20151106134235.GA7030@salvia \
    --to=pablo@netfilter.org \
    --cc=carlosfg@riseup.net \
    --cc=netfilter-devel@vger.kernel.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).