summaryrefslogtreecommitdiffstats
path: root/kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c')
-rw-r--r--kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c b/kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c
index 5e20e88..54120a7 100644
--- a/kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c
+++ b/kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c
@@ -42,8 +42,10 @@ MODULE_LICENSE("GPL");
#define EXIT_ON_MISMATCH(_MATCH_,_MASK_) {if (!((info->_MATCH_ == _MATCH_)^!!(info->invflags & _MASK_))) return EBT_NOMATCH;}
static int
-ebt_filter_vlan(const struct sk_buff *skb, const struct net_device *in,
- const struct net_device *out, const void *data, unsigned int datalen)
+ebt_filter_vlan(const struct sk_buff *skb,
+ const struct net_device *in,
+ const struct net_device *out,
+ const void *data, unsigned int datalen)
{
struct ebt_vlan_info *info = (struct ebt_vlan_info *) data;
struct vlan_ethhdr frame;
@@ -84,11 +86,10 @@ ebt_filter_vlan(const struct sk_buff *skb, const struct net_device *in,
return EBT_MATCH;
}
-static struct ebt_match filter_vlan;
static int
-ebt_check_vlan(const char *tablename, unsigned int hooknr,
- const struct ebt_entry *e, void *data, unsigned int datalen,
- unsigned int version)
+ebt_check_vlan(const char *tablename,
+ unsigned int hooknr,
+ const struct ebt_entry *e, void *data, unsigned int datalen)
{
struct ebt_vlan_info *info = (struct ebt_vlan_info *) data;
@@ -100,10 +101,6 @@ ebt_check_vlan(const char *tablename, unsigned int hooknr,
return -EINVAL;
}
- if (ebt_check_version(version, filter_vlan.version,
- filter_vlan.name))
- return -EINVAL;
-
/* Is it 802.1Q frame checked? */
if (e->ethproto != __constant_htons(ETH_P_8021Q)) {
DEBUG_MSG
@@ -177,7 +174,6 @@ static struct ebt_match filter_vlan = {
.match = ebt_filter_vlan,
.check = ebt_check_vlan,
.me = THIS_MODULE,
- .version = VERSIONIZE(1,0),
};
static int __init init(void)