From: Jesse Gross Date: Tue, 1 Nov 2011 22:25:14 +0000 (-0700) Subject: datapath: Add IPv6 to list of parsed EtherTypes. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=515c382dafb3cc0f0499f477eddc0566602210cf;p=openvswitch datapath: Add IPv6 to list of parsed EtherTypes. The kernel can parse IPv6, so if it receives a flow with an IPv6 EtherType then it expects to get IPv6 information as well. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- diff --git a/datapath/flow.c b/datapath/flow.c index 0084ca20..95297a52 100644 --- a/datapath/flow.c +++ b/datapath/flow.c @@ -1094,6 +1094,7 @@ int flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp, case OVS_KEY_ATTR_ETHERTYPE: if (swkey->eth.type == htons(ETH_P_IP) || + swkey->eth.type == htons(ETH_P_IPV6) || swkey->eth.type == htons(ETH_P_ARP)) goto invalid; goto ok;