aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorJeremy Eder <jeder@redhat.com>2010-11-15 00:41:31 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-17 14:22:06 -0500
commitd67ef35fff67845c64d806c033cc7c569ccebfff (patch)
tree4dea9054aa80cdb0b9c4a3a020aa11509f60bf72 /Documentation/networking
parent9920239c90d5f6dadfb44325abf3568a5e3fd827 (diff)
clarify documentation for net.ipv4.igmp_max_memberships
This patch helps clarify documentation for net.ipv4.igmp_max_memberships by providing a formula for calculating the maximum number of multicast groups that can be subscribed to, plus defining the theoretical limit. Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: Jeremy Eder <jeder@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/ip-sysctl.txt24
1 files changed, 21 insertions, 3 deletions
diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt
index fe95105992c5..ae5522703d16 100644
--- a/Documentation/networking/ip-sysctl.txt
+++ b/Documentation/networking/ip-sysctl.txt
@@ -707,10 +707,28 @@ igmp_max_memberships - INTEGER
707 Change the maximum number of multicast groups we can subscribe to. 707 Change the maximum number of multicast groups we can subscribe to.
708 Default: 20 708 Default: 20
709 709
710conf/interface/* changes special settings per interface (where "interface" is 710 Theoretical maximum value is bounded by having to send a membership
711 the name of your network interface) 711 report in a single datagram (i.e. the report can't span multiple
712conf/all/* is special, changes the settings for all interfaces 712 datagrams, or risk confusing the switch and leaving groups you don't
713 intend to).
713 714
715 The number of supported groups 'M' is bounded by the number of group
716 report entries you can fit into a single datagram of 65535 bytes.
717
718 M = 65536-sizeof (ip header)/(sizeof(Group record))
719
720 Group records are variable length, with a minimum of 12 bytes.
721 So net.ipv4.igmp_max_memberships should not be set higher than:
722
723 (65536-24) / 12 = 5459
724
725 The value 5459 assumes no IP header options, so in practice
726 this number may be lower.
727
728 conf/interface/* changes special settings per interface (where
729 "interface" is the name of your network interface)
730
731 conf/all/* is special, changes the settings for all interfaces
714 732
715log_martians - BOOLEAN 733log_martians - BOOLEAN
716 Log packets with impossible addresses to kernel log. 734 Log packets with impossible addresses to kernel log.