2002-03-13 02:19:33

by Frank Davis

[permalink] [raw]
Subject: [PATCH] 2.5.7-pre1: net/ipv4/ipmr.c

Hello all,
The following patch fixes following compile error:
ipmr.c: In function `ip_mroute_setsockopt':
ipmr.c:858: structure has no member named `num'
make[3]: *** [ipmr.o] Error 1
make[3]: Leaving directory `/usr/src/linux/net/ipv4'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/net/ipv4'
make[1]: *** [_subdir_ipv4] Error 2
make[1]: Leaving directory `/usr/src/linux/net'
make: *** [_dir_net] Error 2

--- net/ipv4/ipmr.c.old Sun Feb 3 19:55:14 2002
+++ net/ipv4/ipmr.c Tue Mar 12 20:59:44 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;