X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=inline;f=KernelLand%2FModules%2FIPStack%2Farp.h;fp=KernelLand%2FModules%2FIPStack%2Farp.h;h=07cdb64dd51b9d6ef9f21730dce7dba26978a7b0;hb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;hp=0000000000000000000000000000000000000000;hpb=a2495c6ea4f4cab16b5d339ae511428e92e89e73;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/IPStack/arp.h b/KernelLand/Modules/IPStack/arp.h new file mode 100644 index 00000000..07cdb64d --- /dev/null +++ b/KernelLand/Modules/IPStack/arp.h @@ -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