From 5dd44916b7a054604696f5c41577e16e912898b3 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 31 Mar 2000 20:36:29 +0000 Subject: Allow PacketAliasSetTarget() to be passed the following: INADDR_NONE: Incoming packets go to the alias address (the default) INADDR_ANY: Incoming packets are not NAT'd (direct access to the internal network from outside) anything else: Incoming packets go to the specified address Change a few inaddr::s_addr == 0 to inaddr::s_addr == INADDR_ANY while I'm there. --- lib/libalias/libalias.3 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/libalias/libalias.3') diff --git a/lib/libalias/libalias.3 b/lib/libalias/libalias.3 index df1440ca4638..66acc92c9ce7 100644 --- a/lib/libalias/libalias.3 +++ b/lib/libalias/libalias.3 @@ -701,9 +701,16 @@ host machine, it will be sent to the address indicated by a call to PacketAliasSetTarget(). If this function is not called, or is called -with a zero address argument, then all new +with a INADDR_NONE address argument, then all new incoming packets go to the address set by PacketAliasSetAddress. + +If this function is called with a INADDR_ANY address +argument, then all new incoming packets go to the +address specified in the packet. +This allows external machines to talk directly to +internal machines if they can route packets to the +machine in question. .Ss 6.2 PacketAliasCheckNewLink() .Ft int -- cgit v1.3