Lines Matching refs:getenv
111 char *evalue = getenv(env);
319 if ((gateway = getenv("ip")))
325 if ((gateway = getenv("router")))
331 if ((value = getenv("dns") ? : getenv("router")))
334 if ((value = getenv("search")) && *value) {
336 if ((domain = getenv("domain")) && *domain &&
347 if ((value = getenv("wins")))
349 //if ((value = getenv("hostname")))
351 if ((value = getenv("lease"))) {
358 nvram_set(strcat_r(prefix, "routes", tmp), getenv("routes"));
360 nvram_set(strcat_r(prefix, "routes_ms", tmp), getenv("msstaticroutes"));
362 nvram_set(strcat_r(prefix, "routes_rfc", tmp), getenv("staticroutes"));
365 if ((value = getenv("ip6rd")) &&
384 if ((value = getenv("opt43")) && nvram_get_int("tr_discovery") &&
405 if ((value = hex2bin(getenv("opt125"), &size))) {
480 if ((value = getenv("ip")) == NULL ||
488 if ((gateway = getenv("ip")) == NULL ||
494 if ((value = getenv("subnet")) == NULL ||
497 if ((gateway = getenv("router")) == NULL ||
504 if ((value = getenv("dns") ? : getenv("router"))) {
509 if ((value = getenv("search")) && *value) {
511 if ((domain = getenv("domain")) && *domain &&
523 if ((value = getenv("wins")))
525 //if ((value = getenv("hostname")))
527 if ((value = getenv("lease"))) {
795 if ((value = getenv("ip"))) {
946 if ((value = getenv("ip"))) {
954 if ((value = getenv("subnet")))
956 if ((value = getenv("router")))
958 if ((value = getenv("lease"))) {
962 if (nvram_get_int("lan_dnsenable_x") && (value = getenv("dns")))
967 if ((value = hex2bin(getenv("opt125"), &size))) {