2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * Configuration management library 2N/A * config parameter flags 2N/A/* idmap SMF fmri and Property Group */ 2N/A "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
2N/A /* Oplock configuration, Kernel Only */ 2N/A /* Autohome configuration */ 2N/A /* WINS configuration */ 2N/A /* Kmod specific configuration */ 2N/A /* Kmod tuning configuration */ 2N/A /* SMBd configuration */ 2N/A /* ADS Configuration */ 2N/A * Primary DNS suffix of the local system is used in name resolution 2N/A * and name registration. This should be set only when the primary DNS 2N/A * domain name of the local system doesn't match with the fully 2N/A * qualified name of the AD domain. 2N/A * Encode a string using base64 algorithm. 2N/A * Caller should free the returned buffer when done. 2N/A for (i = 0; i <
4; i++)
2N/A for (j = i; j <
3; j++)
2N/A for (j = 0; j < (i +
1); j++)
2N/A * Decode using base64 algorithm. 2N/A * Caller should free the returned buffer when done. 2N/A for (i = 0; i <
4; i++) {
2N/A for (i = 0; i <
3; i++)
2N/A for (j = i; j <
4; j++)
2N/A for (j = 0; j <
4; j++) {
2N/A for (j = 0; j < (i -
1); j++)
2N/A * Fetch the specified string configuration item from SMF 2N/A * Translate the value of an astring SMF property into a binary 2N/A * IP address. If the value is neither a valid IPv4 nor IPv6 2N/A * address, attempt to look it up as a hostname using the 2N/A * configured address type. 2N/A * The value is neither an IPv4 nor IPv6 address; 2N/A * so check if it's a hostname. 2N/A * smb_config_getcount 2N/A * Returns the value of a config param of type count (unsigned integer). 2N/A * Returns the value of a numeric config param. 2N/A * smb_config_getbool 2N/A * Returns the value of a boolean config param. 2N/A * This function returns the value of the requested config 2N/A * item regardless of its type in string format. This should 2N/A * be used when the config item type is not known by the caller. 2N/A * Set the specified config param with the given 2N/A * smb_config_setcount 2N/A * Sets a configuration item of type count (unsigned integer). 2N/A * Sets a numeric configuration item 2N/A * smb_config_setbool 2N/A * Sets a boolean configuration item 2N/A * Sets the given value for the specified configuration item. 2N/A * The property is specified by its name and the value is in 2N/A * string format regardless of the property type. 2N/A * The value of property is validated before setting and an 2N/A * error will be returned if it is not valid. 2N/A * If setting the value is successful smb/server maybe refreshed 2N/A * depends on the property settings in smb_cfg_table[] above. 2N/A * smb_config_get_localsid 2N/A * from the IDMAP SMF configuration repository. 2N/A * smb_config_set_idmap_domain 2N/A * The version stored in SMF in string format as N.N where 2N/A * N is a number defined by Microsoft. The first number represents 2N/A * the major version and the second number is the minor version. 2N/A * Current defined values can be found here in 'ver_table'. 2N/A * This function reads the SMF string value and converts it to 2N/A * two numbers returned in the given 'version' structure. 2N/A * Current default version number is 5.0 which is for Windows 2000. 2N/A * Reads share exec script properties 2N/A * Check the length of the string 2N/A * Check the numerical range of given value 2N/A * Check that the specified name is an IP address (v4 or v6) or a hostname. 2N/A * Per RFC 1035 and 1123, names may contain alphanumeric characters, hyphens 2N/A * and dots. The first and last character of a label must be alphanumeric. 2N/A * Interior characters may be alphanumeric or hypens. 2N/A * Domain names should not contain underscores but we allow them because 2N/A * Windows names are often in non-compliance with this rule. 2N/A for (p = (
char *)
value; *p !=
'\0'; ++p) {
2N/A * Call back function for dlpi_walk. 2N/A * Returns TRUE if interface name exists on the host. 2N/A * Checks to see if the input interface exists on the host. 2N/A * Returns B_TRUE if the match is found, B_FALSE otherwise. 2N/A * Check valid interfaces. Interface names value can be NULL or empty. 2N/A * Returns B_FALSE if interface cannot be found on the host. 2N/A * Checks to see if the command args are the supported substitution specifier. 2N/A * If skip_cmdname is still true then the string contains 2N/A * only spaces. Don't allow such a string.