1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
|
# Programs that we compile:
bin_PROGRAMS = tcpflow
if WIFI_ENABLED
WIFI_INCS = -I${top_srcdir}/src/wifipcap
else
WIFI_INCS =
endif
AM_CPPFLAGS = -I${top_srcdir}/src/be13_api $(WIFI_INCS)
CONFIG_CLEAN_FILES = config.h # old location of config.h
include dfxml/src/Makefile.defs
include be13_api/Makefile.defs
# http://stackoverflow.com/questions/11438613/conditional-subdir-objects
AUTOMAKE_OPTIONS = subdir-objects
NETVIZ = \
netviz/plot_view.cpp \
netviz/plot_view.h \
netviz/time_histogram_view.cpp \
netviz/time_histogram_view.h \
netviz/time_histogram.cpp \
netviz/time_histogram.h \
netviz/address_histogram_view.cpp \
netviz/address_histogram_view.h \
netviz/address_histogram.cpp \
netviz/address_histogram.h \
netviz/port_histogram_view.cpp \
netviz/port_histogram_view.h \
netviz/port_histogram.cpp \
netviz/port_histogram.h \
netviz/packetfall.cpp \
netviz/packetfall.h \
netviz/net_map.cpp \
netviz/net_map.h \
netviz/legend_view.cpp \
netviz/legend_view.h \
netviz/one_page_report.cpp \
netviz/one_page_report.h
WIFI = datalink_wifi.cpp \
datalink_wifi.h \
scan_wifiviz.cpp \
wifipcap/TimeVal.cpp \
wifipcap/TimeVal.h \
wifipcap/arp.h \
wifipcap/cpack.cpp \
wifipcap/cpack.h \
wifipcap/ether.h \
wifipcap/ethertype.h \
wifipcap/extract.h \
wifipcap/icmp.h \
wifipcap/ieee802_11_radio.h \
wifipcap/ip.h \
wifipcap/ip6.h \
wifipcap/ipproto.h \
wifipcap/llc.h \
wifipcap/os.h \
wifipcap/oui.h \
wifipcap/prism.h \
wifipcap/radiotap.h \
wifipcap/tcp.h \
wifipcap/types.h \
wifipcap/udp.h \
wifipcap/util.h \
wifipcap/wifipcap.cpp \
wifipcap/wifipcap.h
if WIFI_ENABLED
WIFI_FILES = $(WIFI)
else
WIFI_FILES =
endif
tcpflow_SOURCES = \
$(DFXML_WRITER) $(NETVIZ) $(BE13_API) $(WIFI_FILES) \
datalink.cpp flow.cpp \
tcpflow.cpp \
tcpip.h tcpip.cpp \
tcpdemux.h tcpdemux.cpp \
intrusive_list.h \
tcpflow.h util.cpp \
scan_md5.cpp \
scan_http.cpp \
scan_python.cpp \
scan_tcpdemux.cpp \
scan_netviz.cpp \
pcap_writer.h \
iptree.h \
mime_map.cpp \
mime_map.h
tcpflow_LDADD = -lhttp_parser
EXTRA_DIST =\
inet_ntop.c \
inet_ntop.h \
wifipcap/README.txt \
wifipcap/TimeVal.cpp \
wifipcap/TimeVal.h \
wifipcap/arp.h \
wifipcap/ether.h \
wifipcap/ethertype.h \
wifipcap/extract.h \
wifipcap/icmp.h \
wifipcap/ieee802_11_radio.h \
wifipcap/ip.h \
wifipcap/ip6.h \
wifipcap/ipproto.h \
wifipcap/os.h \
wifipcap/oui.h \
wifipcap/prism.h \
wifipcap/radiotap.h \
wifipcap/sample.cpp \
wifipcap/tcp.h \
wifipcap/types.h \
wifipcap/udp.h \
wifipcap/util.cpp \
wifipcap/util.h \
wifipcap/wifipcap.cpp \
wifipcap/wifipcap.h
testiph: tcpflow
echo Testing the IP histogram
for i in 100 1000 10000 ; \
do /bin/rm -f test-$$i out-$$i.txt ; \
./tcpflow -o test1 -S iphtest=1 -S iphtrim=$$i -r /corp/nps/packets/2008-nitroba/nitroba.pcap > iphtest-nitroba-$$i.txt ; \
done
diff ../tests/iphtest-nitroba-100.txt iphtest-nitroba-100.txt
diff ../tests/iphtest-nitroba-1000.txt iphtest-nitroba-1000.txt
diff ../tests/iphtest-nitroba-10000.txt iphtest-nitroba-10000.txt
echo iptree appears okay.
|