diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-15 18:55:53 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-15 18:55:53 +0200 |
commit | 3c34f681b35233afb7f932154e72f3eb2b335b47 (patch) | |
tree | 97c252af77d990f70418b261ad994186cb86b324 /networking/nc.c | |
parent | 7735e52df440411ccaeb5df2824e5ba1ce4c161e (diff) | |
download | busybox-w32-3c34f681b35233afb7f932154e72f3eb2b335b47.tar.gz busybox-w32-3c34f681b35233afb7f932154e72f3eb2b335b47.tar.bz2 busybox-w32-3c34f681b35233afb7f932154e72f3eb2b335b47.zip |
netcat: net applet (alias to nc)
function old new delta
packed_usage 31807 31856 +49
applet_names 2701 2708 +7
applet_main 1560 1564 +4
applet_install_loc 195 196 +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 61/0) Total: 61 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/nc.c')
-rw-r--r-- | networking/nc.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/networking/nc.c b/networking/nc.c index a13d77a00..f7fc9741f 100644 --- a/networking/nc.c +++ b/networking/nc.c | |||
@@ -13,17 +13,23 @@ | |||
13 | //config: A simple Unix utility which reads and writes data across network | 13 | //config: A simple Unix utility which reads and writes data across network |
14 | //config: connections. | 14 | //config: connections. |
15 | //config: | 15 | //config: |
16 | //config:config NETCAT | ||
17 | //config: bool "netcat (11 kb)" | ||
18 | //config: default n | ||
19 | //config: help | ||
20 | //config: Alias to nc. | ||
21 | //config: | ||
16 | //config:config NC_SERVER | 22 | //config:config NC_SERVER |
17 | //config: bool "Netcat server options (-l)" | 23 | //config: bool "Netcat server options (-l)" |
18 | //config: default y | 24 | //config: default y |
19 | //config: depends on NC | 25 | //config: depends on NC || NETCAT |
20 | //config: help | 26 | //config: help |
21 | //config: Allow netcat to act as a server. | 27 | //config: Allow netcat to act as a server. |
22 | //config: | 28 | //config: |
23 | //config:config NC_EXTRA | 29 | //config:config NC_EXTRA |
24 | //config: bool "Netcat extensions (-eiw and -f FILE)" | 30 | //config: bool "Netcat extensions (-eiw and -f FILE)" |
25 | //config: default y | 31 | //config: default y |
26 | //config: depends on NC | 32 | //config: depends on NC || NETCAT |
27 | //config: help | 33 | //config: help |
28 | //config: Add -e (support for executing the rest of the command line after | 34 | //config: Add -e (support for executing the rest of the command line after |
29 | //config: making or receiving a successful connection), -i (delay interval for | 35 | //config: making or receiving a successful connection), -i (delay interval for |
@@ -31,8 +37,8 @@ | |||
31 | //config: | 37 | //config: |
32 | //config:config NC_110_COMPAT | 38 | //config:config NC_110_COMPAT |
33 | //config: bool "Netcat 1.10 compatibility (+2.5k)" | 39 | //config: bool "Netcat 1.10 compatibility (+2.5k)" |
34 | //config: default n # off specially for Rob | 40 | //config: default y |
35 | //config: depends on NC | 41 | //config: depends on NC || NETCAT |
36 | //config: help | 42 | //config: help |
37 | //config: This option makes nc closely follow original nc-1.10. | 43 | //config: This option makes nc closely follow original nc-1.10. |
38 | //config: The code is about 2.5k bigger. It enables | 44 | //config: The code is about 2.5k bigger. It enables |
@@ -40,8 +46,11 @@ | |||
40 | //config: busybox-specific extensions: -f FILE. | 46 | //config: busybox-specific extensions: -f FILE. |
41 | 47 | ||
42 | //applet:IF_NC(APPLET(nc, BB_DIR_USR_BIN, BB_SUID_DROP)) | 48 | //applet:IF_NC(APPLET(nc, BB_DIR_USR_BIN, BB_SUID_DROP)) |
49 | // APPLET_ODDNAME:name main location suid_type help | ||
50 | //applet:IF_NETCAT(APPLET_ODDNAME(netcat, nc, BB_DIR_USR_BIN, BB_SUID_DROP, nc)) | ||
43 | 51 | ||
44 | //kbuild:lib-$(CONFIG_NC) += nc.o | 52 | //kbuild:lib-$(CONFIG_NC) += nc.o |
53 | //kbuild:lib-$(CONFIG_NETCAT) += nc.o | ||
45 | 54 | ||
46 | #include "libbb.h" | 55 | #include "libbb.h" |
47 | #include "common_bufsiz.h" | 56 | #include "common_bufsiz.h" |