From: Christoph Egger <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Ian Pratt <Ian.Pratt@eu.citrix.com>,
Vincent Hanquez <vincent.hanquez@eu.citrix.com>,
"Gianni Tedesco (3P)" <gianni.tedesco@citrix.com>,
Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: [PATCH]: xl: use libuuid to generate random UUID's
Date: Thu, 5 Aug 2010 12:13:49 +0200 [thread overview]
Message-ID: <201008051213.49800.Christoph.Egger@amd.com> (raw)
In-Reply-To: <4C5A8216.6030607@eu.citrix.com>
On Thursday 05 August 2010 11:19:18 Vincent Hanquez wrote:
> On 05/08/10 03:19, Ian Pratt wrote:
> >> Link to libuuid in xl et al and bring in the header file. Use libuuid to
> >> generate UUID's which are actually UU and not merely pseudo-random :)
> >>
> >> As a side-effect I have also used libuuid to generate more random MAC
> >> addresses rather than keeping the old code and simply xoring getpid() in
> >> to the PRNG seed.
> >
I want to mention that Linux and NetBSD's uuid are different.
While on Linux you link against -luuid on NetBSD uuid is part of libc.
NetBSD implements DCE 1.1
(http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt,
http://www.opengroup.org/onlinepubs/009629399/apdxa.htm).
Linux implements a different standard (I don't know which one) where
the API is different.
Please have a look at tools/blktap2/include/blk_uuid.h
and tools/blktap2/drivers/Makefile
how to deal with both variants in a portable way.
Christoph
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
next prev parent reply other threads:[~2010-08-05 10:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 17:49 [PATCH]: xl: use libuuid to generate random UUID's Gianni Tedesco
2010-08-05 2:19 ` Ian Pratt
2010-08-05 2:27 ` Jeremy Fitzhardinge
2010-08-10 10:44 ` Ian Campbell
2010-08-10 11:14 ` Vincent Hanquez
2010-08-10 14:38 ` Stefano Stabellini
2010-08-10 19:38 ` Jeremy Fitzhardinge
2010-08-05 9:19 ` Vincent Hanquez
2010-08-05 10:13 ` Christoph Egger [this message]
2010-08-05 11:11 ` Vincent Hanquez
2010-08-05 16:42 ` Stefano Stabellini
2010-08-05 10:34 ` Stefano Stabellini
2010-08-09 10:51 ` Ian Jackson
2010-08-09 11:04 ` Gianni Tedesco
2010-08-10 15:23 ` Ian Jackson
2010-08-10 15:24 ` Gianni Tedesco
2010-08-10 16:55 ` Ian Jackson
2010-08-10 16:06 ` Ian Pratt
2010-08-10 19:43 ` Jeremy Fitzhardinge
2010-08-11 11:15 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008051213.49800.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=Ian.Pratt@eu.citrix.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=gianni.tedesco@citrix.com \
--cc=vincent.hanquez@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.