]> err.no Git - linux-2.6/blobdiff - net/ipv4/netfilter/ipt_ah.c
[NET]: make netlink user -> kernel interface synchronious
[linux-2.6] / net / ipv4 / netfilter / ipt_ah.c
index 6b5b7c9f739294e80d0db8b256a875d5b5f6e89b..61b017fd743c14987fea3038b1781bfb2ee7634d 100644 (file)
@@ -46,7 +46,8 @@ match(const struct sk_buff *skb,
       unsigned int protoff,
       bool *hotdrop)
 {
-       struct ip_auth_hdr _ahdr, *ah;
+       struct ip_auth_hdr _ahdr;
+       const struct ip_auth_hdr *ah;
        const struct ipt_ah *ahinfo = matchinfo;
 
        /* Must not be a fragment. */
@@ -87,7 +88,7 @@ checkentry(const char *tablename,
        return true;
 }
 
-static struct xt_match ah_match = {
+static struct xt_match ah_match __read_mostly = {
        .name           = "ah",
        .family         = AF_INET,
        .match          = match,