Changeset 10295


Ignore:
Timestamp:
2008-01-28T20:07:19+01:00 (10 years ago)
Author:
blogic
Message:

fixup openslp

Location:
packages/net/openslp
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • packages/net/openslp/Makefile

    r10271 r10295  
    3333 
    3434define Package/openslp/install 
    35         $(INSTALL_DIR) $(1)/etc 
    36         $(INSTALL_DIR) $(1)/usr/bin 
     35        $(INSTALL_DIR) $(1)/etc $(1)/lib $(1)/usr/bin 
    3736        $(INSTALL_BIN) $(PKG_BUILD_DIR)/slpd/slpd $(1)/usr/bin/ 
    38         $(INSTALL_BIN) $(PKG_BUILD_DIR)/slptool/slptool $(1)/usr/bin/ 
     37        $(INSTALL_BIN) $(PKG_BUILD_DIR)/slptool/.libs/slptool $(1)/usr/bin/ 
     38        $(INSTALL_BIN) $(PKG_BUILD_DIR)/libslp/.libs/libslp.so* $(1)/lib 
    3939        $(INSTALL_DATA) ./files/* $(1)/etc 
    4040endef 
  • packages/net/openslp/files/slp.conf

    r10271 r10295  
    1 ############################################################################# 
    2 # 
    3 # OpenSLP configuration file 
    4 # 
    5 # Format and contents conform to specification in IETF RFC 2614 so the 
    6 # comments use the language of the RFC.  In OpenSLP, SLPD operates as an SA 
    7 # and a DA.  The SLP UA functionality is encapsulated by SLPLIB. 
    8 # 
    9 ############################################################################# 
    10  
    11  
    12 #---------------------------------------------------------------------------- 
    13 # Static Scope and Static DA Configuration 
    14 #---------------------------------------------------------------------------- 
    15  
    16 # This option is a comma delimited list of strings indicating the only scopes 
    17 # a UA or SA is allowed when making requests or registering or the scopes a 
    18 # DA must support. (default value is "DEFAULT") 
    191;net.slp.useScopes = myScope1, myScope2, myScope3 
    20  
    21 # Allows administrator to force UA and SA agents to use specific DAs.  If 
    22 # this setting is not used dynamic DA discovery will be used to determine 
    23 # which DAs to use.  (Default is to use dynamic DA discovery) 
    242;net.slp.DAAddresses = myDa1,myDa2,myDa3 
    25  
    26  
    27 #---------------------------------------------------------------------------- 
    28 # DA Specific Configuration 
    29 #---------------------------------------------------------------------------- 
    30  
    31 # Enables slpd to function as a DA. Only a very few DAs should exist.  It  
    32 # is suggested that the administrator read the OpenSLP users guide before 
    33 # enabling this setting. Default is false.  Uncomment the line below to  
    34 # enable DA operation. 
    353;net.slp.isDA = true 
    36  
    37 # A 32 bit integer giving the number of seconds for the DA heartbeat.  
    38 # Default is 3 hours (10800 seconds).  This property corresponds to 
    39 # the protocol specification parameter CONFIG_DA_BEAT [7].  Ignored  
    40 # if isDA is false. 
    414;net.slp.DAHeartBeat = 10800 
    42  
    43  
    44 #---------------------------------------------------------------------------- 
    45 # SA Specific Configuration 
    46 #---------------------------------------------------------------------------- 
    47  
    48 # If net.slp.watchRegistrationPID is set to true, local registrations made 
    49 # with the SA via the SLPReg() API call will be monitored.  If the PID of the 
    50 # process (and/or thread on Linux) disappears (the registering process died 
    51 # unexpectedly with out calling SLPDereg()), then the registration is  
    52 # automatically de-registered.  (Default value is true.  Uncomment the line 
    53 # below to disable PID watching. 
    545;net.slp.watchRegistrationPID = false 
    55  
    56  
    57 #---------------------------------------------------------------------------- 
    58 # UA Specific Configuration 
    59 #---------------------------------------------------------------------------- 
    60 # A 32 bit integer giving the maximum number of results to accumulate and  
    61 # return for a synchronous request before the timeout, or the maximum number 
    62 # of results to return through a callback if the request results are  
    63 # reported asynchronously (default value is 256). 
    646;net.slp.maxResults = 256 
    65  
    66  
    67 #---------------------------------------------------------------------------- 
    68 # Network Configuration Properties 
    69 #---------------------------------------------------------------------------- 
    70  
    71 # Force broadcasts to be used instead of multicast. This setting is seldom 
    72 # necessary since OpenSLP will automatically use broadcast if multicast 
    73 # is unavailable. (Default is false) 
    747;net.slp.isBroadcastOnly = true 
    75  
    76 # A boolean indicating whether passive DA detection should be used. 
    77 # Default is true.  Uncomment the following line to disable passive DA  
    78 # detection 
    798;net.slp.passiveDADetection = false 
    80  
    81 # A boolean indicating whether active DA detection should be used. This is 
    82 # useful when the DAs available are explicitly restricted to those obtained 
    83 # from DHCP or the net.slp.DAAddresses property. Default is true.  Uncomment 
    84 # the following line to disable active DA detection 
    859;net.slp.activeDADetection = false 
    86  
    87 # The net.slp.DAActiveDiscoveryInterval property controls *periodic*  
    88 # transmission of active DA discovery SrvRqsts.  The default setting 
    89 # of 1 which disables sending periodic active DA discovery SrvRqsts.   
    90 # However, even if net.slp.DAActiveDiscoveryInterval=1 OpenSLP agents will 
    91 # send a send active DA request only upon initialization.  To disable all  
    92 # active DA detection you MUST net.slp.passiveDADetection = false. (you 
    93 # may also set net.slp.DAActiveDiscoveryInterval=0) 
    94 # simply set  
    9510;net.slp.DAActiveDiscoveryInterval = 1 
    96  
    97 # A positive integer that is less than or equal to 255. (The default is  255) 
    9811;net.slp.multicastTTL = 255 
    99  
    100 # An integer giving the maximum amount of time (in milliseconds) to perform 
    101 # active DA discovery requests. (Default is 2000 ms or 2 secs). 
    10212;net.slp.DADiscoveryMaximumWait = 2000 
    103  
    104 # A value-list of 32 bit integers used as timeouts, in milliseconds, to  
    105 # implement the multicast convergence algorithm during active DA discovery. 
    106 # Each value specifies the time to wait before sending the next request, or 
    107 # until nothing new has been learned from two successive requests.  
    108 # Default is:  500,750,1000,1500,2000,3000. 
    10913;net.slp.DADiscoveryTimeouts = 500,750,1000,1500,2000,3000 
    110  
    111 # An integer giving the maximum amount of time (in milliseconds) to perform 
    112 # multicast requests. (Default is 5000 ms or 5 secs). 
    11314;net.slp.multicastMaximumWait = 5000 
    114  
    115 # A value-list of 32 bit integers used as timeouts, in milliseconds, to 
    116 # implement the multicast convergence algorithm.  Each value specifies 
    117 # the time to wait before sending the next request, or until nothing new  
    118 # has been learned from two successive requests.   
    119 # Default is:  500,750,1000,1500,2000,3000.  In a slow network the less 
    120 # aggressive values of 3000,3000,3000,3000,3000 allow better performance.   
    12115;net.slp.multicastTimeouts  = 500,750,1000,1500,2000,3000 
    122  
    123 # An integer giving the maximum amount of time (in milliseconds) to perform 
    124 # unicast requests. (Default is 5000 ms or 5 secs). 
    12516;net.slp.unicastMaximumWait = 5000  
    126  
    127 # A value-list of 32 bit integers used as timeouts, in milliseconds, to  
    128 # implement unicast datagram transmission to DAs.  The nth value gives 
    129 # the time to block waiting for a reply on the nth try to contact the DA. 
    130 # Currently OpenSLP uses TCP for all unicast communication so this setting 
    131 # does not do anything 
    13217;net.slp.unicastTimeouts  = 500,750,1000,1500,2000,3000 
    133  
    134 # To OpenSLP the following is the same as net.slp.unicastTimeouts.  Use  
    135 # net.slp.unicastTimeouts instead. 
    13618;net.slp.datagramTimeouts = IGNORED 
    137  
    138 # An integer giving the maximum value for all random wait parameters. 
    139 # (Default is 5000 or 5 sec) 
    14019;net.slp.randomWaitBound = 5000 
    141  
    142 # A integer giving the network packet MTU in bytes. (Default is 1400) 
    14320;net.slp.MTU = 1400 
    144  
    145 # A list of IP address of network interfaces on which the DA/SA should listen 
    146 # for slp requests.  By default, slpd will use all interfaces. 
    14721;net.slp.interfaces = 1.2.3.4,1.2.3.5,1.2.3.6 
    148  
    149  
    150 #---------------------------------------------------------------------------- 
    151 # Security 
    152 #---------------------------------------------------------------------------- 
    153 # A boolean indicating whether the agent should enable security for URLs, 
    154 # attribute lists, DAAdverts, and SAAdverts.  (Default setting is false and  
    155 # ENABLE_SECURITY code must be compiled) 
    15622;net.slp.securityEnabled=true 
    157  
    158 # A boolean indicating whether the DA or SA will only allow deregistrations  
    159 # and re-registration from the *exact* host that made the registration.  
    160 # Default setting if true.   Uncomment the line below to disable source  
    161 # address checking. 
    16223;net.slp.checkSourceAddr=false 
    16324 
    164  
    165 #---------------------------------------------------------------------------- 
    166 # Tracing and Logging 
    167 #---------------------------------------------------------------------------- 
    168  
    169 # A boolean controlling printing of messages about traffic with DAs.   
    170 # Default is false.  Uncomment the following line to enable DA traffic  
    171 # tracing 
    17225;net.slp.traceDATraffic = true 
    173  
    174 # A boolean controlling dumps of all registered services upon registration  
    175 # and deregistration.  If true, the contents of the DA or SA server are  
    176 # dumped after a registration or deregistration occurs.  Default is false. 
    177 # Uncommment the following line to enable registration message logging 
    17826;net.slp.traceReg = true 
    179  
    180 # A boolean controlling printing details when a SLP message is dropped for  
    181 # any reason.  Default is false.  Uncomment the following line to trace all 
    182 # dropped messages 
    18327;net.slp.traceDrop = true 
    184  
    185 # A boolean controlling printing of details on SLP messages. The fields in  
    186 # all incoming messages and outgoing replies are printed.  Very verbose. 
    187 # Default is false. Uncomment the following line to enable verbose message 
    188 # tracing. 
    18928;net.slp.traceMsg = true 
    190  
    191  
    192 #---------------------------------------------------------------------------- 
    193 # Serialized Proxy Registration 
    194 #---------------------------------------------------------------------------- 
    195 # The net.slp.serializedRegURL is not supported by net.slp.serializeRegURL. 
    196 # 
    197 # slpd accepts the [-r] command line parameter that specifies the serialized 
    198 # registration file.  The default serialized registration file is  
    199 # /etc/slp.reg 
    200  
    201  
    202  
  • packages/net/openslp/files/slp.reg

    r10271 r10295  
    1 ############################################################################# 
    2 # 
    3 # OpenSLP registration file 
    4 # 
    5 # May be used to register services for legacy applications that do not use 
    6 # the SLPAPIs to register for themselves 
    7 # 
    8 # Format and contents conform to specification in IETF RFC 2614 so the 
    9 # comments use the language of the RFC.  In OpenSLP, SLPD operates as an SA 
    10 # and a DA.  The SLP UA functionality is encapsulated by the libslp library. 
    11 # 
    12 ############################################################################# 
    13  
    14 #comment 
    15 ;comment  
    16 #service-url,language-tag,lifetime,[service-type]<newline>  
    17 #["scopes="scope-list<newline>] 
    18 #[attrid"="val1<newline>]  
    19 #[attrid"="val1,val2,val3<newline>]  
    20 #<newline> 
    21  
    22 # 
    23 # The following are examples entries for this file 
    24 # 
    25  
    26 ##Register a OpenSLP testing service  
    27 #service:test.openslp://192.168.100.1,en,65535  
    28 #scopes=test1,test2  
    29 #description=OpenSLP Testing Service  
    30 #authors=mpeterson,jcarey  
    31  
    32 ##Register ssh service  
    33 #service:ssh.openslp://192.168.100.1,en,65535  
    34 #use default scopes  
    35 #description="Secure Shell"  
    36  
    37 ##Register telnet service with no attributes  
    38 #service:telnet.myorg://192.168.100.1,en,65535  
    39 #use default scopes 
     1service:device.AP://192.168.1.1,en,65535  
     2use default scopes 
Note: See TracChangeset for help on using the changeset viewer.