in-band: Classifier rules should use OpenFlow ports.
authorJesse Gross <jesse@nicira.com>
Thu, 29 Sep 2011 21:02:42 +0000 (14:02 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 29 Sep 2011 21:35:58 +0000 (14:35 -0700)
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

index 6c6832408d540b579b423705c46e2ef6ca8ed0bb..13093e08c0173046ea8fadba564ef8cc6a3a7248 100644 (file)
@@ -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);