diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-02-06 21:20:35 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-02-06 21:20:35 +0000 |
commit | 3a63719e389bd9fd1f27a1a467501c8d7fe3eb69 (patch) | |
tree | 0ed850112dc342fd11812f8dba14fa2cb1a08b33 /summary.h | |
parent | a6694a746ff0ff2402e3989dfb3cf135122cf821 (diff) |
another two steps towards privilege seperation:
move another two capture related fields (iface and cfilter) from cfile to capture_opts
also move the handling of capture related command line options from main.c to capture.c, that way a future privilege seperated capture program can use the same code to parse it's command line than Ethereal.
It might be even possible to share this parser code even with Tethereal, didn't took a closer look at this.
svn path=/trunk/; revision=13320
Diffstat (limited to 'summary.h')
-rw-r--r-- | summary.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -25,6 +25,10 @@ #ifndef __SUMMARY_H__ #define __SUMMARY_H__ +#ifdef HAVE_LIBPCAP +#include "capture.h" +#endif + typedef struct _summary_tally { guint32 bytes; /* total bytes */ double start_time; /* seconds, with msec resolution */ @@ -48,9 +52,16 @@ typedef struct _summary_tally { const char *iface; /* interface name */ const char *dfilter; /* display filter */ const char *cfilter; /* capture filter */ + const char *iface_descr;/* descriptive interface name */ } summary_tally; -void summary_fill_in(capture_file *cf, summary_tally *st); +extern void +summary_fill_in(capture_file *cf, summary_tally *st); + +#ifdef HAVE_LIBPCAP +extern void +summary_fill_in_capture(capture_options *capture_opts, summary_tally *st); +#endif #endif /* summary.h */ |