diff options
| author | Joseph Henry <josephjah@gmail.com> | 2015-12-14 14:45:25 -0800 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2015-12-14 14:45:25 -0800 |
| commit | a421e31dd5bfdece693092a0b6fb7a204b5fba42 (patch) | |
| tree | 2b128f4322c1ec057df0c2979aea6282072a825d /netcon/NetconEthernetTap.cpp | |
| parent | f558b088e6c62c3531ce3e85f28c9284f0898971 (diff) | |
| download | infinitytier-a421e31dd5bfdece693092a0b6fb7a204b5fba42.tar.gz infinitytier-a421e31dd5bfdece693092a0b6fb7a204b5fba42.zip | |
send_cmd() retrun value bugfix + minor debug changes
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
| -rw-r--r-- | netcon/NetconEthernetTap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 609e2923..cb5def32 100644 --- a/netcon/NetconEthernetTap.cpp +++ b/netcon/NetconEthernetTap.cpp @@ -848,6 +848,8 @@ err_t NetconEthernetTap::nc_accept(void *arg, struct tcp_pcb *newpcb, err_t err) dwr(MSG_DEBUG, " nc_accept(): socketpair = {%d, %d}\n", fds[0], fds[1]); int send_fd = tap->_phy.getDescriptor(conn->rpcSock); +dwr(MSG_DEBUG, "nc_accept(): sending %d via %d\n", fds[1], listening_fd); + if(sock_fd_write(listening_fd, fds[1]) < 0){ dwr(MSG_ERROR, " nc_accept(%d): error writing signal byte (listen_fd = %d, perceived_fd = %d)\n", listening_fd, send_fd, fds[1]); return -1; |
