[openib-general] [PATCH 1/2] OpenSM: Add socket support to OpenSM console

Hal Rosenstock halr at voltaire.com
Tue Jan 9 05:39:51 PST 2007


On Tue, 2007-01-09 at 08:15, Michael S. Tsirkin wrote:
> > diff --git a/osm/opensm/configure.in b/osm/opensm/configure.in
> > index 1ccf5c6..2d52675 100644
> > --- a/osm/opensm/configure.in
> > +++ b/osm/opensm/configure.in
> > @@ -62,6 +62,22 @@ AC_ARG_ENABLE(debug,
> >  esac],[debug=false])
> >  AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
> >  
> > +dnl Console over a socket connection
> > +AC_ARG_ENABLE(console-socket,
> > +[  --enable-console-socket Enable a console socket, requires tcp_wrappers (default yes)],
> > +[case $enableval in
> > +     yes) console_socket=yes ;;
> > +     no)  console_socket=no ;;
> > +   esac],
> > +   console_socket=yes)
> > +if test $console_socket = yes; then
> > +  AC_CHECK_LIB(wrap, request_init, [],
> > + 	AC_MSG_ERROR([request_init() not found. console-socket requires libwrap.]))
> > +  AC_DEFINE(ENABLE_OSM_CONSOLE_SOCKET,
> > +	    1,
> > +	    [Define as 1 if you want to enable a console on a socket connection])
> > +fi
> > +
> >  dnl Provide user option to select vendor
> >  OPENIB_APP_OSMV_SEL
> >  
> 
> Might it be better to set the default to off?
> libwrap devel package might not be present on some systems - so build now fails
> where previously it passed - and user didn't even ask for any new features.

The default can easily be changed. Are there any other opinions on this
?

> Further, could you please clarify: when compiled in, is opensm listening on a socket
> by default or does it need to be enabled with a run-time option?
> I hope it's the later.

Not currently but I think that is also easily changed as well.

-- Hal






More information about the general mailing list