ifo->ia->ia_type = D6_OPTION_IA_NA;
memcpy(ifo->ia->iaid, ifo->iaid, sizeof(ifo->iaid));
memset(&ifo->ia->addr, 0, sizeof(ifo->ia->addr));
+#ifndef SMALL
ifo->ia->sla = NULL;
ifo->ia->sla_len = 0;
+#endif
}
} else {
size_t i;
size_t sl;
struct if_ia *ia;
uint8_t iaid[4];
+#ifndef SMALL
struct if_sla *sla, *slap;
+#endif
#endif
dop = NULL;
/* FALLTHROUGH */
case O_IA_PD:
if (i == 0) {
+#ifdef SMALL
+ logwarnx("%s: IA_PD not compiled in", ifname);
+ return -1;
+#else
if (ifname == NULL) {
logerr("IA PD must belong in an "
"interface block");
return -1;
}
i = D6_OPTION_IA_PD;
+#endif
}
if (ifname == NULL && arg) {
logerrx("IA with IAID must belong in an "
}
}
}
+#ifndef SMALL
ia->sla_max = 0;
ia->sla_len = 0;
ia->sla = NULL;
+#endif
}
if (ia->ia_type != D6_OPTION_IA_PD)
break;
+#ifndef SMALL
for (p = fp; p; p = fp) {
fp = strwhite(p);
if (fp) {
err_sla:
ia->sla_len--;
return -1;
+#endif
#endif
case O_HOSTNAME_SHORT:
ifo->options |= DHCPCD_HOSTNAME | DHCPCD_HOSTNAME_SHORT;
free_dhcp_opt_embenc(opt);
free(ifo->vivso_override);
-#ifdef INET6
+#if defined(INET6) && !defined(SMALL)
for (; ifo->ia_len > 0; ifo->ia_len--)
free(ifo->ia[ifo->ia_len - 1].sla);
#endif