Sorting source tree a bit
[tpg/acess2.git] / KernelLand / Modules / IPStack / arp.h
diff --git a/KernelLand/Modules/IPStack/arp.h b/KernelLand/Modules/IPStack/arp.h
new file mode 100644 (file)
index 0000000..07cdb64
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Acess2 IP Stack
+ * - Common Header
+ */
+#ifndef _ARP_H_
+#define _ARP_H_
+
+#include "ipstack.h"
+
+typedef struct sArpRequest4    tArpRequest4;
+typedef struct sArpRequest6    tArpRequest6;
+
+struct sArpRequest4 {
+       Uint16  HWType;
+       Uint16  Type;
+       Uint8   HWSize, SWSize;
+       Uint16  Request;
+       tMacAddr        SourceMac;
+       tIPv4   SourceIP;
+       tMacAddr        DestMac;
+       tIPv4   DestIP;
+} __attribute__((packed));
+
+struct sArpRequest6 {
+       Uint16  HWType;
+       Uint16  Type;
+       Uint8   HWSize, SWSize;
+       Uint16  Request;
+       tMacAddr        SourceMac;
+       tIPv6   SourceIP;
+       tMacAddr        DestMac;
+       tIPv6   DestIP;
+} __attribute__((packed));
+
+#endif

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