Commit 6b8852cf authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

test: static/socket-tcp -- Check for iptables success

Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 33dd782c
...@@ -76,7 +76,8 @@ int main(int argc, char **argv) ...@@ -76,7 +76,8 @@ int main(int argc, char **argv)
return 1; return 1;
if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT")) if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT"))
return 1; return 1;
system("iptables -A INPUT -j DROP"); if (system("iptables -A INPUT -j DROP"))
return 1;
#endif #endif
#ifdef ZDTM_TCP_LOCAL #ifdef ZDTM_TCP_LOCAL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment