2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright(c) 1982, 1986, 1990, 1993
5 * The Regents of the University of California.
6 * Copyright(c) 2013 6WIND S.A.
16 * ICMP-related defines
29 uint8_t icmp_type; /* ICMP packet type. */
30 uint8_t icmp_code; /* ICMP packet code. */
31 uint16_t icmp_cksum; /* ICMP packet checksum. */
32 uint16_t icmp_ident; /* ICMP packet identifier. */
33 uint16_t icmp_seq_nb; /* ICMP packet sequence number. */
34 } __attribute__((__packed__));
36 /* ICMP packet types */
37 #define IP_ICMP_ECHO_REPLY 0
38 #define IP_ICMP_ECHO_REQUEST 8
44 #endif /* RTE_ICMP_H_ */