[ovs-dev] [PATCH 3/3] in-band: Classifier rules should use OpenFlow ports.

Jesse Gross jesse at nicira.com
Thu Sep 29 21:40:01 UTC 2011


The in-band rules want to allow traffic to and from the local port
but the rule to be inserted in the classifier table for DHCP traffic
used the datapath constant for local traffic instead of the OpenFlow
one.
---
 ofproto/in-band.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ofproto/in-band.c b/ofproto/in-band.c
index 6c68324..13093e0 100644
--- a/ofproto/in-band.c
+++ b/ofproto/in-band.c
@@ -313,7 +313,7 @@ update_rules(struct in_band *ib)
     if (ib->n_remotes && !eth_addr_is_zero(ib->local_mac)) {
         /* (a) Allow DHCP requests sent from the local port. */
         cls_rule_init_catchall(&rule, IBR_FROM_LOCAL_DHCP);
-        cls_rule_set_in_port(&rule, OVSP_LOCAL);
+        cls_rule_set_in_port(&rule, OFPP_LOCAL);
         cls_rule_set_dl_type(&rule, htons(ETH_TYPE_IP));
         cls_rule_set_dl_src(&rule, ib->local_mac);
         cls_rule_set_nw_proto(&rule, IPPROTO_UDP);
-- 
1.7.4.1




More information about the dev mailing list