[Libvir] [PATCH]Change MAC address to case insensitive
Daniel P. Berrange
berrange at redhat.com
Tue Feb 26 12:54:15 UTC 2008
On Tue, Feb 26, 2008 at 12:13:43PM +0100, Jim Meyering wrote:
> "Richard W.M. Jones" <rjones at redhat.com> wrote:
> > I'll apply this today (using our STRCASEEQ macros) if no one else
> > objects.
>
> Hi,
>
> What do you think about using a MAC-address-specific comparison
> function? I.e., one that is not only case-independent, but that also
> knows leading zeros are unnecessary?
>
> i.e., it would admit that these two match:
>
> 00:0A:FF:3A:00:09
> 0:a:ff:3a:0:9
>
> That would be a little more user friendly.
Yes, we should add a helper function for comparing mac addresses for
equality.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
More information about the libvir-list
mailing list