1 --- src/misc.c 2005-08-31 08:52:12.000000000 +0200
2 +++ src/misc.c 2011-10-30 22:53:21.132879261 +0100
5 char *search_vendor(unsigned char mac[6])
11 sprintf(tmac, "%02x%02x%02x", mac[0], mac[1], mac[2]);
13 - /* Convert mac prefix to upper */
15 - tmac[i] = toupper(tmac[i]);
16 + /* Convert mac prefix to upper */
18 + tmac[i] = toupper(tmac[i]);
20 - for (i=0; i<8436; i++)
23 + while (oui_table[i].prefix != NULL)
25 if (strcmp(oui_table[i].prefix, tmac) == 0)
26 return oui_table[i].vendor;
30 return "Unknown vendor";