summaryrefslogtreecommitdiffstats
path: root/ip/iproute.c
diff options
context:
space:
mode:
authornet[shemminger]!shemminger <net[shemminger]!shemminger>2005-03-14 18:44:54 +0000
committernet[shemminger]!shemminger <net[shemminger]!shemminger>2005-03-14 18:44:54 +0000
commit5e8bc6316b1a6c56598cdb29a737d1d670d74e69 (patch)
tree295626a83ccd84fecf4254674f064ca008fd5d8e /ip/iproute.c
parentd27d73ab5594cad3fb36e0df3837c64b96ecd9d4 (diff)
Import patch iproute2-hz
(Logical change 1.159)
Diffstat (limited to 'ip/iproute.c')
-rw-r--r--ip/iproute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ip/iproute.c b/ip/iproute.c
index c144b740..b2ddb6ed 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -410,7 +410,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
struct rta_cacheinfo *ci = RTA_DATA(tb[RTA_CACHEINFO]);
static int hz;
if (!hz)
- hz = get_hz();
+ hz = get_user_hz();
if (ci->rta_expires != 0)
fprintf(fp, " expires %dsec", ci->rta_expires/hz);
if (ci->rta_error != 0)
@@ -437,7 +437,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
if ((r->rtm_flags & RTM_F_CLONED) || (ci && ci->rta_expires)) {
static int hz;
if (!hz)
- hz = get_hz();
+ hz = get_user_hz();
if (r->rtm_flags & RTM_F_CLONED)
fprintf(fp, "%s cache ", _SL_);
if (ci->rta_expires)
@@ -487,7 +487,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
if (i-2 < sizeof(mx_names)/sizeof(char*))
fprintf(fp, " %s", mx_names[i-2]);
else
- fprintf(fp, " metric%d", i);
+ fprintf(fp, " metric %d", i);
if (mxlock & (1<<i))
fprintf(fp, " lock");