summaryrefslogtreecommitdiff
path: root/netcon
diff options
context:
space:
mode:
authorJoseph Henry <joseph.henry@gmail.com>2015-11-02 15:52:12 -0800
committerJoseph Henry <joseph.henry@gmail.com>2015-11-02 15:52:12 -0800
commit8d7b2cd4862d79f469b55e8125f3b873da9b0478 (patch)
tree10a0da74c958fb6a9aec68b5f322fd9c24fdb014 /netcon
parentfd33e0812c6f11595e511a1ceefad1f290c9a0c0 (diff)
downloadinfinitytier-8d7b2cd4862d79f469b55e8125f3b873da9b0478.tar.gz
infinitytier-8d7b2cd4862d79f469b55e8125f3b873da9b0478.zip
Removed serv. conn. checks.
Diffstat (limited to 'netcon')
-rwxr-xr-xnetcon/Intercept.c4
-rwxr-xr-xnetcon/libintercept.so.1.0bin57416 -> 56824 bytes
2 files changed, 4 insertions, 0 deletions
diff --git a/netcon/Intercept.c b/netcon/Intercept.c
index d7855c61..e91a14cc 100755
--- a/netcon/Intercept.c
+++ b/netcon/Intercept.c
@@ -333,9 +333,11 @@ void set_up_intercept()
int setsockopt(SETSOCKOPT_SIG)
{
dwr("setsockopt(%d)\n", socket);
+ /*
if(is_mapped_to_service(socket) < 0) { // First, check if the service manages this
return realsetsockopt(socket, level, option_name, option_value, option_len);
}
+ */
//return(realsetsockopt(socket, level, option_name, option_value, option_len));
if(level == SOL_IPV6 && option_name == IPV6_V6ONLY)
return 0;
@@ -362,9 +364,11 @@ int setsockopt(SETSOCKOPT_SIG)
int getsockopt(GETSOCKOPT_SIG)
{
dwr("getsockopt(%d)\n", sockfd);
+ /*
if(is_mapped_to_service(sockfd) < 0) { // First, check if the service manages this
return realgetsockopt(sockfd, level, optname, optval, optlen);
}
+ */
int err = realgetsockopt(sockfd, level, optname, optval, optlen);
// FIXME: this condition will need a little more intelligence later on
// -- we will need to know if this fd is a local we are spoofing, or a true local
diff --git a/netcon/libintercept.so.1.0 b/netcon/libintercept.so.1.0
index 9c4b8d4c..701a5b4e 100755
--- a/netcon/libintercept.so.1.0
+++ b/netcon/libintercept.so.1.0
Binary files differ