Re: [PATCH iproute2] ip/iptoken: fix dump error when ipv6 disabled

2019-06-25 Thread Stephen Hemminger
On Tue, 25 Jun 2019 17:35:50 +0800 Hangbin Liu wrote: > When we disable IPv6 from the start up (ipv6.disable=1), there will be > no IPv6 route info in the dump message. If we return -1 when > ifi->ifi_family != AF_INET6, we will get error like > > $ ip token list > Dump terminated > > which wil

[PATCH iproute2] ip/iptoken: fix dump error when ipv6 disabled

2019-06-25 Thread Hangbin Liu
When we disable IPv6 from the start up (ipv6.disable=1), there will be no IPv6 route info in the dump message. If we return -1 when ifi->ifi_family != AF_INET6, we will get error like $ ip token list Dump terminated which will make user feel confused. There is no need to return -1 if the dump mes