From: Noriaki TAKAMIYA Date: Wed, 24 Jan 2007 06:09:41 +0000 (-0800) Subject: [IPV6]: Fixed the size of the netlink message notified by inet6_rt_notify(). X-Git-Tag: v2.6.20-rc6~5^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6a2b9ce0a383059492c93682bc094cce0f705fff;p=linux-2.6-omap-h63xx.git [IPV6]: Fixed the size of the netlink message notified by inet6_rt_notify(). I think the return value of rt6_nlmsg_size() should includes the amount of RTA_METRICS. Signed-off-by: Noriaki TAKAMIYA Acked-by: Thomas Graf Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8c3d56871b5..5f0043c30b7 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)); }