In article <028101c42814$6f3c5b60$d901a8c0@skqianyi> (at Thu, 22 Apr 2004 10:49:30 +0800), "Yu Zhiguo" <yuzg@nanjing-fnst.com> says: > I modified the file /net/ipv4/tcp_ipv4.c, so that it can provide the > information about the size of receive window and send window for the > /proc/net/tcp. After my work, one line in the /proc/net/tcp may look like > this: > 0: 00000000:0400 00000000:0000 0A 00000000:00000000 00:00000000 00000000 > 29 0 1899 1 c11e4084 3000 0 0 2 -1:87380 16384 > the last two fields are the size of receive window and send window in bytes. Why is the "colon" required? > tp->snd_cwnd, > - tp->snd_ssthresh >= 0xFFFF ? -1 : tp->snd_ssthresh); > + tp->snd_ssthresh >= 0xFFFF ? -1 : tp->snd_ssthresh, > + sp->sk_rcvbuf,sp->sk_sndbuf); ^ (space required) > } > > static void get_timewait4_sock(struct tcp_tw_bucket *tw, char *tmpbuf, int > i) please do similar change for net/ipv6/tcp_ipv6.c as well. And, I think we want to have similar things in tcpdiag. --yoshfuji - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html