treewide: spell-fixes and new comments for extra clarification
[project/odhcpd.git] / src / router.c
index b69feb32c0499c5854f4541002c609549b5ed165..146713e34ca2031bf9b3ad3d547de9234a3fc640 100644 (file)
@@ -668,7 +668,7 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr
                uint8_t *search_domain = iface->search;
                uint8_t search_buf[256];
 
-               /* DNS Recursive DNS */
+               /* DNS Recursive DNS aka RDNSS Type 25; RFC8106 */
                if (iface->dns_cnt > 0) {
                        dns_addr = iface->dns;
                        dns_cnt = iface->dns_cnt;
@@ -688,7 +688,7 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr
                        memcpy(dns->addr, dns_addr, sizeof(struct in6_addr)*dns_cnt);
                }
 
-               /* DNS Search options */
+               /* DNS Search options aka DNSSL Type 31; RFC8106 */
                if (!search_domain && !res_init() && _res.dnsrch[0] && _res.dnsrch[0][0]) {
                        int len = dn_comp(_res.dnsrch[0], search_buf,
                                        sizeof(search_buf), NULL, NULL);
@@ -719,7 +719,7 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr
        iov[IOV_RA_SEARCH].iov_len = search_sz;
 
        if (iface->pref64_length) {
-               /* RFC 8781 § 4.1 rounding up lifetime to multiply of 8 */
+               /* RFC 8781 § 4.1 rounding up lifetime to multiple of 8 */
                uint16_t pref64_lifetime = lifetime < (UINT16_MAX - 7) ? lifetime + 7 : UINT16_MAX;
                uint8_t prefix_length_code;
                uint32_t mask_a1, mask_a2;