From 151682eadc41fc610ef4d25daf5ec935f9443c63 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 11 May 2000 07:52:21 +0000 Subject: [PATCH] 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 ++-- sys/netinet/libalias/alias_db.c | 2 +- sys/netinet/libalias/libalias.3 | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c index 09bdcace6b6c..e7a890196be3 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 0344af5e2063..3b6998315e7d 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. diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c index 09bdcace6b6c..e7a890196be3 100644 --- a/sys/netinet/libalias/alias_db.c +++ b/sys/netinet/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/sys/netinet/libalias/libalias.3 b/sys/netinet/libalias/libalias.3 index 0344af5e2063..3b6998315e7d 100644 --- a/sys/netinet/libalias/libalias.3 +++ b/sys/netinet/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.