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
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
minirighi_udp_checksum
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)
Definition:
minirighi_udp_checksum.c:18
Rawsock_lib
minirighi_udp_checksum.h
Generated by
1.8.11