]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4106_rebase] Addressed last comments before merging
authorFrancis Dupont <fdupont@isc.org>
Wed, 8 Jun 2016 14:14:35 +0000 (16:14 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 8 Jun 2016 14:14:35 +0000 (16:14 +0200)
src/lib/dhcpsrv/dhcp4o6_ipc.cc

index 35044434116ebd9265a1e76a874a115d4db512de..bf3567a8e1ae1c4ef62aae8c5b073de0ee209142 100644 (file)
@@ -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;
 }