문제

ss tool is analogue to netstat. ss uses NETLINK libraries documented really bad (man 7 netlink). I couldn't find online how properly use NETLINK_INET_DIAG feature. Source code for ss tool would help, but I can't find it either. Any advice would be really appreciated.

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
도움이 되었습니까?

해결책

The package that you are searching for is: iproute

Try apt-get source iproute instead. You will find the source code in misc/ss.c.

NOTE: You can use the ubuntu packages search tool and go to "Search the contents of packages"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top