00001 #ifndef _HLBR_DECODE_ETHERNET_H_ 00002 #define _HLBR_DECODE_ETHERNET_H_ 00003 00004 #include "../config.h" 00005 #include "../engine/hlbr.h" 00006 #include "decode.h" 00007 00008 #define ETHERNET_TYPE_IP 0x0800 00009 #define ETHERNET_TYPE_ARP 0x0806 00010 00011 typedef struct ethernet_header{ 00012 unsigned char DstMac[6]; 00013 unsigned char SrcMac[6]; 00014 unsigned short Type; 00015 } EtherHdr; 00016 00017 typedef struct ethernet_data{ 00018 EtherHdr* Header; 00019 } EthernetData; 00020 00021 00022 int InitDecoderEthernet(); 00023 00024 #endif