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
cne_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 _CNE_MPLS_H_
6
#define _CNE_MPLS_H_
7
14
#include <stdint.h>
15
#include <endian.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
24
struct
cne_mpls_hdr
{
25
uint16_t
tag_msb
;
26
#if BYTE_ORDER == 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
/* CNE_MPLS_H_ */
cne_mpls_hdr
Definition:
cne_mpls.h:24
cne_mpls_hdr::tag_lsb
uint8_t tag_lsb
Definition:
cne_mpls.h:27
cne_mpls_hdr::ttl
uint8_t ttl
Definition:
cne_mpls.h:35
cne_mpls_hdr::tc
uint8_t tc
Definition:
cne_mpls.h:28
cne_mpls_hdr::tag_msb
uint16_t tag_msb
Definition:
cne_mpls.h:25
cne_mpls_hdr::bs
uint8_t bs
Definition:
cne_mpls.h:29
lib
include
net
cne_mpls.h
Generated by
1.9.1