summaryrefslogtreecommitdiff
path: root/netcon/NetconEthernetTap.cpp
diff options
context:
space:
mode:
authorJoseph Henry <joseph.henry@gmail.com>2015-10-21 16:27:17 -0700
committerJoseph Henry <joseph.henry@gmail.com>2015-10-21 16:27:17 -0700
commit303579cb42ed35a001174cf74e195ebd8321ab5d (patch)
treeaf8641017649723c4c0b6efac6ad4a6d014ec79d /netcon/NetconEthernetTap.cpp
parent8b03965912d3a3070c4e447c65b70a7c16067ee2 (diff)
downloadinfinitytier-303579cb42ed35a001174cf74e195ebd8321ab5d.tar.gz
infinitytier-303579cb42ed35a001174cf74e195ebd8321ab5d.zip
Added Node.js support
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
-rw-r--r--netcon/NetconEthernetTap.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp
index a5ce6f80..c2e31718 100644
--- a/netcon/NetconEthernetTap.cpp
+++ b/netcon/NetconEthernetTap.cpp
@@ -547,7 +547,7 @@ err_t NetconEthernetTap::nc_accept(void *arg, struct tcp_pcb *newpcb, err_t err)
if(socketpair(PF_LOCAL, SOCK_STREAM, 0, fds) < 0) {
if(errno < 0) {
l->tap->send_return_value(conn, -1, errno);
- //fprintf(stderr, "**************\n");
+ fprintf(stderr, "nc_accept(): unable to create socketpair\n");
return ERR_MEM;
}
}
@@ -857,7 +857,6 @@ void NetconEthernetTap::handle_bind(PhySocket *sock, void **uptr, struct bind_st
int conn_port = lwipstack->ntohs(connaddr->sin_port);
ip_addr_t conn_addr;
conn_addr.addr = *((u32_t *)_ips[0].rawIpData());
-
TcpConnection *conn = getConnectionByTheirFD(sock, bind_rpc->sockfd);
if(conn) {
@@ -878,9 +877,8 @@ void NetconEthernetTap::handle_bind(PhySocket *sock, void **uptr, struct bind_st
if(err == ERR_BUF)
send_return_value(conn, -1, ENOMEM); // FIXME: Closest match
}
- else {
+ else
send_return_value(conn, ERR_OK, ERR_OK); // Success
- }
}
else {
fprintf(stderr, "handle_bind(): PCB not in CLOSED state. Ignoring BIND request.\n");