summaryrefslogtreecommitdiff
path: root/networking/netstat.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-11-23 09:05:14 +0100
committerDenys Vlasenko2016-11-23 09:05:14 +0100
commit47367e1d50b81501e8a6ce215f8be4eeacdda693 (patch)
tree28be64a4a758a274ef2459628ec29384722cd3fb /networking/netstat.c
parente32b64c4ec9272295df6852fb2a2888d7799d2f0 (diff)
downloadbusybox-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/netstat.c')
-rw-r--r--networking/netstat.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/networking/netstat.c b/networking/netstat.c
index 2196d42..90da6cd 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -13,6 +13,32 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+//config:config NETSTAT
+//config: bool "netstat"
+//config: default y
+//config: select PLATFORM_LINUX
+//config: help
+//config: netstat prints information about the Linux networking subsystem.
+//config:
+//config:config FEATURE_NETSTAT_WIDE
+//config: bool "Enable wide netstat output"
+//config: default y
+//config: depends on NETSTAT
+//config: help
+//config: Add support for wide columns. Useful when displaying IPv6 addresses
+//config: (-W option).
+//config:
+//config:config FEATURE_NETSTAT_PRG
+//config: bool "Enable PID/Program name output"
+//config: default y
+//config: depends on NETSTAT
+//config: help
+//config: Add support for -p flag to print out PID and program name.
+//config: +700 bytes of code.
+
+//applet:IF_NETSTAT(APPLET(netstat, BB_DIR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_NETSTAT) += netstat.o
#include "libbb.h"
#include "inet_common.h"