Changeset 13645
- Timestamp:
- 01/17/10 16:13:37 (3 years ago)
- Location:
- src/router
- Files:
-
- 5 edited
-
httpd/validate/validators.c (modified) (3 diffs)
-
httpd/visuals/dd-wrt.c (modified) (1 diff)
-
services/services/dnsmasq.c (modified) (1 diff)
-
services/services/udhcpd.c (modified) (1 diff)
-
udhcpd/config/dhcpd.webservices (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/validate/validators.c
r13553 r13645 2230 2230 char lease_hostname[32] = "leasexxx_hostname"; 2231 2231 char lease_ip[32] = "leasexxx_ip"; 2232 char lease_time[32] = "leasexxx_time"; 2232 2233 char *sln = nvram_safe_get("static_leasenum"); 2233 2234 char *hwaddr; … … 2265 2266 snprintf(lease_ip, 31, "lease%d_ip", i); 2266 2267 char *ip = websGetVar(wp, lease_ip, ""); 2268 2269 snprintf(lease_time, 31, "lease%d_time", i); 2270 char *time = websGetVar(wp, lease_time, ""); 2267 2271 2268 2272 if (hostname == NULL || strlen(hostname) == 0 || ip == NULL … … 2273 2277 strcat(leases, "="); 2274 2278 strcat(leases, ip); 2279 strcat(leases, "="); 2280 strcat(leases, time); 2275 2281 strcat(leases, " "); 2276 2282 } -
src/router/httpd/visuals/dd-wrt.c
r13636 r13645 1008 1008 "<td><input name=\"lease%d_hostname\" value=\"%s\" size=\"24\" maxlength=\"24\" onblur=\"valid_name(this,share.hostname,SPACE_NO)\" /></td>", 1009 1009 i, sep != NULL ? sep : ""); 1010 sep = strsep(&leases, "="); 1011 websWrite(wp, 1012 "<td><input name=\"lease%d_ip\" value=\"%s\" size=\"15\" maxlength=\"15\" class=\"num\" onblur=\"valid_name(this,share.ip,SPACE_NO)\" /></td></tr>\n", 1013 i, sep != NULL ? sep : ""); 1010 1014 sep = strsep(&leases, " "); 1011 1015 websWrite(wp, 1012 "<td><input name=\"lease%d_ ip\" value=\"%s\" size=\"15\" maxlength=\"15\" class=\"num\" onblur=\"valid_name(this,share.ip,SPACE_NO)\" /></td></tr>\n",1016 "<td><input name=\"lease%d_time\" value=\"%s\" size=\"15\" maxlength=\"15\" class=\"num\" onblur=\"valid_name(this,share.time,SPACE_NO)\" /></td></tr>\n", 1013 1017 i, sep != NULL ? sep : ""); 1014 1018 } -
src/router/services/services/dnsmasq.c
r13601 r13645 383 383 char *mac = strsep(&leasebuf, "="); 384 384 char *host = strsep(&leasebuf, "="); 385 char *ip = strsep(&leasebuf, " "); 385 char *ip = strsep(&leasebuf, "="); 386 char *time = strsep(&leasebuf, " "); 386 387 387 388 if (mac == NULL || host == NULL || ip == NULL) 388 389 continue; 389 390 if (!time||strlen(time)==0) 390 391 fprintf(fp, "dhcp-host=%s,%s,%s,infinite\n", 391 392 mac, host, ip); 393 else 394 fprintf(fp, "dhcp-host=%s,%s,%s,%sm\n", 395 mac, host, ip); 396 392 397 addHost(host, ip); 393 398 } -
src/router/services/services/udhcpd.c
r12477 r13645 333 333 char *mac = strsep(&leasebuf, "="); 334 334 char *host = strsep(&leasebuf, "="); 335 char *ip = strsep(&leasebuf, " "); 335 char *ip = strsep(&leasebuf, "="); 336 char *time = strsep(&leasebuf, " "); 336 337 337 338 if (mac == NULL || host == NULL || ip == NULL) -
src/router/udhcpd/config/dhcpd.webservices
r10860 r13645 58 58 <th width="34%"><% tran("share.hostname"); %></th> 59 59 <th width="33%"><% tran("share.ip"); %></th> 60 <th width="33%"><% tran("idx.dhcp_lease"); %></th> 60 61 </tr> 61 62 <% show_staticleases(); %>
Note: See TracChangeset
for help on using the changeset viewer.
