From 77cc2c5738d780b97b56af49510ed64d61ad2e2d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 27 Jun 2010 04:22:02 +0200 Subject: nc: introduce CONFIG_NC_110_COMPAT option. Signed-off-by: Denys Vlasenko --- include/usage.src.h | 78 ----------------------------------------------------- 1 file changed, 78 deletions(-) (limited to 'include') 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 " or\n" \ "$ nameif -c /etc/my_mactab_file\n" \ -#if !ENABLE_DESKTOP - -#if ENABLE_NC_SERVER || ENABLE_NC_EXTRA -#define NC_OPTIONS_STR "\n\nOptions:" -#else -#define NC_OPTIONS_STR -#endif - -#define nc_trivial_usage \ - IF_NC_EXTRA("[-iN] [-wN] ")IF_NC_SERVER("[-l] [-p PORT] ") \ - "["IF_NC_EXTRA("-f FILENAME|")"IPADDR PORT]"IF_NC_EXTRA(" [-e PROG]") -#define nc_full_usage "\n\n" \ - "Open a pipe to IP:port" IF_NC_EXTRA(" or file") \ - NC_OPTIONS_STR \ - IF_NC_EXTRA( \ - "\n -e PROG Run PROG after connect" \ - "\n -i SEC Delay interval for lines sent" \ - "\n -w SEC Timeout for connect" \ - "\n -f FILE Use file (ala /dev/ttyS0) instead of network" \ - ) \ - IF_NC_SERVER( \ - "\n -l Listen mode, for inbound connects" \ - IF_NC_EXTRA( \ - "\n (use -l twice with -e for persistent server)") \ - "\n -p PORT Local port" \ - ) - -#define nc_notes_usage "" \ - IF_NC_EXTRA( \ - "To use netcat as a terminal emulator on a serial port:\n\n" \ - "$ stty 115200 -F /dev/ttyS0\n" \ - "$ stty raw -echo -ctlecho && nc -f /dev/ttyS0\n" \ - ) - -#define nc_example_usage \ - "$ nc foobar.somedomain.com 25\n" \ - "220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600\n" \ - "help\n" \ - "214-Commands supported:\n" \ - "214- HELO EHLO MAIL RCPT DATA AUTH\n" \ - "214 NOOP QUIT RSET HELP\n" \ - "quit\n" \ - "221 foobar closing connection\n" - -#else /* DESKTOP nc - much more compatible with nc 1.10 */ - -#define nc_trivial_usage \ - "[OPTIONS] HOST PORT - connect" \ - IF_NC_SERVER("\n" \ - "nc [OPTIONS] -l -p PORT [HOST] [PORT] - listen") -#define nc_full_usage "\n\n" \ - "Options:" \ - "\n -e PROG Run PROG after connect (must be last)" \ - IF_NC_SERVER( \ - "\n -l Listen mode, for inbound connects" \ - ) \ - "\n -n Don't do DNS resolution" \ - "\n -s ADDR Local address" \ - "\n -p PORT Local port" \ - "\n -u UDP mode" \ - "\n -v Verbose" \ - "\n -w SEC Timeout for connects and final net reads" \ - IF_NC_EXTRA( \ - "\n -i SEC Delay interval for lines sent" /* ", ports scanned" */ \ - "\n -o FILE Hex dump traffic" \ - "\n -z Zero-I/O mode (scanning)" \ - ) \ -/* "\n -r Randomize local and remote ports" */ -/* "\n -g gateway Source-routing hop point[s], up to 8" */ -/* "\n -G num Source-routing pointer: 4, 8, 12, ..." */ -/* "\nport numbers can be individual or ranges: lo-hi [inclusive]" */ - -/* -e PROG can take ARGS too: "nc ... -e ls -l", but we don't document it - * in help text: nc 1.10 does not allow that. We don't want to entice - * users to use this incompatibility */ - -#endif - #define netstat_trivial_usage \ "[-laentuwxr"IF_FEATURE_NETSTAT_WIDE("W")IF_FEATURE_NETSTAT_PRG("p")"]" #define netstat_full_usage "\n\n" \ -- cgit v1.2.3