iproute2: use get_user_hz() for IPv6 print_route
as already done in IPv4 and metrics code part Signed-off-by: Ulrich Weber <uweber@astaro.com>
This commit is contained in:
parent
447928279c
commit
2eca8d3d3e
|
|
@ -482,7 +482,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
||||||
if (mxrta[i] == NULL)
|
if (mxrta[i] == NULL)
|
||||||
continue;
|
continue;
|
||||||
if (!hz)
|
if (!hz)
|
||||||
hz = get_hz();
|
hz = get_user_hz();
|
||||||
|
|
||||||
if (i < sizeof(mx_names)/sizeof(char*) && mx_names[i])
|
if (i < sizeof(mx_names)/sizeof(char*) && mx_names[i])
|
||||||
fprintf(fp, " %s", mx_names[i]);
|
fprintf(fp, " %s", mx_names[i]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue