From: Justin Pettit Date: Tue, 23 Sep 2008 01:01:39 +0000 (-0700) Subject: Make sure to set 'port_no' in ofp_port_mod messages. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=666a53b7f71b605b33737b45a71fafcb5aa6c694;p=openvswitch Make sure to set 'port_no' in ofp_port_mod messages. --- diff --git a/lib/learning-switch.c b/lib/learning-switch.c index f89706ac..842af37d 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -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);