From 6ecf431e1df3dc011e8a67e4864d324c65f4be17 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Thu, 29 Sep 2011 14:02:42 -0700 Subject: [PATCH] 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. --- ofproto/in-band.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 6c6832408..13093e08c 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); -- 2.43.0