DPDK
19.08.0-rc0
Main Page
Related Pages
+
Data Structures
Data Structures
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
w
+
Functions
_
c
e
p
r
s
t
+
Variables
b
c
l
m
r
+
Typedefs
a
c
d
e
h
l
m
p
r
s
u
+
Enumerations
r
+
Enumerator
c
e
f
i
m
r
s
w
+
Macros
_
b
c
d
e
i
l
m
o
p
r
s
t
u
v
Examples
lib
librte_net
rte_gre.h
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright 2016 6WIND S.A.
3
*/
4
5
#ifndef _RTE_GRE_H_
6
#define _RTE_GRE_H_
7
8
#include <stdint.h>
9
#include <
rte_byteorder.h
>
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
18
__extension__
19
struct
rte_gre_hdr
{
20
#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
21
uint16_t
res2
:4;
22
uint16_t
s
:1;
23
uint16_t
k
:1;
24
uint16_t
res1
:1;
25
uint16_t
c
:1;
26
uint16_t
ver
:3;
27
uint16_t
res3
:5;
28
#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
29
uint16_t
c
:1;
30
uint16_t
res1
:1;
31
uint16_t
k
:1;
32
uint16_t
s
:1;
33
uint16_t
res2
:4;
34
uint16_t
res3
:5;
35
uint16_t
ver
:3;
36
#endif
37
uint16_t
proto
;
38
} __attribute__((__packed__));
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif
/* RTE_GRE_H_ */
rte_gre_hdr::k
uint16_t k
Definition:
rte_gre.h:23
rte_gre_hdr::res3
uint16_t res3
Definition:
rte_gre.h:27
rte_byteorder.h
rte_gre_hdr::res2
uint16_t res2
Definition:
rte_gre.h:21
rte_gre_hdr::proto
uint16_t proto
Definition:
rte_gre.h:37
rte_gre_hdr::res1
uint16_t res1
Definition:
rte_gre.h:24
rte_gre_hdr::ver
uint16_t ver
Definition:
rte_gre.h:26
rte_gre_hdr::c
uint16_t c
Definition:
rte_gre.h:25
rte_gre_hdr
Definition:
rte_gre.h:19
rte_gre_hdr::s
uint16_t s
Definition:
rte_gre.h:22
Generated by
1.8.15