diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-08 22:39:23 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-10-08 22:39:23 +0000 |
commit | 97722b077260a24a63e8d3c7b541f23774a2da63 (patch) | |
tree | 0482b54616011e1e2d2a6cf4c6f5afbd118db62d /capture_loop.h | |
parent | 45310c5487401602fb95070fafee88679ab8520c (diff) |
from Richard van der Hoff:
> [tshark from a fifo]
> Ulf - I notice you made the relevant change here (r16787) - is there any reason why tshark shouldn't use capture_loop_dispatch to do its processing, rather than attempting to use cap_pipe_dispatch or pcap_dispatch directly?
well, there didn't seem to be, so I've made a patch which does exactly this, and which fixes the problem.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19456 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_loop.h')
-rw-r--r-- | capture_loop.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/capture_loop.h b/capture_loop.h index 3b82d2f4b7..907e0c6ff3 100644 --- a/capture_loop.h +++ b/capture_loop.h @@ -155,10 +155,9 @@ typedef enum { extern initfilter_status_t capture_loop_init_filter(pcap_t *pcap_h, gboolean from_cap_pipe, const gchar * iface, gchar * cfilter); -#ifdef HAVE_LIBPCAP -extern int -cap_pipe_dispatch(loop_data *, guchar *, char *, int); -#endif +int +capture_loop_dispatch(capture_options *capture_opts _U_, loop_data *ld, + char *errmsg, int errmsg_len); extern gboolean capture_loop_open_input(capture_options *capture_opts, loop_data *ld, |