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;
\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).
\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.
\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;