diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2013-05-31 15:05:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-04 12:56:14 -0700 |
commit | d862e546142328d18377a4704be97f2ae301847a (patch) | |
tree | 4e451fb85634796e095e39ef5598a104314dcf19 /include/net/ping.h | |
parent | 8cc785f6f429c2a3fb81745dc142cbd72a462c4a (diff) |
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.h | 8 |
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 |