[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 02689) Re: Linux 2.6 radvd error
- To: <usagi-users@xxxxxxxxxxxxxx>
- Subject: (usagi-users 02689) Re: Linux 2.6 radvd error
- From: "Yang Hsiung" <yhsiung@xxxxxxxxx>
- Date: Thu, 11 Dec 2003 12:22:30 -0800
- Importance: Normal
- In-reply-to: <DMEAIOLONOKFADMBFLJDAEIJCEAA.yhsiung@zyxel.com>
- Reply-to: usagi-users@xxxxxxxxxxxxxx
Hi,
I figured out the error was coming from sys_sysctl() function
in kernel/sysctl.c. The calling function is in check_ip6_forwarding()
in the radvd.c.
The following code fragment was added to sysctl.c since 1.1.1.26.
Does anyone knows why the code was added in sys_sysctl()?
if (tmp.nlen != 2 || copy_from_user(name, tmp.name, sizeof(name)) ||
name[0] != CTL_KERN || name[1] != KERN_VERSION) {
int i;
printk(KERN_INFO "%s: numerical sysctl ", current->comm);
for (i = 0; i < tmp.nlen; i++) {
int n;
if (get_user(n, tmp.name+i)) {
printk("? ");
} else {
printk("%d ", n);
}
}
printk("is obsolete.\n");
}
Currently, I just blindly commented out the above code and I can start
the radvd successfully.
Yang
-----Original Message-----
From: Yang Hsiung [mailto:yhsiung@xxxxxxxxx]
Sent: Wednesday, December 10, 2003 5:41 PM
To: Usagi-Users
Subject: (usagi-users 02685) Linux 2.6 radvd error
Hi,
I ran radvd under Linux 2.6 but failed with the following error
logged in /var/log/messages:
kernel: radvd: numerical sysctl 3 12 16 -2 1 is obosolete.
The same /etc/radvd.conf was running okay in the Linux 2.4.20 kernel.
Any idea?
Yang