diff options
author | Joseph Henry <josephjah@gmail.com> | 2016-01-12 12:56:51 -0800 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2016-01-12 12:56:51 -0800 |
commit | 18aea2d3d379adefc2a2ceabdc71396aa6187434 (patch) | |
tree | d974406164de139ae2ec735d4deb822d0df5b771 /netcon/Intercept.c | |
parent | 74e22368b56514dcf935772d485231bc31d94db1 (diff) | |
download | infinitytier-18aea2d3d379adefc2a2ceabdc71396aa6187434.tar.gz infinitytier-18aea2d3d379adefc2a2ceabdc71396aa6187434.zip |
Removed unused code
Diffstat (limited to 'netcon/Intercept.c')
-rw-r--r-- | netcon/Intercept.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/netcon/Intercept.c b/netcon/Intercept.c index ed7e3cb8..c6868b8e 100644 --- a/netcon/Intercept.c +++ b/netcon/Intercept.c @@ -193,14 +193,6 @@ int socket(SOCKET_SIG) errno = EINVAL; return -1; } - -/* - if(flags & SOCK_DGRAM) { - fprintf(stderr, "socket(): DGRAM, passing through\n"); - return realsocket(socket_family, socket_type, protocol); - } -*/ - socket_type &= SOCK_TYPE_MASK; /* Check protocol is in range */ if (socket_family < 0 || socket_family >= NPROTO){ @@ -240,21 +232,8 @@ int connect(CONNECT_SIG) if (!set_up_intercept()) return realconnect(__fd, __addr, __len); -/* - int opt; - socklen_t opt_len; - realgetsockopt(__fd, SOL_SOCKET, SO_TYPE, (void *) &opt, &opt_len); - - if(opt & SOCK_DGRAM) - { - fprintf(stderr, "connect(): DGRAM, passing through.\n"); - return realconnect(__fd, __addr, __len); - } -*/ - struct sockaddr_in *connaddr; connaddr = (struct sockaddr_in *)__addr; - if(__addr->sa_family == AF_LOCAL || __addr->sa_family == AF_UNIX) { struct sockaddr_storage storage; memcpy(&storage, __addr, __len); @@ -271,10 +250,6 @@ int connect(CONNECT_SIG) d[3] = (ip >> 24) & 0xFF; dwr(MSG_DEBUG,"connect(): %d.%d.%d.%d: %d\n", d[0],d[1],d[2],d[3], ntohs(port)); - - if (!set_up_intercept()) - return realconnect(__fd, __addr, __len); - dwr(MSG_DEBUG,"connect(%d):\n", __fd); /* Check that this is a valid fd */ if(fcntl(__fd, F_GETFD) < 0) { |