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