Changeset 10226 for src/router/httpd/httpd.c
- Timestamp:
- 08/27/08 16:37:38 (5 years ago)
- File:
-
- 1 edited
-
src/router/httpd/httpd.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/httpd.c
r10225 r10226 1039 1039 char *peer = inet_ntoa (sa.sin_addr); 1040 1040 char *client = malloc(strlen(peer)+1); 1041 1041 strcpy(client,peer); 1042 1042 nvram_set ("http_client_ip", client); 1043 m = get_mac_from_ip (client); 1044 nvram_set ("http_client_mac", m); 1043 1045 free(client); 1044 //if(strcmp(nvram_safe_get("http_client_ip"), inet_ntoa(sa.sin_addr)))1045 // nvram_set("http_client_ip", inet_ntoa(sa.sin_addr));1046 m = get_mac_from_ip (inet_ntoa (sa.sin_addr));1047 nvram_set ("http_client_mac", m);1048 //if(m){1049 // if(strcmp(nvram_safe_get("http_client_mac"), m))1050 // nvram_set("http_client_mac", m);1051 //}1052 1046 } 1053 1047
Note: See TracChangeset
for help on using the changeset viewer.
