Changeset 105
- Timestamp:
- 11/15/06 09:31:25 (2 years ago)
- Files:
-
- wifidog/wifidog-1.1.3_beta4/src/conf.c (modified) (4 diffs)
- wifidog/wifidog-1.1.3_beta4/src/conf.h (modified) (1 diff)
- wifidog/wifidog-1.1.3_beta4/src/ping_thread.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wifidog/wifidog-1.1.3_beta4/src/conf.c
r98 r105 85 85 oFirewallRule, 86 86 oFirewallRuleSet, 87 oTrustedMACList 87 oTrustedMACList, 88 oProprietary 88 89 } OpCodes; 89 90 … … 117 118 { "firewallrule", oFirewallRule }, 118 119 { "trustedmaclist", oTrustedMACList }, 120 { "proprietary", oProprietary }, 119 121 { NULL, oBadOption }, 120 122 }; … … 155 157 config.rulesets = NULL; 156 158 config.trustedmaclist = NULL; 159 config.Proprietary = NULL; 157 160 } 158 161 … … 649 652 config.httpdname = safe_strdup(p1); 650 653 break; 654 case oProprietary: 655 config.Proprietary = safe_strdup(p1); 656 break; 651 657 case oHTTPDMaxConn: 652 658 sscanf(p1, "%d", &config.httpdmaxconn); wifidog/wifidog-1.1.3_beta4/src/conf.h
r98 r105 126 126 t_firewall_ruleset *rulesets; /**< @brief firewall rules */ 127 127 t_trusted_mac *trustedmaclist; /**< @brief list of trusted macs */ 128 char *Proprietary; 128 129 } s_config; 129 130 wifidog/wifidog-1.1.3_beta4/src/ping_thread.c
r98 r105 141 141 * Prep & send request 142 142 */ 143 snprintf(request, sizeof(request) - 1, "GET %sping/?gw_id=%s&sys_uptime=%lu&sys_memfree=%u&sys_load=%.2f&wifidog_uptime=%lu HTTP/1.0\r\n" 144 "User-Agent: WiFiDog %s\r\n" 145 "Host: %s\r\n" 146 "\r\n", 147 config_get_config()->auth_servers->authserv_path, 148 config_get_config()->gw_id, 149 sys_uptime, 150 sys_memfree, 151 sys_load, 152 (long unsigned int)((long unsigned int)time(NULL) - (long unsigned int)started_time), 153 VERSION, 154 config_get_config()->auth_servers->authserv_hostname); 143 snprintf(request, sizeof(request) - 1, "GET %sping/?gw_id=%s&sys_uptime=%lu&sys_memfree=%u&sys_load=%.2f&wifidog_uptime=%lu&prop=%s HTTP/1.0\r\n" 144 "User-Agent: WiFiDog %s\r\n" 145 "Host: %s\r\n" 146 "\r\n", 147 config_get_config()->auth_servers->authserv_path, 148 config_get_config()->gw_id, 149 sys_uptime, 150 sys_memfree, 151 sys_load, 152 (long unsigned int)((long unsigned int)time(NULL) - (long unsigned int)started_time), 153 config_get_config()->Proprietary, 154 VERSION, 155 config_get_config()->auth_servers->authserv_hostname); 155 156 156 157 debug(LOG_DEBUG, "HTTP Request to Server: [%s]", request);
