From 599ca2b82423b3107a04c9f7f6f0126cf39ffabb Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sun, 8 Oct 2006 22:39:23 +0000 Subject: 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. svn path=/trunk/; revision=19456 --- capture_loop.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'capture_loop.h') 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, -- cgit v1.2.3