-/* $OpenBSD: dhcp6leased.c,v 1.7 2024/06/03 11:08:31 florian Exp $ */
+/* $OpenBSD: dhcp6leased.c,v 1.8 2024/06/03 15:52:17 florian Exp $ */
/*
* Copyright (c) 2017, 2021, 2024 Florian Obser <florian@openbsd.org>
}
}
- if(sin6 == NULL) {
+ if (sin6 == NULL) {
log_warnx("%s: missing link-local address on %s", __func__,
if_name);
goto out;
}
- if(rdomain == -1) {
+ if (rdomain == -1) {
log_warnx("%s: cannot find rdomain for %s", __func__,
if_name);
goto out;
gen:
uuid_create(&uuid, NULL);
uuid_to_string(&uuid, &str, &status);
- if(status != uuid_s_ok)
+ if (status != uuid_s_ok)
fatalx("failed to generate uuid string representation");
len = snprintf(strbuf, sizeof(strbuf), "%s\n", str);
uuid_from_string(strbuf, &uuid, &status);
- if(status != uuid_s_ok) {
+ if (status != uuid_s_ok) {
log_warnx("failed to convert string to uuid: %s - %d",
strbuf, status);
goto gen;
-/* $OpenBSD: engine.c,v 1.5 2024/06/03 11:08:31 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.6 2024/06/03 15:52:17 florian Exp $ */
/*
* Copyright (c) 2017, 2021, 2024 Florian Obser <florian@openbsd.org>
SIMPLEQ_FOREACH(ia_conf, &iface_conf->iface_ia_list, entry) {
struct prefix *pd = &pds[ia_conf->id - 1];
- if(pd->prefix_len == 0) {
+ if (pd->prefix_len == 0) {
log_warnx("%s: no IA for IAID %d found", __func__,
ia_conf->id);
goto out;
}
- if(pd->prefix_len > ia_conf->prefix_len) {
+ if (pd->prefix_len > ia_conf->prefix_len) {
log_warnx("%s: prefix for IAID %d too small: %d > %d",
__func__, ia_conf->id, pd->prefix_len,
ia_conf->prefix_len);