From 4cd7d4f36bea731bf901cb067456f1d460294926 Mon Sep 17 00:00:00 2001 From: Rui Salvaterra Date: Thu, 17 Feb 2022 10:24:04 +0000 Subject: Revert "firewall3: support table load on access on Linux 5.15+" Handled more elegantly in the previous commit. Signed-off-by: Rui Salvaterra --- main.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/main.c b/main.c index 5985e73..7deb636 100644 --- a/main.c +++ b/main.c @@ -263,17 +263,6 @@ start(void) continue; } - /* Linux 5.15+: make sure the tables are loaded and - * /proc/net/ip{,6}_tables_names are thus populated. - */ - for (table = FW3_TABLE_FILTER; table <= FW3_TABLE_RAW; table++) - { - if (!(handle = fw3_ipt_open(family, table))) - continue; - - fw3_ipt_close(handle); - } - for (table = FW3_TABLE_FILTER; table <= FW3_TABLE_RAW; table++) { if (!(handle = fw3_ipt_open(family, table))) -- cgit v1.2.1