firewall3: remove unnecessary fw3_has_table
authorWenli Looi <wlooi@ucalgary.ca>
Thu, 10 Jun 2021 04:51:06 +0000 (21:51 -0700)
committerRui Salvaterra <rsalvaterra@gmail.com>
Mon, 21 Feb 2022 23:21:09 +0000 (23:21 +0000)
Given that firewall3 already skips the table when fw3_ipt_open fails,
there is no need for fw3_has_table.

Furthermore, /proc/net/ip_tables_names is not reliable under linux
containers (e.g. Docker/LXC/LXD). This patch will remove the need for
existing hacks required for OpenWrt to run on those platforms.

Reviewed-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>

No differences found