summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRami Rosen <ramirose@gmail.com>2008-10-08 02:34:37 +0400
committerDavid S. Miller <davem@davemloft.net>2008-10-08 02:34:37 +0400
commitb8bae41ed6a53cce56c50811a91cd963e3187d1c (patch)
treea54cbcedbfd4d4f88fe207068c9b910c884b6b20 /include
parentbe713a443ee019489890e93654557916fbf72612 (diff)
downloadlinux-b8bae41ed6a53cce56c50811a91cd963e3187d1c.tar.xz
ipv4: add mc_count to in_device.
This patch add mc_count to struct in_device and updates increment/decrement/initilaize of this field in IPv4 and in IPv6. - Also printing the vfs /proc entry (/proc/net/igmp) is adjusted to use the new mc_count. Signed-off-by: Rami Rosen <ramirose@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/inetdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h
index c6f51ad52d5b..06fcdb45106b 100644
--- a/include/linux/inetdevice.h
+++ b/include/linux/inetdevice.h
@@ -25,6 +25,7 @@ struct in_device
struct in_ifaddr *ifa_list; /* IP ifaddr chain */
rwlock_t mc_list_lock;
struct ip_mc_list *mc_list; /* IP multicast filter chain */
+ int mc_count; /* Number of installed mcasts */
spinlock_t mc_tomb_lock;
struct ip_mc_list *mc_tomb;
unsigned long mr_v1_seen;