6f0eb15253f5836e4dfb53a88123a016fce39563
[tpg/acess2.git] / Tools / NetTest_Runner / include / ip.h
1 /*
2  * ip.h
3  * - IP-layer Test Wrapper (v5/v6)
4  */
5 #ifndef _IP_H_
6 #define _IP_H_
7
8 #include <stdbool.h>
9 #include <stdint.h>
10 #include <stddef.h>
11
12 #define IPPROTO_TCP     6
13
14 #define IP_CHECKSUM_START       0xFFFF
15
16 extern uint16_t IP_Checksum(uint16_t Prev, size_t Length, const void *Data);
17
18 extern void     IP_Send(int IfNum, int AF, const void *Src, const void *Dst, uint8_t proto,
19         int BufCount, size_t BufLens[], const void *Bufs[]);
20
21 extern bool     IP_Pkt_Check(size_t len, const void *data, size_t *ofs, int AF, const void *Src, const void *Dst, uint8_t proto);
22
23 #endif
24

UCC git Repository :: git.ucc.asn.au