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
This commit is contained in:
parent
e46f1e870a
commit
151682eadc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60363
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user