aboutgitcodebugslistschat
path: root/dhcpv6.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-04-22 17:16:05 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-04-22 17:16:05 +0200
commit6fe3dca78ac73dca6fae1387bd2a44a538e04a9b (patch)
tree14d8b024c817368a1369a45d321b668489546af2 /dhcpv6.c
parent6488c3e8489da9aaa6642a367ac2bff70efff749 (diff)
downloadpasst-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>
Diffstat (limited to 'dhcpv6.c')
-rw-r--r--dhcpv6.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/dhcpv6.c b/dhcpv6.c
index 7f566a5..6399c38 100644
--- a/dhcpv6.c
+++ b/dhcpv6.c
@@ -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;
}