summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/icmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/icmp.h')
-rw-r--r--src/include/ipxe/icmp.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/ipxe/icmp.h b/src/include/ipxe/icmp.h
new file mode 100644
index 00000000..e402ce40
--- /dev/null
+++ b/src/include/ipxe/icmp.h
@@ -0,0 +1,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 */