-/* $OpenBSD: dhcpleased.c,v 1.9 2021/03/27 18:10:38 florian Exp $ */
+/* $OpenBSD: dhcpleased.c,v 1.10 2021/04/14 23:35:24 deraadt Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
"%lu", __func__, IMSG_DATA_SIZE(imsg));
memcpy(&if_index, imsg.data, sizeof(if_index));
open_bpfsock(if_index);
- break;
+ break;
#ifndef SMALL
case IMSG_CTL_LOG_VERBOSE:
if (IMSG_DATA_SIZE(imsg) != sizeof(verbose))
-/* $OpenBSD: engine.c,v 1.12 2021/04/09 14:46:39 martijn Exp $ */
+/* $OpenBSD: engine.c,v 1.13 2021/04/14 23:35:24 deraadt Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
goto too_short;
}
- switch(dho) {
+ switch (dho) {
case DHO_PAD:
if (log_getverbose() > 1)
log_debug("DHO_PAD");
}
}
- while(rem != 0) {
+ while (rem != 0) {
if (*p != DHO_PAD)
break;
p++;
renewal_time = rebinding_time = 0;
}
- if(renewal_time == 0)
+ if (renewal_time == 0)
renewal_time = lease_time / 2;
if (rebinding_time == 0)
rebinding_time = lease_time - (lease_time / 8);
-/* $OpenBSD: frontend.c,v 1.9 2021/04/08 17:29:17 kn Exp $ */
+/* $OpenBSD: frontend.c,v 1.10 2021/04/14 23:35:24 deraadt Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
uint8_t buf[BPFLEN];
};
-struct iface {
+struct iface {
LIST_ENTRY(iface) entries;
struct bpf_ev bpfev;
struct imsg_ifinfo ifinfo;
if (getifaddrs(&ifap) != 0)
fatal("getifaddrs");
- for(ifnidx = ifnidxp; ifnidx->if_index != 0 && ifnidx->if_name != NULL;
+ for (ifnidx = ifnidxp; ifnidx->if_index != 0 && ifnidx->if_name != NULL;
ifnidx++) {
if_index = ifnidx->if_index;
if_name = ifnidx->if_name;
if ((flags = get_flags(if_name)) == -1)
continue;
- if((xflags = get_xflags(if_name)) == -1)
+ if ((xflags = get_xflags(if_name)) == -1)
continue;
if (!(xflags & IFXF_AUTOCONF4))
continue;
if (ifa->ifa_addr == NULL)
continue;
- switch(ifa->ifa_addr->sa_family) {
+ switch (ifa->ifa_addr->sa_family) {
case AF_LINK: {
struct if_data *if_data;
struct sockaddr_dl *sdl;