From patchwork Thu May 17 07:36:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TcOhdMOpIEVja2w=?= X-Patchwork-Id: 915148 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netfilter-devel-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WS5gNfp5"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40mjnC6m4wz9s33 for ; Thu, 17 May 2018 17:37:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752303AbeEQHhS (ORCPT ); Thu, 17 May 2018 03:37:18 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54611 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbeEQHhN (ORCPT ); Thu, 17 May 2018 03:37:13 -0400 Received: by mail-wm0-f65.google.com with SMTP id f6-v6so6610271wmc.4 for ; Thu, 17 May 2018 00:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:in-reply-to :references:mime-version:content-transfer-encoding; bh=pZUrZLAmBRwrrQKoCrp/CR+QSTEUVUVVgGvP5/1QFxI=; b=WS5gNfp5/x8MnuGCXTSL5jkxDqa/LhJ6RcnNAI2GJQEDNCuVpzWxluJDb7vesnfOsB o8WPQN/v7yYi9k3rb1YF3GyegGekcGluF5ljisMWU7v770dPrPFvCDIrHTrnAImCrszO iCzuPdKpf7bZkUOFLrOWxLSGCiC9x7Eo4359bfe2E82+ca5akUbYudN0jknrtkDvgnLV iN2fu7keEzpfiMKmPXOzrcgJG4TbeDHWraFrF+2fI1gnBM3zVZPm3vKmg2MXx36+dcqt 0HIDmqAk5MVkWqMLDUkgMRV21+7O3iesFvNw+1fm9CmYc4O0FBQbRpVI92q4RSVfrV1G b6xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:in-reply-to:references:mime-version :content-transfer-encoding; bh=pZUrZLAmBRwrrQKoCrp/CR+QSTEUVUVVgGvP5/1QFxI=; b=uA2k/rOJiOJZLySMf5luyJd5qGba+hV4tgXzVv3rup4G+G3PpBZPq3GIFn3zgkCUJg Cb0on1rsDdmun2T4m1OYlItOWK4SwzZgbC44AMB4QhzgeYSH08vMYAoihKsL9yDSxfwn p0JPofUHvTLhwEftbyjmOLO1aQNBxJ4MHuc9JtGqlxuMu1mmZnhOweTWNgVX3Bp5T7lV 5bCOjd4JIjvAo9GbgiDJoPiBVYGcmnouTtYzbjk+XH3dqya1rhoBs98lUXnvtyUSN6gt i+E5G0nq0md2F/kq2MQ3SX1TdAzxwW159NYTGEjxqCmlKXkJreJsCJJvJHe8dKaQtAQx TuBQ== X-Gm-Message-State: ALKqPwffCaE57fXurCEF9rqyfKIvV80hlBMW/8LPvSr8R+jIIyb5FHfy MTn8aTe3Ew8x/aOUJMxRr1FpMSZP X-Google-Smtp-Source: AB8JxZp8vHzNzwbzcV6bFw/JJbBgBwaIJD4y/XvIVd4YvxHlkQ1mffaK/aIN3cb9gJOYBiBVACKekQ== X-Received: by 2002:a1c:355:: with SMTP id 82-v6mr825577wmd.96.1526542632332; Thu, 17 May 2018 00:37:12 -0700 (PDT) Received: from ecklm-lapos.sch.bme.hu (ecklapos.sch.bme.hu. [152.66.210.16]) by smtp.gmail.com with ESMTPSA id 123-v6sm5614787wmt.19.2018.05.17.00.37.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 00:37:11 -0700 (PDT) From: =?utf-8?b?TcOhdMOpIEVja2w=?= To: netfilter-devel@vger.kernel.org Subject: [PATCH nft 3/7] test/py: Updated test file structure descripion in README Date: Thu, 17 May 2018 09:36:58 +0200 Message-Id: <3691ce35e8668bcab2742342db2c65242aac78ba.1526542126.git.ecklm94@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org The order of the table and chain definitions have changed in test files. Now the name of the chain has to be specified in the definition of the table, so their order is reverted. Signed-off-by: Máté Eckl --- tests/py/README | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/py/README b/tests/py/README index 005fe8e..a156032 100644 --- a/tests/py/README +++ b/tests/py/README @@ -64,11 +64,11 @@ A test file contains a set of rules that are added in the system. Here, an example of a test file: - *ip;test-ipv4 # line 1 - *ip6;test-ipv6 # line 2 - *inet;test-inet # line 3 + :input;type filter hook input priority 0 # line 1 - :input;type filter hook input priority 0 # line 4 + *ip;test-ipv4;input # line 2 + *ip6;test-ipv6;input # line 3 + *inet;test-inet;input # line 4 ah hdrlength != 11-23;ok;ah hdrlength < 11 ah hdrlength > 23 # line 5 - tcp dport != {22-25} # line 6 @@ -77,12 +77,12 @@ Here, an example of a test file: ?set1 192.168.3.8 192.168.3.9;ok # line 8 # This is a commented-line. # line 9 -Line 1 defines a table. The name of the table is 'test-ipv4' and the -family is ip. Lines 2 and 3 defines more tables for different families -so the rules in this test file are also tested there. +Line 1 defines a chain. The name of this chain is "input". The type is "filter", +the hook is "input" and the priority is 0. -Line 4 defines the chain. The name of this chain is "input". The type is -"filter", the hook is "input" and the priority is 0. +Line 2 defines a table. The name of the table is 'test-ipv4', the family is ip +and the chain to be added to it is 'input'. Lines 3 and 4 defines more tables for +different families so the rules in this test file are also tested there. Line 5 defines the rule, the ";" character is used as separator of several parts: