summaryrefslogtreecommitdiffstats
path: root/kernel/linux2.5/net
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/linux2.5/net')
-rw-r--r--kernel/linux2.5/net/bridge/netfilter/ebt_802_3.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/linux2.5/net/bridge/netfilter/ebt_802_3.c b/kernel/linux2.5/net/bridge/netfilter/ebt_802_3.c
index 6eac757..c5eebea 100644
--- a/kernel/linux2.5/net/bridge/netfilter/ebt_802_3.c
+++ b/kernel/linux2.5/net/bridge/netfilter/ebt_802_3.c
@@ -36,13 +36,17 @@ static int ebt_filter_802_3(const struct sk_buff *skb, const struct net_device *
return EBT_MATCH;
}
+static struct ebt_match filter_802_3;
static int ebt_802_3_check(const char *tablename, unsigned int hookmask,
- const struct ebt_entry *e, void *data, unsigned int datalen)
+ const struct ebt_entry *e, void *data, unsigned int datalen,
+ unsigned int version)
{
struct ebt_802_3_info *info = (struct ebt_802_3_info *)data;
if (datalen < sizeof(struct ebt_802_3_info))
return -EINVAL;
+ if (ebt_check_version(version, filter_802_3.version, filter_802_3.name))
+ return -EINVAL;
if (info->bitmask & ~EBT_802_3_MASK || info->invflags & ~EBT_802_3_MASK)
return -EINVAL;
@@ -55,6 +59,7 @@ static struct ebt_match filter_802_3 =
.match = ebt_filter_802_3,
.check = ebt_802_3_check,
.me = THIS_MODULE,
+ .version = VERSIONIZE(1,0),
};
static int __init init(void)