Changeset 969

Show
Ignore:
Timestamp:
02/23/06 12:09:32 (3 years ago)
Author:
papril
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wifidog/src/util.h

    r901 r969  
    4141char *get_iface_mac(char *ifname); 
    4242 
     43/* @brief Get interface name of default gateway */ 
     44char *get_ext_iface (void); 
    4345 
    4446/* @brief Sets hint that an online action (dns/connect/etc using WAN) succeeded */ 
  • trunk/wifidog/src/wdctl_thread.c

    r901 r969  
    178178        } 
    179179 
    180         if (strcmp(request, "status") == 0) { 
     180        if (strncmp(request, "status", 6) == 0) { 
    181181                wdctl_status(fd); 
    182         } else if (strcmp(request, "stop") == 0) { 
     182        } else if (strncmp(request, "stop", 4) == 0) { 
    183183                wdctl_stop(fd); 
    184         } else if (strncmp(request, "reset", 6) == 0) { 
     184        } else if (strncmp(request, "reset", 5) == 0) { 
    185185                wdctl_reset(fd, (request + 6)); 
    186186        } else if (strncmp(request, "restart", 7) == 0) {