aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/ping.h
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2013-05-31 15:05:50 +0000
committerDavid S. Miller <davem@davemloft.net>2013-06-04 12:56:14 -0700
commitd862e546142328d18377a4704be97f2ae301847a (patch)
tree4e451fb85634796e095e39ef5598a104314dcf19 /include/net/ping.h
parentnet: ipv4: make the ping /proc code AF-independent (diff)
downloadwireguard-linux-d862e546142328d18377a4704be97f2ae301847a.tar.xz
wireguard-linux-d862e546142328d18377a4704be97f2ae301847a.zip
net: ipv6: Implement /proc/net/icmp6.
The format is based on /proc/net/icmp and /proc/net/{udp,raw}6. Compiles and displays reasonable results with CONFIG_IPV6={n,m,y} Couldn't figure out how to test without CONFIG_PROC_FS enabled. Signed-off-by: Lorenzo Colitti <lorenzo@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ping.h')
-rw-r--r--include/net/ping.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/ping.h b/include/net/ping.h
index b9282f019804..db04802f1673 100644
--- a/include/net/ping.h
+++ b/include/net/ping.h
@@ -95,6 +95,14 @@ struct ping_seq_afinfo {
const struct seq_operations seq_ops;
};
+extern const struct file_operations ping_seq_fops;
+
+void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family);
+void *ping_seq_next(struct seq_file *seq, void *v, loff_t *pos);
+void ping_seq_stop(struct seq_file *seq, void *v);
+int ping_proc_register(struct net *net, struct ping_seq_afinfo *afinfo);
+void ping_proc_unregister(struct net *net, struct ping_seq_afinfo *afinfo);
+
extern int __init ping_proc_init(void);
extern void ping_proc_exit(void);
#endif