Stephen Hemminger
4c1db1310f
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).
2008-06-20 12:34:15 -07:00
Björn Steinbrink
69cae645b2
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>
2008-04-03 08:24:04 -07:00
Stephen Hemminger
77aa4d03a7
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>
2007-12-31 10:41:18 -08:00
Stephen Hemminger
ab01dbbb94
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>
2007-07-18 15:31:29 +01:00
Stephen Hemminger
e7113c61cb
ss: fix issues with signed inodes
...
Some parts of ss were incorrectly assuming inode number was int
not unsigned.
2007-07-10 18:26:54 -07:00
Thomas Hisch
892db6942a
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>
2007-03-05 17:35:06 -08:00
Stephen Hemminger
ae665a522b
Remove trailing whitespace
...
Go through source files and remove all trailing whitespace
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
2006-12-05 10:10:22 -08:00
shemminger
351efcde4e
Update header files to 2.6.14
...
Integrate support for DCCP and tcp_diag into ss
Add -batch to ip command
2005-09-01 19:21:50 +00:00
shemminger
52d5ac3fcb
Fix build issues
2005-07-05 22:11:37 +00:00
shemminger
ea8fc1047d
Netem support for reorder
...
Update include files and add support for TCP_CONG
2005-06-22 18:27:49 +00:00
osdl.net!shemminger
b9de3ecf94
typo, extra /
...
(Logical change 1.133)
2005-01-19 00:23:53 +00:00
osdl.net!shemminger
c3f346b00a
typo in ss
...
(Logical change 1.132)
2005-01-18 22:31:42 +00:00
11!tgraf
ebb4e4376a
tb buffer initialization is now done in the parser
...
(Logical change 1.129)
2005-01-18 22:11:58 +00:00
osdl.net!shemminger
64df4e3e31
Don't need this.
...
(Logical change 1.103)
2004-10-20 16:12:49 +00:00
osdl.net!shemminger
b4b0b7d558
ss cleanup and enable full features.
...
(Logical change 1.80)
2004-09-28 18:14:03 +00:00
osdl.net!shemminger
1a5bad5aa4
fix matches that got introduced by last patch
...
(Logical change 1.54)
2004-07-07 17:06:35 +00:00
osdl.net!shemminger
adff36d765
Cleaner way to configure
...
(Logical change 1.33)
2004-06-25 21:14:22 +00:00
osdl.org!shemminger
ab61159aa0
GNU long options for ss
...
Pick up ephermal port list from /proc/sys/net/ipv4 rather than hard coded.
(Logical change 1.23)
2004-06-09 21:30:13 +00:00
osdl.org!shemminger
d25ad2901e
Allow build on 2.4
...
(Logical change 1.16)
2004-06-08 23:50:43 +00:00
osdl.org!shemminger
05e18118ec
Cleanup display logic and add receive space values.
...
(Logical change 1.12)
2004-06-08 20:33:44 +00:00
osdl.org!shemminger
15a79f12cd
TCPDIAG_VEGASINFO is not a #define, its an enum
...
(Logical change 1.7)
2004-06-04 18:39:32 +00:00
osdl.org!shemminger
7d105b5648
Build and constant cleanup
...
(Logical change 1.6)
2004-06-02 20:22:08 +00:00
osdl.org!shemminger
aba5acdfdb
(Logical change 1.3)
2004-04-15 20:56:59 +00:00
osdl.org!shemminger
86fdf0e47b
Initial revision
2004-04-15 20:56:59 +00:00