diff options
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h index c729532e5..fe4cd903c 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2314,6 +2314,8 @@ | |||
2314 | " or\n" \ | 2314 | " or\n" \ |
2315 | "$ nameif -c /etc/my_mactab_file\n" \ | 2315 | "$ nameif -c /etc/my_mactab_file\n" \ |
2316 | 2316 | ||
2317 | #if !ENABLE_DESKTOP | ||
2318 | |||
2317 | #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA | 2319 | #if ENABLE_NC_SERVER || ENABLE_NC_EXTRA |
2318 | #define NC_OPTIONS_STR "\n\nOptions:" | 2320 | #define NC_OPTIONS_STR "\n\nOptions:" |
2319 | #else | 2321 | #else |
@@ -2356,6 +2358,35 @@ | |||
2356 | "quit\n" \ | 2358 | "quit\n" \ |
2357 | "221 foobar closing connection\n" | 2359 | "221 foobar closing connection\n" |
2358 | 2360 | ||
2361 | #else /* DESKTOP nc - much more compatible with nc 1.10 */ | ||
2362 | |||
2363 | #define nc_trivial_usage \ | ||
2364 | "[-options] hostname port - connect" \ | ||
2365 | USE_NC_SERVER("\nnc [-options] -l -p port [hostname] [port] - listen") | ||
2366 | #define nc_full_usage \ | ||
2367 | USE_NC_SERVER( \ | ||
2368 | "-l Listen mode, for inbound connects\n" \ | ||
2369 | ) \ | ||
2370 | "-n Do not do DNS resolution" \ | ||
2371 | "\n-s addr Local address" \ | ||
2372 | "\n-p port Local port" \ | ||
2373 | "\n-u UDP mode" \ | ||
2374 | "\n-v Verbose (cumulative: -vv)" \ | ||
2375 | "\n-w secs Timeout for connects and final net reads" \ | ||
2376 | USE_NC_EXTRA( \ | ||
2377 | "\n-i sec Delay interval for lines sent" /* ", ports scanned" */ \ | ||
2378 | "\n-o file Hex dump of traffic" \ | ||
2379 | "\n-z Zero-I/O mode (scanning)" \ | ||
2380 | ) \ | ||
2381 | "\n-e prog [args] Program to exec after connect (must be last)" \ | ||
2382 | /* "\n-r Randomize local and remote ports" */ | ||
2383 | /* "\n-g gateway Source-routing hop point[s], up to 8" */ | ||
2384 | /* "\n-G num Source-routing pointer: 4, 8, 12, ..." */ | ||
2385 | /* "\nport numbers can be individual or ranges: lo-hi [inclusive]" */ | ||
2386 | |||
2387 | #endif | ||
2388 | |||
2389 | |||
2359 | #define netstat_trivial_usage \ | 2390 | #define netstat_trivial_usage \ |
2360 | "[-laenrtuwx]" | 2391 | "[-laenrtuwx]" |
2361 | #define netstat_full_usage \ | 2392 | #define netstat_full_usage \ |