From fc09119a4a2e12807975145ea004b93aed116a22 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 16 Jun 2010 16:01:41 -0700 Subject: [PATCH] vswitch: Datapath IDs are now 16 hex digits. OpenFlow 1.0 datapath IDs are 64 bits long, so the "datapath_id" column should have 16 hex digits. The documentation had this right, but the code didn't implement it correctly. Reported-by: Arthur van Kleef --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 9097e6b21..f6079928f 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -719,7 +719,7 @@ bridge_reconfigure(const struct ovsrec_open_vswitch *ovs_cfg) dpid = bridge_pick_datapath_id(br, ea, hw_addr_iface); ofproto_set_datapath_id(br->ofproto, dpid); - dpid_string = xasprintf("%012"PRIx64, dpid); + dpid_string = xasprintf("%016"PRIx64, dpid); ovsrec_bridge_set_datapath_id(br->cfg, dpid_string); free(dpid_string); -- 2.43.0