Bug 847490 - uuid does not generate UUIDs based on global MAC address
Summary: uuid does not generate UUIDs based on global MAC address
Keywords:
Status: CLOSED DUPLICATE of bug 829532
Alias: None
Product: Fedora
Classification: Fedora
Component: uuid
Version: 17
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Steven Pritchard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-12 06:15 UTC by Majid Azimi
Modified: 2012-08-13 11:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-13 11:08:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Majid Azimi 2012-08-12 06:15:38 UTC
Description of problem:

OSSP uuid package fail to generate UUID based on global mac address if the name of interface is not "eth0". it falls back to local multicast mode. the source of uuid_mac.c include:

    if ((s = socket(PF_INET, SOCK_DGRAM, 0)) < 0)
        return FALSE;
    sprintf(ifr.ifr_name, "eth0");
    if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) {
        close(s);
        return FALSE;
    }

As you see if the interface name is not eth0(mine is p4p1 on fedora 17 generated by NetworkManager) it will fail.

Comment 1 Michal Hlavinka 2012-08-13 11:08:15 UTC

*** This bug has been marked as a duplicate of bug 829532 ***


Note You need to log in before you can comment on or make changes to this bug.