From 1552ff7efb760214eb4e5afc97f200136a935643 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 31 Oct 2001 11:07:12 +0000 Subject: Move usage.h to include/usage.h --- include/applets.h | 3 +++ include/usage.h | 11 +++++++++++ 2 files changed, 14 insertions(+) (limited to 'include') 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 \ -- cgit v1.2.3