Support matching IPv6 flow label.
[openvswitch] / lib / packets.h
index 848775419b8631bbef36951e496cc422f14111f8..d924492849f3c1a8897ce1a849a3b94199adb920 100644 (file)
@@ -392,6 +392,9 @@ struct arp_eth_header {
 } __attribute__((packed));
 BUILD_ASSERT_DECL(ARP_ETH_HEADER_LEN == sizeof(struct arp_eth_header));
 
+/* The IPv6 flow label is in the lower 20 bits of the first 32-bit word. */
+#define IPV6_LABEL_MASK 0x000fffff
+
 /* Example:
  *
  * char *string = "1 ::1 2";