[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070116.125728.278729390.takamiya@po.ntts.co.jp>
Date: Tue, 16 Jan 2007 12:57:28 +0900 (JST)
From: Noriaki TAKAMIYA <takamiya@...ntts.co.jp>
To: netdev@...r.kernel.org
cc: usagi-core@...ux-ipv6.org
Subject: [PATCH] [IPV6] fixed the size of the netlink message notified by
inet6_rt_notify().
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
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists