[PATCH v2 8/9] router: DNSRecursiveDNS and DNSSearchOpt Type comments
Paul Donald
newtwen+github at gmail.com
Fri Apr 5 04:06:52 PDT 2024
From: Paul Donald <newtwen at gmail.com>
Signed-off-by: Paul Donald <newtwen at gmail.com>
Reviewed-by: Daniel Golle <daniel at makrotopia.org>
---
src/router.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/router.c b/src/router.c
index 4239aa8..c87fd39 100644
--- a/src/router.c
+++ b/src/router.c
@@ -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);
--
2.44.0
More information about the openwrt-devel
mailing list