X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip6_packet.h;h=c0c745e27fe7f7645133fcbf9fff12f8eafbe2a4;hb=f068c3ed296c49dfbfe17677fc1ad2428fb4e3e4;hp=cdd7eed5a8240cf8d4475b81c98692b372a71464;hpb=e101e1f52f1da71575588fac30b984a0e94fb5a7;p=vpp.git diff --git a/src/vnet/ip/ip6_packet.h b/src/vnet/ip/ip6_packet.h index cdd7eed5a82..c0c745e27fe 100644 --- a/src/vnet/ip/ip6_packet.h +++ b/src/vnet/ip/ip6_packet.h @@ -341,6 +341,12 @@ typedef struct ip6_address_t src_address, dst_address; } ip6_header_t; +always_inline u8 +ip6_traffic_class (ip6_header_t * i) +{ + return (i->ip_version_traffic_class_and_flow_label & 0x0FF00000) >> 20; +} + always_inline void * ip6_next_header (ip6_header_t * i) {