#ifndef _ICMP_H_ #define _ICMP_H_ #include "..\net.h" /* The ICMP*/ typedef struct { u8_t type, icode; u16_t icmpchksum; u16_t id, seqno; } icmp_hdr; #define ICMP_Header_Len (sizeof(icmp_hdr)) #define icmp_header ((icmp_hdr *)&uip_fw_buf[UIP_LLH_LEN+IP_HEADER_LENGTH]) #define ICMP_ECHO_REQUEST 0x08 #define ICMP_ECHO_REPLY 0x00 void ICMP_Process(); #endif