]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/udplite.h
SUNRPC: skb_read_bits is the same as xs_tcp_copy_data
[linux-2.6-omap-h63xx.git] / include / net / udplite.h
index 406eb755b34ec81b2a1f59371b539a66b7515b84..67ac5142430735422560e78b46fe495031edad33 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef _UDPLITE_H
 #define _UDPLITE_H
 
+#include <net/ip6_checksum.h>
+
 /* UDP-Lite socket options */
 #define UDPLITE_SEND_CSCOV   10 /* sender partial coverage (as sent)      */
 #define UDPLITE_RECV_CSCOV   11 /* receiver partial coverage (threshold ) */
@@ -88,9 +90,9 @@ static __inline__ int udplite6_csum_init(struct sk_buff *skb, struct udphdr *uh)
        int rc = udplite_checksum_init(skb, uh);
 
        if (!rc)
-               skb->csum = ~csum_ipv6_magic(&skb->nh.ipv6h->saddr,
+               skb->csum = ~csum_unfold(csum_ipv6_magic(&skb->nh.ipv6h->saddr,
                                             &skb->nh.ipv6h->daddr,
-                                            skb->len, IPPROTO_UDPLITE, 0);
+                                            skb->len, IPPROTO_UDPLITE, 0));
        return rc;
 }