Lines Matching refs:param
77 char *param, *pastv6, *value, *end; in df_build_cache() local
110 if ((param = strchr(entry, '.')) == NULL) { in df_build_cache()
111 pastv6 = param = entry; in df_build_cache()
113 pastv6 = ++param; in df_build_cache()
114 if (strncasecmp(param, "v6.", 3) == 0) in df_build_cache()
130 for (; *param != '\0'; param++) in df_build_cache()
131 *param = toupper(*param); in df_build_cache()
160 df_get_string(const char *if_name, boolean_t isv6, uint_t param) in df_get_string() argument
170 if (param >= (sizeof (defaults) / sizeof (*defaults))) in df_get_string()
179 return (defaults[param].df_default); in df_get_string()
196 defaults[param].df_name); in df_get_string()
200 (void) strlcpy(name, defaults[param].df_name, sizeof (name)); in df_get_string()
214 return (defaults[param].df_default); in df_get_string()
227 df_get_int(const char *if_name, boolean_t isv6, uint_t param) in df_get_int() argument
232 if (param >= (sizeof (defaults) / sizeof (*defaults))) in df_get_int()
235 value = df_get_string(if_name, isv6, param); in df_get_int()
240 if (value_int > defaults[param].df_max || in df_get_int()
241 value_int < defaults[param].df_min) in df_get_int()
248 "%d, defaulting to `%s'", defaults[param].df_name, in df_get_int()
249 defaults[param].df_min, defaults[param].df_max, in df_get_int()
250 defaults[param].df_default); in df_get_int()
251 return (atoi(defaults[param].df_default)); in df_get_int()
264 df_get_bool(const char *if_name, boolean_t isv6, uint_t param) in df_get_bool() argument
268 if (param >= (sizeof (defaults) / sizeof (*defaults))) in df_get_bool()
271 value = df_get_string(if_name, isv6, param); in df_get_bool()
284 "`%s', defaulting to `%s'", defaults[param].df_name, in df_get_bool()
285 value != NULL ? value : "NULL", defaults[param].df_default); in df_get_bool()
287 return ((atoi(defaults[param].df_default) == 0) ? B_FALSE : B_TRUE); in df_get_bool()