]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We can't add link-local addresses to POINTOPOINT interfaces,
authorRoy Marples <roy@marples.name>
Mon, 22 Sep 2014 10:03:03 +0000 (10:03 +0000)
committerRoy Marples <roy@marples.name>
Mon, 22 Sep 2014 10:03:03 +0000 (10:03 +0000)
the PPP process has to.
Fixes [8fb17a419d].

ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 3ccc30bb70bc7406c21b53093bb92a9bf5748937..ee4afcb8c6b4a37d510094e37745b01b469ad255 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -996,6 +996,11 @@ ipv6_start(struct interface *ifp)
        const struct ipv6_state *state;
        const struct ipv6_addr *ap;
 
+       /* We can't assign a link-locak address to this,
+        * the ppp process has to. */
+       if (ifp->flags & IFF_POINTOPOINT)
+               return 0;
+
        state = IPV6_CSTATE(ifp);
        if (state) {
                TAILQ_FOREACH(ap, &state->addrs, next) {