• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/rc/

Lines Matching refs:name

1102     for ( ; u && u->name; u++) {
1103 if (strcmp(nvram_safe_get(u->name), u->value)) {
1105 nvram_set(u->name, u->value);
1234 char name[32], *next;
1244 * build an interface name list in which each i/f name coresponds to a device
1245 * name in device name list. Interface/device name matching rule is device
1249 * i/f and its unit # is 0, then it will be in the i/f name list if
1250 * wl0 is in the device name list.
1252 * that of eth2's, then eth2 will be in the i/f name list if et0 is
1253 * in the device name list.
1254 * vlan: by name, for example, vlan0 will be in the i/f name list if vlan0
1255 * is in the device name list.
1257 foreach(name, type, next) {
1263 /* vlan: add it to interface name list */
1264 if (!strncmp(name, "vlan", 4)) {
1265 /* append interface name to list */
1266 len += snprintf(&names[len], *size - len, "%s ", name);
1284 if (!strncmp(name, "wl", 2)) {
1287 unit != atoi(&name[2]))
1291 else if (!strncmp(name, "et", 2) || !strncmp(name, "il", 2)) {
1292 snprintf(var, sizeof(var), "%smacaddr", name);
1298 else if (ether_atoe(name, ea) &&
1305 /* append interface name to list */
1495 for (t = router_defaults; t->name; t++) {
1496 if (!strncmp(t->name, "wl_", 3)) {
1497 strcat_r(prefix, &t->name[3], tmp);
1528 for (t = router_defaults; t->name; t++) {
1529 if (!strncmp(t->name, "wl_", 3)) {
1530 strcat_r(prefix, &t->name[3], nv_param);
1584 /* Leverage build_ifnames() to get OS-dependent interface name.
1603 /* Stash this interface name in an nvram variable in case
1755 for (t = router_defaults; t->name; t ++) {
1756 if (!strncmp(t->name, "wan_", 4))
1757 nvram_unset(strcat_r(prefix, &t->name[4], tmp));
1763 * Build bridged i/f name list and wan i/f name list from lan device name list
1764 * and wan device name list. Both lan device list "landevs" and wan device list
1804 /* override lan i/f name list and wan i/f name list with default values */
1839 for (u = linux_overrides; u && u->name; u++) {
1840 nvram_set(u->name, u->value);
1841 printf("INFO: action nvram_set %s, %s\n", u->name, u->value);
2000 for (t = router_defaults; t->name; t ++) {
2001 if (!strncmp(t->name, "wl_", 3))
2002 nvram_unset(strcat_r(prefix, &t->name[3], tmp));
2006 for (t = router_defaults; t->name; t ++) {
2007 if (!strncmp(t->name, "wan_", 4))
2008 nvram_unset(strcat_r(prefix, &t->name[4], tmp));
2035 * Build bridged i/f name list and wan i/f name list from lan device name list
2036 * and wan device name list. Both lan device list "landevs" and wan device list
2059 /* override lan i/f name list and wan i/f name list with default values */
2085 for (t = router_defaults; t->name; t++) {
2086 if (restore_defaults || !nvram_get(t->name)) {
2088 for (u = linux_overrides; u && u->name; u++) {
2089 if (!strcmp(t->name, u->name)) {
2090 nvram_set(u->name, u->value);
2094 if (!u || !u->name)
2096 nvram_set(t->name, t->value);
2097 //if(nvram_get(t->name))
2098 //cprintf("%s:%s\n", t->name, nvram_default_get(t->name));
2243 for (t = router_defaults; t->name; t ++) {
2244 if (!strncmp(t->name, "wan_", 4)) {
2245 if (nvram_get(strcat_r(prefix, &t->name[4], tmp)))
2247 v = nvram_get(t->name);
2264 struct utsname name;
2346 uname(&name);
2347 snprintf(buf, sizeof(buf), "/lib/modules/%s", name.release);