* [PATCH] update packet & wanpipe ioctl routines
@ 2002-10-31 19:02 Matthew Wilcox
2002-10-31 19:43 ` kernel.org is down? Gabor MICSKO
2002-11-02 10:24 ` [PATCH] update packet & wanpipe ioctl routines David S. Miller
0 siblings, 2 replies; 8+ messages in thread
From: Matthew Wilcox @ 2002-10-31 19:02 UTC (permalink / raw)
To: David S. Miller; +Cc: linux-kernel, netdev
Convert af_packet.c and af_wanpipe.c to call dev_ioctl by default. I'm
less than convinced these protocols should be calling inet_ioctl, but I'm
not going to change that behaviour.
diff -urpNX dontdiff linux-2.5.45/net/packet/af_packet.c linux-2.5.45-willy/net/packet/af_packet.c
--- linux-2.5.45/net/packet/af_packet.c 2002-10-31 10:28:10.000000000 -0500
+++ linux-2.5.45-willy/net/packet/af_packet.c 2002-10-29 17:25:30.000000000 -0500
@@ -1432,8 +1432,7 @@ static int packet_ioctl(struct socket *s
{
struct sock *sk = sock->sk;
- switch(cmd)
- {
+ switch(cmd) {
case SIOCOUTQ:
{
int amount = atomic_read(&sk->wmem_alloc);
@@ -1452,35 +1451,12 @@ static int packet_ioctl(struct socket *s
return put_user(amount, (int *)arg);
}
case SIOCGSTAMP:
- if(sk->stamp.tv_sec==0)
+ if (sk->stamp.tv_sec==0)
return -ENOENT;
if (copy_to_user((void *)arg, &sk->stamp,
sizeof(struct timeval)))
return -EFAULT;
break;
- case SIOCGIFFLAGS:
-#ifndef CONFIG_INET
- case SIOCSIFFLAGS:
-#endif
- case SIOCGIFCONF:
- case SIOCGIFMETRIC:
- case SIOCSIFMETRIC:
- case SIOCGIFMEM:
- case SIOCSIFMEM:
- case SIOCGIFMTU:
- case SIOCSIFMTU:
- case SIOCSIFLINK:
- case SIOCGIFHWADDR:
- case SIOCSIFHWADDR:
- case SIOCSIFMAP:
- case SIOCGIFMAP:
- case SIOCSIFSLAVE:
- case SIOCGIFSLAVE:
- case SIOCGIFINDEX:
- case SIOCGIFNAME:
- case SIOCGIFCOUNT:
- case SIOCSIFHWBROADCAST:
- return(dev_ioctl(cmd,(void *) arg));
#ifdef CONFIG_INET
case SIOCADDRT:
@@ -1501,7 +1477,7 @@ static int packet_ioctl(struct socket *s
#endif
default:
- return -EOPNOTSUPP;
+ return dev_ioctl(cmd, (void *)arg);
}
return 0;
}
diff -urpNX dontdiff linux-2.5.45/net/wanrouter/af_wanpipe.c linux-2.5.45-willy/net/wanrouter/af_wanpipe.c
--- linux-2.5.45/net/wanrouter/af_wanpipe.c 2002-10-31 10:28:10.000000000 -0500
+++ linux-2.5.45-willy/net/wanrouter/af_wanpipe.c 2002-10-29 16:34:36.000000000 -0500
@@ -1922,30 +1922,6 @@ static int wanpipe_ioctl(struct socket *
sock->file->f_flags |= O_NONBLOCK;
return 0;
- case SIOCGIFFLAGS:
-#ifndef CONFIG_INET
- case SIOCSIFFLAGS:
-#endif
- case SIOCGIFCONF:
- case SIOCGIFMETRIC:
- case SIOCSIFMETRIC:
- case SIOCGIFMEM:
- case SIOCSIFMEM:
- case SIOCGIFMTU:
- case SIOCSIFMTU:
- case SIOCSIFLINK:
- case SIOCGIFHWADDR:
- case SIOCSIFHWADDR:
- case SIOCSIFMAP:
- case SIOCGIFMAP:
- case SIOCSIFSLAVE:
- case SIOCGIFSLAVE:
- case SIOCGIFINDEX:
- case SIOCGIFNAME:
- case SIOCGIFCOUNT:
- case SIOCSIFHWBROADCAST:
- return(dev_ioctl(cmd,(void *) arg));
-
#ifdef CONFIG_INET
case SIOCADDRT:
case SIOCDELRT:
@@ -1968,7 +1944,7 @@ static int wanpipe_ioctl(struct socket *
#endif
default:
- return -EOPNOTSUPP;
+ return dev_ioctl(cmd,(void *) arg);
}
/*NOTREACHED*/
}
--
Revolutions do not require corporate support.
^ permalink raw reply [flat|nested] 8+ messages in thread
* kernel.org is down?
2002-10-31 19:02 [PATCH] update packet & wanpipe ioctl routines Matthew Wilcox
@ 2002-10-31 19:43 ` Gabor MICSKO
2002-10-31 20:09 ` Kasper Dupont
2002-11-02 10:24 ` [PATCH] update packet & wanpipe ioctl routines David S. Miller
1 sibling, 1 reply; 8+ messages in thread
From: Gabor MICSKO @ 2002-10-31 19:43 UTC (permalink / raw)
To: linux-kernel
Hi!
What's the matter with kernel.org (http,ftp)?
Cheers
-----------------------------------
Gabor Micsko
Compaq Accredited Platform Specialist, System Engineer (APS, ASE)
Szintézis Computer Rendszerház Kft.
H-9021 Gyor, Tihanyi Árpád út. 2.
Tel: +36-96-502-216
Fax: +36-96-318-658
E-mail: gmicsko@szintezis.hu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel.org is down?
2002-10-31 19:43 ` kernel.org is down? Gabor MICSKO
@ 2002-10-31 20:09 ` Kasper Dupont
0 siblings, 0 replies; 8+ messages in thread
From: Kasper Dupont @ 2002-10-31 20:09 UTC (permalink / raw)
To: Gabor MICSKO; +Cc: linux-kernel
Gabor MICSKO wrote:
>
> Hi!
>
> What's the matter with kernel.org (http,ftp)?
There was an anouncment about that on http://kernel.org/
hardware maintainance IIRC.
--
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
Don't do this at home kids: touch -- -rf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] update packet & wanpipe ioctl routines
2002-10-31 19:02 [PATCH] update packet & wanpipe ioctl routines Matthew Wilcox
2002-10-31 19:43 ` kernel.org is down? Gabor MICSKO
@ 2002-11-02 10:24 ` David S. Miller
1 sibling, 0 replies; 8+ messages in thread
From: David S. Miller @ 2002-11-02 10:24 UTC (permalink / raw)
To: willy; +Cc: linux-kernel, netdev
Patch applied, thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel.org is down?
@ 2002-10-01 16:27 Marc-Christian Petersen
0 siblings, 0 replies; 8+ messages in thread
From: Marc-Christian Petersen @ 2002-10-01 16:27 UTC (permalink / raw)
To: linux-kernel; +Cc: Tomas Szepe
Hi Tomas,
>> > Is it just me, or {www,ftp}.kernel.org is down? It
>> > seems so, from this side of the atlantic. And I cant
>>
>> Verified at 11:28am EST, from the other side of the pond.
> In the meantime, can somebody who's been on time to d/l
> patch-2.5.40.gz put it up somewhere and post the URL?
I already posted it this morning on lkml.
http://wolk.sf.net/patch-2.5.40.bz2
ciao, Marc
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel.org is down?
2002-10-01 15:31 ` Mike Dresser
@ 2002-10-01 16:05 ` Tomas Szepe
0 siblings, 0 replies; 8+ messages in thread
From: Tomas Szepe @ 2002-10-01 16:05 UTC (permalink / raw)
To: Mike Dresser; +Cc: Kurt Johnson, linux-kernel
> > Hi folks,
> >
> > Is it just me, or {www,ftp}.kernel.org is down? It
> > seems so, from this side of the atlantic. And I cant
>
> Verified at 11:28am EST, from the other side of the pond.
In the meantime, can somebody who's been on time to d/l
patch-2.5.40.gz put it up somewhere and post the URL?
T.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: kernel.org is down?
2002-10-01 15:18 Kurt Johnson
@ 2002-10-01 15:31 ` Mike Dresser
2002-10-01 16:05 ` Tomas Szepe
0 siblings, 1 reply; 8+ messages in thread
From: Mike Dresser @ 2002-10-01 15:31 UTC (permalink / raw)
To: Kurt Johnson; +Cc: linux-kernel
On Tue, 1 Oct 2002, [iso-8859-1] Kurt Johnson wrote:
> Hi folks,
>
> Is it just me, or {www,ftp}.kernel.org is down? It
> seems so, from this side of the atlantic. And I cant
Verified at 11:28am EST, from the other side of the pond.
Mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* kernel.org is down?
@ 2002-10-01 15:18 Kurt Johnson
2002-10-01 15:31 ` Mike Dresser
0 siblings, 1 reply; 8+ messages in thread
From: Kurt Johnson @ 2002-10-01 15:18 UTC (permalink / raw)
To: linux-kernel
Hi folks,
Is it just me, or {www,ftp}.kernel.org is down? It
seems so, from this side of the atlantic. And I cant
find 2.5.40 on any mirror I've tried (which included
everything listed in dns for www.uk.kernel.org,
www.us.kernel.org, etc). So, what gives?
Hope this is just a temporary hiccup. Sorry for the
disturbance.
Regards,
/kj
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-11-02 10:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-31 19:02 [PATCH] update packet & wanpipe ioctl routines Matthew Wilcox
2002-10-31 19:43 ` kernel.org is down? Gabor MICSKO
2002-10-31 20:09 ` Kasper Dupont
2002-11-02 10:24 ` [PATCH] update packet & wanpipe ioctl routines David S. Miller
-- strict thread matches above, loose matches on Subject: below --
2002-10-01 16:27 kernel.org is down? Marc-Christian Petersen
2002-10-01 15:18 Kurt Johnson
2002-10-01 15:31 ` Mike Dresser
2002-10-01 16:05 ` Tomas Szepe
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).