Subject: [PATCH] dhcpv6: Use the last 4 bytes of the MAC addr to generate IAID.
diff --git a/src/client6_addr.c b/src/client6_addr.c
index e2d697e..0b588c2 100644
--- a/src/client6_addr.c
+++ b/src/client6_addr.c
@@ -791,7 +791,7 @@ create_iaid(struct iaid_table *iaidtab, int num_device)
 		switch (temp->hwaddr.type) {
 		case ARPHRD_ETHER:
 		case ARPHRD_IEEE802:
-			memcpy(&temp->iaid, temp->hwaddr.data, sizeof(temp->iaid));
+			memcpy(&temp->iaid, (temp->hwaddr.data)+2, sizeof(temp->iaid));
 			break;
 #if defined(__linux__)
 		case ARPHRD_PPP:
