mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Acked-by: Thomas Graf <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
52d570aabe
commit
6a2b9ce0a3
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue