gnunet-vpn-checksum.h 378 B

12345678910111213141516
  1. #ifndef GNUNET_VPN_CHECKSUM_H
  2. #define GNUNET_VPN_CHECKSUM_H
  3. #include <platform.h>
  4. uint32_t calculate_checksum_update(uint32_t sum, uint16_t *hdr, short len);
  5. uint16_t calculate_checksum_end(uint32_t sum);
  6. /**
  7. * Calculate the checksum of an IPv4-Header
  8. */
  9. uint16_t calculate_ip_checksum(uint16_t* hdr, short len);
  10. #endif /* end of include guard: GNUNET-VPN-CHECKSUM_H */