summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-03-28 17:52:52 +0000
committerRoy Marples <roy@marples.name>2020-03-28 17:52:52 +0000
commita94598861bf29735f0901bb5223c376f11a75a0e (patch)
tree8be1416fb80cfec0a5f058d57860888c67f9eafb /src/ipv6nd.c
parent1563721be07d6195642ebd1e64e98229dbcec6c3 (diff)
downloaddhcpcd-a94598861bf29735f0901bb5223c376f11a75a0e.tar.xz
script: Start RA addresses from 1, not 0.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 1fd35e11..21a35889 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -1582,7 +1582,7 @@ ipv6nd_env(FILE *fp, const struct interface *ifp)
ia->prefix_vltime == 0)
continue;
if (efprintf(fp, "%s_addr%zu=%s",
- ndprefix, j++, ia->saddr) == -1)
+ ndprefix, ++j, ia->saddr) == -1)
return -1;
}
}