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;
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);
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;