5

ss工具类似于netstat. ss 使用的 NETLINK 库记录得非常糟糕(man 7 netlink)。我在网上找不到如何正确使用 NETLINK_INET_DIAG 功能。ss 工具的源代码会有所帮助,但我也找不到。任何建议将不胜感激。

root@ubuntu:~# uname -a
Linux ubuntu 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686 i686 i386 GNU/Linux

root@ubuntu:~# apt-get source ss
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for ss
4

1 回答 1

5

您正在搜索的包是:iproute

试试apt-get source iproute吧。您将在 中找到源代码misc/ss.c

注意:您可以使用ubuntu 包搜索工具并转到“搜索包的内容”

于 2014-01-06T11:02:58.967 回答