summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNoriaki TAKAMIYA <takamiya@po.ntts.co.jp>2007-01-23 22:09:41 -0800
committerDavid S. Miller <davem@davemloft.net>2007-01-23 22:09:41 -0800
commit6a2b9ce0a383059492c93682bc094cce0f705fff (patch)
tree4e5dabfc311bc364d8c774e81ec6d5ee6af897fe /net
parent52d570aabe921663a987b2e4bae2bdc411cee480 (diff)
downloadop-kernel-dev-6a2b9ce0a383059492c93682bc094cce0f705fff.zip
op-kernel-dev-6a2b9ce0a383059492c93682bc094cce0f705fff.tar.gz
[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 <takamiya@po.ntts.co.jp> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/route.c1
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));
}
OpenPOWER on IntegriCloud