From ca45fe65019ea029d180a5cfbf74e6394a96be90 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 10 Apr 2008 22:57:44 +1200 Subject: [PATCH] peer parameter was unused in the specific functions. --- src/IPInterception.cc | 6 +++--- src/IPInterception.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/IPInterception.cc b/src/IPInterception.cc index cd6f22fa77..d8d0bcefe0 100644 --- a/src/IPInterception.cc +++ b/src/IPInterception.cc @@ -342,11 +342,11 @@ IPIntercept::NatLookup(int fd, const IPAddress &me, const IPAddress &peer, IPAdd if( !peer.IsIPv4() ) return -1; if(intercept_active) { - if( NetfilterInterception(fd, me, peer, dst, silent) == 0) return 0; - if( IPFWInterception(fd, me, peer, dst, silent) == 0) return 0; + if( NetfilterInterception(fd, me, dst, silent) == 0) return 0; + if( IPFWInterception(fd, me, dst, silent) == 0) return 0; } if(transparent_active) { - if( NetfilterTransparent(fd, me, peer, dst) == 0) return 0; + if( NetfilterTransparent(fd, me, dst, silent) == 0) return 0; } return -1; diff --git a/src/IPInterception.h b/src/IPInterception.h index 7347b0d3c3..036dbb9af5 100644 --- a/src/IPInterception.h +++ b/src/IPInterception.h @@ -86,7 +86,7 @@ private: \retval 0 Successfuly located the new address. \retval -1 An error occured during NAT lookups. */ - int NetfilterInterception(int fd, const IPAddress &me, const IPAddress &peer, IPAddress &dst, int silent); + int NetfilterInterception(int fd, const IPAddress &me, IPAddress &dst, int silent); /** * perform Lookups on Netfilter fully-transparent interception targets (TPROXY). @@ -95,7 +95,7 @@ private: \retval 0 Successfuly located the new address. \retval -1 An error occured during NAT lookups. */ - int NetfilterTransparent(int fd, const IPAddress &me, const IPAddress &peer, IPAddress &dst, int silent); + int NetfilterTransparent(int fd, const IPAddress &me, IPAddress &dst, int silent); /** * perform Lookups on IPFW interception. @@ -104,7 +104,7 @@ private: \retval 0 Successfuly located the new address. \retval -1 An error occured during NAT lookups. */ - int IPFWInterception(int fd, const IPAddress &me, const IPAddress &peer, IPAddress &dst, int silent); + int IPFWInterception(int fd, const IPAddress &me, IPAddress &dst, int silent); int transparent_active; -- 2.47.3