#ifndef __icmp_h__
#define __icmp_h__

typedef struct arpRequest_t {
  unsigned short hwType;
  unsigned short protocolType;
  unsigned char hwLen;
  unsigned char protocolLen;         // set to 4 for IPv4
  unsigned short operation;          // 1 = request; 2 = reply
  unsigned char senderEthMacAddr[6]; // should be filled in by switch
  unsigned char senderIpAddr[4];     // 4 bytes for IPv4
  unsigned char targetEthMacAddr[6]; // need not be filled for request (set zero)
  unsigned char targetIpAddr[4];     // 4 bytes for IPv4
  } arpRequest_t;

#ifdef __cplusplus
extern "C" {
#endif

int icmpInit(void);

#ifdef __cplusplus
}
#endif

#endif /* __icmp_h__ */

