From: hno <> Date: Mon, 6 Jun 2005 04:59:38 +0000 (+0000) Subject: Support current versions of IP-Filter where the device name has changed X-Git-Tag: SQUID_3_0_PRE4~730 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98a3bc997f17aa11e466e06b0d132f74f14eeb07;p=thirdparty%2Fsquid.git Support current versions of IP-Filter where the device name has changed --- diff --git a/src/IPInterception.cc b/src/IPInterception.cc index 7ee81d5098..dbb3b385b0 100644 --- a/src/IPInterception.cc +++ b/src/IPInterception.cc @@ -1,6 +1,6 @@ /* - * $Id: IPInterception.cc,v 1.9 2004/12/21 17:28:29 robertc Exp $ + * $Id: IPInterception.cc,v 1.10 2005/06/05 22:59:38 hno Exp $ * * DEBUG: section 89 NAT / IP Interception * AUTHOR: Robert Collins @@ -99,7 +99,14 @@ clientNatLookup(int fd, struct sockaddr_in me, struct sockaddr_in peer, struct s { int save_errno; enter_suid(); +#ifdef IPL_NAME + + natfd = open(IPL_NAME, O_RDONLY, 0); +#else + natfd = open(IPL_NAT, O_RDONLY, 0); +#endif + save_errno = errno; leave_suid(); errno = save_errno;