From 9033edf3a8227c165daac3522007884b721a4fe7 Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 18 May 2000 10:31:10 +0000 Subject: Add new option (-target_addr) to control how to deal with incoming packets not associated with any pre-existing link. Submitted by: brian --- sbin/natd/natd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sbin/natd/natd.c') diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c index 6bb3584..a465ce2 100644 --- a/sbin/natd/natd.c +++ b/sbin/natd/natd.c @@ -860,6 +860,7 @@ enum Option { OutPort, Port, AliasAddress, + TargetAddress, InterfaceName, RedirectPort, RedirectProto, @@ -1007,6 +1008,14 @@ static struct OptionInfo optionTable[] = { "alias_address", "a" }, + { TargetAddress, + 0, + Address, + "x.x.x.x", + "address to use for incoming sessions", + "target_address", + "t" }, + { InterfaceName, 0, String, @@ -1206,6 +1215,10 @@ static void ParseOption (const char* option, const char* parms, int cmdLine) memcpy (&aliasAddr, &addrValue, sizeof (struct in_addr)); break; + case TargetAddress: + PacketAliasSetTarget(addrValue); + break; + case RedirectPort: SetupPortRedirect (strValue); break; -- cgit v1.1