Re: [Patch] net: export TCP send buffer size via netlink

From: David Miller
Date: Mon Feb 01 2010 - 04:58:14 EST


From: Amerigo Wang <amwang@xxxxxxxxxx>
Date: Mon, 1 Feb 2010 02:59:32 -0500

>
> Currently, we can only get TCP send buffer size by
> getsockopt (SO_SNDBUF or TCP_INFO), this is not enough
> for the tools like netstat or ss to read.
>
> Show TCP send buffer size via netlink NETLINK_INET_DIAG.
>
> Signed-off-by: WANG Cong <amwang@xxxxxxxxxx>
> Cc: David Miller <davem@xxxxxxxxxxxxx>

You can't change the layout of struct tcp_info, it's
hard coded into applications.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/