From 83837b20c887f559401a6947c9baa237d5787184 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Tue, 3 Jun 2003 19:10:05 +0000 Subject: module versioning --- kernel/linux2.5/net/bridge/netfilter/ebt_802_3.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kernel/linux2.5/net/bridge/netfilter/ebt_802_3.c') 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) -- cgit v1.2.3