2002-03-14 22:11:13

by Justin Guyett

[permalink] [raw]
Subject: [PATCH] 2.5.7-pre1 fix for api-caused ipmr.c compile failure

missed in some api change...

--- linux-2.5.6/net/ipv4/ipmr.c.orig Thu Mar 14 22:04:28 2002
+++ linux-2.5.6/net/ipv4/ipmr.c Thu Mar 14 22:03:54 2002
@@ -855,7 +855,7 @@
switch(optname)
{
case MRT_INIT:
- if(sk->type!=SOCK_RAW || sk->num!=IPPROTO_IGMP)
+ if(sk->type!=SOCK_RAW || inet_sk(sk)->num!=IPPROTO_IGMP)
return -EOPNOTSUPP;
if(optlen!=sizeof(int))
return -ENOPROTOOPT;

--
Nature has made up her mind that | None learned the art of archery
what cannot defend itself shall | from me who did not make me, in the
not be defended. --Ralph Emerson | end, the target. --Saadi of Shiraz


2002-03-14 22:18:13

by David Miller

[permalink] [raw]