[CRIU] [PATCH 2/3] test: conntracs -- Use -m conntrack

Cyrill Gorcunov gorcunov at openvz.org
Fri Nov 25 06:20:00 PST 2016


From: Vitaly Ostrosablin <vostrosablin at virtuozzo.com>

In some old distros -m state doesn't work correctly and test fails
because test output diverges from expected results. Here we replace
obsoleted -m state with -m conntrack.

Signed-off-by: Vitaly Ostrosablin <vostrosablin at virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/static/conntracks | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/static/conntracks b/test/zdtm/static/conntracks
index bb2950ca90d5..54898c76f157 100755
--- a/test/zdtm/static/conntracks
+++ b/test/zdtm/static/conntracks
@@ -29,7 +29,7 @@ do_start()
 
 	do_or_fail "can't install a state match" \
 		iptables -A INPUT \
-		-m state --state RELATED,ESTABLISHED -j ACCEPT
+		-m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
 
 	do_or_fail "can't list the loaded iptables" \
 		iptables -L \> "$statefile"
-- 
2.7.4



More information about the CRIU mailing list