firewall-util: remove iptables backend
As already announced by 5c68c51045,
let's remove iptables backend of firewall-util through libiptc.
This commit is contained in:
@@ -62,13 +62,6 @@ static bool test_v4(FirewallContext *ctx) {
|
||||
|
||||
log_info("/* %s(backend=%s) */", __func__, firewall_backend_to_string(ctx->backend));
|
||||
|
||||
#if HAVE_LIBIPTC
|
||||
if (ctx->backend == FW_BACKEND_IPTABLES && fw_iptables_init_nat(NULL) < 0) {
|
||||
log_debug("iptables backend is used, but nat table is not enabled, skipping tests");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
ASSERT_ERROR(fw_add_masquerade(&ctx, true, AF_INET, NULL, 0), EINVAL);
|
||||
ASSERT_ERROR(fw_add_masquerade(&ctx, true, AF_INET, parse_addr("10.1.2.0", &u), 0), EINVAL);
|
||||
|
||||
@@ -116,12 +109,5 @@ int main(int argc, char *argv[]) {
|
||||
if (test_v4(ctx) && ctx->backend == FW_BACKEND_NFTABLES)
|
||||
test_v6(ctx);
|
||||
|
||||
#if HAVE_LIBIPTC
|
||||
if (ctx->backend != FW_BACKEND_IPTABLES) {
|
||||
ctx->backend = FW_BACKEND_IPTABLES;
|
||||
test_v4(ctx);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user