diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-04-22 17:16:05 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-04-22 17:16:05 +0200 |
commit | 6fe3dca78ac73dca6fae1387bd2a44a538e04a9b (patch) | |
tree | 14d8b024c817368a1369a45d321b668489546af2 | |
parent | 6488c3e8489da9aaa6642a367ac2bff70efff749 (diff) | |
download | passt-6fe3dca78ac73dca6fae1387bd2a44a538e04a9b.tar passt-6fe3dca78ac73dca6fae1387bd2a44a538e04a9b.tar.gz passt-6fe3dca78ac73dca6fae1387bd2a44a538e04a9b.tar.bz2 passt-6fe3dca78ac73dca6fae1387bd2a44a538e04a9b.tar.lz passt-6fe3dca78ac73dca6fae1387bd2a44a538e04a9b.tar.xz passt-6fe3dca78ac73dca6fae1387bd2a44a538e04a9b.tar.zst passt-6fe3dca78ac73dca6fae1387bd2a44a538e04a9b.zip |
dhcpv6: Don't pass DNS option, it already comes from SLAAC
It looks like some versions of ISC's IPv6 dhclient not only discard
the DNS Recursive Name Server option if other options (Domain Search
List? FQDN?) are absent, but they also drop existing entries
configured via SLAAC from /etc/resolv.conf.
Don't pass option 23 until I figure this out, it's anyway redundant
as we pass DNS information via SLAAC (RFC 8106).
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | dhcpv6.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -210,7 +210,6 @@ static struct resp_t { struct opt_server_id server_id; struct opt_ia_na ia_na; struct opt_ia_addr ia_addr; - struct opt_dns_servers dns_servers; struct opt_client_id client_id; } __attribute__((__packed__)) resp = { uh_resp, @@ -227,9 +226,6 @@ static struct resp_t { IN6ADDR_ANY_INIT, (uint32_t)~0U, (uint32_t)~0U }, - { { OPT_DNS_SERVERS, OPT_SIZE(dns_servers), }, - IN6ADDR_ANY_INIT - }, { { OPT_CLIENTID, 0, }, { 0 } @@ -509,5 +505,4 @@ void dhcpv6_init(struct ctx *c) memcpy(resp_not_on_link.server_id.duid_lladdr, c->mac, sizeof(c->mac)); resp.ia_addr.addr = c->addr6; - resp.dns_servers.addr = c->dns6; } |