summaryrefslogtreecommitdiffstats
path: root/lib/libalias
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-05-11 07:52:21 +0000
committerbrian <brian@FreeBSD.org>2000-05-11 07:52:21 +0000
commitb8a9bbd08b7a1b30b25b648eabba248d4cf1dd3d (patch)
tree5a44478209e22a4ef2a9dcdb2be37c4f686c7944 /lib/libalias
parentf716ae0b0f7535ca5ca35d86c58ffa36fe29778b (diff)
downloadFreeBSD-src-b8a9bbd08b7a1b30b25b648eabba248d4cf1dd3d.zip
FreeBSD-src-b8a9bbd08b7a1b30b25b648eabba248d4cf1dd3d.tar.gz
Revert the default behaviour for incoming connections so
that they (once again) go to the target machine rather than the alias address. PR: 18354 Submitted by: ru
Diffstat (limited to 'lib/libalias')
-rw-r--r--lib/libalias/alias_db.c2
-rw-r--r--lib/libalias/libalias.34
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c
index 09bdcac..e7a8901 100644
--- a/lib/libalias/alias_db.c
+++ b/lib/libalias/alias_db.c
@@ -2284,7 +2284,7 @@ PacketAliasInit(void)
}
aliasAddress.s_addr = INADDR_ANY;
- targetAddress.s_addr = INADDR_NONE;
+ targetAddress.s_addr = INADDR_ANY;
icmpLinkCount = 0;
udpLinkCount = 0;
diff --git a/lib/libalias/libalias.3 b/lib/libalias/libalias.3
index 0344af5..3b69983 100644
--- a/lib/libalias/libalias.3
+++ b/lib/libalias/libalias.3
@@ -784,12 +784,12 @@ arrives at the host machine, it will be sent to the address indicated by a
call to
.Fn PacketAliasSetTarget .
.Pp
-If this function is not called, or is called with an
+If this function is called with an
.Dv INADDR_NONE
address argument, then all new incoming packets go to the address set by
.Fn PacketAliasSetAddress .
.Pp
-If this function is called with an
+If this function is not called, or is called with an
.Dv INADDR_ANY
address argument, then all new incoming packets go to the address specified
in the packet.
OpenPOWER on IntegriCloud