diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-03 23:23:10 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-03 23:23:10 +0000 |
commit | 561b2db47066af562d596a45b36e555fbf2955bb (patch) | |
tree | 3c14327a15979a5c4ccb98fc7b007a42bc685951 /include/usage.h | |
parent | 3b913ba9d19dc6a03166f38aa9981ac9ddd1e77e (diff) | |
download | busybox-w32-561b2db47066af562d596a45b36e555fbf2955bb.tar.gz busybox-w32-561b2db47066af562d596a45b36e555fbf2955bb.tar.bz2 busybox-w32-561b2db47066af562d596a45b36e555fbf2955bb.zip |
ipsvd: make udpsvd work similar to tcpsvd (multiple parallel
children for several streams of udp packets tested to work)
code size: -509 bytes
git-svn-id: svn://busybox.net/trunk/busybox@18316 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/usage.h b/include/usage.h index bab14f5c3..5f1bf24cb 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -3331,7 +3331,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
3331 | /* "[-hpEvv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] [-i dir|-x cdb] [ -t sec] ip port prog..." */ | 3331 | /* "[-hpEvv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] [-i dir|-x cdb] [ -t sec] ip port prog..." */ |
3332 | #define tcpsvd_full_usage \ | 3332 | #define tcpsvd_full_usage \ |
3333 | "Creates TCP socket, binds it to host:port and listens on in\n" \ | 3333 | "Creates TCP socket, binds it to host:port and listens on in\n" \ |
3334 | "for incoming connections. For each connection it runs prog" \ | 3334 | "for incoming connections. For each connection it runs prog." \ |
3335 | "\n" \ | 3335 | "\n" \ |
3336 | "\nip IP to listen on. '0' = all" \ | 3336 | "\nip IP to listen on. '0' = all" \ |
3337 | "\nport Port to listen on" \ | 3337 | "\nport Port to listen on" \ |
@@ -3339,27 +3339,29 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
3339 | "\n-l name Local hostname (else looks up local hostname in DNS)" \ | 3339 | "\n-l name Local hostname (else looks up local hostname in DNS)" \ |
3340 | "\n-u user[:group] Change to user/group after bind" \ | 3340 | "\n-u user[:group] Change to user/group after bind" \ |
3341 | "\n-c n Handle up to n connections simultaneously" \ | 3341 | "\n-c n Handle up to n connections simultaneously" \ |
3342 | "\n-b n Allow a backlog of approximately n TCP SYNs" \ | ||
3342 | "\n-C n[:msg] Allow only up to n connections from the same IP" \ | 3343 | "\n-C n[:msg] Allow only up to n connections from the same IP" \ |
3343 | "\n New connections from this IP address are closed" \ | 3344 | "\n New connections from this IP address are closed" \ |
3344 | "\n immediately. 'msg' is written to the peer before close" \ | 3345 | "\n immediately. 'msg' is written to the peer before close" \ |
3345 | "\n-h Look up peer's hostname" \ | 3346 | "\n-h Look up peer's hostname" \ |
3346 | "\n-b n Allow a backlog of approximately n TCP SYNs" \ | ||
3347 | "\n-E Do not set up TCP-related environment variables" \ | 3347 | "\n-E Do not set up TCP-related environment variables" \ |
3348 | "\n-v Verbose" | 3348 | "\n-v Verbose" |
3349 | 3349 | ||
3350 | #define udpsvd_trivial_usage \ | 3350 | #define udpsvd_trivial_usage \ |
3351 | "[-hv] [-u user] [-l name] host port prog" | 3351 | "[-hEv] [-u user] [-l name] host port prog" |
3352 | #define udpsvd_full_usage \ | 3352 | #define udpsvd_full_usage \ |
3353 | "Creates UDP socket, binds it to host:port and listens on in\n" \ | 3353 | "Creates UDP socket, binds it to host:port and listens on in\n" \ |
3354 | "for incoming packets. When packet arrives it runs prog.\n" \ | 3354 | "for incoming packets. For each packet it runs prog\n" \ |
3355 | "When prog exits, it start to listen on the socket again" \ | 3355 | "(redirecting all further packets with same peer ip:port to it)." \ |
3356 | "\n" \ | 3356 | "\n" \ |
3357 | "\nip IP to listen on. '0' = all" \ | 3357 | "\nip IP to listen on. '0' = all" \ |
3358 | "\nport Port to listen on" \ | 3358 | "\nport Port to listen on" \ |
3359 | "\nprog [arg] Program to run" \ | 3359 | "\nprog [arg] Program to run" \ |
3360 | "\n-l name Local hostname (else looks up local hostname in DNS)" \ | 3360 | "\n-l name Local hostname (else looks up local hostname in DNS)" \ |
3361 | "\n-u user[:group] Change to user/group after bind" \ | 3361 | "\n-u user[:group] Change to user/group after bind" \ |
3362 | "\n-c n Handle up to n connections simultaneously" \ | ||
3362 | "\n-h Look up peer's hostname" \ | 3363 | "\n-h Look up peer's hostname" \ |
3364 | "\n-E Do not set up TCP-related environment variables" \ | ||
3363 | "\n-v Verbose" | 3365 | "\n-v Verbose" |
3364 | 3366 | ||
3365 | #define tftp_trivial_usage \ | 3367 | #define tftp_trivial_usage \ |