From b8a9bbd08b7a1b30b25b648eabba248d4cf1dd3d Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 11 May 2000 07:52:21 +0000 Subject: 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 --- lib/libalias/alias_db.c | 2 +- lib/libalias/libalias.3 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libalias') 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. -- cgit v1.1