summaryrefslogtreecommitdiff
path: root/sbin/ipnat/ipnat.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-10-11 05:36:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-10-11 05:36:33 +0000
commit797318bc829afa6742dd8ebe2d8f0c4f9d7c8814 (patch)
tree1bf5934d8e956364b467face4d39f078d4ef5cd9 /sbin/ipnat/ipnat.c
parentdc475174c3f0243c8fde90238d23e051eb3d398e (diff)
NAT_MAP is now a flag; garath@code.ridgefield.org
Diffstat (limited to 'sbin/ipnat/ipnat.c')
-rw-r--r--sbin/ipnat/ipnat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/ipnat/ipnat.c b/sbin/ipnat/ipnat.c
index 1312ccb5166..b9affc0e4cb 100644
--- a/sbin/ipnat/ipnat.c
+++ b/sbin/ipnat/ipnat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipnat.c,v 1.24 1998/10/06 06:32:54 deraadt Exp $ */
+/* $OpenBSD: ipnat.c,v 1.25 1998/10/11 05:36:32 deraadt Exp $ */
/*
* Copyright (C) 1993-1997 by Darren Reed.
*
@@ -67,7 +67,7 @@ extern char *sys_errlist[];
#if !defined(lint)
static const char sccsid[] ="@(#)ipnat.c 1.9 6/5/96 (C) 1993 Darren Reed";
-static const char rcsid[] = "@(#)$Id: ipnat.c,v 1.24 1998/10/06 06:32:54 deraadt Exp $";
+static const char rcsid[] = "@(#)$Id: ipnat.c,v 1.25 1998/10/11 05:36:32 deraadt Exp $";
#endif
@@ -588,7 +588,7 @@ char *line;
ipn.in_ifname[sizeof(ipn.in_ifname) - 1] = '\0';
if (!(s = strtok(NULL, " \t"))) {
fprintf(stderr, "missing fields (%s)\n",
- ipn.in_redir ? "destination": "source");
+ ipn.in_redir & NAT_MAP ? "source": "destination");
return NULL;
}
shost = s;
@@ -621,7 +621,7 @@ char *line;
snetm = strrchr(shost, '/');
if (!snetm) {
fprintf(stderr, "missing fields (%s netmask)\n",
- ipn.in_redir ? "destination":"source");
+ ipn.in_redir & NAT_MAP ? "source":"destination");
return NULL;
}
} else {
@@ -631,7 +631,7 @@ char *line;
}
if (!(s = strtok(NULL, " \t"))) {
fprintf(stderr, "missing fields (%s netmask)\n",
- ipn.in_redir ? "destination":"source");
+ ipn.in_redir & NAT_MAP ? "source":"destination");
return NULL;
}
snetm = s;
@@ -639,7 +639,7 @@ char *line;
if (!(s = strtok(NULL, " \t"))) {
fprintf(stderr, "missing fields (%s)\n",
- ipn.in_redir ? "destination":"target");
+ ipn.in_redir & NAT_MAP ? "target":"destination");
return NULL;
}
dhost = s;