X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fmpls%2Fpacket.h;h=8573bc3bef5feed3360474945e92c2e7fa36adb4;hb=b232d192f2f77114e26cf7f99b57bcd6140872d0;hp=ca6ac407686a7b15a7a6d9e1792b5a118d841b58;hpb=31ed74407643595fdce206e9d7487108fb8b33ab;p=vpp.git diff --git a/src/vnet/mpls/packet.h b/src/vnet/mpls/packet.h index ca6ac407686..8573bc3bef5 100644 --- a/src/vnet/mpls/packet.h +++ b/src/vnet/mpls/packet.h @@ -1,6 +1,3 @@ -#ifndef included_vnet_mpls_packet_h -#define included_vnet_mpls_packet_h - /* * MPLS packet format * @@ -18,6 +15,11 @@ * limitations under the License. */ +#ifndef included_vnet_mpls_packet_h +#define included_vnet_mpls_packet_h + +#include + /** * A label value only, i.e. 20bits. */ @@ -55,7 +57,7 @@ typedef enum mpls_eos_bit_t_ /** * When in uniform mode convert an IPv[46] DSCP value to an MPLS EXP value */ -static inline u8 ip_dscp_to_mpls_exp (u8 tos) +static inline u8 ip_dscp_to_mpls_exp (ip_dscp_t tos) { return (tos >> 5); }