]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: fix autobound filter
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 20 Jun 2011 21:31:51 +0000 (14:31 -0700)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 20 Jun 2011 21:31:51 +0000 (14:31 -0700)
commitdf39de8d2485d24bf5e64201dae191e9ed6ccb0e
treed15c03a6d4eda53b5f7c82aa8dfb043c7bb3a1f3
parentbcd7abddd4962f01f35eb644702c9abdf4c81d0e
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>
misc/ss.c