>From 96db02b70f4146ad190f655077136d7fdea37ebe Mon Sep 17 00:00:00 2001
From: Tim Meier <meier3@llnl.gov>
Date: Tue, 8 Jul 2008 17:04:52 -0700
Subject: [PATCH] opensm: osm_subnet.c - added console loopback mode to opts file & parser

The loopback mode of the console (special socket case) has been available via
command line, and this patch provides support via the option caching
mechanism.

Signed-off-by: Tim Meier <meier3@llnl.gov>
---
 opensm/opensm/osm_subnet.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index 8ee0eeb..6a818d4 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -1049,11 +1049,12 @@ static void subn_verify_conf_file(IN osm_subn_opt_t * const p_opts)
 	if (strcmp(p_opts->console, OSM_DISABLE_CONSOLE)
 	    && strcmp(p_opts->console, OSM_LOCAL_CONSOLE)
 #ifdef ENABLE_OSM_CONSOLE_SOCKET
+	    && strcmp(p_opts->console, OSM_LOOPBACK_CONSOLE)
 	    && strcmp(p_opts->console, OSM_REMOTE_CONSOLE)
 #endif
 	    ) {
 		sprintf(buff, " Invalid Cached Option Value:console = %s"
-			"Using Default:%s\n",
+			", Using Default:%s\n",
 			p_opts->console, OSM_DEFAULT_CONSOLE);
 		printf(buff);
 		cl_log_event("OpenSM", CL_LOG_INFO, buff, NULL, 0);
@@ -1688,7 +1689,7 @@ int osm_subn_write_conf_file(char *file_name, IN osm_subn_opt_t *const p_opts)
 		"# If TRUE opensm will exit on fatal initialization issues\n"
 		"exit_on_fatal %s\n\n" "# console [off|local"
 #ifdef ENABLE_OSM_CONSOLE_SOCKET
-		"|socket]\n"
+		"|loopback|socket]\n"
 #else
 		"]\n"
 #endif
-- 
1.5.4.5

