From: Ana Rey <anarey@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: eric.dumazet@gmail.com, Ana Rey <anarey@gmail.com>
Subject: [PATCH] [nft] tests: Add tests for cpu attribute of meta expresion.
Date: Thu, 7 Aug 2014 09:00:58 +0200 [thread overview]
Message-ID: <1407394858-26841-4-git-send-email-anarey@gmail.com> (raw)
In-Reply-To: <1407394858-26841-1-git-send-email-anarey@gmail.com>
Add some tests to check the cpu attribute of meta expresion.
Signed-off-by: Ana Rey <anarey@gmail.com>
---
tests/any/meta.t | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/any/meta.t b/tests/any/meta.t
index 7361962..7cdf87a 100644
--- a/tests/any/meta.t
+++ b/tests/any/meta.t
@@ -164,3 +164,11 @@ meta pkttype != unicast;ok;pkttype != unicast
meta pkttype != multicast;ok;pkttype != multicast
meta pkttype broadcastttt;fail
-meta pkttype { broadcast, multicast} accept;ok
+
+meta cpu 1;ok;cpu 1
+meta cpu != 1;ok;cpu != 1
+meta cpu 1-3;ok;cpu >= 1 cpu <= 3
+# BUG: there is not matching of packets with this rule.
+meta cpu != 1-2;ok;cpu < 1 cpu > 2
+meta cpu { 2,3};ok;cpu { 2, 3}
+-meta cpu != { 2,3};ok
--
1.7.10.4
next prev parent reply other threads:[~2014-08-07 6:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 7:00 [PATCH] [libnftnl] expr: meta: Add cpu support for meta expresion Ana Rey
2014-08-07 7:00 ` [PATCH] netfilter: nf_tables: Add cpu attribute support to " Ana Rey
2014-08-24 12:55 ` Pablo Neira Ayuso
2014-08-07 7:00 ` [PATCH] [nft] src: Add support for cpu in " Ana Rey
2014-08-24 12:55 ` Pablo Neira Ayuso
2014-08-07 7:00 ` Ana Rey [this message]
2014-08-24 12:56 ` [PATCH] [libnftnl] expr: meta: Add cpu support for " 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=1407394858-26841-4-git-send-email-anarey@gmail.com \
--to=anarey@gmail.com \
--cc=eric.dumazet@gmail.com \
--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).