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/ipcalc.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/ipcalc.c')
-rw-r--r-- | networking/ipcalc.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/networking/ipcalc.c b/networking/ipcalc.c index f4bacd7dc..21219424f 100644 --- a/networking/ipcalc.c +++ b/networking/ipcalc.c | |||
@@ -11,6 +11,31 @@ | |||
11 | * | 11 | * |
12 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 12 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
13 | */ | 13 | */ |
14 | //config:config IPCALC | ||
15 | //config: bool "ipcalc" | ||
16 | //config: default y | ||
17 | //config: help | ||
18 | //config: ipcalc takes an IP address and netmask and calculates the | ||
19 | //config: resulting broadcast, network, and host range. | ||
20 | //config: | ||
21 | //config:config FEATURE_IPCALC_FANCY | ||
22 | //config: bool "Fancy IPCALC, more options, adds 1 kbyte" | ||
23 | //config: default y | ||
24 | //config: depends on IPCALC | ||
25 | //config: help | ||
26 | //config: Adds the options hostname, prefix and silent to the output of | ||
27 | //config: "ipcalc". | ||
28 | //config: | ||
29 | //config:config FEATURE_IPCALC_LONG_OPTIONS | ||
30 | //config: bool "Enable long options" | ||
31 | //config: default y | ||
32 | //config: depends on IPCALC && LONG_OPTS | ||
33 | //config: help | ||
34 | //config: Support long options for the ipcalc applet. | ||
35 | |||
36 | //applet:IF_IPCALC(APPLET(ipcalc, BB_DIR_BIN, BB_SUID_DROP)) | ||
37 | |||
38 | //kbuild:lib-$(CONFIG_IPCALC) += ipcalc.o | ||
14 | 39 | ||
15 | //usage:#define ipcalc_trivial_usage | 40 | //usage:#define ipcalc_trivial_usage |
16 | //usage: "[OPTIONS] ADDRESS" | 41 | //usage: "[OPTIONS] ADDRESS" |