diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-10-08 22:39:23 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-10-08 22:39:23 +0000 |
commit | 599ca2b82423b3107a04c9f7f6f0126cf39ffabb (patch) | |
tree | 0482b54616011e1e2d2a6cf4c6f5afbd118db62d /capture_loop.h | |
parent | e70c6303e12c69a2b339aa8d17811bcf5512da72 (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.
svn path=/trunk/; revision=19456
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, |