diff options
author | Denys Vlasenko | 2016-11-23 09:05:14 +0100 |
---|---|---|
committer | Denys Vlasenko | 2016-11-23 09:05:14 +0100 |
commit | 47367e1d50b81501e8a6ce215f8be4eeacdda693 (patch) | |
tree | 28be64a4a758a274ef2459628ec29384722cd3fb /networking/ipcalc.c | |
parent | e32b64c4ec9272295df6852fb2a2888d7799d2f0 (diff) | |
download | busybox-47367e1d50b81501e8a6ce215f8be4eeacdda693.zip busybox-47367e1d50b81501e8a6ce215f8be4eeacdda693.tar.gz |
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 f4bacd7..2121942 100644 --- a/networking/ipcalc.c +++ b/networking/ipcalc.c @@ -11,6 +11,31 @@ * * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ +//config:config IPCALC +//config: bool "ipcalc" +//config: default y +//config: help +//config: ipcalc takes an IP address and netmask and calculates the +//config: resulting broadcast, network, and host range. +//config: +//config:config FEATURE_IPCALC_FANCY +//config: bool "Fancy IPCALC, more options, adds 1 kbyte" +//config: default y +//config: depends on IPCALC +//config: help +//config: Adds the options hostname, prefix and silent to the output of +//config: "ipcalc". +//config: +//config:config FEATURE_IPCALC_LONG_OPTIONS +//config: bool "Enable long options" +//config: default y +//config: depends on IPCALC && LONG_OPTS +//config: help +//config: Support long options for the ipcalc applet. + +//applet:IF_IPCALC(APPLET(ipcalc, BB_DIR_BIN, BB_SUID_DROP)) + +//kbuild:lib-$(CONFIG_IPCALC) += ipcalc.o //usage:#define ipcalc_trivial_usage //usage: "[OPTIONS] ADDRESS" |