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]
/etc/inet/slp.conf
slp.conf provides all Service Location Protocol ("SLP") agents with their operational configuration. slpd(1M) reads slp.conf on startup. Service Agents ("SAs") and User Agents ("UAs") read slp.conf on invocation of the SA and UA library routines; configuration parameters are then cached on a per-process basis. All SA's must use the same set of properties as slpd on the local machine, since slpd acts as an SA server.
The configuration file format consists of a newline-delimited list of zero or more property definitions. Each property definition corresponds to a particular configurable SLP, network, or other parameter in one or more of the three SLP agents. The file format grammar is shown in RFC 2234 as follows:
config-file = line-list line-list = line / line line-list line = property-line / comment-line comment-line = ( "#" / ";" ) 1*allchar newline property-line = property newline property = tag "=" value-list tag = prop / prop "." tag prop = 1*tagchar value-list = value / value "," value-list value = int / bool / "(" value-list ")" / string int = 1*DIGIT bool = "true" / "false" / "TRUE" / "FALSE" newline = CR / ( CRLF ) string = 1*stringchar tagchar = DIGIT / ALPHA / tother / escape tother = %x21-%x2d / %x2f / %x3a / %x3c-%x40 / %x5b-%x60 / %7b-%7e ; i.e., all characters except `.', ; and `='. stringchar = DIGIT / ALPHA / sother / escape sother = %x21-%x29 / %x2a-%x2b / %x2d-%x2f / %x3a-%x40 / %x5b-%x60 / %7b-%7e ; i.e., all characters except `,' allchar = DIGIT / ALPHA / HTAB / SP escape = "\" HEXDIG HEXDIG ; Used for reserved characters
The properties fall into one of the following categories:
DA Configuration
Static Scope Configuration
Tracing and Logging
Serialized Proxy Registrations
Networking Configuration Parameters
UA Configuration
The following are configuration properties and their parameters for DAs:
net.slp.isDA
Setting Type
Boolean
Default Value
False
Range of Values
True or False
net.slp.DAHeartBeat
Setting Type
Integer
Default Value
10800 seconds (3 hours)
Range of Values
2000 - 259200000 seconds
net.slp.DAAttributes
Setting Type
List of Strings
Default Value
Unassigned
Range of Values
A comma-separated list of parenthesized attribute tag/value list pairs that the DA must advertise in DA advertisements. The property must be in the SLP attribute list wire format, which requires that you use a backslash ("\\") to escape reserved characters. See RFC 2608 for more information on reserved characters, or refer to the System Administration Guide: Network Services.The following properties and their parameters allow you to configure various aspects of scope and DA handling:
net.slp.useScopes
Setting Type
List of Strings
Default Value
Default, for SA and DA; unassigned for UA.
Range of Values
List of Strings
net.slp.DAAddresses
Setting Type
List of Strings
Default Value
Unassigned
Range of Values
IPv4 addresses or host names
addr-list = addr / addr "," addr-list addr = fqdn / hostnumber fqdn = ALPHA / ALPHA *[ anum / "-" ] anum anum = ALPHA / DIGIT hostnumber = 1*3DIGIT 3("." 1*3DIGIT)The following is an example using this grammar:
sawah,mandi,sambalIP addresses can be used instead of host names in networks where DNS is not deployed, but network administrators are reminded that using IP addresses will complicate machine renumbering, since the SLP configuration property files in statically configured networks will have to be changed.
These properties direct tracing and logging information to be sent to syslogd at the LOG_INFO priority. These properties affect slpd(1M) only.
net.slp.traceDATraffic
Setting Type
Boolean
Default Value
False
Range of Values
True or False
net.slp.traceMsg
Setting Type
Boolean
Default Value
False
Range of Values
True or False
net.slp.traceDrop
Setting Type
Boolean
Default Value
False
Range of Values
True or False
net.slp.traceReg
Setting Type
Boolean
Default Value
False
Range of Values
True or False
The following properties control reading and writing serialized registrations.
net.slp.serializedRegURL
Setting Type
String
Default Value
Unassigned
Range of Values
Valid URL
The properties that follow allow you to set various network configuration parameters:
net.slp.isBroadcastOnly
Setting Type
Boolean
Default Value
False
Range of Values
True or False
net.slp.multicastTTL
Setting Type
Positive Integer
Default Value
255
Range of Values
A positive integer from 1 to 255.
net.slp.DAActiveDiscoveryInterval
Setting Type
Integer
Default Value
900 seconds (15 minutes)
Range of Values
From 300 to 10800 seconds
net.slp.multicastMaximumWait
Setting Type
Integer
Default Value
15000 milliseconds (15 seconds)
Range of Values
1000 to 60000 milliseconds
net.slp.multicastTimeouts
Setting Type
List of Integers
Default Value
3000,3000,3000,3000
Range of Values
List of Positive Integers
net.slp.passiveDADetection
Setting Type
Boolean
Default Value
True
Range of Values
True or False
net.slp.DADiscoveryTimeouts
Setting Type
List of Integers.
Default Value
2000,2000,2000,2000,3000,4000
Range of Values
List of Positive Integers
net.slp.datagramTimeouts
Setting Type
List of Integers
Default Value
3000,3000,3000
Range of Values
List of Positive Integers
net.slp.randomWaitBound
Setting Type
Integer
Default Value
1000 milliseconds (1 second)
Range of Values
1000 to 3000 milliseconds
net.slp.MTU
Setting Type
Integer
Default Value
1400
Range of Values
128 to 8192
net.slp.interfaces
Setting Type
List of Strings
Default Value
Default interface
Range of Values
IPv4 addresses or host names
195.42.42.42,195.42.142.1,195.42.120.1The example machine has three interfaces on which the DA should listen. Note that if IP addresses are used, the property must be renumbered if the network is renumbered.
The following configuration parameters apply to the UA:
net.slp.locale
Setting Type
String
Default Value
en
Range of Values
See RFC 1766 for a list of the locale language tag names.
net.slp.maxResults
Setting Type
Integer
Default Value
-1
Range of Values
-1, positive integer
net.slp.typeHint
Setting Type
List of Strings
Default Value
Unassigned
Range of Values
Service type names
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
CSI | Enabled |
Interface Stability | Standard |
slpd(1M), slpd.reg(4), slp_api(3SLP), slp(7P)
System Administration Guide: Network Services
Alvestrand, H.RFC 1766: Tags for the Identification of Languages. Network Working Group. March 1995.
Crocker, D., Overell, P.RFC 2234, Augmented BNF for Syntax Specifications: ABNF. The Internet Society. 1997.
Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The Internet Society. June 1999.