00001 #ifndef _GPXE_ICMP_H 00002 #define _GPXE_ICMP_H 00003 00004 /** @file 00005 * 00006 * ICMP protocol 00007 * 00008 */ 00009 00010 FILE_LICENCE ( GPL2_OR_LATER ); 00011 00012 /** An ICMP header */ 00013 struct icmp_header { 00014 /** Type */ 00015 uint8_t type; 00016 /** Code */ 00017 uint8_t code; 00018 /** Checksum */ 00019 uint16_t chksum; 00020 } __attribute__ (( packed )); 00021 00022 #define ICMP_ECHO_RESPONSE 0 00023 #define ICMP_ECHO_REQUEST 8 00024 00025 #endif /* _GPXE_ICMP_H */
1.5.7.1