From: "David S. Miller" <davem@davemloft.net>
To: Patrick McHardy <kaber@trash.net>
Cc: yoshfuji@linux-ipv6.org, rmk@arm.linux.org.uk, netdev@oss.sgi.com
Subject: Re: ip -6 route shows incorrect route expiry times
Date: Sun, 30 Jan 2005 18:37:22 -0800 [thread overview]
Message-ID: <20050130183722.279ec566.davem@davemloft.net> (raw)
In-Reply-To: <41FD14E4.8010305@trash.net>
On Sun, 30 Jan 2005 18:09:56 +0100
Patrick McHardy <kaber@trash.net> 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" */
# define CLOCKS_PER_SEC (USER_HZ)
#endif
#ifndef HZ
#define HZ 100
#endif
prev parent reply other threads:[~2005-01-31 2:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 16:08 ip -6 route shows incorrect route expiry times Russell King
2005-01-30 16:29 ` YOSHIFUJI Hideaki / 吉藤英明
2005-01-30 16:30 ` YOSHIFUJI Hideaki / 吉藤英明
2005-01-31 11:55 ` Ville Nuorvala
2005-01-30 17:09 ` Patrick McHardy
2005-01-31 2:37 ` David S. Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050130183722.279ec566.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=netdev@oss.sgi.com \
--cc=rmk@arm.linux.org.uk \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).