Commit c3a12cc5 authored by David S. Miller's avatar David S. Miller

Fix IPv4 multicast router build failure caused

by struct sock cleanups.
parent d28e0e20
...@@ -855,7 +855,7 @@ int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen) ...@@ -855,7 +855,7 @@ int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen)
switch(optname) switch(optname)
{ {
case MRT_INIT: 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; return -EOPNOTSUPP;
if(optlen!=sizeof(int)) if(optlen!=sizeof(int))
return -ENOPROTOOPT; 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