a96d921a23b28946b9304aa5ff1e91fd53bd32ab
[tpg/acess2.git] / Tools / NetTest_Runner / include / tcp.h
1 /*
2  * tcp.h
3  * - TCP Test Wrapper
4  */
5 #ifndef _TCP_H_
6 #define _TCP_H_
7
8 #include <stdbool.h>
9 #include <stdint.h>
10 #include <stddef.h>
11
12 #define TCP_FIN 0x01
13 #define TCP_SYN 0x02
14 #define TCP_RST 0x04
15
16 extern void     TCP_Send(int IF, int AF, const void *IP, short sport, short dport, uint32_t seq, uint32_t ack, uint8_t flags, uint16_t window, size_t data_len, const void *data);
17 extern bool     TCP_Pkt_Check(size_t len, const void *data, size_t *ofs, int AF, const void *IP, short sport, short dport, uint8_t flags);
18
19 #endif
20

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