Use /var/lib/misc/oui.txt as default OUI file

This commit is contained in:
Marcel Holtmann 2005-12-07 11:45:01 +00:00
parent 27454e3869
commit a330124c26

View File

@ -38,7 +38,7 @@
/* http://standards.ieee.org/regauth/oui/oui.txt */
#define OUIFILE "/usr/share/misc/oui.txt"
#define OUIFILE "/var/lib/misc/oui.txt"
char *ouitocomp(const char *oui)
{
@ -49,8 +49,11 @@ char *ouitocomp(const char *oui)
fd = open("oui.txt", O_RDONLY);
if (fd < 0) {
fd = open(OUIFILE, O_RDONLY);
if (fd < 0)
return NULL;
if (fd < 0) {
fd = open("/usr/share/misc/oui.txt", O_RDONLY);
if (fd < 0)
return NULL;
}
}
if (fstat(fd, &st) < 0) {