git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/softnic: use POSIX network address conversion
[dpdk.git]
/
lib
/
librte_net
/
rte_mpls.h
diff --git
a/lib/librte_net/rte_mpls.h
b/lib/librte_net/rte_mpls.h
index
11d26ba
..
3e8cb90
100644
(file)
--- a/
lib/librte_net/rte_mpls.h
+++ b/
lib/librte_net/rte_mpls.h
@@
-21,7
+21,8
@@
extern "C" {
/**
* MPLS header.
*/
/**
* MPLS header.
*/
-struct mpls_hdr {
+__extension__
+struct rte_mpls_hdr {
uint16_t tag_msb; /**< Label(msb). */
#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
uint8_t tag_lsb:4; /**< Label(lsb). */
uint16_t tag_msb; /**< Label(msb). */
#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
uint8_t tag_lsb:4; /**< Label(lsb). */
@@
-33,7
+34,7
@@
struct mpls_hdr {
uint8_t tag_lsb:4; /**< label(lsb) */
#endif
uint8_t ttl; /**< Time to live. */
uint8_t tag_lsb:4; /**< label(lsb) */
#endif
uint8_t ttl; /**< Time to live. */
-} __
attribute__((__packed__))
;
+} __
rte_packed
;
#ifdef __cplusplus
}
#ifdef __cplusplus
}