mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 07:45:20 +00:00
Update comment to explain absence of adjustment to g-bit.
This commit is contained in:
@@ -636,7 +636,12 @@ build_address6(struct in6_addr *addr,
|
|||||||
case 6: str[i] = (str[i] & 0x03) | (net_str[i] & 0xFC); break;
|
case 6: str[i] = (str[i] & 0x03) | (net_str[i] & 0xFC); break;
|
||||||
case 7: str[i] = (str[i] & 0x01) | (net_str[i] & 0xFE); break;
|
case 7: str[i] = (str[i] & 0x01) | (net_str[i] & 0xFE); break;
|
||||||
}
|
}
|
||||||
/* set the 'u' bit to zero for /64s. */
|
|
||||||
|
/*
|
||||||
|
* Set the universal/local bit ("u bit") to zero for /64s. The
|
||||||
|
* individual/group bit ("g bit") is unchanged, because the g-bit
|
||||||
|
* has no meaning when the u-bit is cleared.
|
||||||
|
*/
|
||||||
if (net_bits == 64)
|
if (net_bits == 64)
|
||||||
str[8] &= ~0x02;
|
str[8] &= ~0x02;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user