diff options
author | Noriaki TAKAMIYA <takamiya@po.ntts.co.jp> | 2007-01-24 09:09:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-01-24 09:09:41 +0300 |
commit | 6a2b9ce0a383059492c93682bc094cce0f705fff (patch) | |
tree | 4e5dabfc311bc364d8c774e81ec6d5ee6af897fe /net | |
parent | 52d570aabe921663a987b2e4bae2bdc411cee480 (diff) | |
download | linux-6a2b9ce0a383059492c93682bc094cce0f705fff.tar.xz |
[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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8c3d56871b50..5f0043c30b70 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)); } |