OSDN Git Service

ipv6: Handle all fib6_nh in a nexthop in rt6_nlmsg_size
authorDavid Ahern <dsahern@gmail.com>
Sat, 8 Jun 2019 21:53:26 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 17:44:56 +0000 (10:44 -0700)
commita1b7a1f06c78390e912692c0da40f4234ee83a4f
tree63eff6168988c31925bbc4a5051cf10730d7b094
parent17a5984eee6ca57ace04285f574dd1efa0e8dd0f
ipv6: Handle all fib6_nh in a nexthop in rt6_nlmsg_size

Add a hook in rt6_nlmsg_size to handle nexthop struct in a fib6_info.
rt6_nh_nlmsg_size is used to sum the space needed for all nexthops in
the fib entry.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c