diff --git a/include/utils.h b/include/utils.h index 77c8e5a4..47f8e07d 100644 --- a/include/utils.h +++ b/include/utils.h @@ -79,7 +79,7 @@ extern int mask2bits(__u32 netmask); extern int get_integer(int *val, const char *arg, int base); extern int get_unsigned(unsigned *val, const char *arg, int base); -extern int get_jiffies(unsigned *val, const char *arg, int *raw); +extern int get_time_rtt(unsigned *val, const char *arg, int *raw); #define get_byte get_u8 #define get_ushort get_u16 #define get_short get_s16 diff --git a/ip/iproute.c b/ip/iproute.c index d48e743b..06d2507c 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -835,7 +835,7 @@ int iproute_modify(int cmd, unsigned flags, int argc, char **argv) mxlock |= (1<= 1 */ - *jiffies = t; - if (*jiffies < t) - *jiffies += 1; + *val = t; + if (*val < t) + *val += 1; return 0;