Changeset 10225
- Timestamp:
- 08/27/08 16:36:44 (5 years ago)
- File:
-
- 1 edited
-
src/router/httpd/httpd.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/httpd.c
r10139 r10225 1037 1037 1038 1038 getpeername (conn_fp, (struct sockaddr *) &sa, &len); 1039 nvram_safe_set ("http_client_ip", inet_ntoa (sa.sin_addr)); 1039 char *peer = inet_ntoa (sa.sin_addr); 1040 char *client = malloc(strlen(peer)+1); 1041 1042 nvram_set ("http_client_ip", client); 1043 free(client); 1040 1044 //if(strcmp(nvram_safe_get("http_client_ip"), inet_ntoa(sa.sin_addr))) 1041 1045 // nvram_set("http_client_ip", inet_ntoa(sa.sin_addr)); 1042 1046 m = get_mac_from_ip (inet_ntoa (sa.sin_addr)); 1043 nvram_s afe_set ("http_client_mac", m);1047 nvram_set ("http_client_mac", m); 1044 1048 //if(m){ 1045 1049 // if(strcmp(nvram_safe_get("http_client_mac"), m))
Note: See TracChangeset
for help on using the changeset viewer.
