mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
iface: remove redundant functions
This commit is contained in:
@@ -91,11 +91,6 @@ static void iface_mt_help(void)
|
||||
XTABLES_VERSION, _MODULE_REVISION);
|
||||
}
|
||||
|
||||
static void iface_mt_init(struct xt_entry_match *m)
|
||||
{
|
||||
DEBUGP("init...");
|
||||
}
|
||||
|
||||
static int iface_mt_parse(int c, char **argv, int invert, unsigned int *flags,
|
||||
const void *entry, struct xt_entry_match **match)
|
||||
{
|
||||
@@ -222,7 +217,6 @@ static struct xtables_match iface_mt_reg = {
|
||||
.size = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
|
||||
.userspacesize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
|
||||
.help = iface_mt_help,
|
||||
.init = iface_mt_init,
|
||||
.parse = iface_mt_parse,
|
||||
.final_check = iface_mt_check,
|
||||
.print = iface_mt_print,
|
||||
@@ -238,7 +232,6 @@ static struct xtables_match iface_mt6_reg = {
|
||||
.size = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
|
||||
.userspacesize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
|
||||
.help = iface_mt_help,
|
||||
.init = iface_mt_init,
|
||||
.parse = iface_mt_parse,
|
||||
.final_check = iface_mt_check,
|
||||
.print = iface_mt_print,
|
||||
|
@@ -85,17 +85,6 @@ static bool xt_iface_mt(const struct sk_buff *skb,
|
||||
return retval;
|
||||
}
|
||||
|
||||
static bool xt_iface_mt_check(const struct xt_mtchk_param *par)
|
||||
{
|
||||
DEBUGP("checkentry...");
|
||||
return true;
|
||||
}
|
||||
|
||||
static void xt_iface_mt_destroy(const struct xt_mtdtor_param *par)
|
||||
{
|
||||
DEBUGP("destroy...");
|
||||
}
|
||||
|
||||
static struct xt_match xt_iface_mt_reg[] __read_mostly = {
|
||||
{
|
||||
.name = _MODULE_NAME,
|
||||
@@ -103,8 +92,6 @@ static struct xt_match xt_iface_mt_reg[] __read_mostly = {
|
||||
.family = AF_INET,
|
||||
.matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
|
||||
.match = xt_iface_mt,
|
||||
.checkentry = xt_iface_mt_check,
|
||||
.destroy = xt_iface_mt_destroy,
|
||||
.data = 0,
|
||||
.me = THIS_MODULE,
|
||||
},
|
||||
@@ -114,8 +101,6 @@ static struct xt_match xt_iface_mt_reg[] __read_mostly = {
|
||||
.family = AF_INET6,
|
||||
.matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
|
||||
.match = xt_iface_mt,
|
||||
.checkentry = xt_iface_mt_check,
|
||||
.destroy = xt_iface_mt_destroy,
|
||||
.data = 0,
|
||||
.me = THIS_MODULE,
|
||||
},
|
||||
|
Reference in New Issue
Block a user