From patchwork Mon Mar 16 15:06:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alvaro Neira X-Patchwork-Id: 450612 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4FDED1400B7 for ; Tue, 17 Mar 2015 02:06:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=A7Uuxutq; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965207AbbCPPGF (ORCPT ); Mon, 16 Mar 2015 11:06:05 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:36937 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754137AbbCPPF4 (ORCPT ); Mon, 16 Mar 2015 11:05:56 -0400 Received: by wixw10 with SMTP id w10so46073707wix.0 for ; Mon, 16 Mar 2015 08:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=6AqM5MIbPPoMTKLxXvdFmYjcSdsyCtyGMNdYC7Z6KL4=; b=A7Uuxutq8RH/roKVAdtRGvly1hHaFG6H7TlOeUpKLaEfz1+iwLJAmgbKr1QuECFUPL oKqUhqMWDnRecJ7Q0e8h+r1U22+scSD4JigFT8vYUARFhjihzrxRGDKxkeT0zMc58mSy xNf0rNBlMv68ndEk/37X3VXeNxwMiz09yzytF6/tw+enxRh7/MaL2w/pvblsdq5Ir9wD dCE2LclQ88of+g69TkLNqS7ipwuqiwyVgxpvHE5looOn+VTwAS7i2qGhq5b/etDcpkeI zuaKbfliiC1mHgZL7mMhEgq1W5tTz/7tdSi5vwpVlzIMYQ7PBQ+stKHTi112ggOmb+fA U+sg== X-Received: by 10.180.20.43 with SMTP id k11mr27427725wie.93.1426518355095; Mon, 16 Mar 2015 08:05:55 -0700 (PDT) Received: from localhost.localdomain (129.166.216.87.static.jazztel.es. [87.216.166.129]) by mx.google.com with ESMTPSA id s19sm15725928wik.18.2015.03.16.08.05.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 08:05:54 -0700 (PDT) From: Alvaro Neira Ayuso To: netfilter-devel@vger.kernel.org Subject: [nft PATCH 2/3] rule: export the ruleset using the new node "add" Date: Mon, 16 Mar 2015 16:06:10 +0100 Message-Id: <1426518371-11717-2-git-send-email-alvaroneay@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1426518371-11717-1-git-send-email-alvaroneay@gmail.com> References: <1426518371-11717-1-git-send-email-alvaroneay@gmail.com> Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Signed-off-by: Alvaro Neira Ayuso --- src/rule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rule.c b/src/rule.c index 8d76fd0..b392ead 100644 --- a/src/rule.c +++ b/src/rule.c @@ -754,7 +754,7 @@ static int do_command_export(struct netlink_ctx *ctx, struct cmd *cmd) if (rs == NULL) return -1; - nft_ruleset_fprintf(stdout, rs, cmd->export->format, 0); + nft_ruleset_fprintf(stdout, rs, cmd->export->format, NFT_OF_EVENT_NEW); fprintf(stdout, "\n"); nft_ruleset_free(rs);