summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias/libalias.3
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-31 20:36:29 +0000
committerbrian <brian@FreeBSD.org>2000-03-31 20:36:29 +0000
commit67534b228aa77f848b6a5635e1164846fb38fc9e (patch)
tree1c2a208f8f28ff2637591b4199a64eb87e392f6e /sys/netinet/libalias/libalias.3
parent34ac70fb1ff46ebc0730cdcacb2438aabe91bcd2 (diff)
downloadFreeBSD-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 'sys/netinet/libalias/libalias.3')
-rw-r--r--sys/netinet/libalias/libalias.39
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/libalias/libalias.3 b/sys/netinet/libalias/libalias.3
index df1440c..66acc92 100644
--- a/sys/netinet/libalias/libalias.3
+++ b/sys/netinet/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
OpenPOWER on IntegriCloud