aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/icmp.h
blob: e402ce40e6d64194075e826e0318e3da7b19fcff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _IPXE_ICMP_H
#define _IPXE_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 /* _IPXE_ICMP_H */