OSDN Git Service

net: Handle null dst in rtnl_put_cacheinfo
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Apr 2018 00:33:08 +0000 (17:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Apr 2018 03:41:15 +0000 (23:41 -0400)
commit3940746d867f2f0390342dcb7ac06f1ed0e68027
tree7c709681615fd4635b456bfd27280065afa628e4
parenta919525ad832d2bb1388b2303832a2307b30aeff
net: Handle null dst in rtnl_put_cacheinfo

Need to keep expires time for IPv6 routes in a dump of FIB entries.
Update rtnl_put_cacheinfo to allow dst to be NULL in which case
rta_cacheinfo will only contain non-dst data.

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