1234567891011121314151617181920212223 |
- #ifndef _GPXE_ICMP_H
- #define _GPXE_ICMP_H
-
- /** @file
- *
- * ICMP protocol
- *
- */
-
- /** An ICMP header */
- struct icmp_header {
- /** Type */
- uint8_t type;
- /** Code */
- uint8_t code;
- /** Checksum */
- uint16_t chksum;
- } __attribute__ (( packed ));
-
- #define ICMP_ECHO_RESPONSE 0
- #define ICMP_ECHO_REQUEST 8
-
- #endif /* _GPXE_ICMP_H */
|