summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-09-22 10:03:03 +0000
committerRoy Marples <roy@marples.name>2014-09-22 10:03:03 +0000
commit30d48c293598a08abac23523e8897277d272b288 (patch)
tree13bbc537823471e4bb67606199b05a84b6b363fc /ipv6.c
parent3e4fb0bfdc541e49b66d9b6c312333dbe9519784 (diff)
downloaddhcpcd-30d48c293598a08abac23523e8897277d272b288.tar.xz
We can't add link-local addresses to POINTOPOINT interfaces,
the PPP process has to. Fixes [8fb17a419d].
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipv6.c b/ipv6.c
index 3ccc30bb..ee4afcb8 100644
--- 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) {