Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
[linux-2.6-block.git] / net / ipv4 / netfilter / nf_conntrack_l3proto_ipv4.c
index a5727036a8a812a8a0fe7a0eb43b9195d4c722c7..b50721d9d30ef6f98c419c5a745a6df5f1f6a62d 100644 (file)
@@ -154,11 +154,6 @@ static unsigned int ipv4_conntrack_local(void *priv,
                                         struct sk_buff *skb,
                                         const struct nf_hook_state *state)
 {
-       /* root is playing with raw sockets. */
-       if (skb->len < sizeof(struct iphdr) ||
-           ip_hdrlen(skb) < sizeof(struct iphdr))
-               return NF_ACCEPT;
-
        if (ip_is_fragment(ip_hdr(skb))) /* IP_NODEFRAG setsockopt set */
                return NF_ACCEPT;
 
@@ -372,7 +367,7 @@ MODULE_ALIAS("nf_conntrack-" __stringify(AF_INET));
 MODULE_ALIAS("ip_conntrack");
 MODULE_LICENSE("GPL");
 
-static struct nf_conntrack_l4proto *builtin_l4proto4[] = {
+static const struct nf_conntrack_l4proto * const builtin_l4proto4[] = {
        &nf_conntrack_l4proto_tcp4,
        &nf_conntrack_l4proto_udp4,
        &nf_conntrack_l4proto_icmp,