123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101 |
- # Makefile.in generated by automake 1.15 from Makefile.am.
- # @configure_input@
- # Copyright (C) 1994-2014 Free Software Foundation, Inc.
- # This Makefile.in is free software; the Free Software Foundation
- # gives unlimited permission to copy and/or distribute it,
- # with or without modifications, as long as this notice is preserved.
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
- # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- # PARTICULAR PURPOSE.
- @SET_MAKE@
- VPATH = @srcdir@
- am__is_gnu_make = { \
- if test -z '$(MAKELEVEL)'; then \
- false; \
- elif test -n '$(MAKE_HOST)'; then \
- true; \
- elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
- true; \
- else \
- false; \
- fi; \
- }
- am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
- am__make_dryrun = (target_option=n; $(am__make_running_with_option))
- am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
- pkgdatadir = $(datadir)/@PACKAGE@
- pkgincludedir = $(includedir)/@PACKAGE@
- pkglibdir = $(libdir)/@PACKAGE@
- pkglibexecdir = $(libexecdir)/@PACKAGE@
- am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
- install_sh_DATA = $(install_sh) -c -m 644
- install_sh_PROGRAM = $(install_sh) -c
- install_sh_SCRIPT = $(install_sh) -c
- INSTALL_HEADER = $(INSTALL_DATA)
- transform = $(program_transform_name)
- NORMAL_INSTALL = :
- PRE_INSTALL = :
- POST_INSTALL = :
- NORMAL_UNINSTALL = :
- PRE_UNINSTALL = :
- POST_UNINSTALL = :
- build_triplet = @build@
- host_triplet = @host@
- target_triplet = @target@
- subdir = test
- ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
- am__aclocal_m4_deps = $(top_srcdir)/m4/libopts.m4 \
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
- $(top_srcdir)/m4/lt~obsolete.m4 \
- $(top_srcdir)/m4/stdnoreturn.m4 $(top_srcdir)/acinclude.m4 \
- $(top_srcdir)/configure.ac
- am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
- DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
- mkinstalldirs = $(install_sh) -d
- CONFIG_HEADER = $(top_builddir)/src/config.h
- CONFIG_CLEAN_FILES = config
- CONFIG_CLEAN_VPATH_FILES =
- AM_V_P = $(am__v_P_@AM_V@)
- am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
- am__v_P_0 = false
- am__v_P_1 = :
- AM_V_GEN = $(am__v_GEN_@AM_V@)
- am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
- am__v_GEN_0 = @echo " GEN " $@;
- am__v_GEN_1 =
- AM_V_at = $(am__v_at_@AM_V@)
- am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
- am__v_at_0 = @
- am__v_at_1 =
- SOURCES =
- DIST_SOURCES =
- am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
- am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
- am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.in
- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
- ACLOCAL = @ACLOCAL@
- AMTAR = @AMTAR@
- AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
- AR = @AR@
- AUTOCONF = @AUTOCONF@
- AUTOGEN = @AUTOGEN@
- AUTOHEADER = @AUTOHEADER@
- AUTOMAKE = @AUTOMAKE@
- AWK = @AWK@
- CC = @CC@
- CCDEPMODE = @CCDEPMODE@
- CFLAGS = @CFLAGS@
- CPP = @CPP@
- CPPFLAGS = @CPPFLAGS@
- CROSS_ARCH = @CROSS_ARCH@
- CROSS_LD = @CROSS_LD@
- CUT = @CUT@
- CXX = @CXX@
- CXXCPP = @CXXCPP@
- CXXDEPMODE = @CXXDEPMODE@
- CXXFLAGS = @CXXFLAGS@
- CYGPATH_W = @CYGPATH_W@
- DEFS = @DEFS@
- DEPDIR = @DEPDIR@
- DLLTOOL = @DLLTOOL@
- DMALLOC_LIB = @DMALLOC_LIB@
- DSYMUTIL = @DSYMUTIL@
- DUMPBIN = @DUMPBIN@
- ECHO = @ECHO@
- ECHO_C = @ECHO_C@
- ECHO_N = @ECHO_N@
- ECHO_T = @ECHO_T@
- EGREP = @EGREP@
- EXEEXT = @EXEEXT@
- FGREP = @FGREP@
- GREP = @GREP@
- GROFF = @GROFF@
- INSTALL = @INSTALL@
- INSTALL_DATA = @INSTALL_DATA@
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
- INSTALL_SCRIPT = @INSTALL_SCRIPT@
- INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
- LD = @LD@
- LDFLAGS = @LDFLAGS@
- LDNETINC = @LDNETINC@
- LDNETLIB = @LDNETLIB@
- LIBOBJS = @LIBOBJS@
- LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
- LIBOPTS_DIR = @LIBOPTS_DIR@
- LIBOPTS_LDADD = @LIBOPTS_LDADD@
- LIBS = @LIBS@
- LIBTOOL = @LIBTOOL@
- LIPO = @LIPO@
- LNAVLIB = @LNAVLIB@
- LNAV_CFLAGS = @LNAV_CFLAGS@
- LN_S = @LN_S@
- LPCAPINC = @LPCAPINC@
- LPCAPLIB = @LPCAPLIB@
- LTLIBOBJS = @LTLIBOBJS@
- LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
- MACOSX_SDK_PATH = @MACOSX_SDK_PATH@
- MAINT = @MAINT@
- MAKEINFO = @MAKEINFO@
- MANIFEST_TOOL = @MANIFEST_TOOL@
- MKDIR_P = @MKDIR_P@
- NETMAPFLAGS = @NETMAPFLAGS@
- NETMAPINC = @NETMAPINC@
- NETMAPINCDIR = @NETMAPINCDIR@
- NETMAPUSERINC = @NETMAPUSERINC@
- NM = @NM@
- NMEDIT = @NMEDIT@
- OBJDUMP = @OBJDUMP@
- OBJEXT = @OBJEXT@
- OTOOL = @OTOOL@
- OTOOL64 = @OTOOL64@
- PACKAGE = @PACKAGE@
- PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
- PACKAGE_NAME = @PACKAGE_NAME@
- PACKAGE_STRING = @PACKAGE_STRING@
- PACKAGE_TARNAME = @PACKAGE_TARNAME@
- PACKAGE_URL = @PACKAGE_URL@
- PACKAGE_VERSION = @PACKAGE_VERSION@
- PATH_SEPARATOR = @PATH_SEPARATOR@
- PCAP_BPF_H_FILE = @PCAP_BPF_H_FILE@
- PCAP_CONFIG = @PCAP_CONFIG@
- POSIX_SHELL = @POSIX_SHELL@
- PRINTF = @PRINTF@
- RANLIB = @RANLIB@
- SED = @SED@
- SET_MAKE = @SET_MAKE@
- SHELL = @SHELL@
- STDNORETURN_H = @STDNORETURN_H@
- STRIP = @STRIP@
- TCPREPLAY_RELEASE = @TCPREPLAY_RELEASE@
- TCPREPLAY_VERSION = @TCPREPLAY_VERSION@
- VERSION = @VERSION@
- abs_builddir = @abs_builddir@
- abs_srcdir = @abs_srcdir@
- abs_top_builddir = @abs_top_builddir@
- abs_top_srcdir = @abs_top_srcdir@
- ac_ct_AR = @ac_ct_AR@
- ac_ct_CC = @ac_ct_CC@
- ac_ct_CXX = @ac_ct_CXX@
- ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
- am__include = @am__include@
- am__leading_dot = @am__leading_dot@
- am__quote = @am__quote@
- am__tar = @am__tar@
- am__untar = @am__untar@
- bindir = @bindir@
- build = @build@
- build_alias = @build_alias@
- build_asan = @build_asan@
- build_cpu = @build_cpu@
- build_os = @build_os@
- build_vendor = @build_vendor@
- builddir = @builddir@
- datadir = @datadir@
- datarootdir = @datarootdir@
- debug_flag = @debug_flag@
- debug_run_time_flag = @debug_run_time_flag@
- depmod = @depmod@
- docdir = @docdir@
- dvidir = @dvidir@
- exec_prefix = @exec_prefix@
- extra_debug_flag = @extra_debug_flag@
- host = @host@
- host_alias = @host_alias@
- host_cpu = @host_cpu@
- host_os = @host_os@
- host_vendor = @host_vendor@
- htmldir = @htmldir@
- includedir = @includedir@
- infodir = @infodir@
- insmod = @insmod@
- install_sh = @install_sh@
- libdir = @libdir@
- libexecdir = @libexecdir@
- localedir = @localedir@
- localstatedir = @localstatedir@
- mandir = @mandir@
- mkdir_p = @mkdir_p@
- nic1 = @nic1@
- nic2 = @nic2@
- oldincludedir = @oldincludedir@
- pcncfg = @pcncfg@
- pdfdir = @pdfdir@
- prefix = @prefix@
- program_transform_name = @program_transform_name@
- psdir = @psdir@
- rmmod = @rmmod@
- runstatedir = @runstatedir@
- sbindir = @sbindir@
- sharedstatedir = @sharedstatedir@
- srcdir = @srcdir@
- sysconfdir = @sysconfdir@
- target = @target@
- target_alias = @target_alias@
- target_cpu = @target_cpu@
- target_os = @target_os@
- target_vendor = @target_vendor@
- tcpdump_path = @tcpdump_path@
- timestamp_trace_flag = @timestamp_trace_flag@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- # $Id$
- MAKEFLAGS = -s -k
- HOST = @host@
- TARGET = @target@
- BUILD = @build@
- ENABLE_DEBUG = @debug_run_time_flag@
- TCPPREP = ../src/tcpprep --no-arg-comment
- TCPREPLAY = ../src/tcpreplay
- TCPREWRITE = ../src/tcprewrite
- TCPBRIDGE = ../src/tcpbridge
- TEST_PCAP = $(srcdir)/test.pcap
- EXTRA_DIST = test.pcap test.auto_bridge test.auto_client test.auto_router \
- test.auto_server test.auto_first test.cidr test.comment test.port test.mac \
- test.cidr_reverse test.mac_reverse test.regex_reverse \
- test.include_packets test.exclude_packets test.include_source \
- test.include_dest test.prep_config \
- test.primary test.regex test.secondary \
- test.rewrite_seed test.rewrite_portmap test.rewrite_endpoint \
- test.rewrite_pnat test.rewrite_pad test.rewrite_trunc \
- test.rewrite_mac test.rewrite_layer2 test.rewrite_config \
- test.rewrite_skip test.rewrite_dltuser test.rewrite_dlthdlc \
- test.rewrite_vlandel test.rewrite_efcs test.rewrite_1ttl \
- test.rewrite_2ttl test.rewrite_3ttl test.rewrite_enet_subsmac \
- test.rewrite_mtutrunc test.rewrite_mac_seed test.rewrite_range_portmap \
- test.rewrite_mac_seed_keep test.rewrite_l7fuzzing test.rewrite_sequence \
- test2.rewrite_seed test2.rewrite_portmap test2.rewrite_endpoint \
- test2.rewrite_pnat test2.rewrite_pad test2.rewrite_trunc \
- test2.rewrite_mac test2.rewrite_layer2 test2.rewrite_config \
- test2.rewrite_skip test2.rewrite_dltuser test2.rewrite_dlthdlc \
- test2.rewrite_vlandel test2.rewrite_efcs test2.rewrite_1ttl \
- test2.rewrite_mtutrunc test2.rewrite_enet_subsmac \
- test2.rewrite_2ttl test2.rewrite_3ttl test.rewrite_tos test2.rewrite_tos \
- test2.rewrite_enet_subsmac test2.rewrite_mac_seed \
- test2.rewrite_range_portmap test2.rewrite_mac_seed_keep \
- test2.rewrite_l7fuzzing test2.rewrite_sequence
- @WORDS_BIGENDIAN_FALSE@STANDARD_REWRITE = standard_littleendian
- @WORDS_BIGENDIAN_TRUE@STANDARD_REWRITE = standard_bigendian
- @WORDS_BIGENDIAN_FALSE@REWRITE_WARN = "little"
- @WORDS_BIGENDIAN_TRUE@REWRITE_WARN = "big"
- all: all-am
- .SUFFIXES:
- $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign test/Makefile
- Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
- $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
- $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
- $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
- $(am__aclocal_m4_deps):
- config: $(top_builddir)/config.status $(srcdir)/config.in
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
- mostlyclean-libtool:
- -rm -f *.lo
- clean-libtool:
- -rm -rf .libs _libs
- tags TAGS:
- ctags CTAGS:
- cscope cscopelist:
- distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- check-am: all-am
- check: check-am
- all-am: Makefile
- installdirs:
- install: install-am
- install-exec: install-exec-am
- install-data: install-data-am
- uninstall: uninstall-am
- install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
- installcheck: installcheck-am
- install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
- mostlyclean-generic:
- clean-generic:
- distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
- maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- clean-am: clean-generic clean-libtool mostlyclean-am
- distclean-am: clean-am distclean-generic
- dvi: dvi-am
- dvi-am:
- html: html-am
- html-am:
- info: info-am
- info-am:
- install-data-am:
- install-dvi: install-dvi-am
- install-dvi-am:
- install-exec-am:
- install-html: install-html-am
- install-html-am:
- install-info: install-info-am
- install-info-am:
- install-man:
- install-pdf: install-pdf-am
- install-pdf-am:
- install-ps: install-ps-am
- install-ps-am:
- installcheck-am:
- maintainer-clean-am: distclean-am maintainer-clean-generic
- mostlyclean: mostlyclean-am
- mostlyclean-am: mostlyclean-generic mostlyclean-libtool
- pdf: pdf-am
- pdf-am:
- ps: ps-am
- ps-am:
- uninstall-am:
- .MAKE: install-am install-strip
- .PHONY: all all-am check check-am clean clean-generic clean-libtool \
- cscopelist-am ctags-am distclean distclean-generic \
- distclean-libtool distdir dvi dvi-am html html-am info info-am \
- install install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
- tags-am uninstall uninstall-am
- .PRECIOUS: Makefile
- test: all
- all: clearlog check tcpprep tcpreplay tcprewrite
- clearlog:
- -rm test.log
- check:
- $(PRINTF) "%s\n" "NOTICE: Tests must be run as root"
- $(PRINTF) "%s\n" "Sending traffic on '$(nic1)' and '$(nic2)'"
- standard: standard_prep $(STANDARD_REWRITE)
- $(PRINTF) "Warning: only creating %s endian standard test files\n" $(REWRITE_WARN)
- standard_prep:
- $(TCPPREP) -i $(TEST_PCAP) -o test.auto_router -a router
- $(TCPPREP) -i $(TEST_PCAP) -o test.auto_bridge -a bridge
- $(TCPPREP) -i $(TEST_PCAP) -o test.auto_client -a client
- $(TCPPREP) -i $(TEST_PCAP) -o test.auto_server -a server
- $(TCPPREP) -i test.pcap -o test.auto_first -a first
- $(TCPPREP) --load-opts config -o test.prep_config
- $(TCPPREP) -i $(TEST_PCAP) -o test.port -p
- $(TCPPREP) -i $(TEST_PCAP) -o test.mac -e 00:1f:f3:3c:e1:13
- $(TCPPREP) -i $(TEST_PCAP) -o test.cidr -c '96.17.211.0/24'
- $(TCPPREP) -i $(TEST_PCAP) -o test.regex -r '96.17.211.*'
- $(TCPPREP) -i $(TEST_PCAP) -o test.comment -C "This is a comment" -p
- $(TCPPREP) -i $(TEST_PCAP) -o test.mac_reverse -e 00:1f:f3:3c:e1:13 --reverse
- $(TCPPREP) -i $(TEST_PCAP) -o test.cidr_reverse -c '96.17.211.0/24' --reverse
- $(TCPPREP) -i $(TEST_PCAP) -o test.regex_reverse -r '96.17.211.*' --reverse
- $(TCPPREP) -i $(TEST_PCAP) -o test.exclude_packets -c '96.17.211.0/24' --exclude 'P:61-65,88-91'
- $(TCPPREP) -i $(TEST_PCAP) -o test.include_packets -c '96.17.211.0/24' --include 'P:61-65,88-91'
- $(TCPPREP) -i $(TEST_PCAP) -o test.include_source -c '96.17.211.0/24' --include 'S:96.0.0.0/8'
- $(TCPPREP) -i $(TEST_PCAP) -o test.include_dest -c '96.17.211.0/24' --include 'D:96.0.0.0/8'
- standard_bigendian:
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_seed -s 55
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_tos --tos=50
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_portmap -r 80:8080
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_range_portmap -r 1-100:49148
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_sequence --tcp-sequence 42
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_endpoint \
- -e 10.10.0.1:10.10.0.2 -c test.auto_router
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_pnat \
- -N 96.17.211.0/24:172.16.0.0/24
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_pad -F pad
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_trunc -F trunc
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_mac \
- --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 \
- --enet-smac=00:22:33:44:55:66,00:12:13:14:15:16 -c $(srcdir)/test.auto_router
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_enet_subsmac \
- --enet-subsmac=00:1f:f3:3c:e1:13,00:22:33:44:55:66 \
- --enet-subsmac=f8:1e:df:e5:84:3a,00:66:55:44:33:22
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_mac_seed --enet-mac-seed=42
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_mac_seed_keep --enet-mac-seed=42 \
- --enet-mac-seed-keep-bytes=3
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_layer2 \
- --dlt=user --user-dlink=00,50,da,5d,46,55,0,7,eb,30,a4,c3,08,0
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_config --enet-vlan=add --enet-vlan-tag=45 \
- --enet-vlan-cfi=1 --enet-vlan-pri=5
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_skip -b -s 55 \
- --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 \
- --enet-smac=00:22:33:44:55:66,00:12:13:14:15:16 -c $(srcdir)/test.auto_router
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_dltuser --dlt=user \
- --user-dlink=0x0f,0x00,0x08,0x00 --user-dlt=104
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_dlthdlc --dlt=hdlc \
- --hdlc-control=0 --hdlc-address=0x0F
- $(TCPREWRITE) -i $(srcdir)/test.rewrite_config -o test.rewrite_vlandel \
- --enet-vlan=del
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_efcs --efcs
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_1ttl --ttl=58
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_2ttl --ttl=+58
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_3ttl --ttl=-58
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_mtutrunc --mtu-trunc --mtu=300
- $(TCPREWRITE) -i $(TEST_PCAP) -o test.rewrite_l7fuzzing \
- --fuzz-seed=42 --fuzz-factor=2
- standard_littleendian:
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_seed -s 55
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_tos --tos=50
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_portmap -r 80:8080
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_range_portmap -r 1-100:49148
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_sequence --tcp-sequence 42
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_endpoint \
- -e 10.10.0.1:10.10.0.2 -c test.auto_router
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_pnat \
- -N 96.17.211.0/24:172.16.0.0/24
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_pad -F pad
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_trunc -F trunc
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_mac \
- --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 \
- --enet-smac=00:22:33:44:55:66,00:12:13:14:15:16 -c $(srcdir)/test.auto_router
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_enet_subsmac \
- --enet-subsmac=00:1f:f3:3c:e1:13,00:22:33:44:55:66 \
- --enet-subsmac=f8:1e:df:e5:84:3a,00:66:55:44:33:22
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_mac_seed --enet-mac-seed=42
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_mac_seed_keep --enet-mac-seed=42 \
- --enet-mac-seed-keep-bytes=3
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_layer2 \
- --dlt=user --user-dlink=00,50,da,5d,46,55,0,7,eb,30,a4,c3,08,0
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_config --enet-vlan=add --enet-vlan-tag=45 \
- --enet-vlan-cfi=1 --enet-vlan-pri=5
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_skip -b -s 55 \
- --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 \
- --enet-smac=00:22:33:44:55:66,00:12:13:14:15:16 -c $(srcdir)/test.auto_router
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_dltuser --dlt=user \
- --user-dlink=0x0f,0x00,0x08,0x00 --user-dlt=104
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_dlthdlc --dlt=hdlc \
- --hdlc-control=0 --hdlc-address=0x0F
- $(TCPREWRITE) -i $(srcdir)/test.rewrite_config -o test2.rewrite_vlandel \
- --enet-vlan=del
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_efcs --efcs
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_1ttl --ttl=58
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_2ttl --ttl=+58
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_3ttl --ttl=-58
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_mtutrunc --mtu-trunc --mtu=300
- $(TCPREWRITE) -i $(TEST_PCAP) -o test2.rewrite_l7fuzzing \
- --fuzz-seed=42 --fuzz-factor=2
- tcpprep: auto_router auto_bridge auto_client auto_server auto_first cidr regex \
- port mac comment print_info print_comment prep_config \
- mac_reverse cidr_reverse regex_reverse exclude_packets \
- include_packets include_source include_dest
- tcprewrite: rewrite_portmap rewrite_range_portmap rewrite_endpoint \
- rewrite_pnat rewrite_trunc rewrite_pad rewrite_seed rewrite_mac \
- rewrite_layer2 rewrite_config rewrite_skip rewrite_dltuser rewrite_dlthdlc \
- rewrite_vlandel rewrite_efcs rewrite_1ttl rewrite_2ttl rewrite_3ttl \
- rewrite_tos rewrite_mtutrunc rewrite_enet_subsmac rewrite_mac_seed \
- rewrite_mac_seed_keep rewrite_l7fuzzing rewrite_sequence
- tcpreplay: replay_basic replay_cache replay_pps replay_rate replay_top \
- replay_config replay_multi replay_pps_multi replay_precache \
- replay_stats replay_dualfile replay_maxsleep
- prep_config:
- $(PRINTF) "%s" "[tcpprep] Config mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Config mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) --load-opts=config -o test.$@1 >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- auto_router:
- $(PRINTF) "%s" "[tcpprep] Auto/Router mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Auto/Router mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -a router >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- auto_bridge:
- $(PRINTF) "%s" "[tcpprep] Auto/Bridge mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Auto/Bridge mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -a bridge >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- auto_client:
- $(PRINTF) "%s" "[tcpprep] Auto/Client mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Auto/Client mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -a client >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- auto_server:
- $(PRINTF) "%s" "[tcpprep] Auto/Server mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Auto/Server mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -a server >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- auto_first:
- $(PRINTF) "%s" "[tcpprep] Auto/First mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Auto/First mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -a first >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- regex:
- $(PRINTF) "%s" "[tcpprep] Regex mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Regex mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -r '96.17.211.*' >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- cidr:
- $(PRINTF) "%s" "[tcpprep] CIDR mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] CIDR mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -c '96.17.211.0/24' >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- port:
- $(PRINTF) "%s" "[tcpprep] Port mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Port mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -p >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- mac:
- $(PRINTF) "%s" "[tcpprep] MAC mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] MAC mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -e 00:1f:f3:3c:e1:13 >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- comment:
- $(PRINTF) "%s" "[tcpprep] Comment mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Comment mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -C "This is a comment" -p >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- print_comment:
- $(PRINTF) "%s" "[tcpprep] Print comment mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Print comment mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -P $(srcdir)/test.comment >$(srcdir)/test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- print_info:
- $(PRINTF) "%s" "[tcpprep] Print info mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Print info mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -I $(srcdir)/test.comment >$(srcdir)/test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- regex_reverse:
- $(PRINTF) "%s" "[tcpprep] Regex reverse mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] Regex reverse mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -r '96.17.211.*' --reverse >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- cidr_reverse:
- $(PRINTF) "%s" "[tcpprep] CIDR reverse mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] CIDR reverse mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -c '96.17.211.0/24' --reverse >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- mac_reverse:
- $(PRINTF) "%s" "[tcpprep] MAC reverse mode test: "
- $(PRINTF) "%s\n" "*** [tcpprep] MAC reverse mode test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -e 00:1f:f3:3c:e1:13 --reverse >> test.log 2>&1
- diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- exclude_packets:
- $(PRINTF) "%s" "[tcpprep] exclude packets test: "
- $(PRINTF) "%s\n" "*** [tcpprep] exclude packets test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i test.pcap -o test.$@1 -c '96.17.211.0/24' --exclude 'P:61-65,88-91' >> test.log 2>&1
- diff test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- include_packets:
- $(PRINTF) "%s" "[tcpprep] include packets test: "
- $(PRINTF) "%s\n" "*** [tcpprep] include packets test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i test.pcap -o test.$@1 -c '96.17.211.0/24' --include 'P:61-65,88-91' >> test.log 2>&1
- diff test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- include_source:
- $(PRINTF) "%s" "[tcpprep] include source test: "
- $(PRINTF) "%s\n" "*** [tcpprep] include source test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i test.pcap -o test.$@1 -c '96.17.211.0/24' --include 'S:96.0.0.0/8' >> test.log 2>&1
- diff test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- include_dest:
- $(PRINTF) "%s" "[tcpprep] include destination test: "
- $(PRINTF) "%s\n" "*** [tcpprep] include destination test: " >> test.log
- $(TCPPREP) $(ENABLE_DEBUG) -i test.pcap -o test.$@1 -c '96.17.211.0/24' --include 'D:96.0.0.0/8' >> test.log 2>&1
- diff test.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- replay_basic:
- $(PRINTF) "%s" "[tcpreplay] Basic test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Basic test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -t $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_cache:
- $(PRINTF) "%s" "[tcpreplay] Cache test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Cache test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -c $(srcdir)/test.cidr -i $(nic1) -I $(nic2) -t $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_accurate:
- $(PRINTF) "%s" "[tcpreplay] Accurate test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Accurate test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -a -i $(nic1) $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_stats:
- $(PRINTF) "%s" "[tcpreplay] Statistics test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Statistics test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) --stats=1 -i $(nic1) $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_portmap:
- $(PRINTF) "%s" "[tcprewrite] Portmap test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Portmap test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -r 80:8080 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_range_portmap:
- $(PRINTF) "%s" "[tcprewrite] Portmap range test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Portmap range test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -r 1-100:49148 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- rewrite_sequence:
- $(PRINTF) "%s" "[tcprewrite] TCP sequence test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] TCP sequence test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --tcp-sequence 42 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- rewrite_endpoint:
- $(PRINTF) "%s" "[tcprewrite] Endpoint test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Endpoint test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -e 10.10.0.1:10.10.0.2 \
- -c $(srcdir)/test.auto_router >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_pnat:
- $(PRINTF) "%s" "[tcprewrite] Pseudo NAT test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Pseudo NAT test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 \
- -N 96.17.211.0/24:172.16.0.0/24 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_mac:
- $(PRINTF) "%s" "[tcprewrite] Src/Dst MAC test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Src/Dst MAC test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 \
- --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 \
- --enet-smac=00:22:33:44:55:66,00:12:13:14:15:16 -c $(srcdir)/test.auto_router >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_enet_subsmac:
- $(PRINTF) "%s" "[tcprewrite] Substitute Src/Dst MAC test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Substitute Src/Dst MAC test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 \
- --enet-subsmac=00:1f:f3:3c:e1:13,00:22:33:44:55:66 \
- --enet-subsmac=f8:1e:df:e5:84:3a,00:66:55:44:33:22 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fi
- rewrite_mac_seed:
- $(PRINTF) "%s" "[tcprewrite] Seeded MAC test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Seeded MAC test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 \
- --enet-mac-seed=42 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_mac_seed_keep:
- $(PRINTF) "%s" "[tcprewrite] Seeded Keep MAC test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Seeded Keep MAC test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 \
- --enet-mac-seed=42 --enet-mac-seed-keep-bytes=3 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- rewrite_trunc:
- $(PRINTF) "%s" "[tcprewrite] Truncate test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Truncate test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -F trunc -i $(TEST_PCAP) -o test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_pad:
- $(PRINTF) "%s" "[tcprewrite] Pad test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Pad test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -F pad -i $(TEST_PCAP) -o test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t\t%s\n" "OK"; fi
- rewrite_seed:
- $(PRINTF) "%s" "[tcprewrite] Seed IP test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Seed IP test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -s 55 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_layer2:
- $(PRINTF) "%s" "[tcprewrite] Layer2 test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Layer2 test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) --dlt=user --user-dlink=00,50,da,5d,46,55,0,7,eb,30,a4,c3,08,0 \
- -i $(TEST_PCAP) -o test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_config:
- $(PRINTF) "%s" "[tcprewrite] Config/VLAN Add test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Config/VLAN Add test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) --load-opts config >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- rewrite_skip:
- $(PRINTF) "%s" "[tcprewrite] Skip bcast test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Skip bcast test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 -b -s 55 \
- --enet-dmac=00:12:13:14:15:16,00:22:33:44:55:66 \
- --enet-smac=00:22:33:44:55:66,00:12:13:14:15:16 -c $(srcdir)/test.auto_router >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_dltuser:
- $(PRINTF) "%s" "[tcprewrite] DLT User test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] DLT User test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --dlt=user \
- --user-dlink=0x0f,0x00,0x08,0x00 --user-dlt=104 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_dlthdlc:
- $(PRINTF) "%s" "[tcprewrite] DLT Cisco HDLC test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] DLT Cisco HDLC test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --dlt=hdlc \
- --hdlc-control=0 --hdlc-address=0x0F >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- rewrite_vlandel:
- $(PRINTF) "%s" "[tcprewrite] VLAN Delete test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] VLAN Delete test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(srcdir)/test.rewrite_config -o test.$@1 \
- --enet-vlan=del >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_efcs:
- $(PRINTF) "%s" "[tcprewrite] Remove EFCS: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Remove EFCS: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --efcs >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_1ttl:
- $(PRINTF) "%s" "[tcprewrite] Force TTL: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Force TTL: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --ttl=58 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_2ttl:
- $(PRINTF) "%s" "[tcprewrite] Increase TTL: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Increase TTL: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --ttl=+58 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_3ttl:
- $(PRINTF) "%s" "[tcprewrite] Reduce TTL: "
- $(PRINTF) "%s\n" "*** [tcprewrite] Reduce TTL: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --ttl=-58 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- rewrite_tos:
- $(PRINTF) "%s" "[tcprewrite] TOS test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] TOS test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --tos=50 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t\t%s\n" "OK"; fi
- rewrite_mtutrunc:
- $(PRINTF) "%s" "[tcprewrite] MTU Truncate test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] MTU Truncate test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --mtu-trunc --mtu=300 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- rewrite_l7fuzzing:
- $(PRINTF) "%s" "[tcprewrite] L7 fuzzing test: "
- $(PRINTF) "%s\n" "*** [tcprewrite] L7 fuzzing test: " >> test.log
- $(TCPREWRITE) $(ENABLE_DEBUG) -i $(TEST_PCAP) -o test.$@1 --fuzz-seed=42 --fuzz-factor=2 >> test.log 2>&1
- @WORDS_BIGENDIAN_TRUE@ diff $(srcdir)/test.$@ test.$@1 >> test.log 2>&1
- @WORDS_BIGENDIAN_FALSE@ diff $(srcdir)/test2.$@ test.$@1 >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_pps:
- $(PRINTF) "%s" "[tcpreplay] Packets/sec test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Packets/sec test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -p 25 $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_rate:
- $(PRINTF) "%s" "[tcpreplay] Mbps test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Mbps test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -M 25.0 $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t\t%s\n" "OK"; fi
- replay_multi:
- $(PRINTF) "%s" "[tcpreplay] Multiplier test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Multiplier test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -x 25.0 $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_pps_multi:
- $(PRINTF) "%s" "[tcpreplay] Packets/sec Multiplier test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Packets/sec Multiplier test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -p 100 --pps-multi=5 $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fi
- replay_top:
- $(PRINTF) "%s" "[tcpreplay] Topspeed test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Topspeed test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -t $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_precache:
- $(PRINTF) "%s" "[tcpreplay] Precache test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Precache test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) --preload-pcap $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- datadump_mode:
- $(PRINTF) "%s" "[tcpreplay] Data dump test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Data dump mode test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -D -i $(nic1) -I $(nic2) -w primary.data -W secondary.data -c $(srcdir)/test.cidr -R $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_config:
- $(PRINTF) "%s" "[tcpreplay] Config file/VLAN add test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Config file/VLAN add test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) --load-opts=config $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- replay_dualfile:
- $(PRINTF) "%s" "[tcpreplay] Dual file test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Dual file test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -I $(nic2) --dualfile $(TEST_PCAP) $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi
- replay_maxsleep:
- $(PRINTF) "%s" "[tcpreplay] Maximum sleep test: "
- $(PRINTF) "%s\n" "*** [tcpreplay] Maximum sleep test: " >> test.log
- $(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) --maxsleep=20 $(TEST_PCAP) $(TEST_PCAP) >> test.log 2>&1
- if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi
- clean:
- rm -f *1 test.log core* *~ primary.data secondary.data
- distclean: clean
- rm -f Makefile config
- maintainer-clean: distclean
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
|