summaryrefslogtreecommitdiff
path: root/server/mdb6.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2009-05-18 22:50:33 +0000
committerDavid Hankins <dhankins@isc.org>2009-05-18 22:50:33 +0000
commit53883ced69aa6e1dd16076f09de7dd1fd0d610c7 (patch)
treea0266a44550eb85bc8fcf93ce1438606fe5e7279 /server/mdb6.c
parenta9b832a756905c1cae5b1d7f59ca273011c10086 (diff)
downloadisc-dhcp-53883ced69aa6e1dd16076f09de7dd1fd0d610c7.tar.gz
Update comment to explain absence of adjustment to g-bit.
Diffstat (limited to 'server/mdb6.c')
-rw-r--r--server/mdb6.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/mdb6.c b/server/mdb6.c
index a5ae4eb7..73b7fdfa 100644
--- a/server/mdb6.c
+++ b/server/mdb6.c
@@ -636,7 +636,12 @@ build_address6(struct in6_addr *addr,
case 6: str[i] = (str[i] & 0x03) | (net_str[i] & 0xFC); 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)
str[8] &= ~0x02;
}