[ovs-dev] [ofp11_match v2 4/7] packets: Add ETH_TYPE_MPLS and ETH_TYPE_MPLS_MCAST.

Ben Pfaff blp at nicira.com
Sat Jun 9 22:55:55 UTC 2012


We need these for OpenFlow 1.1 ofp_match support even if we don't support
MPLS matching (which we don't, yet).

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/packets.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/packets.h b/lib/packets.h
index 19ddd9a..ad5631d 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -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. */
-- 
1.7.2.5




More information about the dev mailing list