2
0
mirror of https://github.com/xcat2/xNBA.git synced 2026-05-14 18:34:11 +00:00
Files
xNBA/src/include/gpxe/icmp.h
T
Michael Brown c44a193d0d [legal] Add a selection of FILE_LICENCE declarations
Add FILE_LICENCE declarations to almost all files that make up the
various standard builds of gPXE.
2009-05-18 08:33:25 +01:00

26 lines
363 B
C

#ifndef _GPXE_ICMP_H
#define _GPXE_ICMP_H
/** @file
*
* ICMP protocol
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
/** 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 */