]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
fix trivial bug
authorFrancis Dupont <fdupont@isc.org>
Tue, 28 Oct 2014 15:56:17 +0000 (16:56 +0100)
committerFrancis Dupont <fdupont@isc.org>
Tue, 28 Oct 2014 15:56:17 +0000 (16:56 +0100)
src/lib/dhcp/pkt.cc

index f9caa05a5d641eb54ccd201df58d476c40fc1d44..9632cae4a33499d86df81f13d9ca59c37c94d0e9 100644 (file)
@@ -185,7 +185,7 @@ Pkt::getMACFromIPv6(const isc::asiolink::IOAddress& addr) {
 
         // Check that u bit is set and g is clear. See Section 2.5.1 of RFC2373
         // for details.
-        ( (bin[0] & 3) != 2) ||
+        ((bin[8] & 3) != 2) ||
 
         // And that the IID is of EUI-64 type.
         (bin[11] != 0xff) || (bin[12] != 0xfe)) {