aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2011-11-01 15:57:56 -0700
committerJustin Pettit <jpettit@nicira.com>2011-11-09 10:37:55 -0800
commitfa8223b7fd02890647eb2bf3d3b5b27ee4d32a21 (patch)
tree2c78fb0f23b2ca9403c248e556f5521a3edfba02 /lib/packets.h
parent5145475f555867bf510428d65ced59369c7d8f4f (diff)
Support matching IPv6 flow label.
Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r--lib/packets.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/packets.h b/lib/packets.h
index 84877541..d9244928 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -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";