summaryrefslogtreecommitdiffstats
path: root/kernel/linux2.5/net/bridge/netfilter/ebt_ip.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-06-03 18:47:33 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-06-03 18:47:33 +0000
commitff87172709d0fff1ac43183c38c05732ff2b8c9a (patch)
tree21bf3aae695eac19e9151b656379d636d2837e47 /kernel/linux2.5/net/bridge/netfilter/ebt_ip.c
parent87cc1b649c8268755bbbd3fd9593a23b9e20d8fc (diff)
module versioning
Diffstat (limited to 'kernel/linux2.5/net/bridge/netfilter/ebt_ip.c')
-rw-r--r--kernel/linux2.5/net/bridge/netfilter/ebt_ip.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/linux2.5/net/bridge/netfilter/ebt_ip.c b/kernel/linux2.5/net/bridge/netfilter/ebt_ip.c
index 7ef0662..9dc311a 100644
--- a/kernel/linux2.5/net/bridge/netfilter/ebt_ip.c
+++ b/kernel/linux2.5/net/bridge/netfilter/ebt_ip.c
@@ -70,13 +70,17 @@ static int ebt_filter_ip(const struct sk_buff *skb, const struct net_device *in,
return EBT_MATCH;
}
+static struct ebt_match filter_ip;
static int ebt_ip_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_ip_info *info = (struct ebt_ip_info *)data;
if (datalen != sizeof(struct ebt_ip_info))
return -EINVAL;
+ if (ebt_check_version(version, filter_ip.version, filter_ip.name))
+ return -EINVAL;
if (e->ethproto != __constant_htons(ETH_P_IP) ||
e->invflags & EBT_IPROTO)
return -EINVAL;
@@ -102,6 +106,7 @@ static struct ebt_match filter_ip =
.match = ebt_filter_ip,
.check = ebt_ip_check,
.me = THIS_MODULE,
+ .version = VERSIONIZE(1,0),
};
static int __init init(void)