summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c
diff options
context:
space:
mode:
authorvp157776 <none@none>2007-07-30 02:53:18 -0700
committervp157776 <none@none>2007-07-30 02:53:18 -0700
commitfff9db267fec9f40a5545420d9ce9f2893e2f6a6 (patch)
tree5d8da5a238f82048c60687836d32afe849a84be5 /usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c
parentd7755b5a0365927a64271a9fb2dfd1616f8b0820 (diff)
downloadillumos-gate-fff9db267fec9f40a5545420d9ce9f2893e2f6a6.tar.gz
PSARC/2007/399 inetd backlog SMF property: connection_backlog
6303365 Need tunable to adjust /usr/lib/inet/inetd backlog queue
Diffstat (limited to 'usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c')
-rw-r--r--usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c b/usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c
index dafcf942b6..66c8c35aa7 100644
--- a/usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c
+++ b/usr/src/cmd/cmd-inet/usr.lib/inetd/tlx.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -321,10 +320,11 @@ netbufs_equal(struct netbuf *n1, struct netbuf *n2)
* Returns -1 on failure, else 0.
*/
int
-create_bound_endpoint(const char *fmri, tlx_info_t *tlx_info)
+create_bound_endpoint(const instance_t *inst, tlx_info_t *tlx_info)
{
int fd;
int qlen;
+ const char *fmri = inst->fmri;
struct netbuf *reqaddr;
struct netbuf *retaddr;
struct netbuf netbuf;
@@ -377,7 +377,8 @@ create_bound_endpoint(const char *fmri, tlx_info_t *tlx_info)
retaddr = &netbuf;
}
- qlen = CONNECTION_BACKLOG; /* ignored for conn/less services */
+ /* ignored for conn/less services */
+ qlen = inst->config->basic->conn_backlog;
if ((tlx_bind(fd, reqaddr, retaddr, qlen) == -1) ||
((reqaddr != NULL) && !netbufs_equal(reqaddr, retaddr))) {