Commit 3917a1b8 authored by Francis Dupont's avatar Francis Dupont
Browse files

[4106_rebase] Addressed last comments before merging

parent 2e47c238
......@@ -174,7 +174,7 @@ Pkt6Ptr Dhcp4o6IpcBase::receive() {
if (!iface) {
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL,
DHCPSRV_DHCP4O6_RECEIVED_BAD_PACKET)
.arg("can't get interface");
.arg("can't get interface " + ifname->getValue());
return (Pkt6Ptr());
}
Option6AddrLstPtr srcs =
......@@ -237,7 +237,9 @@ void Dhcp4o6IpcBase::send(Pkt6Ptr pkt) {
pkt->pack();
// Send
static_cast<void>(::send(socket_fd_, buf.getData(), buf.getLength(), 0));
if (::send(socket_fd_, buf.getData(), buf.getLength(), 0) < 0) {
isc_throw(Unexpected, "Failed to send over DHCP4o6 IPC socket");
}
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment