diff options
author | ru <ru@FreeBSD.org> | 2000-05-18 10:31:10 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-05-18 10:31:10 +0000 |
commit | 9033edf3a8227c165daac3522007884b721a4fe7 (patch) | |
tree | 04ad9fd391427edf6a33848f33687519252243ce /sbin/natd/natd.c | |
parent | 9b2777cf0c0497b340880e4a599c9223bffa7c33 (diff) | |
download | FreeBSD-src-9033edf3a8227c165daac3522007884b721a4fe7.zip FreeBSD-src-9033edf3a8227c165daac3522007884b721a4fe7.tar.gz |
Add new option (-target_addr) to control how to deal with incoming packets
not associated with any pre-existing link.
Submitted by: brian
Diffstat (limited to 'sbin/natd/natd.c')
-rw-r--r-- | sbin/natd/natd.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; |