Changeset 89
- Timestamp:
- 04/19/04 22:03:49 (9 years ago)
- Location:
- trunk/wifidog
- Files:
-
- 5 modified
-
ChangeLog (modified) (1 diff)
-
src/auth.c (modified) (3 diffs)
-
src/centralserver.c (modified) (2 diffs)
-
src/firewall.c (modified) (8 diffs)
-
src/gateway.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/ChangeLog
r88 r89 1 1 # $Header$ 2 2004-04-19 Philippe April <papril777@yahoo.com> 3 * Changed some debugging severity 4 2 5 2004-04-19 Benoit Gr�goire <bock@step.polymtl.ca> 3 * doc/doxygen.cfg.in: Config tweaking. Exclude libhttpd directory, enable todolist and buglist 4 * src/common.h: Include the autoconf config.h. Add a todo to state that this file is evil. 5 * src/userclasses.h: As requested, document a file to show how doxygen works. Check out what happens with the todo in "Related Pages" in the docs. You all installed doxygen, right? 6 7 2004-04-18 Benoit Gr�goire <bock@step.polymtl.ca> 8 * Properly integrate libhttpd into the source tree ;) Note that this will create a proper system wide shared librery for libghttpd. Still to be done: 1- Store Mina's patch somewhere, in case we want to upgrade libhttpd. 2-Add configure option not to build httpd, and use an already installed one. 6 * Properly integrate libhttpd into the source tree ;) Note that this will create a proper system wide shared library for libghttpd. Still to be done: 1- Store Mina's patch somewhere, in case we want to upgrade libhttpd. 2-Add configure option not to build httpd, and use an already installed one. 9 7 10 8 2004-04-18 Alexandre Carmel-Veilleux <acv@acv.ca> -
trunk/wifidog/src/auth.c
r84 r89 124 124 /* If we get here, we've got a profile > 0 */ 125 125 126 debug(D_LOG_ DEBUG, "Node %s with mac %s and profile "126 debug(D_LOG_INFO, "Node %s with mac %s and profile " 127 127 "%d validated", node->ip, node->mac, profile); 128 128 … … 130 130 131 131 if (tmp_uc == NULL) { 132 debug(D_LOG_ DEBUG, "Profile %d undefined", profile);132 debug(D_LOG_WARNING, "Profile %d undefined", profile); 133 133 _http_output(node->fd, "User Class not defined"); 134 134 node->fd = 0; … … 136 136 return; 137 137 } else { 138 debug(D_LOG_ DEBUG, "Profile %d UserClasses retrieved", profile);138 debug(D_LOG_INFO, "Profile %d UserClasses retrieved", profile); 139 139 } 140 140 -
trunk/wifidog/src/centralserver.c
r65 r89 56 56 memset(&(their_addr.sin_zero), '\0', 8); 57 57 58 debug(D_LOG_ DEBUG, "Connecting to auth server %s on port %d",58 debug(D_LOG_INFO, "Connecting to auth server %s on port %d", 59 59 config.authserv_hostname, config.authserv_port); 60 60 … … 82 82 if ((p1 = strstr(buf, "Profile: "))) { 83 83 if (sscanf(p1, "Profile: %d", &profile) == 1) { 84 debug(D_LOG_ DEBUG, "Auth server returned profile %d",84 debug(D_LOG_INFO, "Auth server returned profile %d", 85 85 profile); 86 86 return(profile); 87 87 } else { 88 debug(D_LOG_ DEBUG, "Auth server did not return "88 debug(D_LOG_WARNING, "Auth server did not return " 89 89 "expected information"); 90 90 return(-1); -
trunk/wifidog/src/firewall.c
r86 r89 181 181 } 182 182 183 debug(D_LOG_ INFO, "Setting firewall rules");183 debug(D_LOG_NOTICE, "Setting firewall rules"); 184 184 185 185 if ((rc = execute(command)) != 0) { … … 213 213 } 214 214 215 debug(D_LOG_ INFO, "Flushing firewall rules");215 debug(D_LOG_NOTICE, "Flushing firewall rules"); 216 216 217 217 return(execute(command)); … … 248 248 if (p1->counter == counter) { 249 249 /* expire clients for inactivity */ 250 debug(D_LOG_ DEBUG, "Client %s was "250 debug(D_LOG_INFO, "Client %s was " 251 251 "inactive", ip); 252 252 fw_deny(p1->ip, p1->mac, … … 282 282 } else if (profile <= 0) { 283 283 /* failed */ 284 debug(D_LOG_ DEBUG, "Auth "284 debug(D_LOG_NOTICE, "Auth " 285 285 "failed for client %s", 286 286 ip); … … 290 290 } else { 291 291 /* successful */ 292 debug(D_LOG_ DEBUG, "Updated "292 debug(D_LOG_INFO, "Updated " 293 293 "client %s counter to " 294 294 "%ld bytes", ip, … … 342 342 343 343 if (curnode == NULL) { 344 debug(D_LOG_ DEBUG, "Out of memory");344 debug(D_LOG_ERR, "Out of memory"); 345 345 exit(-1); 346 346 } … … 360 360 } 361 361 362 debug(D_LOG_ DEBUG, "Added a new node to linked list: IP: %s Token: %s",362 debug(D_LOG_INFO, "Added a new node to linked list: IP: %s Token: %s", 363 363 ip, token); 364 364 … … 465 465 { 466 466 if (node->rights->end_time <= time(NULL)) { 467 debug(D_LOG_ DEBUG, "Connection %s has expired", node->ip);467 debug(D_LOG_INFO, "Connection %s has expired", node->ip); 468 468 return 0; 469 469 } -
trunk/wifidog/src/gateway.c
r85 r89 45 45 46 46 // Initialize the web server 47 debug(D_LOG_ DEBUG, "Creating web server on %s:%d",47 debug(D_LOG_NOTICE, "Creating web server on %s:%d", 48 48 config.gw_address, config.gw_port); 49 49 webserver = httpdCreate(config.gw_address, config.gw_port); … … 69 69 pthread_detach(tid); 70 70 71 debug(D_LOG_ DEBUG, "Waiting for connections");71 debug(D_LOG_NOTICE, "Waiting for connections"); 72 72 while(1) { 73 73 tv.tv_sec = config.checkinterval; … … 91 91 * We got a connection 92 92 */ 93 debug(D_LOG_ DEBUG, "Received connection from %s",93 debug(D_LOG_INFO, "Received connection from %s", 94 94 webserver->clientAddr); 95 95 if (httpdReadRequest(webserver) >=0) { … … 169 169 fw_destroy(); 170 170 171 debug(D_LOG_ INFO, "Exiting...");171 debug(D_LOG_WARNING, "Exiting..."); 172 172 exit(0); 173 173 }
