networking/netstat.c: PRINT_IP_MAX_SIZE_WIDE constant
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Sat May 17 08:12:01 UTC 2008
Wouldn't this be more flexible?
---8<---
--- networking/netstat.c (revision 21996)
+++ networking/netstat.c (working copy)
@@ -85,7 +85,7 @@
* IPv6 addresses, i.e. addresses of the form
* xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:ddd.ddd.ddd.ddd
*/
-#define PRINT_IP_MAX_SIZE_WIDE 51 /* INET6_ADDRSTRLEN + 5 for the port number */
+#define PRINT_IP_MAX_SIZE_WIDE (INET6_ADDRSTRLEN + 5) /* 5 for the port number */
#define PRINT_NET_CONN_WIDE "%s %6ld %6ld %-51s %-51s %-12s\n"
#define PRINT_NET_CONN_HEADER_WIDE "\nProto Recv-Q Send-Q %-51s %-51s State\n"
---8<---
Cheers,
--
Cristian
More information about the busybox
mailing list