packets: Add ETH_TYPE_MPLS and ETH_TYPE_MPLS_MCAST.
authorBen Pfaff <blp@nicira.com>
Tue, 22 May 2012 07:15:25 +0000 (00:15 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 13 Jun 2012 04:19:16 +0000 (21:19 -0700)
We need these for OpenFlow 1.1 ofp_match support even if we don't support
MPLS matching (which we don't, yet).

Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/packets.h

index 19ddd9acf66d1f213589e5ce39859ba5d7974228..ad5631db371414c25cf5f03c7052f00d3412dace 100644 (file)
@@ -181,6 +181,8 @@ void eth_addr_bitand(const uint8_t src[ETH_ADDR_LEN],
 #define ETH_TYPE_IPV6          0x86dd
 #define ETH_TYPE_LACP          0x8809
 #define ETH_TYPE_RARP          0x8035
+#define ETH_TYPE_MPLS          0x8847
+#define ETH_TYPE_MPLS_MCAST    0x8848
 
 /* Minimum value for an Ethernet type.  Values below this are IEEE 802.2 frame
  * lengths. */