Changeset 1236
- Timestamp:
- 05/24/07 16:16:48 (5 years ago)
- Location:
- trunk/wifidog
- Files:
-
- 5 modified
-
ChangeLog (modified) (1 diff)
-
libhttpd/api.c (modified) (3 diffs)
-
libhttpd/httpd.h (modified) (1 diff)
-
src/fw_iptables.c (modified) (1 diff)
-
src/wdctl_thread.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/ChangeLog
r1227 r1236 1 1 # $Id$ 2 2007-05-24 Benoit Gr�goire <bock@step.polymtl.ca> 3 * wdctl_thread.c: Fix #324, again. Credit goes to Medea, I misunderstood his instructons. 4 * From David Bird <david@coova.com> libhttpd/: Fix #266 - don't process query string parameters and keep them in that request.path. 5 2 6 2007-05-18 Benoit Gr�goire <bock@step.polymtl.ca> 3 7 * wdctl_thread.c: Fix #324 -
trunk/wifidog/libhttpd/api.c
r290 r1236 572 572 } 573 573 574 575 #if 0 576 /* XXX: For WifiDog, we do not need to process any of the 577 post or query string parameters. So, lets keep the GET variables 578 in the request.path too! 579 */ 574 580 /* 575 581 ** Process and POST data 576 582 */ 577 #if 0578 583 if (r->request.contentLength > 0) 579 584 { … … 583 588 584 589 } 585 #endif586 590 587 591 /* … … 595 599 _httpd_storeData(r, cp); 596 600 } 601 #endif 602 597 603 return(0); 598 604 } -
trunk/wifidog/libhttpd/httpd.h
r274 r1236 99 99 authLength; 100 100 char path[HTTP_MAX_URL], 101 host[HTTP_MAX_URL], /* acv@acv.ca/wifidog: Added decoding101 host[HTTP_MAX_URL], /* acv@acv.ca/wifidog: Added decoding 102 102 of host: header if present. */ 103 ifModified[HTTP_MAX_URL]; 104 #if(0) 103 105 userAgent[HTTP_MAX_URL], 104 106 referer[HTTP_MAX_URL], 105 ifModified[HTTP_MAX_URL],106 107 contentType[HTTP_MAX_URL], 107 108 authUser[HTTP_MAX_AUTH], 108 109 authPassword[HTTP_MAX_AUTH]; 110 #endif 109 111 } httpReq; 110 112 -
trunk/wifidog/src/fw_iptables.c
r1162 r1236 277 277 /* TCPMSS rule for PPPoE */ 278 278 iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -m state --state INVALID -j DROP"); 279 iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -m state --state RELATED,ESTABLISHED -j ACCEPT"); 279 280 /* XXX: Why this? it means that connections setup after authentication 281 stay open even after the connection is done... 282 iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -m state --state RELATED,ESTABLISHED -j ACCEPT");*/ 283 284 280 285 if (ext_interface != NULL) { 281 286 iptables_do_command("-t filter -A " TABLE_WIFIDOG_WIFI_TO_INTERNET " -i %s -m state --state NEW,INVALID -j DROP", ext_interface); -
trunk/wifidog/src/wdctl_thread.c
r1227 r1236 123 123 124 124 while (1) { 125 memset(&sa_un, 0, sizeof(sa_un)); 125 len = sizeof(sa_un); 126 memset(&sa_un, 0, len); 126 127 if ((fd = accept(sock, (struct sockaddr *)&sa_un, &len)) == -1){ 127 128 debug(LOG_ERR, "Accept failed on control socket: %s",
