dns hijacker code review
[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
8 calculate_checksum_update (uint32_t sum, uint16_t * hdr, short len);
9
10 uint16_t
11 calculate_checksum_end (uint32_t sum);
12
13 /**
14  * Calculate the checksum of an IPv4-Header
15  */
16 uint16_t
17 calculate_ip_checksum (uint16_t * hdr, short len);
18
19 #endif /* end of include guard: GNUNET-VPN-CHECKSUM_H */