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
commit3390cf0734c5ead8f9cd9f10852c174146bb23fd (patch)
tree8be1416fb80cfec0a5f058d57860888c67f9eafb /src/ipv6nd.c
parent1864fe7a34196c6658500c70435102d42acd73b8 (diff)
downloaddhcpcd-3390cf0734c5ead8f9cd9f10852c174146bb23fd.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;
}
}