[Top] [All Lists]

Re: ip -6 route shows incorrect route expiry times

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: ip -6 route shows incorrect route expiry times
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Sun, 30 Jan 2005 18:37:22 -0800
Cc: yoshfuji@xxxxxxxxxxxxxx, rmk@xxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <>
References: <> <> <>
Sender: netdev-bounce@xxxxxxxxxxx
On Sun, 30 Jan 2005 18:09:56 +0100
Patrick McHardy <kaber@xxxxxxxxx> wrote:

> >Kernel exports in USER_HZ.
> >iproute2 seem to convert it again; workaround is to do "export HZ=100".
> >
> I've sent this fix to Stephen yesterday.

"HZ" should be defined in userspace as 100.
Only the kernel should ever be able to see other settings.
That is true even if userspace includes kernel headers.  For example,
on sparc64 asm/param.h does this:

#ifdef __KERNEL__
# define HZ             1000    /* Internal kernel timer frequency */
# define USER_HZ        100     /* .. some user interfaces are in "ticks" */

#ifndef HZ
#define HZ 100

<Prev in Thread] Current Thread [Next in Thread>