mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
udev: net_id - fix OUI handling
This commit is contained in:
parent
0d6ce9236f
commit
971e7fb625
@ -330,9 +330,9 @@ static int names_mac(struct udev_device *dev, struct netnames *names) {
|
|||||||
|
|
||||||
/* IEEE Organizationally Unique Identifier vendor string */
|
/* IEEE Organizationally Unique Identifier vendor string */
|
||||||
static int ieee_oui(struct udev_device *dev, struct netnames *names, bool test) {
|
static int ieee_oui(struct udev_device *dev, struct netnames *names, bool test) {
|
||||||
char str[IFNAMSIZ];
|
char str[32];
|
||||||
|
|
||||||
if (names->mac_valid)
|
if (!names->mac_valid)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
/* skip commonly misused 00:00:00 (Xerox) prefix */
|
/* skip commonly misused 00:00:00 (Xerox) prefix */
|
||||||
if (memcmp(names->mac, "\0\0\0", 3) == 0)
|
if (memcmp(names->mac, "\0\0\0", 3) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user