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_mpls.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2016 6WIND S.A.
3
*/
4
5
#ifndef _RTE_MPLS_H_
6
#define _RTE_MPLS_H_
7
14
#include <stdint.h>
15
#include <
rte_byteorder.h
>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
24
struct
mpls_hdr
{
25
uint16_t
tag_msb
;
26
#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
27
uint8_t
tag_lsb
:4;
28
uint8_t
tc
:3;
29
uint8_t
bs
:1;
30
#else
31
uint8_t
bs
:1;
32
uint8_t
tc
:3;
33
uint8_t
tag_lsb
:4;
34
#endif
35
uint8_t
ttl
;
36
} __attribute__((__packed__));
37
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#endif
/* RTE_MPLS_H_ */
mpls_hdr::bs
uint8_t bs
Definition:
rte_mpls.h:29
rte_byteorder.h
mpls_hdr::tag_lsb
uint8_t tag_lsb
Definition:
rte_mpls.h:27
mpls_hdr::tc
uint8_t tc
Definition:
rte_mpls.h:28
mpls_hdr
Definition:
rte_mpls.h:24
mpls_hdr::tag_msb
uint16_t tag_msb
Definition:
rte_mpls.h:25
mpls_hdr::ttl
uint8_t ttl
Definition:
rte_mpls.h:35
Generated by
1.8.15