diff options
Diffstat (limited to 'usr/src/lib')
-rw-r--r-- | usr/src/lib/libinetsvc/common/inetsvc.c | 6 | ||||
-rw-r--r-- | usr/src/lib/libinetsvc/common/inetsvc.h | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/usr/src/lib/libinetsvc/common/inetsvc.c b/usr/src/lib/libinetsvc/common/inetsvc.c index 0d5b341a22..b58557d03f 100644 --- a/usr/src/lib/libinetsvc/common/inetsvc.c +++ b/usr/src/lib/libinetsvc/common/inetsvc.c @@ -19,12 +19,10 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * This library contains a set of routines that are shared amongst inetd, * inetadm, inetconv and the formerly internal inetd services. Amongst the @@ -104,6 +102,8 @@ static inetd_prop_t inetd_properties[] = { B_TRUE, IVE_UNSET, NULL, B_FALSE}, {PR_CONNECTION_BACKLOG_NAME, PG_NAME_SERVICE_CONFIG, INET_TYPE_INTEGER, B_TRUE, IVE_UNSET, NULL, B_FALSE}, + {PR_DO_TCP_KEEPALIVE_NAME, PG_NAME_SERVICE_CONFIG, INET_TYPE_BOOLEAN, + B_TRUE, IVE_UNSET, NULL, B_FALSE}, {NULL}, }; diff --git a/usr/src/lib/libinetsvc/common/inetsvc.h b/usr/src/lib/libinetsvc/common/inetsvc.h index 181a9d8f81..6a1c6679fc 100644 --- a/usr/src/lib/libinetsvc/common/inetsvc.h +++ b/usr/src/lib/libinetsvc/common/inetsvc.h @@ -19,15 +19,13 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _INETSVC_H #define _INETSVC_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <libscf.h> #include <sys/socket.h> #include <libuutil.h> @@ -68,6 +66,7 @@ extern "C" { #define PR_INHERIT_ENV_NAME "inherit_env" #define PR_DO_TCP_WRAPPERS_NAME "tcp_wrappers" #define PR_DO_TCP_TRACE_NAME "tcp_trace" +#define PR_DO_TCP_KEEPALIVE_NAME "tcp_keepalive" #define PR_AUTO_CONVERTED_NAME "converted" #define PR_VERSION_NAME "version" #define PR_SOURCE_LINE_NAME "source_line" @@ -99,6 +98,7 @@ extern "C" { #define PT_DO_TCP_TRACE_INDEX 19 #define PT_DO_TCP_WRAPPERS_INDEX 20 #define PT_CONNECTION_BACKLOG_INDEX 21 +#define PT_DO_TCP_KEEPALIVE_INDEX 22 /* * Names of method properties. @@ -254,6 +254,7 @@ typedef struct { boolean_t do_tcp_wrappers; boolean_t do_tcp_trace; + boolean_t do_tcp_keepalive; /* inherit inetd's environment, or take an empty one */ boolean_t inherit_env; |