From 98a3bc997f17aa11e466e06b0d132f74f14eeb07 Mon Sep 17 00:00:00 2001 From: hno <> Date: Mon, 6 Jun 2005 04:59:38 +0000 Subject: [PATCH] Support current versions of IP-Filter where the device name has changed --- src/IPInterception.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; -- 2.47.2