aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h11
2 files changed, 14 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index b0536ac01..44d274b85 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -311,6 +311,9 @@
#ifdef CONFIG_NC
APPLET(nc, nc_main, _BB_DIR_USR_BIN)
#endif
+#ifdef CONFIG_NETSTAT
+ APPLET(netstat, netstat_main, _BB_DIR_BIN)
+#endif
#ifdef CONFIG_NSLOOKUP
APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index bbed44d0c..46c11c2a3 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1225,6 +1225,17 @@
"quit\n" \
"221 foobar closing connection\n"
+#define netstat_trivial_usage \
+ "[-lantuwx]"
+#define netstat_full_usage \
+ "-l display listening server sockets\n" \
+ "-a display all sockets (default: connected)\n" \
+ "-n don't resolve names\n" \
+ "-t tcp sockets\n" \
+ "-u udp sockets\n" \
+ "-w raw sockets\n" \
+ "-x unix sockets\n"
+
#define nslookup_trivial_usage \
"[HOST] [SERVER]"
#define nslookup_full_usage \