Changeset 105

Show
Ignore:
Timestamp:
11/15/06 09:31:25 (2 years ago)
Author:
syrus
Message:

Rajout du proprietary

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wifidog/wifidog-1.1.3_beta4/src/conf.c

    r98 r105  
    8585        oFirewallRule, 
    8686        oFirewallRuleSet, 
    87         oTrustedMACList 
     87        oTrustedMACList, 
     88        oProprietary 
    8889} OpCodes; 
    8990 
     
    117118        { "firewallrule",           oFirewallRule }, 
    118119        { "trustedmaclist",         oTrustedMACList }, 
     120        { "proprietary",        oProprietary }, 
    119121        { NULL,                 oBadOption }, 
    120122}; 
     
    155157        config.rulesets = NULL; 
    156158        config.trustedmaclist = NULL; 
     159        config.Proprietary = NULL; 
    157160} 
    158161 
     
    649652                                        config.httpdname = safe_strdup(p1); 
    650653                                        break; 
     654                                case oProprietary: 
     655                                  config.Proprietary = safe_strdup(p1); 
     656                                  break; 
    651657                                case oHTTPDMaxConn: 
    652658                                        sscanf(p1, "%d", &config.httpdmaxconn); 
  • wifidog/wifidog-1.1.3_beta4/src/conf.h

    r98 r105  
    126126    t_firewall_ruleset  *rulesets;      /**< @brief firewall rules */ 
    127127    t_trusted_mac *trustedmaclist; /**< @brief list of trusted macs */ 
     128  char *Proprietary; 
    128129} s_config; 
    129130 
  • wifidog/wifidog-1.1.3_beta4/src/ping_thread.c

    r98 r105  
    141141         * Prep & send request 
    142142         */ 
    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); 
    155156 
    156157        debug(LOG_DEBUG, "HTTP Request to Server: [%s]", request);