CNDP  22.08.0
cnet_udp.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2016-2022 Intel Corporation
3  */
4 
5 #ifndef __CNET_UDP_H
6 #define __CNET_UDP_H
7 
13 #include <stdint.h> // for uint32_t
14 
15 #include "cnet_const.h" // for bool_t
16 #include "cnet_pcb.h" // for pcb_hd
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 /* UDP parameters for Send and Receive buffer sizes. */
23 #define MAX_UDP_RCV_SIZE (1024 * 1024)
24 #define MAX_UDP_SND_SIZE MAX_UDP_RCV_SIZE
25 
26 struct udp_entry {
27  struct pcb_hd udp_hd;
28  bool cksum_on;
29  uint32_t rcv_size;
30  uint32_t snd_size;
31 };
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* __CNET_UDP_H */