summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-10-11 05:36:32 +0000
committerderaadt <deraadt@openbsd.org>1998-10-11 05:36:32 +0000
commit698bb1c6bb1e16545dd7db162550bc95bd7efdfb (patch)
tree57305f6540b3f6facf6bc14671cf154a22851ad9
parentflesh out and -mandoc, much nicer; garath@code.ridgefield.org (diff)
downloadwireguard-openbsd-698bb1c6bb1e16545dd7db162550bc95bd7efdfb.tar.xz
wireguard-openbsd-698bb1c6bb1e16545dd7db162550bc95bd7efdfb.zip
NAT_MAP is now a flag; garath@code.ridgefield.org
-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;