xref: /titanic_50/usr/src/man/man4/ncaport.conf.4 (revision 7b07063d906859b2be1e88791f801b3c96e432f6)
te
Copyright (c) 2001, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the 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. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
NCAPORT.CONF 4 "Jul 30, 2001"
NAME
ncaport.conf - ncaport configuration file
SYNOPSIS

/etc/nca/ncaport.conf
DESCRIPTION

The ncaport.conf file is used to configure the IP addresses and ports that the Solaris Network Cache and Acceleration (NCA) kernel module services. The file contains two fields, key and value, in the format of ncaport=ipaddress/port. IPv4 addresses must be in the dot notation d.d.d.d. IPv6 addresses must be in one of the three conventional forms (see inet_pton(3SOCKET)). If an asterisk (*) is used for an IP address, it is interpreted as INADDR_ANY, which matches any IP address.

A web server uses the environment variable LD_PRELOAD and the ncaport.conf configuration file to convert an AF_INET socket to an AF_NCA socket. LD_PRELOAD enables the NCA socket utility library to be loaded before libsocket.so.1. See the ncad_addr(4) for details. When a web server issues the bind(3SOCKET) system call, it is intercepted by the interposition library ncad_addr.so. If the bind address is in the ncaport.conf file, the AF_INET socket is converted to a AF_NCA socket.

EXAMPLES

Example 1 Sample ncaport.conf File

The following is a sample ncaport.conf file:

#
# NCA Kernel Module Port Configuration File
#
ncaport=1080:0:0:0:8:800:200C:417A/100
ncaport=192.168.84.71/80
ncaport=*/9000
SEE ALSO

nca(1), bind(3SOCKET), inet_pton(3SOCKET), ncad_addr(4), attributes(5)

NOTES

For those web servers that use AF_NCA sockets, the NCA port configuration described here has no effect.

NCA does not currently support IPv6. Any IPv6 addresses in the file ncaport.conf are ignored.