From 666a53b7f71b605b33737b45a71fafcb5aa6c694 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 22 Sep 2008 18:01:39 -0700 Subject: [PATCH] Make sure to set 'port_no' in ofp_port_mod messages. --- lib/learning-switch.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2