Flowprobe: Stateful flows and IPv6, L4 recording
[vpp.git] / src / vnet / ip / ip6_packet.h
index cdd7eed..c0c745e 100644 (file)
@@ -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)
 {