提交 e9195d67 编写于 作者: T Thomas Graf 提交者: David S. Miller

[TCP] vegas: Use type safe netlink interface

Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 51057f2f
...@@ -341,16 +341,14 @@ static void tcp_vegas_get_info(struct sock *sk, u32 ext, ...@@ -341,16 +341,14 @@ static void tcp_vegas_get_info(struct sock *sk, u32 ext,
{ {
const struct vegas *ca = inet_csk_ca(sk); const struct vegas *ca = inet_csk_ca(sk);
if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) { if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
struct tcpvegas_info *info; struct tcpvegas_info info = {
.tcpv_enabled = ca->doing_vegas_now,
info = RTA_DATA(__RTA_PUT(skb, INET_DIAG_VEGASINFO, .tcpv_rttcnt = ca->cntRTT,
sizeof(*info))); .tcpv_rtt = ca->baseRTT,
.tcpv_minrtt = ca->minRTT,
info->tcpv_enabled = ca->doing_vegas_now; };
info->tcpv_rttcnt = ca->cntRTT;
info->tcpv_rtt = ca->baseRTT; nla_put(skb, INET_DIAG_VEGASINFO, sizeof(info), &info);
info->tcpv_minrtt = ca->minRTT;
rtattr_failure: ;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册