diff options
author | brian <brian@FreeBSD.org> | 2000-03-31 20:36:29 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-31 20:36:29 +0000 |
commit | 67534b228aa77f848b6a5635e1164846fb38fc9e (patch) | |
tree | 1c2a208f8f28ff2637591b4199a64eb87e392f6e /lib/libalias/libalias.3 | |
parent | 34ac70fb1ff46ebc0730cdcacb2438aabe91bcd2 (diff) | |
download | FreeBSD-src-67534b228aa77f848b6a5635e1164846fb38fc9e.zip FreeBSD-src-67534b228aa77f848b6a5635e1164846fb38fc9e.tar.gz |
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.
Diffstat (limited to 'lib/libalias/libalias.3')
-rw-r--r-- | lib/libalias/libalias.3 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libalias/libalias.3 b/lib/libalias/libalias.3 index df1440c..66acc92 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 |