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

Frank Davis (fdavis@si.rr.com)
Tue, 12 Mar 2002 21:04:13 -0500 (EST)


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;

-
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/