1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 1982, 1986, 1990, 1993
3 * The Regents of the University of California.
4 * Copyright(c) 2013 6WIND S.A.
14 * ICMP-related defines
19 #ifndef RTE_NET_NO_COMPAT
20 #include <rte_icmp_compat.h>
31 uint8_t icmp_type; /* ICMP packet type. */
32 uint8_t icmp_code; /* ICMP packet code. */
33 uint16_t icmp_cksum; /* ICMP packet checksum. */
34 uint16_t icmp_ident; /* ICMP packet identifier. */
35 uint16_t icmp_seq_nb; /* ICMP packet sequence number. */
36 } __attribute__((__packed__));
38 /* ICMP packet types */
39 #define RTE_IP_ICMP_ECHO_REPLY 0
40 #define RTE_IP_ICMP_ECHO_REQUEST 8
46 #endif /* RTE_ICMP_H_ */