summaryrefslogtreecommitdiffstats
path: root/ip6tables-restore.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-01-27 15:10:05 +0100
committerJan Engelhardt <jengelh@medozas.de>2009-01-27 23:14:29 +0100
commitc021c3ce7b1583eb5dd71b10ac3d8ab3cd36beaa (patch)
treea2fad6766de8283406b42764a2be671f8850cd78 /ip6tables-restore.c
parent630ef48037f3602333addfdb53789c9c6a4bb4c8 (diff)
libxtables: prefix/order - modprobe and xtables.ko loading
This change affects: load_xtables_ko -> xtables_load_ko modprobe_program -> xtables_modprobe_program Now uses bool for the "quiet" flag. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r--ip6tables-restore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index a84c2e3e..097711f3 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -12,6 +12,7 @@
#include <getopt.h>
#include <sys/errno.h>
+#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@@ -64,7 +65,7 @@ static struct ip6tc_handle *create_handle(const char *tablename)
if (!handle) {
/* try to insmod the module if iptc_init failed */
- load_xtables_ko(modprobe_program, 0);
+ xtables_load_ko(xtables_modprobe_program, false);
handle = ip6tc_init(tablename);
}
@@ -165,7 +166,7 @@ int main(int argc, char *argv[])
noflush = 1;
break;
case 'M':
- modprobe_program = optarg;
+ xtables_modprobe_program = optarg;
break;
}
}