[ovs-dev] [PATCH] Accept the traffic marked with RARP eth_type.

Mehak Mahajan mmahajan at nicira.com
Wed Oct 31 04:44:52 UTC 2012


With this commit, OVS will accept the traffic with eth_type RARP.

Signed-off-by: Mehak Mahajan <mmahajan at nicira.com>
---
 datapath/flow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/datapath/flow.c b/datapath/flow.c
index c70daee..c5f1b53 100644
--- a/datapath/flow.c
+++ b/datapath/flow.c
@@ -725,7 +725,8 @@ int ovs_flow_extract(struct sk_buff *skb, u16 in_port, struct sw_flow_key *key,
 			}
 		}
 
-	} else if (key->eth.type == htons(ETH_P_ARP) && arphdr_ok(skb)) {
+	} else if ((key->eth.type == htons(ETH_P_ARP) ||
+				key->eth.type == htons(ETH_P_RARP)) && arphdr_ok(skb)) {
 		struct arp_eth_header *arp;
 
 		arp = (struct arp_eth_header *)skb_network_header(skb);
-- 
1.7.2.5




More information about the dev mailing list