aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_tun_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r--src/include/gnunet_tun_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h
index 89cfdd2b3..b30b2b03a 100644
--- a/src/include/gnunet_tun_lib.h
+++ b/src/include/gnunet_tun_lib.h
@@ -181,5 +181,19 @@ GNUNET_TUN_initialize_ipv6_header (struct GNUNET_TUN_IPv6Header *ip,
181 const struct in6_addr *src, 181 const struct in6_addr *src,
182 const struct in6_addr *dst); 182 const struct in6_addr *dst);
183 183
184/**
185 * Calculate IPv6 TCP checksum.
186 *
187 * @param ipv6 header fully initialized
188 * @param tcp header (initialized except for CRC)
189 * @param payload the TCP payload
190 * @param payload_length number of bytes of TCP payload
191 */
192void
193GNUNET_TUN_calculate_tcp6_checksum (const struct GNUNET_TUN_IPv6Header *ip,
194 struct GNUNET_TUN_TcpHeader *tcp,
195 const void *payload,
196 uint16_t payload_length);
197
184 198
185#endif 199#endif