Make sure to set 'port_no' in ofp_port_mod messages.
authorJustin Pettit <jpettit@nicira.com>
Tue, 23 Sep 2008 01:01:39 +0000 (18:01 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 23 Sep 2008 01:01:39 +0000 (18:01 -0700)
lib/learning-switch.c

index f89706acdc6356bcd977c53bc8a176d5c2d2d0d5..842af37d0311e05ee456bb366ef7e809a3f8810a 100644 (file)
@@ -326,6 +326,7 @@ process_phy_port(struct lswitch *sw, struct rconn *rconn,
             VLOG_WARN("port %d: config=%x new_config=%x",
                       ntohs(opp->port_no), config, new_config);
             opm = make_openflow(sizeof *opm, OFPT_PORT_MOD, &b);
+            opm->port_no = opp->port_no;
             memcpy(opm->hw_addr, opp->hw_addr, OFP_ETH_ALEN);
             opm->config = htonl(new_config);
             opm->mask = htonl(config ^ new_config);