File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1424,6 +1424,12 @@ static void command_match(struct iptables_command_state *cs)
1424
1424
"unexpected ! flag before --match" );
1425
1425
1426
1426
m = xtables_find_match (optarg , XTF_LOAD_MUST_SUCCEED , & cs -> matches );
1427
+ if (m == NULL ) {
1428
+ xtables_error (PARAMETER_PROBLEM ,
1429
+ "unable to load match module %s" ,
1430
+ optarg );
1431
+ return ;
1432
+ }
1427
1433
size = XT_ALIGN (sizeof (struct xt_entry_match )) + m -> size ;
1428
1434
m -> m = xtables_calloc (1 , size );
1429
1435
m -> m -> u .match_size = size ;
@@ -1463,6 +1469,10 @@ static void command_match(struct iptables_command_state *cs)
1463
1469
}
1464
1470
1465
1471
1472
+ EXPORT void * set_modprobe (const char * program ) {
1473
+ xtables_modprobe_program = program ;
1474
+ }
1475
+
1466
1476
EXPORT void * init_handle6 (const char * table ){
1467
1477
const char * err ;
1468
1478
void * handle = ip6tc_init (table );
Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ struct xtables_globals iptables_globals = {
148
148
.program_version = "1.1.1" ,
149
149
.orig_opts = original_opts ,
150
150
.opts = NULL ,
151
+ #if XTABLES_VERSION_CODE >= 11
152
+ .compat_rev = xtables_compatible_revision ,
153
+ #endif
151
154
.exit_err = iptables_exit_error
152
155
};
153
156
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ extern "C" {
30
30
extern EXPORT void * init_handle6 (const char * table );
31
31
extern EXPORT char * ipth_bpf_compile (const char * dltname , const char * program , int length );
32
32
extern EXPORT void ipth_free (void * ptr );
33
+ extern EXPORT void * set_modprobe (const char * program );
33
34
#ifdef __cplusplus
34
35
}
35
36
#endif
You can’t perform that action at this time.
0 commit comments