From 9c5534d48470471ec3480458b661e80d8bcfad66 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 30 Jan 2004 02:07:13 -0500 Subject: [PATCH] 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. --- lib/uuid/ChangeLog | 9 +++++++++ lib/uuid/gen_uuid.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/uuid/ChangeLog b/lib/uuid/ChangeLog index db8b00c..3e67de5 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 87755d1..c7e62a6 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; } -- 1.8.3.1