Lines Matching defs:value

41 	const char	*df_default;	/* default value */
42 int df_min; /* min value if type DF_INTEGER */
43 int df_max; /* max value if type DF_INTEGER */
77 char *param, *pastv6, *value, *end;
86 dhcpmsg(MSG_WARNING, "cannot build default value cache; "
97 value = strchr(entry, '=');
98 if (end == NULL || value == NULL || entry[i] == '#')
102 *value++ = '\0';
133 if (nvlist_add_string(nvlist, &entry[i], value) != 0) {
134 dhcpmsg(MSG_WARNING, "cannot build default value cache;"
147 * df_get_string(): gets the string value of a given user-tunable parameter
152 * output: const char *: the parameter's value, or default if not set
162 char *value;
209 if (nvlist_lookup_string(df_nvlist, paramstr, &value) == 0 ||
210 nvlist_lookup_string(df_nvlist, name, &value) == 0)
211 return (value);
217 * df_get_int(): gets the integer value of a given user-tunable parameter
222 * output: int: the parameter's value, or default if not set
228 const char *value;
234 value = df_get_string(if_name, isv6, param);
235 if (value == NULL || !isdigit(*value))
238 value_int = atoi(value);
254 * df_get_bool(): gets the boolean value of a given user-tunable parameter
265 const char *value;
270 value = df_get_string(if_name, isv6, param);
271 if (value != NULL) {
273 if (strcasecmp(value, "true") == 0 ||
274 strcasecmp(value, "yes") == 0 || strcmp(value, "1") == 0)
277 if (strcasecmp(value, "false") == 0 ||
278 strcasecmp(value, "no") == 0 || strcmp(value, "0") == 0)
282 dhcpmsg(MSG_WARNING, "df_get_bool: parameter `%s' has invalid value "
284 value != NULL ? value : "NULL", defaults[param].df_default);