summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2003-04-25 07:02:11 -0700
committerHideaki Yoshifuji <yoshfuji@linux-ipv6.org>2003-04-25 07:02:11 -0700
commit4b3c7f8a6b93d57baafdee131ffd5db11832c186 (patch)
tree16ca20f1af8b186ef147f517922b993339237a7b /include
parentcb319625b4706c7b0055128bc99906af3c4d8b5f (diff)
[IPV6]: Per-interface statistics infrastructure.
Diffstat (limited to 'include')
-rw-r--r--include/net/if_inet6.h5
-rw-r--r--include/net/ipv6.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h
index 59d5a888c921..ad5416f1c224 100644
--- a/include/net/if_inet6.h
+++ b/include/net/if_inet6.h
@@ -152,6 +152,10 @@ struct ipv6_devconf
void *sysctl;
};
+struct ipv6_devstat {
+ struct proc_dir_entry *proc_dir_entry;
+};
+
struct inet6_dev
{
struct net_device *dev;
@@ -185,6 +189,7 @@ struct inet6_dev
struct neigh_parms *nd_parms;
struct inet6_dev *next;
struct ipv6_devconf cnf;
+ struct ipv6_devstat stats;
};
extern struct ipv6_devconf ipv6_devconf;
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index b66bbae74d77..5be656b3616b 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -123,6 +123,8 @@ DECLARE_SNMP_STAT(struct udp_mib, udp_stats_in6);
#define UDP6_INC_STATS_USER(field) SNMP_INC_STATS_USER(udp_stats_in6, field)
extern atomic_t inet6_sock_nr;
+int snmp6_register_dev(struct inet6_dev *idev);
+int snmp6_unregister_dev(struct inet6_dev *idev);
int snmp6_mib_init(void *ptr[2], size_t mibsize);
void snmp6_mib_free(void *ptr[2]);