]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/ipvs/ip_vs_core.c
[IP]: Introduce ip_hdrlen()
[net-next-2.6.git] / net / ipv4 / ipvs / ip_vs_core.c
index 5d54dd2ce12fc91da568a4f6dc852d7558d5d2b3..7893c00a91fe78eac73011fe95ab1e42193eb898 100644 (file)
@@ -713,8 +713,7 @@ static inline int is_tcp_reset(const struct sk_buff *skb)
 {
        struct tcphdr _tcph, *th;
 
-       th = skb_header_pointer(skb, skb->nh.iph->ihl * 4,
-                               sizeof(_tcph), &_tcph);
+       th = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(_tcph), &_tcph);
        if (th == NULL)
                return 0;
        return th->rst;