Blog
Community
Development
Documentation
CNDP
22.08.0
cne_icmp.h
Go to the documentation of this file.
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.
5
* All rights reserved.
6
*/
7
8
#ifndef _CNE_ICMP_H_
9
#define _CNE_ICMP_H_
10
17
#include <stdint.h>
18
19
#include <
cne_byteorder.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
28
struct
cne_icmp_hdr
{
29
uint8_t icmp_type;
/* ICMP packet type. */
30
uint8_t icmp_code;
/* ICMP packet code. */
31
cne_be16_t
icmp_cksum;
/* ICMP packet checksum. */
32
cne_be16_t
icmp_ident;
/* ICMP packet identifier. */
33
cne_be16_t
icmp_seq_nb;
/* ICMP packet sequence number. */
34
} __attribute__((__packed__));
35
36
/* ICMP packet types */
37
#define CNE_IP_ICMP_ECHO_REPLY 0
38
#define CNE_IP_ICMP_ECHO_REQUEST 8
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif
/* CNE_ICMP_H_ */
cne_byteorder.h
cne_be16_t
uint16_t cne_be16_t
Definition:
cne_byteorder.h:23
cne_icmp_hdr
Definition:
cne_icmp.h:28
lib
include
net
cne_icmp.h
Generated by
1.9.1