aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/usage.src.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/include/usage.src.h b/include/usage.src.h
index f84bb93c7..6d17ab571 100644
--- a/include/usage.src.h
+++ b/include/usage.src.h
@@ -2954,84 +2954,6 @@ INSERT
2954 " or\n" \ 2954 " or\n" \
2955 "$ nameif -c /etc/my_mactab_file\n" \ 2955 "$ nameif -c /etc/my_mactab_file\n" \
2956 2956
2957#if !ENABLE_DESKTOP
2958
2959#if ENABLE_NC_SERVER || ENABLE_NC_EXTRA
2960#define NC_OPTIONS_STR "\n\nOptions:"
2961#else
2962#define NC_OPTIONS_STR
2963#endif
2964
2965#define nc_trivial_usage \
2966 IF_NC_EXTRA("[-iN] [-wN] ")IF_NC_SERVER("[-l] [-p PORT] ") \
2967 "["IF_NC_EXTRA("-f FILENAME|")"IPADDR PORT]"IF_NC_EXTRA(" [-e PROG]")
2968#define nc_full_usage "\n\n" \
2969 "Open a pipe to IP:port" IF_NC_EXTRA(" or file") \
2970 NC_OPTIONS_STR \
2971 IF_NC_EXTRA( \
2972 "\n -e PROG Run PROG after connect" \
2973 "\n -i SEC Delay interval for lines sent" \
2974 "\n -w SEC Timeout for connect" \
2975 "\n -f FILE Use file (ala /dev/ttyS0) instead of network" \
2976 ) \
2977 IF_NC_SERVER( \
2978 "\n -l Listen mode, for inbound connects" \
2979 IF_NC_EXTRA( \
2980 "\n (use -l twice with -e for persistent server)") \
2981 "\n -p PORT Local port" \
2982 )
2983
2984#define nc_notes_usage "" \
2985 IF_NC_EXTRA( \
2986 "To use netcat as a terminal emulator on a serial port:\n\n" \
2987 "$ stty 115200 -F /dev/ttyS0\n" \
2988 "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \
2989 )
2990
2991#define nc_example_usage \
2992 "$ nc foobar.somedomain.com 25\n" \
2993 "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \
2994 "help\n" \
2995 "214-Commands supported:\n" \
2996 "214- HELO EHLO MAIL RCPT DATA AUTH\n" \
2997 "214 NOOP QUIT RSET HELP\n" \
2998 "quit\n" \
2999 "221 foobar closing connection\n"
3000
3001#else /* DESKTOP nc - much more compatible with nc 1.10 */
3002
3003#define nc_trivial_usage \
3004 "[OPTIONS] HOST PORT - connect" \
3005 IF_NC_SERVER("\n" \
3006 "nc [OPTIONS] -l -p PORT [HOST] [PORT] - listen")
3007#define nc_full_usage "\n\n" \
3008 "Options:" \
3009 "\n -e PROG Run PROG after connect (must be last)" \
3010 IF_NC_SERVER( \
3011 "\n -l Listen mode, for inbound connects" \
3012 ) \
3013 "\n -n Don't do DNS resolution" \
3014 "\n -s ADDR Local address" \
3015 "\n -p PORT Local port" \
3016 "\n -u UDP mode" \
3017 "\n -v Verbose" \
3018 "\n -w SEC Timeout for connects and final net reads" \
3019 IF_NC_EXTRA( \
3020 "\n -i SEC Delay interval for lines sent" /* ", ports scanned" */ \
3021 "\n -o FILE Hex dump traffic" \
3022 "\n -z Zero-I/O mode (scanning)" \
3023 ) \
3024/* "\n -r Randomize local and remote ports" */
3025/* "\n -g gateway Source-routing hop point[s], up to 8" */
3026/* "\n -G num Source-routing pointer: 4, 8, 12, ..." */
3027/* "\nport numbers can be individual or ranges: lo-hi [inclusive]" */
3028
3029/* -e PROG can take ARGS too: "nc ... -e ls -l", but we don't document it
3030 * in help text: nc 1.10 does not allow that. We don't want to entice
3031 * users to use this incompatibility */
3032
3033#endif
3034
3035#define netstat_trivial_usage \ 2957#define netstat_trivial_usage \
3036 "[-laentuwxr"IF_FEATURE_NETSTAT_WIDE("W")IF_FEATURE_NETSTAT_PRG("p")"]" 2958 "[-laentuwxr"IF_FEATURE_NETSTAT_WIDE("W")IF_FEATURE_NETSTAT_PRG("p")"]"
3037#define netstat_full_usage "\n\n" \ 2959#define netstat_full_usage "\n\n" \