Re: [PATCH] comparing MAC address is changed to case insensitive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 11, 2008 at 09:22:33AM +0900, Hiroyuki Kaguchi wrote:
> MAC address is case sensitive in "countMACaddr" method.
> This patch changes from case sensitive to case insensitive.

You also have to note that 1:2:3:4:5:6 is the same as
01:02:03:04:05:06.  Comparing MAC addresses is hard :-)

There's some C code in libvirt (src/utils.c IIRC) which Jim Meyering
wrote that does a correct compare on MAC addresses.  Should be easier
in Python 'coz you can split the string and compare each component
numerically.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux