]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/ipip.h
inet: Make tunnel RX/TX byte counters more consistent
[linux-2.6-omap-h63xx.git] / include / net / ipip.h
index a85bda64b8528ce2f7b8c4416ba10e83f654b9af..fdf9bd7437057e26b0f9cd3bdadb8c70ed8a09f6 100644 (file)
@@ -37,7 +37,7 @@ struct ip_tunnel_prl_entry
 
 #define IPTUNNEL_XMIT() do {                                           \
        int err;                                                        \
-       int pkt_len = skb->len;                                         \
+       int pkt_len = skb->len - skb_transport_offset(skb);             \
                                                                        \
        skb->ip_summed = CHECKSUM_NONE;                                 \
        ip_select_ident(iph, &rt->u.dst, NULL);                         \