History log of /external/iproute2/misc/ss.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
910b039771dd655e53bccaea6e82735718ab4e61 03-May-2012 Shan Wei <shanwei88@gmail.com> ss: use new INET_DIAG_SKMEMINFO option to get more memory information for tcp socket

INET_DIAG_SKMEMINFO is used to monitor socket memory information
which contains more information than INET_DIAG_MEMINFO.

-m option is retained for old kernel that don't surpport INET_DIAG_SKMEMINFO.

Signed-off-by: Shan Wei <davidshan@tencent.com>
/external/iproute2/misc/ss.c
930a75f9257a3e00fcfede94de5a4516fe34bd22 10-Apr-2012 Eric Dumazet <eric.dumazet@gmail.com> Fix ss if INET_DIAG not enabled in kernel

If kernel doesn't have INET_DIAG and using newish version of iproute
nothing would be displayed.
/external/iproute2/misc/ss.c
ff24746cca1ef0c92d46614158e6672acd6b63d3 10-Apr-2012 Stephen Hemminger <shemminger@vyatta.com> Convert to use rta_getattr_ functions

User new functions (inspired by libmnl) to do type safe access
of routeing attributes
/external/iproute2/misc/ss.c
2728f598bbeb6d4b7cc7f65a774ab70fdca04ab4 17-Feb-2012 Stephen Hemminger <shemminger@vyatta.com> ss: simplify code

Rather than copy-pasting code using sendmsg/recvmsg, use the simpler
send() and recv() system calls.
/external/iproute2/misc/ss.c
c51577cd133a4b569349983f2e49933d0a124a0b 16-Feb-2012 Matt Tierney <tierney@cs.nyu.edu> ss: Close file descriptors in tcp_show_netlink.

ss: Close file descriptors in tcp_show_netlink.

Signed-off-by: Matt Tierney <tierney@cs.nyu.edu>
/external/iproute2/misc/ss.c
a3fd8e58c1787af186f5c4b234ff974544f840b6 30-Jan-2012 Eric Dumazet <eric.dumazet@gmail.com> ss: should support CONFIG_INET_UDP_DIAG=n kernels

ss -x currently fails if CONFIG_INET_UDP_DIAG=n or old kernels

Also close file descriptors while we are at it.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
/external/iproute2/misc/ss.c
f6062360100ada8cbaac5b837c85c8f2f3e0765d 20-Jan-2012 Stephen Hemminger <shemminger@vyatta.com> Fix unix socket diagnostic build

Get updated headers incorporated into build environment
and include required sock_diag.h.
/external/iproute2/misc/ss.c
dfbaa90dec05d3798ad845db20e1b273ffcfcf0a 15-Dec-2011 Pavel Emelyanov <xemul@parallels.com> iproute: Dump unix sockets via netlink

Get the same info as from /proc file plus the peer inode.

Applies on top of new sock diag patch and udp diag patch.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
/external/iproute2/misc/ss.c
719b958bbdfd1cb85d4b59826c503d0982322a9d 16-Nov-2011 Eric Dumazet <eric.dumazet@gmail.com> ss: report ecnseen

Support ECNSEEN reporting in ss command.

ESTAB 0 0 10.170.73.123:4900
10.170.73.125:51001 uid:501 ino:385994 sk:f31e5f00
mem:(r0,w0,f0,t0) ts sack ecn ecnseen bic wscale:8,8 rto:210
rtt:18.75/15 ato:40 cwnd:10 send 69.9Mbps rcv_space:32768

"ecn" means TCP session negociated ECN capability (TCP layer) at setup
time

"ecnseen" at least one frame with ECT(0) or ECT(1) or ECN (IP layer) was
received from peer.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
/external/iproute2/misc/ss.c
16963ce6f01f94d1f5486008c4d73f5612beb1a6 16-Nov-2011 Petr Šabata <contyk@redhat.com> Display closed UDP sockets on 'ss -ul'

This patch emulates 'netstat -ul' behavior, showing 'closed'
(state 07) UDP sockets when ss is called with '-ul' options.
Although dirty, this seems like the least invasive way to fix
it and shouldn't really break anything.

Signed-off-by: Petr Šabata <contyk@redhat.com>
/external/iproute2/misc/ss.c
788731b320f87db9dc99638d2e3cf94bca245c6d 13-Oct-2011 Thomas Jarosch <thomas.jarosch@intra2net.com> Fix unterminated readlink() buffer usage

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
/external/iproute2/misc/ss.c
2bcc3c16293fc049e29989a2ddeffe71a1cf3910 03-Oct-2011 Thomas Jarosch <thomas.jarosch@intra2net.com> Fix pipe I/O stream descriptor leak in init_service_resolver()

Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
/external/iproute2/misc/ss.c
583de1498e05e5a826b217cc645f92ce0bd015e8 06-Oct-2011 Petr Sabata <contyk@redhat.com> iproute2: ss - fix missing parameters

Signed-off-by: Petr Sabata <contyk@redhat.com>
/external/iproute2/misc/ss.c
18445b3e92ae9c7dd7effe191200d5a1a784388b 30-Jun-2011 Stephen Hemminger <shemminger@vyatta.com> ss: check result of readlink

Don't ignore readlink failure.
/external/iproute2/misc/ss.c
df39de8d2485d24bf5e64201dae191e9ed6ccb0e 20-Jun-2011 Eric Dumazet <eric.dumazet@gmail.com> ss: fix autobound filter

Fixes following error. We currently provide garbage data to kernel, that
can abort the validation process or produce unexpected results.

$ ss -a autobound
State Recv-Q Send-Q Local Address:Port Peer Address:Port
TCPDIAG answers: Invalid argument

After patch:

$ misc/ss -a autobound
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:44624 *:*
ESTAB 0 0 192.168.1.21:47141 74.125.79.109:imaps

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
/external/iproute2/misc/ss.c
fbc0f876fa011ef5f848911bd41b3033bf418bab 09-Jun-2010 Steve Fink <sphink@gmail.com> ss -p is much too slow

> On closer inspection, it appears that ss -p does a quadratic scan. It
> rescans every entry in /proc/*/fd/* repeatedly (once per listening
> port? per process? I don't remember what I figured out.)
>
> I humbly suggest that this is not a good idea.

Yep, this is junk. Please give this patch a try:

ss: Avoid quadradic complexity with '-p'

Scan the process list of open sockets once, and store in a hash
table to be used by subsequent find_user() calls.

Reported-by: Steve Fink <sphink@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
/external/iproute2/misc/ss.c
7a96e1997782044cdb834b6c086f6287d0e641c2 07-Dec-2009 Andreas Henriksson <andreas@fatal.se> iproute: make ss --help output to stdout

Peter Palfrader said in http://bugs.debian.org/545008 that
"--help output, if explicitly requested, should go to stdout, not stderr."
which this patch fixes.

Additionally, the exit code was adjusted to success if help was
explicitly requested.

(Syntax error still outputs to stderr and has the same exit code.)

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
/external/iproute2/misc/ss.c
daf49fd614345c8ab65840075b55d04ba5774629 11-Sep-2009 Eric Dumazet <eric.dumazet@gmail.com> ss: adds a space before congestion string

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
/external/iproute2/misc/ss.c
bbe3205336e6aef488cbbef42ca9e0180df3cdbb 11-Sep-2009 Eric Dumazet <eric.dumazet@gmail.com> ss: correct display of sk pointer

On 64bit arches, sk pointer was 32/32 reversed.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
/external/iproute2/misc/ss.c
a37b01c1f00bfbde57f424eec4e7fcfcabb7acfc 09-Sep-2008 Li Yewang <lyw@cn.fujitsu.com> distinguish the inet and inet6 domain when loading the tcp_diag module

When load the tcp_diag module, and use "ss -f inet" command to show the socket
information of inet domain. But this command also shows the information of inet6
domain, but not only inet domain. and "ss -f inet6", "ss -4", "ss -6" have the
same problem.

Signed-off-by: Li Yewang <lyw@cn.fujitsu.com>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/misc/ss.c
f70d96a41bb6f825c842eff5effd708bc15df059 09-Sep-2008 Li Yewang <lyw@cn.fujitsu.com> Fix the error of "ss -f inet -t"

when using the "ss -f inet -t" command to show the tcp socket information of
inet domain, we get the error message: "ss: no socket tables to show with such filter."

This patch can fix this bug.

Signed-off-by: Li Yewang <lyw@cn.fujitsu.com>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/misc/ss.c
2d44be19cf180d2ec965680b472b8e7acec78aca 20-Jun-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> timers are in user hz

The kernel timers are exposed in user hz not kernel hz
/external/iproute2/misc/ss.c
4c1db1310f398eade7dad2e1c295cccbb7222066 20-Jun-2008 Stephen Hemminger <stephen.hemminger@vyatta.com> use correct hz for rto,ato

The function get_hz() returns the psched hz value which is wrong
for anything other than tc usage. Should be user hz instead, but
kernel is broken (patch sent) and this code doesn't get hit on
current systems (netlink is used first).
/external/iproute2/misc/ss.c
69cae645b28edbba53c8601ddeba01430e5e9da0 03-Apr-2008 Björn Steinbrink <B.Steinbrink@gmx.de> ss: Fix return value checks for net_*_open

In ss.c, generic_proc_open(), for which the net_*_open functions are just
convenient wrappers, uses fopen, so errors are signalled by a NULL return
value. Some checks were expecting negative values instead, fix them.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/misc/ss.c
77aa4d03a7e54dc1cb40f4497a8882fb0c7deb48 31-Dec-2007 Stephen Hemminger <stephen.hemminger@vyatta.com> Use netinet/tcp.h (with correction) rather than kernel headers

Fix the userspace header file rather than importing more
kernel headers.

Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
/external/iproute2/misc/ss.c
ab01dbbb94b8620c2bc85e30e107c3a9f0870a73 18-Jul-2007 Stephen Hemminger <shemminger@osdl.org> Fix ss to handle partial records.

Output from /proc may include partial records, so rather than
trying to be sexy and do own parsing, just use stdio.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
/external/iproute2/misc/ss.c
e7113c61cbba87881ec1f4c321afc313be40b1ad 11-Jul-2007 Stephen Hemminger <shemminger@linux-foundation.org> ss: fix issues with signed inodes

Some parts of ss were incorrectly assuming inode number was int
not unsigned.
/external/iproute2/misc/ss.c
892db6942ae0f5f7295b54be8d924020e99a51fc 09-Feb-2007 Thomas Hisch <t.hisch@gmail.com> Fixes use of uninitialized string

store can be used uninitialized in generic_proc_open
if getenv(env) != NULL

Signed-off-by: Thomas Hisch <t.hisch@gmail.com>
/external/iproute2/misc/ss.c
ae665a522bd46bea44c5ea84c89c8b1731954170 05-Dec-2006 Stephen Hemminger <shemminger@osdl.org> Remove trailing whitespace

Go through source files and remove all trailing whitespace

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
/external/iproute2/misc/ss.c
351efcde4e62967362a10b29f3b701cfecd7cdfc 01-Sep-2005 shemminger <shemminger> Update header files to 2.6.14
Integrate support for DCCP and tcp_diag into ss
Add -batch to ip command
/external/iproute2/misc/ss.c
52d5ac3fcb616d3e1979fb91c12213aa2a5bf75e 06-Jul-2005 shemminger <shemminger> Fix build issues
/external/iproute2/misc/ss.c
ea8fc1047d2b88ae1d123e3f79dbffbc2a3fa70c 22-Jun-2005 shemminger <shemminger> Netem support for reorder
Update include files and add support for TCP_CONG
/external/iproute2/misc/ss.c
b9de3ecf94d0c8e2b1c628e69bd8dd6afe87aad5 19-Jan-2005 osdl.net!shemminger <osdl.net!shemminger> typo, extra /

(Logical change 1.133)
/external/iproute2/misc/ss.c
c3f346b00afc6ac801d04a8c4c91778fcea621a2 18-Jan-2005 osdl.net!shemminger <osdl.net!shemminger> typo in ss

(Logical change 1.132)
/external/iproute2/misc/ss.c
ebb4e4376adddc6826695d3cab6deebb1549a605 18-Jan-2005 11!tgraf <11!tgraf> tb buffer initialization is now done in the parser

(Logical change 1.129)
/external/iproute2/misc/ss.c
64df4e3e310af45fea1ebcaaa7218294cdbf114f 20-Oct-2004 osdl.net!shemminger <osdl.net!shemminger> Don't need this.

(Logical change 1.103)
/external/iproute2/misc/ss.c
b4b0b7d5581cadca728a3ce221610d1fadf8ef7b 28-Sep-2004 osdl.net!shemminger <osdl.net!shemminger> ss cleanup and enable full features.

(Logical change 1.80)
/external/iproute2/misc/ss.c
1a5bad5aa435b1e05ff89137d86ba56f89aeea95 07-Jul-2004 osdl.net!shemminger <osdl.net!shemminger> fix matches that got introduced by last patch

(Logical change 1.54)
/external/iproute2/misc/ss.c
adff36d765a2b67f6cc2d0cacf57f160e80a0291 25-Jun-2004 osdl.net!shemminger <osdl.net!shemminger> Cleaner way to configure

(Logical change 1.33)
/external/iproute2/misc/ss.c
ab61159aa0133563b275dcddd736ebf4b87061df 09-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> GNU long options for ss
Pick up ephermal port list from /proc/sys/net/ipv4 rather than hard coded.

(Logical change 1.23)
/external/iproute2/misc/ss.c
d25ad2901ebbc97244cad09c371df23874115389 09-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> Allow build on 2.4

(Logical change 1.16)
/external/iproute2/misc/ss.c
05e18118ec1454e836065c52a62b6d6f30080d00 08-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> Cleanup display logic and add receive space values.

(Logical change 1.12)
/external/iproute2/misc/ss.c
15a79f12cdb9a0f076837c1535cb822e376b33db 04-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> TCPDIAG_VEGASINFO is not a #define, its an enum

(Logical change 1.7)
/external/iproute2/misc/ss.c
7d105b5648138bde7ad8a16302987f4cbb95062a 02-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> Build and constant cleanup

(Logical change 1.6)
/external/iproute2/misc/ss.c
aba5acdfdb347d2c21fc67d613d83d4430ca3937 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> (Logical change 1.3)
/external/iproute2/misc/ss.c
86fdf0e47be697587efcf9602cd1f952a1d73170 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> Initial revision
/external/iproute2/misc/ss.c