diff mbox

[nft] tests: Add tests for pkttype attribute.

Message ID 1407263701-4692-1-git-send-email-anarey@gmail.com
State Superseded
Delegated to: Pablo Neira
Headers show

Commit Message

Ana Rey Aug. 5, 2014, 6:35 p.m. UTC
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 mbox

Patch

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