aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-03-23 02:27:01 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:26 -0400
commite9195d677d6f06730edd5c2a3fe3283564e39c51 (patch)
treea2738b22d959eeb2091d322c493c8f293a0820d7
parent51057f2fecff1c520b083c5ac9229e7aebce9e01 (diff)
[TCP] vegas: Use type safe netlink interface
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/tcp_vegas.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c
index 5c484dceb967..87e72bef6d08 100644
--- a/net/ipv4/tcp_vegas.c
+++ b/net/ipv4/tcp_vegas.c
@@ -341,16 +341,14 @@ static void tcp_vegas_get_info(struct sock *sk, u32 ext,
341{ 341{
342 const struct vegas *ca = inet_csk_ca(sk); 342 const struct vegas *ca = inet_csk_ca(sk);
343 if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) { 343 if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) {
344 struct tcpvegas_info *info; 344 struct tcpvegas_info info = {
345 345 .tcpv_enabled = ca->doing_vegas_now,
346 info = RTA_DATA(__RTA_PUT(skb, INET_DIAG_VEGASINFO, 346 .tcpv_rttcnt = ca->cntRTT,
347 sizeof(*info))); 347 .tcpv_rtt = ca->baseRTT,
348 348 .tcpv_minrtt = ca->minRTT,
349 info->tcpv_enabled = ca->doing_vegas_now; 349 };
350 info->tcpv_rttcnt = ca->cntRTT; 350
351 info->tcpv_rtt = ca->baseRTT; 351 nla_put(skb, INET_DIAG_VEGASINFO, sizeof(info), &info);
352 info->tcpv_minrtt = ca->minRTT;
353 rtattr_failure: ;
354 } 352 }
355} 353}
356 354