Re: [PATCH] Add V6LOCAL parameter to nwfilter rules.

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

 



On 4/2/2014 4:11 PM, Eric Blake wrote:
On 04/02/2014 01:56 PM, Eric Blake wrote:
On 04/02/2014 01:40 PM, Brian Rak wrote:
Currently, adding any sort of IPv6 nwfilter rules is rather difficult.  There are no standard rules,
Also worth an example of what this will contain (such as
fe80::5254:00ff:fe1a:0a6d).
+            parsedMac.addr[0] ^= 2;
Oh, and forgot to mention, should this be |= instead of ^=, since by
default, libvirt assigns MAC addresses with bit 2 already set?  My
understanding is that bit 2 is the locally-administered bit, and that
the V6LOCAL address always wants it set (^= only works if the MAC
address is not also locally administered, but libvirt's generated MAC
addresses of 52:54:00:xx:yy:zz fall foul of that)

For link-local addresses, you want to invert the bit, not ensure that it's always set. This matches what linux is doing doing: http://lxr.free-electrons.com/source/net/ipv6/addrconf.c#L1724

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]