Skip to contentSkip to conversation

iptables_tests.sh: nat table can have 4 chains

PATCH Applied Simon Xu 2 participants 2 messages Oct 31, 2013

lore
Share & tools
lore

Simon Xu

author
#0 lore raw

PATCH 1/1 iptables_tests.sh: nat table can have 4 chains

It is considered by iptables_tests.sh a failure When nat table chain count is not 3, while recent kernels can have 4 built-in chains in nat table, namely PREROUTING, OUTPUT, POSTROUTING and INPUT.

---
 testcases/network/iptables/iptables_tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/network/iptables/iptables_tests.sh +1 -1
index 028d54e..77ee29b 100755
@@ -165,7 +165,7 @@ test01()
 		return $RC
 	else
 		chaincnt=$(grep -c Chain $LTPTMP/tst_iptables.out)
-		if [ $chaincnt -ne 3 ]; then
+		if [ $chaincnt -ne 3 ] && [ $chaincnt -ne 4 ]; then
 			tst_res TFAIL $LTPTMP/tst_iptables.out \
 				"$TCID: $cmd failed to list rules. Reason:"
 			return $chaincnt
Signature · 13 lines
1.8.4


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Applied
#1 lore raw
Quoted 6 lines · Simon Xu

It is considered by iptables_tests.sh a failure When nat table chain count is not 3, while recent kernels can have 4 built-in chains in nat table, namely PREROUTING, OUTPUT, POSTROUTING and INPUT.

---
 testcases/network/iptables/iptables_tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thank you.

Wanlong Gao

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list