From 9256e196df0948939a657b3f3df97d057c781a0d Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Thu, 14 Jun 2018 09:57:59 +0200 Subject: [PATCH] Revert "[5649] Ignore writes on exernal sockets." This reverts commit 995830f8aad0d3c8e9ce66123ab14c156f8ce9e2. --- src/lib/dhcp/iface_mgr.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/dhcp/iface_mgr.cc b/src/lib/dhcp/iface_mgr.cc index c82300cd3b..7d06326c0c 100644 --- a/src/lib/dhcp/iface_mgr.cc +++ b/src/lib/dhcp/iface_mgr.cc @@ -958,8 +958,7 @@ Pkt4Ptr IfaceMgr::receive4(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */ // Let's find out which socket has the data BOOST_FOREACH(SocketCallbackInfo s, callbacks_) { - if ((!FD_ISSET(s.socket_, &sockets) && - (!FD_ISSET(s.socket_, &write_sockets)))) { + if (!FD_ISSET(s.socket_, &sockets)) { continue; } @@ -1069,8 +1068,7 @@ Pkt6Ptr IfaceMgr::receive6(uint32_t timeout_sec, uint32_t timeout_usec /* = 0 */ // Let's find out which socket has the data BOOST_FOREACH(SocketCallbackInfo s, callbacks_) { - if ((!FD_ISSET(s.socket_, &sockets) && - (!FD_ISSET(s.socket_, &write_sockets)))) { + if (!FD_ISSET(s.socket_, &sockets)) { continue; } -- 2.47.2