Skip to content

Commit

Permalink
Revert "[5649] Ignore writes on exernal sockets."
Browse files Browse the repository at this point in the history
This reverts commit 995830f.
  • Loading branch information
msiodelski committed Jun 14, 2018
1 parent 44d0158 commit 9256e19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/dhcp/iface_mgr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 9256e19

Please sign in to comment.