mirror of
https://github.com/bstansell/conserver.git
synced 2024-12-19 04:47:53 +00:00
Imported from conserver-8.1.8.tar.gz
This commit is contained in:
parent
c0f8de9c24
commit
27475bdd30
8
CHANGES
8
CHANGES
@ -1,6 +1,12 @@
|
|||||||
CHANGES
|
CHANGES
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
version 8.1.8 (Jun 9, 2004):
|
||||||
|
- added 'initspinmax' and 'initspintimer' console options to
|
||||||
|
help calm console initialization "spinning"
|
||||||
|
- fixed setsockopt() error on 64bit solaris - reported by Trond
|
||||||
|
Hagen <trond@basefarm.no>
|
||||||
|
|
||||||
version 8.1.7 (May 28, 2004):
|
version 8.1.7 (May 28, 2004):
|
||||||
- cleaned up the manpages a bit to make things clearer and more
|
- cleaned up the manpages a bit to make things clearer and more
|
||||||
standard - reported by Dave Stuit <djs@tellme.com>
|
standard - reported by Dave Stuit <djs@tellme.com>
|
||||||
@ -754,5 +760,5 @@ before version 6.05:
|
|||||||
and enhancements of various types were applied.
|
and enhancements of various types were applied.
|
||||||
|
|
||||||
#
|
#
|
||||||
# $Id: CHANGES,v 1.186 2004/05/28 18:01:10 bryan Exp $
|
# $Id: CHANGES,v 1.189 2004/06/09 22:25:50 bryan Exp $
|
||||||
#
|
#
|
||||||
|
@ -60,6 +60,9 @@
|
|||||||
/* Define to 1 if you have the `getspnam' function. */
|
/* Define to 1 if you have the `getspnam' function. */
|
||||||
#undef HAVE_GETSPNAM
|
#undef HAVE_GETSPNAM
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `gettimeofday' function. */
|
||||||
|
#undef HAVE_GETTIMEOFDAY
|
||||||
|
|
||||||
/* Define to 1 if you have the `getuserattr' function. */
|
/* Define to 1 if you have the `getuserattr' function. */
|
||||||
#undef HAVE_GETUSERATTR
|
#undef HAVE_GETUSERATTR
|
||||||
|
|
||||||
|
3
configure
vendored
3
configure
vendored
@ -6916,7 +6916,8 @@ done
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_func in getopt strerror getrlimit getsid setsid getuserattr setgroups tcgetpgrp tcsetpgrp tcgetattr tcsetattr tcsendbreak setpgrp getutent setttyent getspnam setlinebuf setvbuf ptsname grantpt unlockpt sigaction setsockopt getdtablesize putenv memset memcpy memcmp memmove sysconf getlogin inet_aton setproctitle
|
|
||||||
|
for ac_func in getopt strerror getrlimit getsid setsid getuserattr setgroups tcgetpgrp tcsetpgrp tcgetattr tcsetattr tcsendbreak setpgrp getutent setttyent getspnam setlinebuf setvbuf ptsname grantpt unlockpt sigaction setsockopt getdtablesize putenv memset memcpy memcmp memmove sysconf getlogin inet_aton setproctitle gettimeofday
|
||||||
do
|
do
|
||||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
||||||
|
@ -609,7 +609,7 @@ AC_CHECK_HEADERS(pty.h libutil.h util.h)
|
|||||||
AC_CHECK_LIB(util, openpty)
|
AC_CHECK_LIB(util, openpty)
|
||||||
AC_CHECK_FUNCS(openpty)
|
AC_CHECK_FUNCS(openpty)
|
||||||
|
|
||||||
AC_CHECK_FUNCS(getopt strerror getrlimit getsid setsid getuserattr setgroups tcgetpgrp tcsetpgrp tcgetattr tcsetattr tcsendbreak setpgrp getutent setttyent getspnam setlinebuf setvbuf ptsname grantpt unlockpt sigaction setsockopt getdtablesize putenv memset memcpy memcmp memmove sysconf getlogin inet_aton setproctitle)
|
AC_CHECK_FUNCS(getopt strerror getrlimit getsid setsid getuserattr setgroups tcgetpgrp tcsetpgrp tcgetattr tcsetattr tcsendbreak setpgrp getutent setttyent getspnam setlinebuf setvbuf ptsname grantpt unlockpt sigaction setsockopt getdtablesize putenv memset memcpy memcmp memmove sysconf getlogin inet_aton setproctitle gettimeofday)
|
||||||
AC_FUNC_SETPGRP
|
AC_FUNC_SETPGRP
|
||||||
AC_CHECK_FUNC(strcasecmp,
|
AC_CHECK_FUNC(strcasecmp,
|
||||||
[AC_DEFINE(HAVE_STRCASECMP, 1, [Define if strcasecmp is available])],
|
[AC_DEFINE(HAVE_STRCASECMP, 1, [Define if strcasecmp is available])],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.\" $Id: conserver.cf.man,v 1.65 2004/05/27 23:39:06 bryan Exp $
|
.\" $Id: conserver.cf.man,v 1.67 2004/06/01 23:45:48 bryan Exp $
|
||||||
.TH CONSERVER.CF 5 "2004/05/27" "conserver-8.1.7" "conserver"
|
.TH CONSERVER.CF 5 "2004/06/01" "conserver-8.1.8" "conserver"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
conserver.cf \- console configuration file for
|
conserver.cf \- console configuration file for
|
||||||
.BR conserver (8)
|
.BR conserver (8)
|
||||||
@ -191,7 +191,7 @@ Define a break sequence where 0 <
|
|||||||
.I n
|
.I n
|
||||||
< 10.
|
< 10.
|
||||||
Break sequences are accessed via the
|
Break sequences are accessed via the
|
||||||
.RI ``^El n ''
|
.RI ``^Ecl n ''
|
||||||
client escape sequence.
|
client escape sequence.
|
||||||
.RS
|
.RS
|
||||||
.TP
|
.TP
|
||||||
@ -589,6 +589,45 @@ is passed as an argument to ``/bin/sh -ce''.
|
|||||||
If the null string (``\f3""\fP'') is used, the command is unset and
|
If the null string (``\f3""\fP'') is used, the command is unset and
|
||||||
nothing is invoked.
|
nothing is invoked.
|
||||||
.TP
|
.TP
|
||||||
|
\f3initspinmax\fP \f2n\fP|\f3""\fP
|
||||||
|
.br
|
||||||
|
Set the maximum number of ``spins'' allowed for the console to
|
||||||
|
.IR n ,
|
||||||
|
where 0 <=
|
||||||
|
.I n
|
||||||
|
<= 254.
|
||||||
|
A console is determined to be ``spinning'' if an attempt to initialize
|
||||||
|
the console occurs in under
|
||||||
|
.B initspintimer
|
||||||
|
seconds from it's previous initialization and this quick
|
||||||
|
initialization occurs
|
||||||
|
.B initspinmax
|
||||||
|
times in a row.
|
||||||
|
If, at any point, the time between initializations is greater than
|
||||||
|
.BR initspintimer ,
|
||||||
|
the counter for reaching
|
||||||
|
.B initspinmax
|
||||||
|
resets to zero.
|
||||||
|
When a console is determined to be ``spinning'' it is forced down.
|
||||||
|
If the null string (``\f3""\fP'') is specified, the default of
|
||||||
|
.B 5
|
||||||
|
is used.
|
||||||
|
.TP
|
||||||
|
\f3initspintimer\fP \f2t\fP|\f3""\fP
|
||||||
|
.br
|
||||||
|
Set the number of seconds a console must be ``up'' to not be
|
||||||
|
considered ``spinning'' to
|
||||||
|
.IR t ,
|
||||||
|
where 0 <=
|
||||||
|
.I t
|
||||||
|
<= 254.
|
||||||
|
See
|
||||||
|
.B initspinmax
|
||||||
|
for a full description of console ``spinning.''
|
||||||
|
If the null string (``\f3""\fP'') is specified, the default of
|
||||||
|
.B 1
|
||||||
|
is used.
|
||||||
|
.TP
|
||||||
\f3initsubst\fP \f2c\fP\f3=\fP\f2t\fP[\f2n\fP]\f2f\fP[\f3,\fP...]|\f3""\fP
|
\f3initsubst\fP \f2c\fP\f3=\fP\f2t\fP[\f2n\fP]\f2f\fP[\f3,\fP...]|\f3""\fP
|
||||||
.br
|
.br
|
||||||
Perform character substitutions on the
|
Perform character substitutions on the
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.\" $Id: conserver.passwd.man,v 1.10 2004/01/08 16:12:33 bryan Exp $
|
.\" $Id: conserver.passwd.man,v 1.10 2004/01/08 16:12:33 bryan Exp $
|
||||||
.TH CONSERVER.PASSWD 5 "2004/01/08" "conserver-8.1.7" "conserver"
|
.TH CONSERVER.PASSWD 5 "2004/01/08" "conserver-8.1.8" "conserver"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
conserver.passwd \- user access information for
|
conserver.passwd \- user access information for
|
||||||
.BR conserver (8)
|
.BR conserver (8)
|
||||||
|
@ -182,11 +182,11 @@
|
|||||||
|
|
||||||
<H3>Downloading</H3>
|
<H3>Downloading</H3>
|
||||||
|
|
||||||
<P>The current version, released on May 28, 2004, is <A
|
<P>The current version, released on Jun 9, 2004, is <A
|
||||||
href="8.1.7.tar.gz">8.1.7.tar.gz</A>. You can get it via
|
href="8.1.8.tar.gz">8.1.8.tar.gz</A>. You can get it via
|
||||||
<A href=
|
<A href=
|
||||||
"ftp://ftp.conserver.com/conserver/8.1.7.tar.gz">FTP</A>
|
"ftp://ftp.conserver.com/conserver/8.1.8.tar.gz">FTP</A>
|
||||||
or <A href="8.1.7.tar.gz">HTTP</A>. See the <A href=
|
or <A href="8.1.8.tar.gz">HTTP</A>. See the <A href=
|
||||||
"CHANGES">CHANGES</A> file for information on the latest
|
"CHANGES">CHANGES</A> file for information on the latest
|
||||||
updates.</P>
|
updates.</P>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: consent.c,v 5.138 2004/04/16 16:58:09 bryan Exp $
|
* $Id: consent.c,v 5.140 2004/06/03 21:53:59 bryan Exp $
|
||||||
*
|
*
|
||||||
* Copyright conserver.com, 2000
|
* Copyright conserver.com, 2000
|
||||||
*
|
*
|
||||||
@ -678,6 +678,40 @@ ConsInit(pCE)
|
|||||||
extern int FallBack PARAMS((char **, int *));
|
extern int FallBack PARAMS((char **, int *));
|
||||||
int cofile = -1;
|
int cofile = -1;
|
||||||
int ret;
|
int ret;
|
||||||
|
#if HAVE_GETTIMEOFDAY
|
||||||
|
struct timeval tv;
|
||||||
|
#else
|
||||||
|
time_t tv;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (pCE->spintimer > 0 && pCE->spinmax > 0) {
|
||||||
|
#if HAVE_GETTIMEOFDAY
|
||||||
|
if (gettimeofday(&tv, (void *)0) == 0) {
|
||||||
|
/* less than pCE->spintimer seconds gone by? */
|
||||||
|
if ((tv.tv_sec <= pCE->lastInit.tv_sec + pCE->spintimer - 1)
|
||||||
|
|| (tv.tv_sec == pCE->lastInit.tv_sec + 1 &&
|
||||||
|
tv.tv_usec <= pCE->lastInit.tv_usec)) {
|
||||||
|
#else
|
||||||
|
if ((tv = time((time_t *)0)) != (time_t)-1) {
|
||||||
|
/* less than pCE->spintimer seconds gone by? (approx) */
|
||||||
|
if (tv <= pCE->lastInit + pCE->spintimer) {
|
||||||
|
#endif
|
||||||
|
pCE->spincount++;
|
||||||
|
if (pCE->spincount >= pCE->spinmax) {
|
||||||
|
pCE->spincount = 0;
|
||||||
|
pCE->lastInit = tv;
|
||||||
|
Error
|
||||||
|
("[%s] initialization rate exceeded: forcing down",
|
||||||
|
pCE->server);
|
||||||
|
ConsDown(pCE, FLAGTRUE, FLAGTRUE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
pCE->spincount = 0;
|
||||||
|
pCE->lastInit = tv;
|
||||||
|
} else
|
||||||
|
pCE->spincount = 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* clean up old stuff
|
/* clean up old stuff
|
||||||
*/
|
*/
|
||||||
@ -734,7 +768,9 @@ ConsInit(pCE)
|
|||||||
{
|
{
|
||||||
struct sockaddr_in port;
|
struct sockaddr_in port;
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
size_t one = 1;
|
#if HAVE_SETSOCKOPT
|
||||||
|
int one = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
usleep(100000); /* Not all terminal servers can keep up */
|
usleep(100000); /* Not all terminal servers can keep up */
|
||||||
|
|
||||||
@ -767,6 +803,7 @@ ConsInit(pCE)
|
|||||||
ConsDown(pCE, FLAGTRUE, FLAGTRUE);
|
ConsDown(pCE, FLAGTRUE, FLAGTRUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#if HAVE_SETSOCKOPT
|
||||||
if (setsockopt
|
if (setsockopt
|
||||||
(cofile, SOL_SOCKET, SO_KEEPALIVE, (char *)&one,
|
(cofile, SOL_SOCKET, SO_KEEPALIVE, (char *)&one,
|
||||||
sizeof(one)) < 0) {
|
sizeof(one)) < 0) {
|
||||||
@ -776,6 +813,7 @@ ConsInit(pCE)
|
|||||||
ConsDown(pCE, FLAGTRUE, FLAGTRUE);
|
ConsDown(pCE, FLAGTRUE, FLAGTRUE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!SetFlags(cofile, O_NONBLOCK, 0)) {
|
if (!SetFlags(cofile, O_NONBLOCK, 0)) {
|
||||||
ConsDown(pCE, FLAGTRUE, FLAGTRUE);
|
ConsDown(pCE, FLAGTRUE, FLAGTRUE);
|
||||||
@ -897,6 +935,13 @@ ConsInit(pCE)
|
|||||||
Msg("[%s] console initializing", pCE->server);
|
Msg("[%s] console initializing", pCE->server);
|
||||||
pCE->downHard = FLAGFALSE;
|
pCE->downHard = FLAGFALSE;
|
||||||
}
|
}
|
||||||
|
#if HAVE_GETTIMEOFDAY
|
||||||
|
if (gettimeofday(&tv, (void *)0) == 0)
|
||||||
|
pCE->lastInit = tv;
|
||||||
|
#else
|
||||||
|
if ((tv = time((time_t *)0)) != (time_t)-1)
|
||||||
|
pCE->lastInit = tv;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (pCE->ioState == ISNORMAL)
|
if (pCE->ioState == ISNORMAL)
|
||||||
StartInit(pCE);
|
StartInit(pCE);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: consent.h,v 5.57 2004/05/21 04:38:02 bryan Exp $
|
* $Id: consent.h,v 5.58 2004/06/01 23:45:47 bryan Exp $
|
||||||
*
|
*
|
||||||
* Copyright conserver.com, 2000
|
* Copyright conserver.com, 2000
|
||||||
*
|
*
|
||||||
@ -110,6 +110,8 @@ typedef struct consent { /* console information */
|
|||||||
char *motd; /* motd */
|
char *motd; /* motd */
|
||||||
time_t idletimeout; /* idle timeout */
|
time_t idletimeout; /* idle timeout */
|
||||||
char *idlestring; /* string to print when idle */
|
char *idlestring; /* string to print when idle */
|
||||||
|
unsigned short spinmax; /* initialization spin maximum */
|
||||||
|
unsigned short spintimer; /* initialization spin timer */
|
||||||
/* timestamp stuff */
|
/* timestamp stuff */
|
||||||
int mark; /* Mark (chime) interval */
|
int mark; /* Mark (chime) interval */
|
||||||
long nextMark; /* Next mark (chime) time */
|
long nextMark; /* Next mark (chime) time */
|
||||||
@ -135,6 +137,12 @@ typedef struct consent { /* console information */
|
|||||||
IOSTATE ioState; /* state of the socket */
|
IOSTATE ioState; /* state of the socket */
|
||||||
time_t stateTimer; /* timer for ioState states */
|
time_t stateTimer; /* timer for ioState states */
|
||||||
time_t lastWrite; /* time of last data sent to console */
|
time_t lastWrite; /* time of last data sent to console */
|
||||||
|
#if HAVE_GETTIMEOFDAY
|
||||||
|
struct timeval lastInit; /* time of last initialization */
|
||||||
|
#else
|
||||||
|
time_t lastInit; /* time of last initialization */
|
||||||
|
#endif
|
||||||
|
unsigned short spincount; /* initialization spin counter */
|
||||||
|
|
||||||
/*** state information ***/
|
/*** state information ***/
|
||||||
char acline[132 * 2 + 2]; /* max chars we will call a line */
|
char acline[132 * 2 + 2]; /* max chars we will call a line */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.\" @(#)conserver.8 01/06/91 OSU CIS; Thomas A. Fine
|
.\" @(#)conserver.8 01/06/91 OSU CIS; Thomas A. Fine
|
||||||
.\" $Id: conserver.man,v 1.48 2004/05/28 02:02:36 bryan Exp $
|
.\" $Id: conserver.man,v 1.50 2004/06/08 16:19:46 bryan Exp $
|
||||||
.TH CONSERVER 8 "2004/05/28" "conserver-8.1.7" "conserver"
|
.TH CONSERVER 8 "2004/06/08" "conserver-8.1.8" "conserver"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
conserver \- console server daemon
|
conserver \- console server daemon
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -318,6 +318,9 @@ Enable periodic attempts (every
|
|||||||
.I min
|
.I min
|
||||||
minutes) to open (``bring up'') all downed
|
minutes) to open (``bring up'') all downed
|
||||||
consoles (similar to sending a SIGUSR1).
|
consoles (similar to sending a SIGUSR1).
|
||||||
|
Without this option, or if
|
||||||
|
.I min
|
||||||
|
is zero, no periodic attempts occur.
|
||||||
.TP
|
.TP
|
||||||
.BI \-p port
|
.BI \-p port
|
||||||
Set the TCP port for the master process to listen on.
|
Set the TCP port for the master process to listen on.
|
||||||
@ -449,7 +452,7 @@ This is, by no means, a complete description of the entire client/server
|
|||||||
interaction.
|
interaction.
|
||||||
It is, however, a brief explanation in order to give a idea of
|
It is, however, a brief explanation in order to give a idea of
|
||||||
what the program does. See the
|
what the program does. See the
|
||||||
.B \s-1PROTOCOLS\s0
|
.B \s-1PROTOCOL\s0
|
||||||
file in the distribution for further details.
|
file in the distribution for further details.
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.PP
|
.PP
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: group.c,v 5.302 2004/05/27 23:40:35 bryan Exp $
|
* $Id: group.c,v 5.304 2004/06/03 21:53:42 bryan Exp $
|
||||||
*
|
*
|
||||||
* Copyright conserver.com, 2000
|
* Copyright conserver.com, 2000
|
||||||
*
|
*
|
||||||
@ -4346,6 +4346,13 @@ Kiddie(pGE, sfd)
|
|||||||
}
|
}
|
||||||
pCEServing->ioState = ISNORMAL;
|
pCEServing->ioState = ISNORMAL;
|
||||||
pCEServing->lastWrite = time((time_t *)0);
|
pCEServing->lastWrite = time((time_t *)0);
|
||||||
|
#if HAVE_GETTIMEOFDAY
|
||||||
|
if (gettimeofday(&tv, (void *)0) == 0)
|
||||||
|
pCEServing->lastInit = tv;
|
||||||
|
#else
|
||||||
|
if ((tv = time((time_t *)0)) != (time_t)-1)
|
||||||
|
pCEServing->lastInit = tv;
|
||||||
|
#endif
|
||||||
/* waiting for a connect(), we watch the write bit,
|
/* waiting for a connect(), we watch the write bit,
|
||||||
* so switch around and now watch for the read and
|
* so switch around and now watch for the read and
|
||||||
* start gathering data
|
* start gathering data
|
||||||
@ -4627,7 +4634,9 @@ Spawn(pGE)
|
|||||||
static STRING *portPath = (STRING *)0;
|
static STRING *portPath = (STRING *)0;
|
||||||
#else
|
#else
|
||||||
socklen_t so;
|
socklen_t so;
|
||||||
|
# if HAVE_SETSOCKOPT
|
||||||
int true = 1;
|
int true = 1;
|
||||||
|
# endif
|
||||||
unsigned short portInc = 0;
|
unsigned short portInc = 0;
|
||||||
struct sockaddr_in lstn_port;
|
struct sockaddr_in lstn_port;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: master.c,v 5.126 2004/05/06 02:09:07 bryan Exp $
|
* $Id: master.c,v 5.127 2004/06/03 21:53:59 bryan Exp $
|
||||||
*
|
*
|
||||||
* Copyright conserver.com, 2000
|
* Copyright conserver.com, 2000
|
||||||
*
|
*
|
||||||
@ -686,7 +686,9 @@ Master()
|
|||||||
static STRING *portPath = (STRING *)0;
|
static STRING *portPath = (STRING *)0;
|
||||||
#else
|
#else
|
||||||
struct sockaddr_in master_port;
|
struct sockaddr_in master_port;
|
||||||
|
# if HAVE_SETSOCKOPT
|
||||||
int true = 1;
|
int true = 1;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
CONSCLIENT *pCLServing = (CONSCLIENT *)0;
|
CONSCLIENT *pCLServing = (CONSCLIENT *)0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: readcfg.c,v 5.177 2004/05/27 23:40:36 bryan Exp $
|
* $Id: readcfg.c,v 5.178 2004/06/01 23:45:47 bryan Exp $
|
||||||
*
|
*
|
||||||
* Copyright conserver.com, 2000
|
* Copyright conserver.com, 2000
|
||||||
*
|
*
|
||||||
@ -641,6 +641,10 @@ ApplyDefault(d, c)
|
|||||||
c->portinc = d->portinc;
|
c->portinc = d->portinc;
|
||||||
if (d->portbase != 0)
|
if (d->portbase != 0)
|
||||||
c->portbase = d->portbase;
|
c->portbase = d->portbase;
|
||||||
|
if (d->spinmax != 0)
|
||||||
|
c->spinmax = d->spinmax;
|
||||||
|
if (d->spintimer != 0)
|
||||||
|
c->spintimer = d->spintimer;
|
||||||
if (d->mark != 0)
|
if (d->mark != 0)
|
||||||
c->mark = d->mark;
|
c->mark = d->mark;
|
||||||
if (d->nextMark != 0)
|
if (d->nextMark != 0)
|
||||||
@ -1616,6 +1620,102 @@ DefaultItemPortinc(id)
|
|||||||
ProcessPortinc(parserDefaultTemp, id);
|
ProcessPortinc(parserDefaultTemp, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
#if PROTOTYPES
|
||||||
|
ProcessInitspinmax(CONSENT *c, char *id)
|
||||||
|
#else
|
||||||
|
ProcessInitspinmax(c, id)
|
||||||
|
CONSENT *c;
|
||||||
|
char *id;
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
char *p;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if ((id == (char *)0) || (*id == '\000')) {
|
||||||
|
c->spinmax = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (p = id; *p != '\000'; p++)
|
||||||
|
if (!isdigit((int)(*p)))
|
||||||
|
break;
|
||||||
|
/* if it wasn't a number */
|
||||||
|
if (*p != '\000') {
|
||||||
|
if (isMaster)
|
||||||
|
Error("invalid initspinmax number `%s' [%s:%d]", id, file,
|
||||||
|
line);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
i = atoi(id);
|
||||||
|
if (i > 254) {
|
||||||
|
if (isMaster)
|
||||||
|
Error("invalid initspinmax number `%s' [%s:%d]", id, file,
|
||||||
|
line);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
c->spinmax = i + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
#if PROTOTYPES
|
||||||
|
DefaultItemInitspinmax(char *id)
|
||||||
|
#else
|
||||||
|
DefaultItemInitspinmax(id)
|
||||||
|
char *id;
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
CONDDEBUG((1, "DefaultItemInitspinmax(%s) [%s:%d]", id, file, line));
|
||||||
|
ProcessInitspinmax(parserDefaultTemp, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
#if PROTOTYPES
|
||||||
|
ProcessInitspintimer(CONSENT *c, char *id)
|
||||||
|
#else
|
||||||
|
ProcessInitspintimer(c, id)
|
||||||
|
CONSENT *c;
|
||||||
|
char *id;
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
char *p;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
if ((id == (char *)0) || (*id == '\000')) {
|
||||||
|
c->spintimer = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (p = id; *p != '\000'; p++)
|
||||||
|
if (!isdigit((int)(*p)))
|
||||||
|
break;
|
||||||
|
/* if it wasn't a number */
|
||||||
|
if (*p != '\000') {
|
||||||
|
if (isMaster)
|
||||||
|
Error("invalid initspintimer number `%s' [%s:%d]", id, file,
|
||||||
|
line);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
i = atoi(id);
|
||||||
|
if (i > 254) {
|
||||||
|
if (isMaster)
|
||||||
|
Error("invalid initspintimer number `%s' [%s:%d]", id, file,
|
||||||
|
line);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
c->spintimer = i + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
#if PROTOTYPES
|
||||||
|
DefaultItemInitspintimer(char *id)
|
||||||
|
#else
|
||||||
|
DefaultItemInitspintimer(id)
|
||||||
|
char *id;
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
CONDDEBUG((1, "DefaultItemInitspintimer(%s) [%s:%d]", id, file, line));
|
||||||
|
ProcessInitspintimer(parserDefaultTemp, id);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
#if PROTOTYPES
|
#if PROTOTYPES
|
||||||
ProcessProtocol(CONSENT *c, char *id)
|
ProcessProtocol(CONSENT *c, char *id)
|
||||||
@ -2598,6 +2698,8 @@ ConsoleAdd(c)
|
|||||||
SwapStr(&pCEmatch->idlestring, &c->idlestring);
|
SwapStr(&pCEmatch->idlestring, &c->idlestring);
|
||||||
pCEmatch->portinc = c->portinc;
|
pCEmatch->portinc = c->portinc;
|
||||||
pCEmatch->portbase = c->portbase;
|
pCEmatch->portbase = c->portbase;
|
||||||
|
pCEmatch->spinmax = c->spinmax;
|
||||||
|
pCEmatch->spintimer = c->spintimer;
|
||||||
pCEmatch->activitylog = c->activitylog;
|
pCEmatch->activitylog = c->activitylog;
|
||||||
pCEmatch->breaklog = c->breaklog;
|
pCEmatch->breaklog = c->breaklog;
|
||||||
pCEmatch->raw = c->raw;
|
pCEmatch->raw = c->raw;
|
||||||
@ -2681,6 +2783,18 @@ ConsoleDestroy()
|
|||||||
if (c->breakNum == 0)
|
if (c->breakNum == 0)
|
||||||
c->breakNum = 1;
|
c->breakNum = 1;
|
||||||
|
|
||||||
|
/* initspin* values are +1, so adjust (since we don't
|
||||||
|
* compare on a reread)
|
||||||
|
*/
|
||||||
|
if (c->spinmax == 0)
|
||||||
|
c->spinmax = 5;
|
||||||
|
else
|
||||||
|
c->spinmax--;
|
||||||
|
if (c->spintimer == 0)
|
||||||
|
c->spintimer = 1;
|
||||||
|
else
|
||||||
|
c->spintimer--;
|
||||||
|
|
||||||
/* portbase, portinc, and port values are +2, +1, +1, so a zero can
|
/* portbase, portinc, and port values are +2, +1, +1, so a zero can
|
||||||
* show that no value was given. defaults: portbase=0, portinc=1
|
* show that no value was given. defaults: portbase=0, portinc=1
|
||||||
*/
|
*/
|
||||||
@ -3234,6 +3348,30 @@ ConsoleItemPortinc(id)
|
|||||||
ProcessPortinc(parserConsoleTemp, id);
|
ProcessPortinc(parserConsoleTemp, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
#if PROTOTYPES
|
||||||
|
ConsoleItemInitspinmax(char *id)
|
||||||
|
#else
|
||||||
|
ConsoleItemInitspinmax(id)
|
||||||
|
char *id;
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
CONDDEBUG((1, "ConsoleItemInitspinmax(%s) [%s:%d]", id, file, line));
|
||||||
|
ProcessInitspinmax(parserConsoleTemp, id);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
#if PROTOTYPES
|
||||||
|
ConsoleItemInitspintimer(char *id)
|
||||||
|
#else
|
||||||
|
ConsoleItemInitspintimer(id)
|
||||||
|
char *id;
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
CONDDEBUG((1, "ConsoleItemInitspintimer(%s) [%s:%d]", id, file, line));
|
||||||
|
ProcessInitspintimer(parserConsoleTemp, id);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
#if PROTOTYPES
|
#if PROTOTYPES
|
||||||
ConsoleItemProtocol(char *id)
|
ConsoleItemProtocol(char *id)
|
||||||
@ -4098,7 +4236,7 @@ ConfigItemReinitcheck(id)
|
|||||||
if (!isdigit((int)(*p)))
|
if (!isdigit((int)(*p)))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* if it wasn't a number or the number was zero */
|
/* if it wasn't a number */
|
||||||
if (*p != '\000') {
|
if (*p != '\000') {
|
||||||
if (isMaster)
|
if (isMaster)
|
||||||
Error("invalid reinitcheck value `%s' [%s:%d]", id, file,
|
Error("invalid reinitcheck value `%s' [%s:%d]", id, file,
|
||||||
@ -4129,7 +4267,7 @@ ConfigItemInitdelay(id)
|
|||||||
if (!isdigit((int)(*p)))
|
if (!isdigit((int)(*p)))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* if it wasn't a number or the number was zero */
|
/* if it wasn't a number */
|
||||||
if (*p != '\000') {
|
if (*p != '\000') {
|
||||||
if (isMaster)
|
if (isMaster)
|
||||||
Error("invalid initdelay value `%s' [%s:%d]", id, file, line);
|
Error("invalid initdelay value `%s' [%s:%d]", id, file, line);
|
||||||
@ -4249,6 +4387,8 @@ ITEM keyDefault[] = {
|
|||||||
{"idletime", DefaultItemIdletimeout},
|
{"idletime", DefaultItemIdletimeout},
|
||||||
{"include", DefaultItemInclude},
|
{"include", DefaultItemInclude},
|
||||||
{"initcmd", DefaultItemInitcmd},
|
{"initcmd", DefaultItemInitcmd},
|
||||||
|
{"initspinmax", DefaultItemInitspinmax},
|
||||||
|
{"initspintimer", DefaultItemInitspintimer},
|
||||||
{"initsubst", DefaultItemInitsubst},
|
{"initsubst", DefaultItemInitsubst},
|
||||||
{"logfile", DefaultItemLogfile},
|
{"logfile", DefaultItemLogfile},
|
||||||
{"logfilemax", DefaultItemLogfilemax},
|
{"logfilemax", DefaultItemLogfilemax},
|
||||||
@ -4281,6 +4421,8 @@ ITEM keyConsole[] = {
|
|||||||
{"idletimeout", ConsoleItemIdletimeout},
|
{"idletimeout", ConsoleItemIdletimeout},
|
||||||
{"include", ConsoleItemInclude},
|
{"include", ConsoleItemInclude},
|
||||||
{"initcmd", ConsoleItemInitcmd},
|
{"initcmd", ConsoleItemInitcmd},
|
||||||
|
{"initspinmax", ConsoleItemInitspinmax},
|
||||||
|
{"initspintimer", ConsoleItemInitspintimer},
|
||||||
{"initsubst", ConsoleItemInitsubst},
|
{"initsubst", ConsoleItemInitsubst},
|
||||||
{"logfile", ConsoleItemLogfile},
|
{"logfile", ConsoleItemLogfile},
|
||||||
{"logfilemax", ConsoleItemLogfilemax},
|
{"logfilemax", ConsoleItemLogfilemax},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: version.h,v 1.63 2004/05/28 17:59:37 bryan Exp $
|
* $Id: version.h,v 1.64 2004/06/09 22:26:19 bryan Exp $
|
||||||
*
|
*
|
||||||
* Copyright conserver.com, 2000
|
* Copyright conserver.com, 2000
|
||||||
*
|
*
|
||||||
@ -14,4 +14,4 @@
|
|||||||
@(#) Copyright 2000 conserver.com.\n\
|
@(#) Copyright 2000 conserver.com.\n\
|
||||||
All rights reserved.\n"
|
All rights reserved.\n"
|
||||||
|
|
||||||
#define THIS_VERSION "conserver.com version 8.1.7"
|
#define THIS_VERSION "conserver.com version 8.1.8"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.\" $Id: console.man,v 1.54 2004/05/28 00:02:16 bryan Exp $
|
.\" $Id: console.man,v 1.54 2004/05/28 00:02:16 bryan Exp $
|
||||||
.TH CONSOLE 1 "2004/05/28" "conserver-8.1.7" "conserver"
|
.TH CONSOLE 1 "2004/05/28" "conserver-8.1.8" "conserver"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
console \- console server client program
|
console \- console server client program
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
%define pkg conserver
|
%define pkg conserver
|
||||||
%define ver 8.1.7
|
%define ver 8.1.8
|
||||||
|
|
||||||
# define the name of the machine on which the main conserver
|
# define the name of the machine on which the main conserver
|
||||||
# daemon will be running if you don't want to use the default
|
# daemon will be running if you don't want to use the default
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
PKG="conserver"
|
PKG="conserver"
|
||||||
NAME="Console server and client"
|
NAME="Console server and client"
|
||||||
CATEGORY="system"
|
CATEGORY="system"
|
||||||
VERSION="8.1.7"
|
VERSION="8.1.8"
|
||||||
DESC="Console server and client"
|
DESC="Console server and client"
|
||||||
CLASSES=none
|
CLASSES=none
|
||||||
ARCH=sparc
|
ARCH=sparc
|
||||||
|
Loading…
Reference in New Issue
Block a user