Lines Matching refs:param
77 char *param, *pastv6, *value, *end;
110 if ((param = strchr(entry, '.')) == NULL) {
111 pastv6 = param = entry;
113 pastv6 = ++param;
114 if (strncasecmp(param, "v6.", 3) == 0)
130 for (; *param != '\0'; param++)
131 *param = toupper(*param);
160 df_get_string(const char *if_name, boolean_t isv6, uint_t param)
170 if (param >= (sizeof (defaults) / sizeof (*defaults)))
179 return (defaults[param].df_default);
195 defaults[param].df_name);
199 (void) strlcpy(name, defaults[param].df_name, sizeof (name));
205 * first look for `if_name.[v6.]param', then `[v6.]param'. if neither
213 return (defaults[param].df_default);
226 df_get_int(const char *if_name, boolean_t isv6, uint_t param)
231 if (param >= (sizeof (defaults) / sizeof (*defaults)))
234 value = df_get_string(if_name, isv6, param);
239 if (value_int > defaults[param].df_max ||
240 value_int < defaults[param].df_min)
247 "%d, defaulting to `%s'", defaults[param].df_name,
248 defaults[param].df_min, defaults[param].df_max,
249 defaults[param].df_default);
250 return (atoi(defaults[param].df_default));
263 df_get_bool(const char *if_name, boolean_t isv6, uint_t param)
267 if (param >= (sizeof (defaults) / sizeof (*defaults)))
270 value = df_get_string(if_name, isv6, param);
283 "`%s', defaulting to `%s'", defaults[param].df_name,
284 value != NULL ? value : "NULL", defaults[param].df_default);
286 return ((atoi(defaults[param].df_default) == 0) ? B_FALSE : B_TRUE);