]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Change IPv6 routes when MTU differs as well.
authorRoy Marples <roy@marples.name>
Tue, 15 Sep 2015 11:03:31 +0000 (11:03 +0000)
committerRoy Marples <roy@marples.name>
Tue, 15 Sep 2015 11:03:31 +0000 (11:03 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index fbb878130e229bb13c521658961400a1c61fa21a..0c0cd3c9555ad91d43cef2e8b997b60a6184f51d 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -2155,7 +2155,8 @@ ipv6_buildroutes(struct dhcpcd_ctx *ctx)
                            rt->metric != or->metric ||
 #endif
                //          or->src.s_addr != ifp->addr.s_addr ||
-                           !IN6_ARE_ADDR_EQUAL(&rt->gate, &or->gate))
+                           !IN6_ARE_ADDR_EQUAL(&or->gate, &rt->gate) ||
+                           or->mtu != rt->mtu)
                        {
                                if (c_route(or, rt) != 0)
                                        continue;