[Bug 513837] [NEW] socklist in procinfo does not list tcp6, udp6, or raw6.

aporter adrian-j6-qq at aporter.org
Thu Jan 28 15:54:53 UTC 2010


Public bug reported:

Binary package hint: procinfo

/usr/bin/socklist (in karmic, lucid, etc) doesn't list tcp6, udp6, or
raw6.

This can be found and fixed in some other bug reporting applications like opensuse in 2007:
  https://bugzilla.novell.com/show_bug.cgi?id=280032

It's a trivial fix.  The patch is below:

--- socklist.orig   2010-01-28 10:33:43.977683369 -0500
+++ socklist    2010-01-28 10:33:25.757680751 -0500
@@ -87,12 +87,15 @@
            ($cmd) = ( $l=~/Name:\s*(\S+)/ );
            close(CMD);
    }
-        printf "%s %6d %10d  %6d %6d %4d  %s\n",
+        printf "%-4s%6d %10d  %6d %6d %4d  %s\n",
             $_[0], $a ,$F[9], $F[7], $pid, $fd, $cmd;
     }
     close(FILE);
 }

 scheck("tcp");
+scheck("tcp6");
 scheck("udp");
+scheck("udp6");
 scheck("raw");
+scheck("raw6");


(also attached)
The socklist in ubuntu right now doesn't list all of the ports.  Some open ports ONLY show up in tcp6 and udp6.

thanks,

** Affects: procinfo (Ubuntu)
     Importance: Undecided
         Status: New

-- 
socklist in procinfo does not list tcp6, udp6, or raw6.
https://bugs.launchpad.net/bugs/513837
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list