| To: | "YOSHIFUJI Hideaki / _$B5HF#1QL@" <yoshfuji@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] IPV6: strategy hander for net.ipv6.conf.*.forwarding (is Re: problem setting net.ipvX.conf.all.forwarding via sysctl() system call) |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Sat, 9 Aug 2003 01:08:45 -0700 |
| Cc: | jan.oravec@xxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20030808.185135.112441851.yoshfuji@linux-ipv6.org> |
| References: | <20030803154427.GA12926@wsx.ksp.sk> <20030808.175030.19527061.yoshfuji@linux-ipv6.org> <20030808093704.GA18131@wsx.ksp.sk> <20030808.185135.112441851.yoshfuji@linux-ipv6.org> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Fri, 08 Aug 2003 18:51:35 +0900 (JST)
YOSHIFUJI Hideaki / _$B5HF#1QL@ <yoshfuji@xxxxxxxxxxxxxx> wrote:
> In article <20030808093704.GA18131@xxxxxxxxxx> (at Fri, 8 Aug 2003 11:37:04
> +0200), Jan Oravec <jan.oravec@xxxxxxx> says:
>
> > On Fri, Aug 08, 2003 at 05:50:30PM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@
> > wrote:
> >
> > > + *valp = new;
> > > + if (valp != &ipv6_devconf.forwarding &&
> > > + valp != &ipv6_devconf_dflt.forwarding) {
> > > + struct inet6_dev *idev = (struct inet6_dev *)table->extra1;
> > > + if (!idev)
> > > + return -ENODEV;
> > > + addrconf_forward_change(idev);
> > > + }
> > > + return 0;
> > > +}
> >
> > Shouldn't we set ipv6_devconf_dflt.forwarding and call
> > addr_forward_change(NULL) in case that valp==&ipv6_devconf.forwarding?
>
> Oh, You're right. Here's the revised one:
As I mentioned for the ipv4 forwarding sysctl bug fix,
if you will set table->data yourself you should return
> 0 (for example "1") from your strategy handler.
The patch looks fine otherwise.
Please fix this, thank you.
|
| Previous by Date: | Re: problem setting net.ipvX.conf.all.forwarding via sysctl() system call, David S. Miller |
|---|---|
| Next by Date: | Re: [PATCH] IPV6: typo in include/linux/ipv6.h, David S. Miller |
| Previous by Thread: | Re: [PATCH] IPV6: strategy hander for net.ipv6.conf.*.forwarding (is Re: problem setting net.ipvX.conf.all.forwarding via sysctl() system call), Jan Oravec |
| Next by Thread: | Re: [PATCH] IPV6: strategy hander for net.ipv6.conf.*.forwarding (is Re: problem setting net.ipvX.conf.all.forwarding via sysctl() system call), YOSHIFUJI Hideaki / 吉藤英明 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |