[PATCH] 2.5.7-pre1 fix for api-caused ipmr.c compile failure

From: Justin Guyett (justin@soze.net)
Date: Thu Mar 14 2002 - 17:10:44 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 15 2002 - 22:00:19 EST