uint32_t dad;
int r;
+ if (ifp->ctx->secret_len == 0) {
+ if (ipv6_readsecret(ifp->ctx) == -1)
+ return -1;
+ }
+
dad = (uint32_t)*dad_counter;
/* For our implementation, we shall set the hardware address
}
if (ifp->options->options & DHCPCD_SLAACPRIVATE) {
- if (ifp->ctx->secret_len == 0) {
- if (ipv6_readsecret(ifp->ctx) == -1)
- return -1;
- }
dad = 0;
if (ipv6_makestableprivate(addr,
prefix, prefix_len, ifp, &dad) == -1)