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).
ipcsum_alth.h
Go to the documentation of this file.
1 
24 #ifndef IPCSUM_ALTH_INCLUDED
25 #define IPCSUM_ALTH_INCLUDED
26 
27 #include <linux/types.h>
28 
29 // This is all taken from Linux kernel 4.19.1 (this is not original work)
30 __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
31 
32 #endif
__sum16 ip_fast_csum(const void *iph, unsigned int ihl)
Calculate the IPv4 checksum (optimized for IP headers, which always checksum on 4 octet boundaries) ...
Definition: ipcsum_alth.c:84