Lines Matching refs:param

82 	char		*param, *pastv6, *value, *end;  in df_build_cache()  local
115 if ((param = strchr(entry, '.')) == NULL) { in df_build_cache()
116 pastv6 = param = entry; in df_build_cache()
118 pastv6 = ++param; in df_build_cache()
119 if (strncasecmp(param, "v6.", 3) == 0) in df_build_cache()
135 for (; *param != '\0'; param++) in df_build_cache()
136 *param = toupper(*param); in df_build_cache()
165 df_get_string(const char *if_name, boolean_t isv6, uint_t param) in df_get_string() argument
175 if (param >= (sizeof (defaults) / sizeof (*defaults))) in df_get_string()
184 return (defaults[param].df_default); in df_get_string()
200 defaults[param].df_name); in df_get_string()
204 (void) strlcpy(name, defaults[param].df_name, sizeof (name)); in df_get_string()
218 return (defaults[param].df_default); in df_get_string()
231 df_get_int(const char *if_name, boolean_t isv6, uint_t param) in df_get_int() argument
236 if (param >= (sizeof (defaults) / sizeof (*defaults))) in df_get_int()
239 value = df_get_string(if_name, isv6, param); in df_get_int()
244 if (value_int > defaults[param].df_max || in df_get_int()
245 value_int < defaults[param].df_min) in df_get_int()
252 "%d, defaulting to `%s'", defaults[param].df_name, in df_get_int()
253 defaults[param].df_min, defaults[param].df_max, in df_get_int()
254 defaults[param].df_default); in df_get_int()
255 return (atoi(defaults[param].df_default)); in df_get_int()
268 df_get_bool(const char *if_name, boolean_t isv6, uint_t param) in df_get_bool() argument
272 if (param >= (sizeof (defaults) / sizeof (*defaults))) in df_get_bool()
275 value = df_get_string(if_name, isv6, param); in df_get_bool()
288 "`%s', defaulting to `%s'", defaults[param].df_name, in df_get_bool()
289 value != NULL ? value : "NULL", defaults[param].df_default); in df_get_bool()
291 return ((atoi(defaults[param].df_default) == 0) ? B_FALSE : B_TRUE); in df_get_bool()