diff options
| author | Hideaki Yoshifuji <yoshfuji@linux-ipv6.org> | 2003-05-25 05:40:29 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-05-25 05:40:29 -0700 |
| commit | 2170b688ae64371fa995b83027e622cb1a99166d (patch) | |
| tree | ace68f1019ab2f5a47d07780ea443e0173ebf904 /include | |
| parent | 91396556af0accbc2c92e434ba73612d7d49485d (diff) | |
[IPV4/6]: Common UDP procfs infrastructure.
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/udp.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 4684cba23be2..766330ad75b0 100644 --- a/include/net/udp.h +++ b/include/net/udp.h @@ -26,6 +26,7 @@ #include <linux/ip.h> #include <net/sock.h> #include <net/snmp.h> +#include <linux/seq_file.h> #define UDP_HTABLE_SIZE 128 @@ -77,4 +78,21 @@ DECLARE_SNMP_STAT(struct udp_mib, udp_statistics); #define UDP_INC_STATS_BH(field) SNMP_INC_STATS_BH(udp_statistics, field) #define UDP_INC_STATS_USER(field) SNMP_INC_STATS_USER(udp_statistics, field) +/* /proc */ +struct udp_seq_afinfo { + struct module *owner; + char *name; + sa_family_t family; + int (*seq_show) (struct seq_file *m, void *v); + struct file_operations *seq_fops; +}; + +struct udp_iter_state { + sa_family_t family; + int bucket; + struct seq_operations seq_ops; +}; + +extern int udp_proc_register(struct udp_seq_afinfo *afinfo); +extern void udp_proc_unregister(struct udp_seq_afinfo *afinfo); #endif /* _UDP_H */ |
