aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2000-03-31 20:42:24 +0000
committerBrian Somers <brian@FreeBSD.org>2000-03-31 20:42:24 +0000
commit804e0a12f2bbf0ee8f7ca98950730cec374c1077 (patch)
tree90d4df0e9d0dbb8dd224318b44d5db719f6aa5be /usr.sbin
parent5dd44916b7a054604696f5c41577e16e912898b3 (diff)
downloadsrc-804e0a12f2bbf0ee8f7ca98950730cec374c1077.tar.gz
src-804e0a12f2bbf0ee8f7ca98950730cec374c1077.zip
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/nat_cmd.c2
-rw-r--r--usr.sbin/ppp/ppp.85
-rw-r--r--usr.sbin/ppp/ppp.8.m45
3 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c
index f1d75ed31282..baa53503604d 100644
--- a/usr.sbin/ppp/nat_cmd.c
+++ b/usr.sbin/ppp/nat_cmd.c
@@ -345,7 +345,7 @@ nat_SetTarget(struct cmdargs const *arg)
struct in_addr addr;
if (arg->argc == arg->argn) {
- addr.s_addr = INADDR_ANY;
+ addr.s_addr = INADDR_NONE;
PacketAliasSetTarget(addr);
return 0;
}
diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8
index da73af10a65e..a9c16373717f 100644
--- a/usr.sbin/ppp/ppp.8
+++ b/usr.sbin/ppp/ppp.8
@@ -2997,6 +2997,11 @@ Set the given target address or clear it if no address is given. The target
address is used by libalias to specify how to NAT incoming packets by default.
If a target address is not set, the alias address (that of the tun interface)
is used.
+.Pp
+The target address may be set to
+.Dq default ,
+in which case libalias will not alter the destination address of new
+incoming data.
.It nat use_sockets yes|no
When enabled, this option tells the network address translation engine to
create a socket so that it can guarantee a correct incoming ftp data or
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4
index da73af10a65e..a9c16373717f 100644
--- a/usr.sbin/ppp/ppp.8.m4
+++ b/usr.sbin/ppp/ppp.8.m4
@@ -2997,6 +2997,11 @@ Set the given target address or clear it if no address is given. The target
address is used by libalias to specify how to NAT incoming packets by default.
If a target address is not set, the alias address (that of the tun interface)
is used.
+.Pp
+The target address may be set to
+.Dq default ,
+in which case libalias will not alter the destination address of new
+incoming data.
.It nat use_sockets yes|no
When enabled, this option tells the network address translation engine to
create a socket so that it can guarantee a correct incoming ftp data or