From 65305619346dd051b24f874eb88cc415d0daf6e0 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 26 Sep 2008 15:28:41 -0700 Subject: [PATCH] Show OpenFlow wire version when pretty printing features reply. This allows easy detection of version number with "dpctl show". --- lib/ofp-print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index a3f5d6354..c8a6a322f 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", -- 2.43.0