From: Rui Salvaterra Date: Thu, 17 Feb 2022 10:24:04 +0000 (+0000) Subject: Revert "firewall3: support table load on access on Linux 5.15+" X-Git-Url: http://git.openwrt.org/?p=project%2Ffirewall3.git;a=commitdiff_plain;h=4cd7d4f36bea731bf901cb067456f1d460294926 Revert "firewall3: support table load on access on Linux 5.15+" Handled more elegantly in the previous commit. Signed-off-by: Rui Salvaterra --- 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)))