From c2494dd6daac9a91f090504de6d38b7f404f0c1f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 12 Jan 2016 15:12:22 +0100 Subject: tests/py: netdev family with ingress chain This patch enables tests for the new netdev family and its ingress chain. Signed-off-by: Pablo Neira Ayuso --- tests/py/any/frag.t | 2 ++ tests/py/any/limit.t | 2 ++ tests/py/any/meta.t | 2 ++ 3 files changed, 6 insertions(+) (limited to 'tests/py/any') diff --git a/tests/py/any/frag.t b/tests/py/any/frag.t index 91386370..8b5e34ab 100644 --- a/tests/py/any/frag.t +++ b/tests/py/any/frag.t @@ -1,10 +1,12 @@ :output;type filter hook output priority 0 +:ingress;type filter hook ingress device lo priority 0 *ip;test-ip4;output *ip6;test-ip6;output *inet;test-inet;output *arp;test-arp;output *bridge;test-bridge;output +*netdev;test-netdev;ingress frag nexthdr tcp;ok;frag nexthdr 6 frag nexthdr != icmp;ok;frag nexthdr != 1 diff --git a/tests/py/any/limit.t b/tests/py/any/limit.t index 2dcab815..358b5abb 100644 --- a/tests/py/any/limit.t +++ b/tests/py/any/limit.t @@ -1,10 +1,12 @@ :output;type filter hook output priority 0 +:ingress;type filter hook ingress device lo priority 0 *ip;test-ip4;output *ip6;test-ip6;output *inet;test-inet;output *arp;test-arp;output *bridge;test-bridge;output +*netdev;test-netdev;ingress limit rate 400/minute;ok limit rate 20/second;ok diff --git a/tests/py/any/meta.t b/tests/py/any/meta.t index 245f0ece..c10297a4 100644 --- a/tests/py/any/meta.t +++ b/tests/py/any/meta.t @@ -1,10 +1,12 @@ :input;type filter hook input priority 0 +:ingress;type filter hook ingress device lo priority 0 *ip;test-ip4;input *ip6;test-ip6;input *inet;test-inet;input *arp;test-arp;input *bridge;test-bridge;input +*netdev;test-netdev;ingress meta length 1000;ok meta length 22;ok -- cgit v1.2.3