From 879d656537c910b8393cdcb8f7b911edcec9bd1e Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Tue, 25 Sep 2007 21:55:06 +0000 Subject: as "advertised" some days ago: rewrite the tshark capture code almost completely, to use dumpcap instead of it's own pcap functionality. This works on Win32 and should work on unix/linux (but I'm not sure here). Some stuff needs to be cleaned up, some more may need to be rewritten to specifically work with unix/win32. Futher work needs to be done at: 1. read filters (simply document current behaviour?) 2. event loop polling 3. privileges 4. code cleanup (e.g. in capture_loop.c) Be prepared that tshark might not work as before / expected at least in the next days! svn path=/trunk/; revision=22969 --- Makefile.common | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'Makefile.common') diff --git a/Makefile.common b/Makefile.common index fff39022b6..74d153c214 100644 --- a/Makefile.common +++ b/Makefile.common @@ -49,17 +49,13 @@ WIRESHARK_COMMON_SRC = \ $(PLATFORM_SRC) \ capture_errs.c \ capture-pcap-util.c \ - capture_stop_conditions.c \ capture_ui_utils.c \ cfile.c \ clopts_common.c \ - conditions.c \ disabled_protos.c \ packet-range.c \ print.c \ ps.c \ - pcapio.c \ - ringbuffer.c \ timestats.c \ util.c \ version_info.c @@ -70,23 +66,19 @@ WIRESHARK_COMMON_INCLUDES = \ capture_errs.h \ capture-pcap-util.h \ capture-pcap-util-int.h \ - capture_stop_conditions.h \ capture_ui_utils.h \ cfile.h \ clopts_common.h \ cmdarg_err.h \ color.h \ - conditions.h \ disabled_protos.h \ file.h \ fileset.h \ isprint.h \ packet-range.h \ - pcapio.h \ print.h \ ps.h \ register.h \ - ringbuffer.h \ tempfile.h \ timestats.h \ util.h \ @@ -166,7 +158,6 @@ wireshark_INCLUDES = \ alert_box.h \ capture.h \ capture_info.h \ - capture_loop.h \ capture_opts.h \ capture_sync.h \ color_filters.h \ @@ -192,7 +183,7 @@ tshark_SOURCES = \ $(WIRESHARK_COMMON_SRC) \ $(TSHARK_TAP_SRC) \ capture_opts.c \ - capture_loop.c \ + capture_sync.c \ tempfile.c \ tshark-tap-register.c \ tshark.c @@ -244,9 +235,17 @@ dumpcap_SOURCES = \ version_info.c \ epan/unicode-utils.c +# corresponding headers +dumpcap_INCLUDES = \ + capture_loop.h \ + capture_stop_conditions.h \ + conditions.h \ + pcapio.h \ + ringbuffer.h \ # this target needed for distribution only noinst_HEADERS = \ $(WIRESHARK_COMMON_INCLUDES) \ $(wireshark_INCLUDES) \ - $(EXTRA_wireshark_INCLUDES) + $(EXTRA_wireshark_INCLUDES) \ + $(dumpcap_INCLUDES) -- cgit v1.2.3