You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

icmp.h 330B

1234567891011121314151617181920212223
  1. #ifndef _GPXE_ICMP_H
  2. #define _GPXE_ICMP_H
  3. /** @file
  4. *
  5. * ICMP protocol
  6. *
  7. */
  8. /** An ICMP header */
  9. struct icmp_header {
  10. /** Type */
  11. uint8_t type;
  12. /** Code */
  13. uint8_t code;
  14. /** Checksum */
  15. uint16_t chksum;
  16. } __attribute__ (( packed ));
  17. #define ICMP_ECHO_RESPONSE 0
  18. #define ICMP_ECHO_REQUEST 8
  19. #endif /* _GPXE_ICMP_H */