Rawsock library  v0.3.4
Library to make the use of raw sockets easier, under Linux. Currently supporting IPv4, UDP and a custom latency measurement protocol (LaMP - supported both in raw and non-raw sockets).
minirighi_udp_checksum.h
Go to the documentation of this file.
1 
21 #ifndef MINIRIGHI_UDP_CHECKSUM_H_INCLUDED
22 #define MINIRIGHI_UDP_CHECKSUM_H_INCLUDED
23 
24 #include <inttypes.h>
25 #include <stdlib.h>
26 #include <netinet/in.h>
27 
28 uint16_t minirighi_udp_checksum(const void *buff, size_t len, in_addr_t src_addr, in_addr_t dest_addr);
29 
30 #endif
uint16_t minirighi_udp_checksum(const void *buff, size_t len, in_addr_t src_addr, in_addr_t dest_addr)
Calculate the UDP checksum (calculated with the whole packet)