Lines Matching defs:value
51 * system reboots it will restore the wavelan NWID to the value
57 * By contrast, the IRQ value can only be changed while the
209 fprintf(stderr,"usage: wlconfig ifname [param value ...]\n");
229 scale_value(int value, int max)
232 if (value > max)
234 return((value/dmax) * 100);
292 char *cp, *param, *value;
327 value = argv[argind+1];
332 val = strtol(value,&cp,0);
333 if ((val < 0) || (val > 0xffff) || (cp == value))
334 errx(1,"bad NWID '%s'",value);
343 val = strtol(value,&cp,0);
345 if ((val == 0) || (cp == value))
346 errx(1,"bad IRQ '%s'",value);
353 if ((ea = ether_aton(value)) == NULL)
354 errx(1,"bad ethernet address '%s'",value);
362 if (!strcasecmp(value,"local")) {
367 if (!strcasecmp(value,"universal")) {
372 errx(1,"bad macsel value '%s'",value);
376 val = strtol(value,&cp,0);
377 if ((val < 0) || (val > 0xffff) || (cp == value))
378 errx(1,"bad NWID '%s'",value);
388 if (!strcasecmp(value,"raw")) {
395 else if (!strcasecmp(value,"scale")) {
402 else if (!strcasecmp(value,"zero")) {
407 errx(1,"unknown value '%s'", value);