Commit 181986d5 authored by Adam J. Richter's avatar Adam J. Richter Committed by Linus Torvalds

[PATCH] Patch: linux-2.5.7-pre1/net/ipv4/ipmr.c did not compile

	It looks like sk->num became inet_sk(sk)->num in 2.5.7-pre1,
but one of these changes was missed in net/ipv4/ipmr.c.  Here is
the patch.
parent 332a48e1
......@@ -855,7 +855,8 @@ int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment