exit(1);
}
-static struct ip6tc_handle *create_handle(const char *tablename,
- const char *modprobe)
+static struct ip6tc_handle *create_handle(const char *tablename)
{
struct ip6tc_handle *handle;
if (!handle) {
/* try to insmod the module if iptc_init failed */
- load_xtables_ko(modprobe, 0);
+ load_xtables_ko(modprobe_program, 0);
handle = ip6tc_init(tablename);
}
int c;
char curtable[IP6T_TABLE_MAXNAMELEN + 1];
FILE *in;
- const char *modprobe = NULL;
int in_table = 0, testing = 0;
program_name = "ip6tables-restore";
noflush = 1;
break;
case 'M':
- modprobe = optarg;
+ modprobe_program = optarg;
break;
}
}
if (handle)
ip6tc_free(handle);
- handle = create_handle(table, modprobe);
+ handle = create_handle(table);
if (noflush == 0) {
DEBUGP("Cleaning all chains of table '%s'\n",
table);
exit(1);
}
-static struct iptc_handle *create_handle(const char *tablename, const char *modprobe)
+static struct iptc_handle *create_handle(const char *tablename)
{
struct iptc_handle *handle;
if (!handle) {
/* try to insmod the module if iptc_init failed */
- load_xtables_ko(modprobe, 0);
+ load_xtables_ko(modprobe_program, 0);
handle = iptc_init(tablename);
}
int c;
char curtable[IPT_TABLE_MAXNAMELEN + 1];
FILE *in;
- const char *modprobe = NULL;
int in_table = 0, testing = 0;
const char *tablename = NULL;
noflush = 1;
break;
case 'M':
- modprobe = optarg;
+ modprobe_program = optarg;
break;
case 'T':
tablename = optarg;
if (handle)
iptc_free(handle);
- handle = create_handle(table, modprobe);
+ handle = create_handle(table);
if (noflush == 0) {
DEBUGP("Cleaning all chains of table '%s'\n",
table);