patch-2.4.0-test7 linux/net/ipv4/ip_sockglue.c
Next file: linux/net/ipv4/netfilter/Makefile
Previous file: linux/net/ipv4/ip_input.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Thu Aug 10 13:01:26 2000
- Orig file:
v2.4.0-test6/linux/net/ipv4/ip_sockglue.c
- Orig date:
Wed Aug 9 19:19:51 2000
diff -u --recursive --new-file v2.4.0-test6/linux/net/ipv4/ip_sockglue.c linux/net/ipv4/ip_sockglue.c
@@ -5,7 +5,7 @@
*
* The IP to API glue.
*
- * Version: $Id: ip_sockglue.c,v 1.50 2000/07/26 01:04:17 davem Exp $
+ * Version: $Id: ip_sockglue.c,v 1.51 2000/08/09 11:59:04 davem Exp $
*
* Authors: see ip.c
*
@@ -724,16 +724,14 @@
break;
case IP_MULTICAST_IF:
{
- struct ip_mreqn mreq;
- len = min(len,sizeof(struct ip_mreqn));
- mreq.imr_ifindex = sk->protinfo.af_inet.mc_index;
- mreq.imr_address.s_addr = sk->protinfo.af_inet.mc_addr;
- mreq.imr_multiaddr.s_addr = 0;
+ struct in_addr addr;
+ len = min(len,sizeof(struct in_addr));
+ addr.s_addr = sk->protinfo.af_inet.mc_addr;
release_sock(sk);
if(put_user(len, optlen))
return -EFAULT;
- if(copy_to_user((void *)optval, &mreq, len))
+ if(copy_to_user((void *)optval, &addr, len))
return -EFAULT;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)