]> err.no Git - linux-2.6/blobdiff - net/bridge/netfilter/ebtable_filter.c
[NETNS]: Consolidate kernel netlink socket destruction.
[linux-2.6] / net / bridge / netfilter / ebtable_filter.c
index 127135ead2d5ade31f30571425fd15085e0920cf..fb810908732f6b420de1ada658915fa80463ae8e 100644 (file)
@@ -51,23 +51,23 @@ static int check(const struct ebt_table_info *info, unsigned int valid_hooks)
 }
 
 static struct ebt_table frame_filter =
-{ 
+{
        .name           = "filter",
        .table          = &initial_table,
-       .valid_hooks    = FILTER_VALID_HOOKS, 
+       .valid_hooks    = FILTER_VALID_HOOKS,
        .lock           = RW_LOCK_UNLOCKED,
        .check          = check,
        .me             = THIS_MODULE,
 };
 
 static unsigned int
-ebt_hook (unsigned int hook, struct sk_buff **pskb, const struct net_device *in,
+ebt_hook(unsigned int hook, struct sk_buff *skb, const struct net_device *in,
    const struct net_device *out, int (*okfn)(struct sk_buff *))
 {
-       return ebt_do_table(hook, pskb, in, out, &frame_filter);
+       return ebt_do_table(hook, skb, in, out, &frame_filter);
 }
 
-static struct nf_hook_ops ebt_ops_filter[] = {
+static struct nf_hook_ops ebt_ops_filter[] __read_mostly = {
        {
                .hook           = ebt_hook,
                .owner          = THIS_MODULE,