- Fix: after recent ipfilter update IPL_NAT symbol has disappeared

PR:		ports/80934
Submitted by:	marck (maintainer)
This commit is contained in:
Pav Lucistnik
2005-05-20 17:53:56 +00:00
parent a1f98f3e37
commit dbcd1fc8e9
2 changed files with 15 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
PORTNAME= oops
PORTVERSION= ${OOPSVERSION}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= http://oops-cache.org/
DISTNAME= ${PORTNAME}-${OOPSVERSION}

View File

@@ -0,0 +1,14 @@
$FreeBSD$
--- src/modules/transparent.c.orig
+++ src/modules/transparent.c
@@ -214,7 +214,7 @@
natLookup.nl_outip = rq->client_sa.sin_addr;
natLookup.nl_flags = IPN_TCP;
if (natfd < 0) {
- natfd = open(IPL_NAT, O_RDONLY, 0);
+ natfd = open(IPNAT_NAME, O_RDONLY, 0);
if (natfd < 0) {
my_xlog(OOPS_LOG_HTTP|OOPS_LOG_DBG|OOPS_LOG_SEVERE, "transparent/redir(): NAT open failed: %m\n");
goto notdone;