patch-2.2.0-pre5 linux/net/ipv4/igmp.c
Next file: linux/net/ipv4/ip_fw.c
Previous file: linux/net/ipv4/icmp.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Jan 4 15:31:35 1999
- Orig file:
v2.2.0-pre4/linux/net/ipv4/igmp.c
- Orig date:
Sat Sep 5 16:46:42 1998
diff -u --recursive --new-file v2.2.0-pre4/linux/net/ipv4/igmp.c linux/net/ipv4/igmp.c
@@ -8,7 +8,7 @@
* the older version didn't come out right using gcc 2.5.8, the newer one
* seems to fall out with gcc 2.6.2.
*
- * Version: $Id: igmp.c,v 1.27 1998/08/26 12:03:39 davem Exp $
+ * Version: $Id: igmp.c,v 1.28 1998/11/30 15:53:13 davem Exp $
*
* Authors:
* Alan Cox <Alan.Cox@linux.org>
@@ -538,6 +538,7 @@
/*
* Join a socket to a group
*/
+int sysctl_igmp_max_memberships = IP_MAX_MEMBERSHIPS;
int ip_mc_join_group(struct sock *sk , struct ip_mreqn *imr)
{
@@ -578,7 +579,7 @@
count++;
}
err = -ENOBUFS;
- if (iml == NULL || count >= IP_MAX_MEMBERSHIPS)
+ if (iml == NULL || count >= sysctl_igmp_max_memberships)
goto done;
memcpy(&iml->multi, imr, sizeof(*imr));
iml->next = sk->ip_mc_list;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov