Blog
Community
Development
Documentation
CNDP
22.08.0
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
x
Functions
_
c
d
e
f
g
h
i
j
k
l
m
n
p
s
t
u
v
x
Variables
Typedefs
a
b
c
h
i
j
l
m
o
p
s
t
u
v
Enumerations
Enumerator
_
a
c
d
e
j
m
p
r
s
t
u
Macros
_
a
c
d
e
h
i
j
k
l
m
o
p
r
t
u
v
x
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
cnet_pkt.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_PKT_H
6
#define __CNET_PKT_H
7
13
#include <
net/cne_ether.h
>
14
#include <
net/cne_udp.h
>
15
#include <
net/cne_tcp.h
>
16
#include <
net/cne_icmp.h
>
17
#include <
cnet_ip_common.h
>
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
/* The UDP/IP Pseudo header */
24
struct
udp_ipv4 {
25
struct
ipv4_overlay ip;
/* IPv4 overlay header */
26
struct
cne_udp_hdr
udp;
/* UDP header for protocol */
27
}
__cne_packed
;
28
29
/* The UDP/IP Pseudo header */
30
struct
tcp_ipv4 {
31
struct
ipv4_overlay ip;
/* IPv4 overlay header */
32
struct
cne_tcp_hdr
tcp;
/* tcp header for protocol */
33
}
__cne_packed
;
34
35
struct
pkt_hdr {
36
struct
cne_ether_hdr
eth;
37
union
{
38
struct
cne_ipv4_hdr
ipv4;
39
struct
cne_ipv6_hdr
ipv6;
40
struct
tcp_ipv4 tip;
41
struct
udp_ipv4 uip;
42
uint64_t pad[8];
43
} u;
44
}
__cne_packed
;
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* __CNET_PKT_H */
__cne_packed
#define __cne_packed
Definition:
cne_common.h:129
cne_ether.h
cne_icmp.h
cne_tcp.h
cne_udp.h
cnet_ip_common.h
cne_ether_hdr
Definition:
cne_ether.h:64
cne_ipv4_hdr
Definition:
cne_ip.h:33
cne_ipv6_hdr
Definition:
cne_ip.h:372
cne_tcp_hdr
Definition:
cne_tcp.h:28
cne_udp_hdr
Definition:
cne_udp.h:28
lib
cnet
incs
cnet_pkt.h
Generated by
1.9.1