]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
RA: Set mtu to zero and then pull in the MTU option if any
authorRoy Marples <roy@marples.name>
Sun, 10 Nov 2019 21:12:31 +0000 (21:12 +0000)
committerRoy Marples <roy@marples.name>
Sun, 10 Nov 2019 21:12:31 +0000 (21:12 +0000)
Incase the router sets it back to unspecified.

src/ipv6nd.c

index e9d2a95029426e3437d0bd55e4c1120bff703169..06e158b994da3ba5f2ec5931d5b5f8a29ce3e525 100644 (file)
@@ -1121,6 +1121,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx,
        rap->hasdns = false;
        rap->isreachable = true;
        has_address = false;
+       rap->mtu = 0;
 
 #ifdef IPV6_AF_TEMPORARY
        ipv6_markaddrsstale(ifp, IPV6_AF_TEMPORARY);