inodes in unix domain sockets are now padded to 8chars (netstat -x)
authorBernd Eckenfels <net-tools@lina.inka.de>
Tue, 19 Feb 2002 01:12:49 +0000 (01:12 +0000)
committerBernd Eckenfels <net-tools@lina.inka.de>
Tue, 19 Feb 2002 01:12:49 +0000 (01:12 +0000)
netstat.c

index 4d1064e..fe4f620 100644 (file)
--- a/netstat.c
+++ b/netstat.c
@@ -6,7 +6,7 @@
  *              NET-3 Networking Distribution for the LINUX operating
  *              system.
  *
- * Version:     $Id: netstat.c,v 1.46 2002/02/19 00:55:35 ecki Exp $
+ * Version:     $Id: netstat.c,v 1.47 2002/02/19 01:12:49 ecki Exp $
  *
  * Authors:     Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
  *              Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
@@ -1212,9 +1212,9 @@ static void unix_do_one(int nr, const char *line)
     printf("%-5s %-6ld %-11s %-10s %-13s ",
           ss_proto, refcnt, ss_flags, ss_type, ss_state);
     if (has & HAS_INODE)
-       printf("%-6lu ",inode);
+       printf("%-8lu ",inode);
     else
-       printf("-      ");
+       printf("-        ");
     if (flag_prg)
        printf("%-" PROGNAME_WIDTHs "s",(has & HAS_INODE?prg_cache_get(inode):"-"));
     puts(path);