diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-06-04 06:25:32 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-06-04 06:25:32 +0000 |
commit | b2d2ce07b7356b8597991986fe80fdf6bb465309 (patch) | |
tree | 129b17db38348c828d84e2c0aeb3fdafeb794ce4 /kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c | |
parent | 1e0cbd87722f91b0a56f01f212f919d4f4a3a21a (diff) |
revert back to 2.5.70
Diffstat (limited to 'kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c')
-rw-r--r-- | kernel/linux2.5/net/bridge/netfilter/ebt_vlan.c | 18 |
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) |