]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/net/ip6_checksum.h
Merge tag 'for-linus-20140716' of git://git.infradead.org/linux-mtd
[karo-tx-linux.git] / include / net / ip6_checksum.h
index 8ac5c21f84563faeda028606034f2c69d23dc2a6..55236cb711745fc76ef4c897bcf70e957b34611c 100644 (file)
@@ -82,5 +82,17 @@ static inline void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
 }
 #endif
 
+static inline __sum16 udp_v6_check(int len,
+                                  const struct in6_addr *saddr,
+                                  const struct in6_addr *daddr,
+                                  __wsum base)
+{
+       return csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, base);
+}
+
+void udp6_set_csum(bool nocheck, struct sk_buff *skb,
+                  const struct in6_addr *saddr,
+                  const struct in6_addr *daddr, int len);
+
 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);
 #endif