-/* $OpenBSD: engine.c,v 1.21 2017/05/28 16:36:53 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.22 2017/05/28 19:13:13 naddy Exp $ */
/*
* Copyright (c) 2017 Florian Obser <florian@openbsd.org>
break;
case IMSG_CTL_SHOW_INTERFACE_INFO:
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(if_index))
- fatal("%s: IMSG_CTL_SEND_SOLICITATION wrong "
+ fatal("%s: IMSG_CTL_SHOW_INTERFACE_INFO wrong "
"length: %d", __func__, imsg.hdr.len);
memcpy(&if_index, imsg.data, sizeof(if_index));
engine_showinfo_ctl(&imsg, if_index);
if (getnameinfo((struct sockaddr *)&ra->from, ra->from.sin6_len, hbuf,
sizeof(hbuf), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV)) {
log_warn("cannot get router IP");
- strlcpy(hbuf, "uknown", sizeof(hbuf));
+ strlcpy(hbuf, "unknown", sizeof(hbuf));
}
if (!IN6_IS_ADDR_LINKLOCAL(&ra->from.sin6_addr)) {
}
if ((size_t)len < sizeof(struct nd_router_advert)) {
- log_warn("received to short message (%ld) from %s", len, hbuf);
+ log_warn("received too short message (%ld) from %s", len, hbuf);
return;
}
if (getnameinfo((struct sockaddr *)&ra->from, ra->from.sin6_len, hbuf,
sizeof(hbuf), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV)) {
log_warn("cannot get router IP");
- strlcpy(hbuf, "uknown", sizeof(hbuf));
+ strlcpy(hbuf, "unknown", sizeof(hbuf));
}
if (!IN6_IS_ADDR_LINKLOCAL(&ra->from.sin6_addr)) {
}
if ((size_t)len < sizeof(struct nd_router_advert)) {
- log_warn("received to short message (%ld) from %s", len, hbuf);
+ log_warn("received too short message (%ld) from %s", len, hbuf);
return;
}
NI_NUMERICSERV)) {
log_warn("cannot get "
"proposal IP");
- strlcpy(hbuf, "uknown",
+ strlcpy(hbuf, "unknown",
sizeof(hbuf));
}
log_debug("%s: iface %d: %s",
NI_NUMERICHOST | NI_NUMERICSERV)) {
log_warn("cannot get proposal "
"IP");
- strlcpy(hbuf, "uknown",
+ strlcpy(hbuf, "unknown",
sizeof(hbuf));
}
log_debug("%s: iface %d: %s", __func__,
addr_proposal->addr.sin6_len, hbuf, sizeof(hbuf), NULL, 0,
NI_NUMERICHOST | NI_NUMERICSERV)) {
log_warn("cannot get router IP");
- strlcpy(hbuf, "uknown", sizeof(hbuf));
+ strlcpy(hbuf, "unknown", sizeof(hbuf));
}
log_debug("%s: iface %d: %s: %lld s", __func__,
iface->if_index, hbuf, tv.tv_sec);
dfr_proposal->addr.sin6_len, hbuf, sizeof(hbuf), NULL, 0,
NI_NUMERICHOST | NI_NUMERICSERV)) {
log_warn("cannot get router IP");
- strlcpy(hbuf, "uknown", sizeof(hbuf));
+ strlcpy(hbuf, "unknown", sizeof(hbuf));
}
log_debug("%s: iface %d: %s: %lld s", __func__,
iface->if_index, hbuf, tv.tv_sec);
addr_proposal->addr.sin6_len, hbuf, sizeof(hbuf), NULL, 0,
NI_NUMERICHOST | NI_NUMERICSERV)) {
log_warn("cannot get router IP");
- strlcpy(hbuf, "uknown", sizeof(hbuf));
+ strlcpy(hbuf, "unknown", sizeof(hbuf));
}
log_debug("%s: iface %d: %s [%s], priv: %s", __func__,
addr_proposal->if_index, hbuf,
dfr_proposal->addr.sin6_len, hbuf, sizeof(hbuf), NULL, 0,
NI_NUMERICHOST | NI_NUMERICSERV)) {
log_warn("cannot get router IP");
- strlcpy(hbuf, "uknown", sizeof(hbuf));
+ strlcpy(hbuf, "unknown", sizeof(hbuf));
}
log_debug("%s: iface %d: %s [%s]", __func__, dfr_proposal->if_index,
hbuf, proposal_state_name[dfr_proposal->state]);