From: Ethan Jackson Date: Wed, 6 Jun 2012 22:22:52 +0000 (-0700) Subject: packets: Update the reserved protocols list. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c93f9a78c349;p=openvswitch packets: Update the reserved protocols list. The protocols added in this patch should be considered "reserved" and not forward when "forward-bpdu" is false, nor should they be mirrored. Bug #11755. Signed-off-by: Ethan Jackson --- diff --git a/NEWS b/NEWS index ac84edbe..66bf7279 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ post-v1.7.0 - ovs-ofctl: - "mod-port" command can now control all OpenFlow config flags. - Added support for arbitrary ethernet masks + - Additional protocols are not mirrored and dropped when forward-bpdu is + false. For a full list, see the ovs-vswitchd.conf.db man page. v1.7.0 - xx xxx xxxx diff --git a/lib/packets.c b/lib/packets.c index 35829fca..a8208f59 100644 --- a/lib/packets.c +++ b/lib/packets.c @@ -62,6 +62,30 @@ eth_addr_is_reserved(const uint8_t ea[ETH_ADDR_LEN]) {0x01, 0x08, 0xc2, 0x00, 0x00, 0x00}, {0xff, 0xff, 0xff, 0xff, 0xff, 0xf0}}, + { /* VRRP IPv4. */ + {0x00, 0x00, 0x5e, 0x00, 0x01, 0x00}, + {0xff, 0xff, 0xff, 0xff, 0xff, 0x00}}, + + { /* VRRP IPv6. */ + {0x00, 0x00, 0x5e, 0x00, 0x02, 0x00}, + {0xff, 0xff, 0xff, 0xff, 0xff, 0x00}}, + + { /* HSRPv1. */ + {0x00, 0x00, 0x0c, 0x07, 0xac, 0x00}, + {0xff, 0xff, 0xff, 0xff, 0xff, 0x00}}, + + { /* HSRPv2. */ + {0x00, 0x00, 0x0c, 0x9f, 0xf0, 0x00}, + {0xff, 0xff, 0xff, 0xff, 0xf0, 0x00}}, + + { /* GLBP. */ + {0x00, 0x07, 0xb4, 0x00, 0x00, 0x00}, + {0xff, 0xff, 0xff, 0x00, 0x00, 0x00}}, + + { /* Extreme Discovery Protocol. */ + {0x00, 0xE0, 0x2B, 0x00, 0x00, 0x00}, + {0xff, 0xff, 0xff, 0xff, 0xf0, 0x00}}, + { /* Cisco Inter Switch Link. */ {0x01, 0x00, 0x0c, 0x00, 0x00, 0x00}, {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}}, diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 5be9a4fd..32d4c595 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -569,6 +569,22 @@
01:80:c2:00:00:0x
Other reserved protocols.
+
00:00:5e:00:01:xx
+
VRRP IPv4 virtual router MAC address.
+ +
00:00:5e:00:02:xx
+
VRRP IPv6 virtual router MAC address.
+ +
00:00:0c:07:ac:xx
+
HSRP Version 1.
+ +
00:00:0c:9f:fx:xx +
+
HSRP Version 2.
+ +
00:07:b4:xx:xx:xx
+
GLBP.
+
01:00:0c:cc:cc:cc
Cisco Discovery Protocol (CDP), VLAN Trunking Protocol (VTP),