Tools/NetTest - Add a runner to test networking stack
[tpg/acess2.git] / Tools / NetTest_Runner / include / link.h
diff --git a/Tools/NetTest_Runner/include/link.h b/Tools/NetTest_Runner/include/link.h
new file mode 100644 (file)
index 0000000..28efc50
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ */
+#ifndef _LINK_H_
+#define _LINK_H_
+
+#define ETHER_PROTO_IPV4       0x0800
+
+#include <stdint.h>
+#include <stdbool.h>
+
+extern void    Link_Send(int IfNum, const void *Src, const void *Dst, uint16_t Proto, int BufCount, size_t BufLens[], const void *Bufs[]);
+
+extern bool    Link_Pkt_Check(size_t len, const void *data, size_t *ofs, const void *Src, const void *Dst, uint16_t Proto);
+
+#endif
+

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