Use INADDR_NONE with PacketAliasSetTarget() if no args are given to

``nat target'', and suggest the use of ``nat target default'' as an
interesting possibility.
This commit is contained in:
Brian Somers 2000-03-31 20:42:24 +00:00
parent 5dd44916b7
commit 804e0a12f2
3 changed files with 11 additions and 1 deletions

View file

@ -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;
}

View file

@ -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

View file

@ -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