From: Theodore Ts'o Date: Fri, 30 Jan 2004 07:07:13 +0000 (-0500) Subject: gen_uuid.c (uuid_generate_time): Fix bug pointed out by Ralf X-Git-Tag: E2FSPROGS-1_35-WIP-0131~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c5534d48470471ec3480458b661e80d8bcfad66;p=thirdparty%2Fe2fsprogs.git gen_uuid.c (uuid_generate_time): Fix bug pointed out by Ralf S. Engelshall; when generating a random ethernet address because one is not available, set the least significant bit of the first byte of the MAC address, since it is the first bit to be transmitted, and is therefore the multicast bit. --- diff --git a/lib/uuid/ChangeLog b/lib/uuid/ChangeLog index db8b00cd6..3e67de55c 100644 --- a/lib/uuid/ChangeLog +++ b/lib/uuid/ChangeLog @@ -1,3 +1,12 @@ +2004-01-30 Theodore Ts'o + + * gen_uuid.c (uuid_generate_time): Fix bug pointed out by Ralf + S. Engelshall; when generating a random ethernet address + because one is not available, set the least significant + bit of the first byte of the MAC address, since it is the + first bit to be transmitted, and is therefore the + multicast bit. + 2003-07-25 Theodore Ts'o * Release of E2fsprogs 1.34 diff --git a/lib/uuid/gen_uuid.c b/lib/uuid/gen_uuid.c index 87755d1f7..c7e62a60e 100644 --- a/lib/uuid/gen_uuid.c +++ b/lib/uuid/gen_uuid.c @@ -240,7 +240,7 @@ void uuid_generate_time(uuid_t out) * with IEEE 802 addresses obtained from * network cards */ - node_id[0] |= 0x80; + node_id[0] |= 0x01; } has_init = 1; }