defaults: robustify flow table detection.
authorRui Salvaterra <rsalvaterra@gmail.com>
Fri, 24 Jan 2020 15:56:32 +0000 (15:56 +0000)
committerJo-Philipp Wich <jo@mein.io>
Tue, 28 Jan 2020 17:48:43 +0000 (18:48 +0100)
commit7cc2a84d5fa28a79033dcf882d474d151e3d0c89
tree2e84b02b4a92c77e285adcf18eeff8a93772e7de
parent8174814a507489ebbe8bb85c1004e1f02919ca82
defaults: robustify flow table detection.

The flow table detection fails if the respective target module is
built into the kernel, since it's looking for the module itself.

Create a generic helper and instead check for existence of the
FLOWOFFLOAD target in /proc/net/ip_tables_targets.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
[slightly reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
defaults.c
utils.c
utils.h