From: Ana Rey <anarey@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: Ana Rey <anarey@gmail.com>
Subject: [nft PATCH] tests: Add tests for pkttype attribute.
Date: Tue, 5 Aug 2014 20:35:01 +0200 [thread overview]
Message-ID: <1407263701-4692-1-git-send-email-anarey@gmail.com> (raw)
Add some tests to check the pkttype attribute of meta expresion.
Signed-off-by: Ana Rey <anarey@gmail.com>
---
tests/any/meta.t | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/any/meta.t b/tests/any/meta.t
index 76259d1..7361962 100644
--- a/tests/any/meta.t
+++ b/tests/any/meta.t
@@ -155,3 +155,12 @@ meta skuid 3000;ok;skuid 3000
meta skgid 3000;ok;skgid 3000
-meta nftrace 1;ok
meta rtclassid cosmos;ok;rtclassid cosmos
+
+meta pkttype broadcast;ok;pkttype broadcast
+meta pkttype unicast;ok;pkttype unicast
+meta pkttype multicast;ok;pkttype multicast
+meta pkttype != broadcast;ok;pkttype != broadcast
+meta pkttype != unicast;ok;pkttype != unicast
+meta pkttype != multicast;ok;pkttype != multicast
+meta pkttype broadcastttt;fail
+-meta pkttype { broadcast, multicast} accept;ok
--
1.7.10.4
reply other threads:[~2014-08-05 18:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1407263701-4692-1-git-send-email-anarey@gmail.com \
--to=anarey@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).