From: Justin Pettit Date: Fri, 26 Sep 2008 22:28:41 +0000 (-0700) Subject: Show OpenFlow wire version when pretty printing features reply. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65305619346dd051b24f874eb88cc415d0daf6e0;p=openvswitch Show OpenFlow wire version when pretty printing features reply. This allows easy detection of version number with "dpctl show". --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index a3f5d635..c8a6a322 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -473,7 +473,8 @@ ofp_print_switch_features(struct ds *string, const void *oh, size_t len, int n_ports; int i; - ds_put_format(string, "dp id:%"PRIx64"\n", ntohll(osf->datapath_id)); + ds_put_format(string, " ver:0x%x, dpid:%"PRIx64"\n", + osf->header.version, ntohll(osf->datapath_id)); ds_put_format(string, "n_tables:%d, n_buffers:%d\n", osf->n_tables, ntohl(osf->n_buffers)); ds_put_format(string, "features: capabilities:%#x, actions:%#x\n",