3
ss
工具是模擬到netstat
。 ss使用記錄非常糟糕的NETLINK庫(man 7 netlink
)。我無法在網上找到如何正確使用NETLINK_INET_DIAG功能。 ss工具的源代碼會有所幫助,但我也找不到它。任何建議將非常感激。獲取linux的/ bin/ss工具的源代碼
[email protected]:~# 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
[email protected]:~# apt-get source ss
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for ss
可以運行'dpkg -S /斌/ ss'讓擁有此文件的包的名稱。 – rodrigo