]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
peer parameter was unused in the specific functions.
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 10 Apr 2008 10:57:44 +0000 (22:57 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 10 Apr 2008 10:57:44 +0000 (22:57 +1200)
src/IPInterception.cc
src/IPInterception.h

index cd6f22fa77726370a175c922517ae41cc244a309..d8d0bcefe016f1030daa08d2c0971ae5272985f5 100644 (file)
@@ -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;
index 7347b0d3c341d9257750534fa2313a3d56887af3..036dbb9af56b4df3d181c0b5674a10cc6c9a26a4 100644 (file)
@@ -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;