Tools/NetTest - Add a runner to test networking stack
[tpg/acess2.git] / Tools / NetTest_Runner / include / tcp.h
diff --git a/Tools/NetTest_Runner/include/tcp.h b/Tools/NetTest_Runner/include/tcp.h
new file mode 100644 (file)
index 0000000..a96d921
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * tcp.h
+ * - TCP Test Wrapper
+ */
+#ifndef _TCP_H_
+#define _TCP_H_
+
+#include <stdbool.h>
+#include <stdint.h>
+#include <stddef.h>
+
+#define TCP_FIN        0x01
+#define TCP_SYN        0x02
+#define TCP_RST        0x04
+
+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);
+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);
+
+#endif
+

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