diff options
author | Rami Rosen <ramirose@gmail.com> | 2008-10-07 15:34:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-07 15:34:37 -0700 |
commit | b8bae41ed6a53cce56c50811a91cd963e3187d1c (patch) | |
tree | a54cbcedbfd4d4f88fe207068c9b910c884b6b20 /include/linux/inetdevice.h | |
parent | be713a443ee019489890e93654557916fbf72612 (diff) |
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/linux/inetdevice.h')
-rw-r--r-- | include/linux/inetdevice.h | 1 |
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; |