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
27 uint8_t icmp_type; /* ICMP packet type. */
28 uint8_t icmp_code; /* ICMP packet code. */
29 uint16_t icmp_cksum; /* ICMP packet checksum. */
30 uint16_t icmp_ident; /* ICMP packet identifier. */
31 uint16_t icmp_seq_nb; /* ICMP packet sequence number. */
32 } __attribute__((__packed__));
34 /* ICMP packet types */
35 #define IP_ICMP_ECHO_REPLY 0
36 #define IP_ICMP_ECHO_REQUEST 8
42 #endif /* RTE_ICMP_H_ */