Copyright (C) 2003, 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]
/usr/lib/ncad_addr.so
ncad_addr.so is the Solaris Network Cache and Accelerator (NCA) socket utility library. Use this library with a web server to avoid support for the PF_NCA family type socket. The web server can take advantage of NCA functionality.
Interpose the ncad_addr interfaces before the interfaces in libsocket by setting the environment variable LD_PRELOAD to ncad_addr.so so that it is preloaded before libsocket.so.1. The ncad_addr.so interfaces will be interposed only if NCA is enabled. See ncakmod(1).
Example 1 Interposing ncad_addr
Using Bourne shell syntax as an example, set LD_PRELOAD as shown below to interpose the ncad_addr socket utility libary:
LD_PRELOAD=/usr/lib/ncad_addr.so /usr/bin/httpd
ncad_addr socket utility library shared object
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Unstable |
nca(1), ncab2clf(1), ncakmod(1), socket(3SOCKET), nca.if(4), ncakmod.conf(4), attributes(5)
Only applications that use the NCA feature, for example, web servers, should interpose this library.