Ticket #513: wifidog-mac.patch

File wifidog-mac.patch, 476 bytes (added by anonymous, 13 years ago)

patch wifidog SVN 1388 to match lower case MAC address

  • src/firewall.c

    old new  
    135135 
    136136         /* Find ip, copy mac in reply */ 
    137137         reply = NULL; 
    138     while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-F0-9:] %*s %*s", ip, mac) == 2)) { 
     138    while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-Fa-f0-9:] %*s %*s", ip, mac) == 2)) { 
    139139                  if (strcmp(ip, req_ip) == 0) { 
    140140                                reply = safe_strdup(mac); 
    141141                                break;