summaryrefslogtreecommitdiffstats
path: root/net/ipv6/proc.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-04-21 00:57:45 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 07:29:13 +0200
commit1370b5a59b941ac3873b5e8614d496e9f481d670 (patch)
tree16d2cd7e2496270ec43a7f6652d8bc3fd431ae0d /net/ipv6/proc.c
parent[IPV4] SNMP: Move some statistic bits to net/ipv4/proc.c. (diff)
downloadlinux-1370b5a59b941ac3873b5e8614d496e9f481d670.tar.xz
linux-1370b5a59b941ac3873b5e8614d496e9f481d670.zip
[IPV6] SNMP: Export statistics via netlink without CONFIG_PROC_FS.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv6/proc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index 5c3ce1c687c9..c847cef626a8 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -141,6 +141,7 @@ static struct snmp_mib snmp6_udplite6_list[] = {
SNMP_MIB_ITEM("UdpLite6OutDatagrams", UDP_MIB_OUTDATAGRAMS),
SNMP_MIB_SENTINEL
};
+#endif /* CONFIG_PROC_FS */
static unsigned long
fold_field(void *mib[], int offt)
@@ -155,6 +156,7 @@ fold_field(void *mib[], int offt)
return res;
}
+#ifdef CONFIG_PROC_FS
static inline void
snmp6_seq_show_item(struct seq_file *seq, void **mib, struct snmp_mib *itemlist)
{
@@ -206,6 +208,7 @@ static const struct file_operations snmp6_seq_fops = {
.llseek = seq_lseek,
.release = single_release,
};
+#endif /* CONFIG_PROC_FS */
static inline void
__snmp6_fill_stats(u64 *stats, void **mib, int items, int bytes)
@@ -232,6 +235,7 @@ snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, int bytes)
}
}
+#ifdef CONFIG_PROC_FS
int snmp6_register_dev(struct inet6_dev *idev)
{
struct proc_dir_entry *p;
@@ -309,12 +313,6 @@ int snmp6_unregister_dev(struct inet6_dev *idev)
return 0;
}
-void
-snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, int bytes)
-{
- memset(stats, 0, sizeof(bytes));
-}
-
#endif /* CONFIG_PROC_FS */
int snmp6_alloc_dev(struct inet6_dev *idev)