PDP11, VAX: Fix XQ device help text with NAT examples.

This commit is contained in:
Mark Pizzolato 2019-06-23 23:49:58 -07:00
parent 9c2c621278
commit 0b67c26875

View file

@ -3311,19 +3311,28 @@ const char helpString[] =
#endif #endif
"+sim> ATTACH %D udp:1234:remote.host.com:1234\n" "+sim> ATTACH %D udp:1234:remote.host.com:1234\n"
"\n" "\n"
"2 Examples\n" "2 Examples\n\n"
" To configure two simulators to talk to each other use the following\n" " Given a simulator that only wants to talk IP to the outside world use\n"
" example:\n" " the following example:\n"
" \n" " \n"
" Machine 1\n" "+sim> ATTACH %D NAT:\n"
"+sim> SET %D ENABLE\n"
"+sim> SET %D PEER=LOCALHOST:2222\n"
"+sim> ATTACH %D 1111\n"
" \n" " \n"
" Machine 2\n" " Given a simulator that only wants to talk IP but also wants to allow\n"
"+sim> SET %D ENABLE\n" " incoming telnet use the following example:\n"
"+sim> SET %U PEER=LOCALHOST:1111\n" " \n"
"+sim> ATTACH %U 2222\n" "+sim> ATTACH %D NAT:tcp=2323:10.0.2.15:23\n"
" \n"
" This allows connections to host port 2323 to reach port 23 on the\n"
" simulated which is configured with IP Address 10.0.2.15\n"
"\n"
" Given a simulator that only wants to talk IP but also wants to allow\n"
" incoming telnet and ftp use the following example:\n"
" \n"
"+sim> ATTACH %D NAT:tcp=2323:10.0.2.15:23,tcp=2121:10.0.2.15:21\n"
" \n"
" This allows connections to host port 2323 to reach port 23 on the\n"
" simulated which is configured with IP Address 10.0.2.15 and connections\n"
" to host port 2121 to reach port 21 on the simulated system.\n"
"\n" "\n"
"1 Monitoring\n" "1 Monitoring\n"
" The %D device configuration and state can be displayed with one of the\n" " The %D device configuration and state can be displayed with one of the\n"