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).
Main Page
Data Structures
Files
File List
Globals
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
ip_fast_csum
__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
Rawsock_lib
ipcsum_alth.h
Generated by
1.8.11