On Oct 16 2007 10:30, Patrick McHardy wrote:
>> +static int match(const struct sk_buff *skb,
Potential symbol clash, name it ifgroup_match() for example.
>> + const struct net_device *in,
>> + const struct net_device *out,
>> + const struct xt_match *match,
>> + const void *matchinfo,
>> + int offset,
>> + unsigned int protoff,
>> + int *hotdrop)
2.6.23 => bool ifgroup_match(... bool *hotdrop)
>> +static struct xt_match ifgroup_match = {
>> + .name = "ifgroup",
>> + .match = match,
>> + .matchsize = sizeof(struct xt_ifgroup_info),
>> + .family = AF_INET,
>> + .me = THIS_MODULE,
>> +};
>> +
>> +static struct xt_match ifgroup6_match = {
>> + .name = "ifgroup",
>> + .match = match,
>> + .matchsize = sizeof(struct xt_ifgroup_info),
>> + .family = AF_INET6,
>> + .me = THIS_MODULE,
>> +};
>
> __read_mostly
And actually, an array,
static struct xt_match ifgroup_match[] __read_mostly = {
...
}
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html