netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [IPV6] fixed the size of the netlink message notified by inet6_rt_notify().
@ 2007-01-16  3:57 Noriaki TAKAMIYA
  2007-01-16  5:01 ` Noriaki TAKAMIYA
  0 siblings, 1 reply; 9+ messages in thread
From: Noriaki TAKAMIYA @ 2007-01-16  3:57 UTC (permalink / raw)
  To: netdev; +Cc: usagi-core

Hi,

  I think the return value of rt6_nlmsg_size() should includes the
  amount of RTA_METRICS.

  Regards,

---
 net/ipv6/route.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 8c3d568..5f0043c 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2017,6 +2017,7 @@ static inline size_t rt6_nlmsg_size(void
 	       + nla_total_size(4) /* RTA_IIF */
 	       + nla_total_size(4) /* RTA_OIF */
 	       + nla_total_size(4) /* RTA_PRIORITY */
+	       + RTAX_MAX * nla_total_size(4) /* RTA_METRICS */
 	       + nla_total_size(sizeof(struct rta_cacheinfo));
 }
 
-- 
1.4.4

--
Noriaki TAKAMIYA

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-01-24  6:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-16  3:57 [PATCH] [IPV6] fixed the size of the netlink message notified by inet6_rt_notify() Noriaki TAKAMIYA
2007-01-16  5:01 ` Noriaki TAKAMIYA
2007-01-17 10:50   ` Thomas Graf
2007-01-17 12:33     ` Patrick McHardy
2007-01-18 16:31       ` Noriaki TAKAMIYA
2007-01-19  4:26         ` YOSHIFUJI Hideaki / 吉藤英明
2007-01-22 12:39       ` Thomas Graf
2007-01-24  6:14       ` David Miller
2007-01-24  6:10     ` David Miller

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).