* [nft PATCH] tests: Add tests for pkttype attribute.
@ 2014-08-05 18:35 Ana Rey
0 siblings, 0 replies; only message in thread
From: Ana Rey @ 2014-08-05 18:35 UTC (permalink / raw)
To: netfilter-devel; +Cc: Ana Rey
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-05 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05 18:35 [nft PATCH] tests: Add tests for pkttype attribute Ana Rey
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).