From: Jesse Gross Date: Thu, 29 Sep 2011 21:02:42 +0000 (-0700) Subject: in-band: Classifier rules should use OpenFlow ports. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ecf431e1df3dc011e8a67e4864d324c65f4be17;p=openvswitch in-band: Classifier rules should use OpenFlow ports. 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. --- diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 6c683240..13093e08 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);