* iproute2 tools for 2.6.31
@ 2009-09-10 19:04 Stephen Hemminger
2009-09-11 7:48 ` Eric Dumazet
2009-09-11 8:32 ` [PATCH iproute2] ss: adds a space before congestion string Eric Dumazet
0 siblings, 2 replies; 5+ messages in thread
From: Stephen Hemminger @ 2009-09-10 19:04 UTC (permalink / raw)
To: netdev
I am putting together release for 2.6.31 based tools.
The only open issue is how to deal with the error handling in commands
that do monitoring filtering. Right now leaning towards the two socket
solution.
So if you have anything else that you have been waiting for,
please drop me a note.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: iproute2 tools for 2.6.31
2009-09-10 19:04 iproute2 tools for 2.6.31 Stephen Hemminger
@ 2009-09-11 7:48 ` Eric Dumazet
2009-09-11 7:51 ` Eric Dumazet
2009-09-11 8:32 ` [PATCH iproute2] ss: adds a space before congestion string Eric Dumazet
1 sibling, 1 reply; 5+ messages in thread
From: Eric Dumazet @ 2009-09-11 7:48 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
Stephen Hemminger a écrit :
> I am putting together release for 2.6.31 based tools.
> The only open issue is how to deal with the error handling in commands
> that do monitoring filtering. Right now leaning towards the two socket
> solution.
>
> So if you have anything else that you have been waiting for,
> please drop me a note.
>
One thing that is IMHO strange is the output of sk information
on 64 bits (x86_64 for example)
# ss -e dst 55.225.18.6
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 55.225.18.96:9273 55.225.18.6:37405 timer:(keepalive,20min,0) ino:57807651 sk:36e40c80ffff8100
True sk pointer is ffff8100ffff8100, not 36e40c80ffff8100
ss/misc.c
printf(" sk:%08x", r->id.idiag_cookie[0]);
if (r->id.idiag_cookie[1] != 0)
printf("%08x", r->id.idiag_cookie[1]);
while kernel does :
r->id.idiag_cookie[0] = (u32)(unsigned long)sk;
r->id.idiag_cookie[1] = (u32)(((unsigned long)sk >> 31) >> 1);
What do you think of following patch ?
[PATCH] ss: correct display of sk pointer
On 64bit arches, sk pointer was 32/32 reversed.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
diff --git a/misc/ss.c b/misc/ss.c
index 651fe3b..2447186 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1393,9 +1393,10 @@ static int tcp_show_sock(struct nlmsghdr *nlh, struct filter *f)
if (r->idiag_uid)
printf(" uid:%u", (unsigned)r->idiag_uid);
printf(" ino:%u", r->idiag_inode);
- printf(" sk:%08x", r->id.idiag_cookie[0]);
+ printf(" sk:");
if (r->id.idiag_cookie[1] != 0)
printf("%08x", r->id.idiag_cookie[1]);
+ printf("%08x", r->id.idiag_cookie[0]);
}
if (show_mem || show_tcpinfo) {
printf("\n\t");
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: iproute2 tools for 2.6.31
2009-09-11 7:48 ` Eric Dumazet
@ 2009-09-11 7:51 ` Eric Dumazet
0 siblings, 0 replies; 5+ messages in thread
From: Eric Dumazet @ 2009-09-11 7:51 UTC (permalink / raw)
Cc: Stephen Hemminger, netdev
Eric Dumazet a écrit :
> Stephen Hemminger a écrit :
>> I am putting together release for 2.6.31 based tools.
>> The only open issue is how to deal with the error handling in commands
>> that do monitoring filtering. Right now leaning towards the two socket
>> solution.
>>
>> So if you have anything else that you have been waiting for,
>> please drop me a note.
>>
>
> One thing that is IMHO strange is the output of sk information
> on 64 bits (x86_64 for example)
>
> # ss -e dst 55.225.18.6
> State Recv-Q Send-Q Local Address:Port Peer Address:Port
> ESTAB 0 0 55.225.18.96:9273 55.225.18.6:37405 timer:(keepalive,20min,0) ino:57807651 sk:36e40c80ffff8100
>
> True sk pointer is ffff8100ffff8100, not 36e40c80ffff8100
>
Oops I meant ffff810036e40c80, sorry for the copy/paste error ;)
>
>
> ss/misc.c
>
> printf(" sk:%08x", r->id.idiag_cookie[0]);
> if (r->id.idiag_cookie[1] != 0)
> printf("%08x", r->id.idiag_cookie[1]);
>
> while kernel does :
> r->id.idiag_cookie[0] = (u32)(unsigned long)sk;
> r->id.idiag_cookie[1] = (u32)(((unsigned long)sk >> 31) >> 1);
>
>
>
> What do you think of following patch ?
>
> [PATCH] ss: correct display of sk pointer
>
> On 64bit arches, sk pointer was 32/32 reversed.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
> ---
>
> diff --git a/misc/ss.c b/misc/ss.c
> index 651fe3b..2447186 100644
> --- a/misc/ss.c
> +++ b/misc/ss.c
> @@ -1393,9 +1393,10 @@ static int tcp_show_sock(struct nlmsghdr *nlh, struct filter *f)
> if (r->idiag_uid)
> printf(" uid:%u", (unsigned)r->idiag_uid);
> printf(" ino:%u", r->idiag_inode);
> - printf(" sk:%08x", r->id.idiag_cookie[0]);
> + printf(" sk:");
> if (r->id.idiag_cookie[1] != 0)
> printf("%08x", r->id.idiag_cookie[1]);
> + printf("%08x", r->id.idiag_cookie[0]);
> }
> if (show_mem || show_tcpinfo) {
> printf("\n\t");
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH iproute2] ss: adds a space before congestion string
2009-09-10 19:04 iproute2 tools for 2.6.31 Stephen Hemminger
2009-09-11 7:48 ` Eric Dumazet
@ 2009-09-11 8:32 ` Eric Dumazet
2009-09-11 15:07 ` Stephen Hemminger
1 sibling, 1 reply; 5+ messages in thread
From: Eric Dumazet @ 2009-09-11 8:32 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
Stephen Hemminger a écrit :
> I am putting together release for 2.6.31 based tools.
> The only open issue is how to deal with the error handling in commands
> that do monitoring filtering. Right now leaning towards the two socket
> solution.
>
> So if you have anything else that you have been waiting for,
> please drop me a note.
Another patch would be nice too :
ss -io
ESTAB 0 0 55.225.18.16:52668 55.225.18.187:49531
sackbic wscale:2,6 rto:219 rtt:19.75/16.5 ato:40 cwnd:4 send 2.4Mbps rcv_space:5840
Note the 'sackbic' string, instead of sack bic ?
Thanks
[PATCH] ss: adds a space before congestion string
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
diff --git a/misc/ss.c b/misc/ss.c
index 651fe3b..9396468 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1302,7 +1302,7 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r)
}
if (tb[INET_DIAG_CONG])
- printf("%s", (char *) RTA_DATA(tb[INET_DIAG_CONG]));
+ printf(" %s", (char *) RTA_DATA(tb[INET_DIAG_CONG]));
if (info->tcpi_options & TCPI_OPT_WSCALE)
printf(" wscale:%d,%d", info->tcpi_snd_wscale,
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH iproute2] ss: adds a space before congestion string
2009-09-11 8:32 ` [PATCH iproute2] ss: adds a space before congestion string Eric Dumazet
@ 2009-09-11 15:07 ` Stephen Hemminger
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2009-09-11 15:07 UTC (permalink / raw)
To: Eric Dumazet; +Cc: netdev
On Fri, 11 Sep 2009 10:32:29 +0200
Eric Dumazet <eric.dumazet@gmail.com> wrote:
Both ss patches applied.
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-11 15:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 19:04 iproute2 tools for 2.6.31 Stephen Hemminger
2009-09-11 7:48 ` Eric Dumazet
2009-09-11 7:51 ` Eric Dumazet
2009-09-11 8:32 ` [PATCH iproute2] ss: adds a space before congestion string Eric Dumazet
2009-09-11 15:07 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).