aboutsummaryrefslogtreecommitdiff
path: root/networking/netstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/netstat.c')
-rw-r--r--networking/netstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/netstat.c b/networking/netstat.c
index cadcb0e31..bc5c61974 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -21,7 +21,7 @@ extern void displayroutes(int noresolve, int netstatfmt);
21#define NETSTAT_CONNECTED 0x01 21#define NETSTAT_CONNECTED 0x01
22#define NETSTAT_LISTENING 0x02 22#define NETSTAT_LISTENING 0x02
23#define NETSTAT_NUMERIC 0x04 23#define NETSTAT_NUMERIC 0x04
24/* Must match getopt_ulflags option string */ 24/* Must match getopt32 option string */
25#define NETSTAT_TCP 0x10 25#define NETSTAT_TCP 0x10
26#define NETSTAT_UDP 0x20 26#define NETSTAT_UDP 0x20
27#define NETSTAT_RAW 0x40 27#define NETSTAT_RAW 0x40
@@ -526,7 +526,7 @@ int netstat_main(int argc, char **argv)
526 OPT_extended = 0x4, 526 OPT_extended = 0x4,
527 OPT_showroute = 0x100, 527 OPT_showroute = 0x100,
528 }; 528 };
529 unsigned long opt; 529 unsigned opt;
530#ifdef CONFIG_FEATURE_IPV6 530#ifdef CONFIG_FEATURE_IPV6
531 int inet = 1; 531 int inet = 1;
532 int inet6 = 1; 532 int inet6 = 1;
@@ -536,7 +536,7 @@ int netstat_main(int argc, char **argv)
536#endif 536#endif
537 537
538 /* Option string must match NETSTAT_xxx constants */ 538 /* Option string must match NETSTAT_xxx constants */
539 opt = bb_getopt_ulflags(argc, argv, "laentuwxr"); 539 opt = getopt32(argc, argv, "laentuwxr");
540 if (opt & 0x1) { // -l 540 if (opt & 0x1) { // -l
541 flags &= ~NETSTAT_CONNECTED; 541 flags &= ~NETSTAT_CONNECTED;
542 flags |= NETSTAT_LISTENING; 542 flags |= NETSTAT_LISTENING;