diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 15:10:05 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-01-27 23:14:29 +0100 |
commit | c021c3ce7b1583eb5dd71b10ac3d8ab3cd36beaa (patch) | |
tree | a2fad6766de8283406b42764a2be671f8850cd78 /iptables.c | |
parent | 630ef48037f3602333addfdb53789c9c6a4bb4c8 (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 'iptables.c')
-rw-r--r-- | iptables.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -29,6 +29,7 @@ #include <string.h> #include <netdb.h> #include <errno.h> +#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -1786,7 +1787,7 @@ int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle break; case 'M': - modprobe_program = optarg; + xtables_modprobe_program = optarg; break; case 'c': @@ -1996,7 +1997,7 @@ int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle *handle = iptc_init(*table); /* try to insmod the module if iptc_init failed */ - if (!*handle && load_xtables_ko(modprobe_program, 0) != -1) + if (!*handle && xtables_load_ko(xtables_modprobe_program, false) != -1) *handle = iptc_init(*table); if (!*handle) |