diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-08-02 21:45:27 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-08-02 21:45:27 +0000 |
commit | e5997f66439dccdf375160c3a4ad1b37c015d569 (patch) | |
tree | cca4caad8e2d8be6877bd0cb6820661817c69dfb /capture_sync.h | |
parent | 5f3cf2a8f23add3650a3c67592e213f85904039e (diff) |
Add a "-S" flag to dumpcap, which prints out interface statistics. Use
this in the GUI rather than calling pcap_stats() directly. This gets rid
of the last pcap_open_live() call in the GUI code. Update
README.packaging.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22443 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.h')
-rw-r--r-- | capture_sync.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/capture_sync.h b/capture_sync.h index e82027efc7..a0a9f55185 100644 --- a/capture_sync.h +++ b/capture_sync.h @@ -71,4 +71,17 @@ sync_interface_list_open(gchar **msg); extern int sync_linktype_list_open(gchar *ifname, gchar **msg); +/** Start getting interface statistics using dumpcap. */ +extern int +sync_interface_stats_open(int *read_fd, int *fork_child, gchar **msg); + +/** Stop gathering statistics. */ +extern int +sync_interface_stats_close(int *read_fd, int *fork_child, gchar **msg); + +/** Read a line from a pipe, similar to fgets. Non-blocking. */ +extern int +sync_pipe_gets_nonblock(int pipe, char *bytes, int max); + + #endif /* capture_sync.h */ |