diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 09:05:14 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 09:05:14 +0100 |
commit | 47367e1d50b81501e8a6ce215f8be4eeacdda693 (patch) | |
tree | 28be64a4a758a274ef2459628ec29384722cd3fb /networking/tcpudp.c | |
parent | e32b64c4ec9272295df6852fb2a2888d7799d2f0 (diff) | |
download | busybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.tar.gz busybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.tar.bz2 busybox-w32-47367e1d50b81501e8a6ce215f8be4eeacdda693.zip |
Convert all networking/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tcpudp.c')
-rw-r--r-- | networking/tcpudp.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/networking/tcpudp.c b/networking/tcpudp.c index b27cf3ea9..94c89b9ef 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c | |||
@@ -28,6 +28,25 @@ | |||
28 | * with wrong source IP... | 28 | * with wrong source IP... |
29 | * - don't know how to retrieve ORIGDST for udp. | 29 | * - don't know how to retrieve ORIGDST for udp. |
30 | */ | 30 | */ |
31 | //config:config TCPSVD | ||
32 | //config: bool "tcpsvd" | ||
33 | //config: default y | ||
34 | //config: help | ||
35 | //config: tcpsvd listens on a TCP port and runs a program for each new | ||
36 | //config: connection. | ||
37 | //config: | ||
38 | //config:config UDPSVD | ||
39 | //config: bool "udpsvd" | ||
40 | //config: default y | ||
41 | //config: help | ||
42 | //config: udpsvd listens on an UDP port and runs a program for each new | ||
43 | //config: connection. | ||
44 | |||
45 | //applet:IF_TCPSVD(APPLET_ODDNAME(tcpsvd, tcpudpsvd, BB_DIR_USR_BIN, BB_SUID_DROP, tcpsvd)) | ||
46 | //applet:IF_UDPSVD(APPLET_ODDNAME(udpsvd, tcpudpsvd, BB_DIR_USR_BIN, BB_SUID_DROP, udpsvd)) | ||
47 | |||
48 | //kbuild:lib-$(CONFIG_TCPSVD) += tcpudp.o tcpudp_perhost.o | ||
49 | //kbuild:lib-$(CONFIG_UDPSVD) += tcpudp.o tcpudp_perhost.o | ||
31 | 50 | ||
32 | //usage:#define tcpsvd_trivial_usage | 51 | //usage:#define tcpsvd_trivial_usage |
33 | //usage: "[-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG" | 52 | //usage: "[-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG" |