indentation
[oweals/gnunet.git] / src / vpn / gnunet-vpn-checksum.h
1 #ifndef GNUNET_VPN_CHECKSUM_H
2
3 #define GNUNET_VPN_CHECKSUM_H
4
5 #include <platform.h>
6
7 uint32_t calculate_checksum_update (uint32_t sum, uint16_t * hdr, short len);
8
9 uint16_t calculate_checksum_end (uint32_t sum);
10
11 /**
12  * Calculate the checksum of an IPv4-Header
13  */
14 uint16_t calculate_ip_checksum (uint16_t * hdr, short len);
15
16 #endif /* end of include guard: GNUNET-VPN-CHECKSUM_H */