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)
commit50979cc9c3805a72145440299b5c78e1be25c473
tree6675ad0b4f279b63db0728f8d3a0fdfda5c9ed23
parent0f16ea5f055722a532d4e68c7ba34ed084b48b37
firewall3: remove unnecessary fw3_has_table

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>
main.c
utils.c
utils.h