return NULL;
}
- xtables_pending_matches = NULL;
- xtables_pending_targets = NULL;
-
- xtables_matches = NULL;
- xtables_targets = NULL;
-
+ fw3_xt_reset();
fw3_init_extensions();
return h;
#include "options.h"
-
+/* xtables interface */
#if (XTABLES_VERSION_CODE == 10)
# include "xtables-10.h"
#elif (XTABLES_VERSION_CODE == 5)
# error "Unsupported xtables version"
#endif
-extern struct xtables_match *xtables_pending_matches;
-extern struct xtables_target *xtables_pending_targets;
-
/* libext.a interface */
#define FW3_IPT_MODULES \
__ipt_module(comment) \
#ifndef __FW3_XTABLES_10_H
#define __FW3_XTABLES_10_H
+extern struct xtables_match *xtables_pending_matches;
+extern struct xtables_target *xtables_pending_targets;
+
+static inline void
+fw3_xt_reset(void)
+{
+ xtables_matches = NULL;
+ xtables_targets = NULL;
+
+ xtables_pending_matches = NULL;
+ xtables_pending_targets = NULL;
+}
+
+
static inline const char *
fw3_xt_get_match_name(struct xtables_match *m)
{
#ifndef __FW3_XTABLES_5_H
#define __FW3_XTABLES_5_H
+static inline void
+fw3_xt_reset(void)
+{
+ xtables_matches = NULL;
+ xtables_targets = NULL;
+}
+
+
static inline const char *
fw3_xt_get_match_name(struct xtables_match *m)
{