]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/icmp.c
[SK_BUFF]: Convert skb->tail to sk_buff_data_t
[net-next-2.6.git] / net / ipv6 / icmp.c
index d3edc3cf1ce93bf44870681f202a2b9263ed1ff9..e94992ab92e6b68520b8a78fcd35167b04ecc241 100644 (file)
@@ -317,7 +317,8 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
        int hlimit, tclass;
        int err = 0;
 
-       if ((u8*)hdr < skb->head || (u8*)(hdr+1) > skb->tail)
+       if ((u8 *)hdr < skb->head ||
+           (skb->network_header + sizeof(*hdr)) > skb->tail)
                return;
 
        /*