| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609 | # Makefile.in generated by automake 1.9.6 from Makefile.am.# @configure_input@# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,# 2003, 2004, 2005  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@srcdir = @srcdir@top_srcdir = @top_srcdir@VPATH = @srcdir@pkgdatadir = $(datadir)/@PACKAGE@pkglibdir = $(libdir)/@PACKAGE@pkgincludedir = $(includedir)/@PACKAGE@top_builddir = ..am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cdINSTALL = @INSTALL@install_sh_DATA = $(install_sh) -c -m 644install_sh_PROGRAM = $(install_sh) -cinstall_sh_SCRIPT = $(install_sh) -cINSTALL_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 = testDIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \	$(srcdir)/config.inACLOCAL_M4 = $(top_srcdir)/aclocal.m4am__aclocal_m4_deps = $(top_srcdir)/configure.inam__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \	$(ACLOCAL_M4)mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirsCONFIG_HEADER = $(top_builddir)/src/config.hCONFIG_CLEAN_FILES = configSOURCES =DIST_SOURCES =DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)ACLOCAL = @ACLOCAL@AMDEP_FALSE = @AMDEP_FALSE@AMDEP_TRUE = @AMDEP_TRUE@AMTAR = @AMTAR@AR = @AR@AUTOCONF = @AUTOCONF@AUTOGEN = @AUTOGEN@AUTOHEADER = @AUTOHEADER@AUTOMAKE = @AUTOMAKE@AWK = @AWK@CC = @CC@CCDEPMODE = @CCDEPMODE@CFLAGS = @CFLAGS@CPP = @CPP@CPPFLAGS = @CPPFLAGS@CXX = @CXX@CXXCPP = @CXXCPP@CXXDEPMODE = @CXXDEPMODE@CXXFLAGS = @CXXFLAGS@CYGPATH_W = @CYGPATH_W@DEFS = @DEFS@DEPDIR = @DEPDIR@DVIPDFM = @DVIPDFM@DVIPS = @DVIPS@ECHO = @ECHO@ECHO_C = @ECHO_C@ECHO_N = @ECHO_N@ECHO_T = @ECHO_T@EGREP = @EGREP@EXEEXT = @EXEEXT@F77 = @F77@FFLAGS = @FFLAGS@FIG2DEV = @FIG2DEV@HAVE_DOCTOOLS_FALSE = @HAVE_DOCTOOLS_FALSE@HAVE_DOCTOOLS_TRUE = @HAVE_DOCTOOLS_TRUE@HAVE_LIBNIDS_FALSE = @HAVE_LIBNIDS_FALSE@HAVE_LIBNIDS_TRUE = @HAVE_LIBNIDS_TRUE@INSTALL_DATA = @INSTALL_DATA@INSTALL_PROGRAM = @INSTALL_PROGRAM@INSTALL_SCRIPT = @INSTALL_SCRIPT@INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@LATEX2HTML = @LATEX2HTML@LDFLAGS = @LDFLAGS@LIBOBJS = @LIBOBJS@LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@LIBOPTS_DIR = @LIBOPTS_DIR@LIBOPTS_LDADD = @LIBOPTS_LDADD@LIBS = @LIBS@LIBTOOL = @LIBTOOL@LNAVLIB = @LNAVLIB@LNAV_CFLAGS = @LNAV_CFLAGS@LNETINC = @LNETINC@LNETLIB = @LNETLIB@LNIDSINC = @LNIDSINC@LNIDSLIB = @LNIDSLIB@LN_S = @LN_S@LPCAPINC = @LPCAPINC@LPCAPLIB = @LPCAPLIB@LTLIBOBJS = @LTLIBOBJS@LYX = @LYX@MAINT = @MAINT@MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@MAKEINFO = @MAKEINFO@NEED_LIBOPTS_FALSE = @NEED_LIBOPTS_FALSE@NEED_LIBOPTS_TRUE = @NEED_LIBOPTS_TRUE@OBJEXT = @OBJEXT@PACKAGE = @PACKAGE@PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@PACKAGE_NAME = @PACKAGE_NAME@PACKAGE_STRING = @PACKAGE_STRING@PACKAGE_TARNAME = @PACKAGE_TARNAME@PACKAGE_VERSION = @PACKAGE_VERSION@PATH_SEPARATOR = @PATH_SEPARATOR@PCAP_BPF_H_FILE = @PCAP_BPF_H_FILE@PRINTF = @PRINTF@RANLIB = @RANLIB@SET_MAKE = @SET_MAKE@SHELL = @SHELL@STRIP = @STRIP@SYSTEM_STRLCPY_FALSE = @SYSTEM_STRLCPY_FALSE@SYSTEM_STRLCPY_TRUE = @SYSTEM_STRLCPY_TRUE@TCPREPLAY_RELEASE = @TCPREPLAY_RELEASE@TCPREPLAY_VERSION = @TCPREPLAY_VERSION@TEXI2DVI = @TEXI2DVI@VERSION = @VERSION@ac_ct_AR = @ac_ct_AR@ac_ct_CC = @ac_ct_CC@ac_ct_CXX = @ac_ct_CXX@ac_ct_F77 = @ac_ct_F77@ac_ct_RANLIB = @ac_ct_RANLIB@ac_ct_STRIP = @ac_ct_STRIP@am__fastdepCC_FALSE = @am__fastdepCC_FALSE@am__fastdepCC_TRUE = @am__fastdepCC_TRUE@am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@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_cpu = @build_cpu@build_os = @build_os@build_vendor = @build_vendor@datadir = @datadir@debug_flag = @debug_flag@exec_prefix = @exec_prefix@host = @host@host_alias = @host_alias@host_cpu = @host_cpu@host_os = @host_os@host_vendor = @host_vendor@includedir = @includedir@infodir = @infodir@install_sh = @install_sh@libdir = @libdir@libexecdir = @libexecdir@localstatedir = @localstatedir@mandir = @mandir@mkdir_p = @mkdir_p@nic1 = @nic1@nic2 = @nic2@oldincludedir = @oldincludedir@pcncfg = @pcncfg@prefix = @prefix@program_transform_name = @program_transform_name@sbindir = @sbindir@sharedstatedir = @sharedstatedir@sysconfdir = @sysconfdir@target = @target@target_alias = @target_alias@target_cpu = @target_cpu@target_os = @target_os@target_vendor = @target_vendor@td = @td@# $Id$MAKEFLAGS = -s -kHOST = @host@TARGET = @target@BUILD = @build@ENABLE_DEBUG = @debug_flag@TCPPREP = ../src/tcpprep --no-arg-commentTCPREPLAY = ../src/tcpreplayTCPREWRITE = ../src/tcprewriteTCPBRIDGE = ../src/tcpbridgeEXTRA_DIST = test.pcap test.auto_bridge test.auto_client test.auto_router \		test.auto_server test.cidr test.comment test.port test.mac \		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_configall: 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 \		&& exit 0; \	      exit 1;; \	  esac; \	done; \	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  test/Makefile'; \	cd $(top_srcdir) && \	  $(AUTOMAKE) --gnu  test/Makefile.PRECIOUS: MakefileMakefile: $(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--refreshconfig: $(top_builddir)/config.status $(srcdir)/config.in	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@mostlyclean-libtool:	-rm -f *.loclean-libtool:	-rm -rf .libs _libsdistclean-libtool:	-rm -f libtooluninstall-info-am:tags: TAGSTAGS:ctags: CTAGSCTAGS:distdir: $(DISTFILES)	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \	list='$(DISTFILES)'; for file in $$list; do \	  case $$file in \	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \	  esac; \	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \	    dir="/$$dir"; \	    $(mkdir_p) "$(distdir)$$dir"; \	  else \	    dir=''; \	  fi; \	  if test -d $$d/$$file; then \	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \	    fi; \	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \	  else \	    test -f $(distdir)/$$file \	    || cp -p $$d/$$file $(distdir)/$$file \	    || exit 1; \	  fi; \	donecheck-am: all-amcheck: check-amall-am: Makefileinstalldirs:install: install-aminstall-exec: install-exec-aminstall-data: install-data-amuninstall: uninstall-aminstall-am: all-am	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-aminstallcheck: installcheck-aminstall-strip:	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \	  `test -z '$(STRIP)' || \	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` installmostlyclean-generic:clean-generic:distclean-generic:	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_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-amdistclean-am: clean-am distclean-generic distclean-libtooldvi: dvi-amdvi-am:html: html-aminfo: info-aminfo-am:install-data-am:install-exec-am:install-info: install-info-aminstall-man:installcheck-am:maintainer-clean-am: distclean-am maintainer-clean-genericmostlyclean: mostlyclean-ammostlyclean-am: mostlyclean-generic mostlyclean-libtoolpdf: pdf-ampdf-am:ps: ps-amps-am:uninstall-am: uninstall-info-am.PHONY: all all-am check check-am clean clean-generic clean-libtool \	distclean distclean-generic distclean-libtool distdir dvi \	dvi-am html html-am info info-am install install-am \	install-data install-data-am install-exec install-exec-am \	install-info install-info-am install-man install-strip \	installcheck installcheck-am installdirs maintainer-clean \	maintainer-clean-generic mostlyclean mostlyclean-generic \	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \	uninstall-info-amtest: allall: clearlog check tcpprep tcpreplay tcprewriteclearlog:	-rm test.logcheck:	$(PRINTF) "%s\n" "NOTICE: Tests must be run as root"	$(PRINTF) "%s\n" "Sending traffic on '$(nic1)' and '$(nic2)'"# the cache files to be used as the standard; be sure to do a cvs commit# afterwords!standard:	$(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) --load-opts config -o test.prep_config	$(TCPPREP) -i test.pcap -o test.port -p	$(TCPPREP) -i test.pcap -o test.mac -e 00:02:3b:00:3d:ce	$(TCPPREP) -i test.pcap -o test.cidr -c '216.27.178.0/24'	$(TCPPREP) -i test.pcap -o test.regex -r '216.27.178.*'	$(TCPPREP) -i test.pcap -o test.comment -C "This is a comment" -p	$(TCPREWRITE) -i test.pcap -o test.rewrite_seed -s 55	$(TCPREWRITE) -i test.pcap -o test.rewrite_portmap -r 80:8080	$(TCPREWRITE) -i test.pcap -o test.rewrite_endpoint -e 10.10.0.1:10.10.0.2	$(TCPREWRITE) -i test.pcap -o test.rewrite_pnat -N 216.27.178.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 \		-D 00:12:13:14:15:16,00:22:33:44:55:66 \		-S 00:22:33:44:55:66,00:12:13:14:15:16  -c test.auto_router	$(TCPREWRITE) -i test.pcap -o test.rewrite_layer2 \		 -l 00,50,da,5d,46,55,0,7,eb,30,a4,c3,08,0	$(TCPREWRITE) -i test.pcap -o test.rewrite_config --vlan=add --vlan-tag=45 \		--vlan-cfi=1 --vlan-pri=5tcpprep: auto_router auto_bridge auto_client auto_server cidr regex port mac comment print_info print_comment prep_configtcprewrite: rewrite_portmap rewrite_endpoint rewrite_pnat rewrite_trunc rewrite_pad rewrite_seed rewrite_mac rewrite_layer2 rewrite_configtcpreplay: replay_basic replay_cache replay_pps replay_rate replay_top replay_config replay_multiprep_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 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fiauto_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 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fiauto_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 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fiauto_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 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fiauto_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 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; firegex:	$(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 '216.27.178.*' 2>>test.log	diff  test.$@ test.$@1 >>test.log 2>&1 	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; ficidr:	$(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 '216.27.178.0/24' 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fiport:	$(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 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fimac:	$(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:02:3b:00:3d:ce 2>>test.log	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; ficomment:	$(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 2>>test.log	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fiprint_comment:	$(PRINTF) "%s" "[tcpprep] Print comment mode test: "	$(PRINTF) "%s\n" "*** [tcpprep] Print comment mode test: " >>test.log	$(TCPPREP) $(ENABLE_DEBUG) -P test.comment >test.$@1 2>>test.log	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fiprint_info:	$(PRINTF) "%s" "[tcpprep] Print info mode test: "	$(PRINTF) "%s\n" "*** [tcpprep] Print info mode test: " >>test.log	$(TCPPREP) $(ENABLE_DEBUG) -I test.comment >test.$@1 2>>test.log	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fireplay_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%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fireplay_cache:	$(PRINTF) "%s" "[tcpreplay] Cache test: "	$(PRINTF) "%s\n" "*** [tcpreplay] Cache test: " >>test.log	$(TCPREPLAY) $(ENABLE_DEBUG) -c test.cidr -i $(nic1) -I $(nic2) -t test.pcap >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; firewrite_portmap:	$(PRINTF) "%s" "[tcprewrite] Portmap test: "	$(PRINTF) "%s\n" "[tcprewrite] Portmap test: " >>test.log	$(TCPREWRITE) $(ENABLE_DEBUG) -i test.pcap -o test.rewrite_portmap1 -r 80:8080 >>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"; firewrite_endpoint:	$(PRINTF) "%s" "[tcprewrite] Endpoint test: "	$(PRINTF) "%s\n" "[tcprewrite] Endpoint test: " >>test.log	$(TCPREWRITE) $(ENABLE_DEBUG) -i test.pcap -o test.rewrite_endpoint1 -e 10.10.0.1:10.10.0.2	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; firewrite_pnat:	$(PRINTF) "%s" "[tcprewrite] Pseudo NAT test: "	$(PRINTF) "%s\n" "[tcprewrite] Pseudo NAT test: " >>test.log	$(TCPREWRITE) $(ENABLE_DEBUG) -i test.pcap -o test.rewrite_pnat1 -N 216.27.178.0/24:172.16.0.0/24	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; firewrite_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.rewrite_mac1 \		-D 00:12:13:14:15:16,00:22:33:44:55:66 \		-S 00:22:33:44:55:66,00:12:13:14:15:16  -c test.auto_router	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; firewrite_trunc:	$(PRINTF) "%s" "[tcprewrite] Truncate test: "	$(PRINTF) "%s\n" "*** [tcprewrite] Truncate test: " >>test.log	$(TCPREWRITE) $(ENABLE_DEBUG) -F trunc -i test.pcap -o test.rewrite_trunc1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; firewrite_pad:	$(PRINTF) "%s" "[tcprewrite] Pad test: "	$(PRINTF) "%s\n" "*** [tcprewrite] Pad test: " >>test.log	$(TCPREWRITE) $(ENABLE_DEBUG) -F pad -i test.pcap -o test.rewrite_pad1 >>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\t%s\n" "OK"; firewrite_seed:	$(PRINTF) "%s" "[tcprewrite] Seed IP test: "	$(PRINTF) "%s\n" "*** [tcprewrite] Seed IP test: " >>test.log	$(TCPREWRITE) $(ENABLE_DEBUG) -i test.pcap -o test.rewrite_seed1 -s 55 >>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"; firewrite_layer2:	$(PRINTF) "%s" "[tcprewrite] Layer2 test: "	$(PRINTF) "%s\n" "*** [tcprewrite] Layer2 test: " >>test.log	$(TCPREWRITE) $(ENABLE_DEBUG) -l 00,50,da,5d,46,55,0,7,eb,30,a4,c3,08,0 \		-i test.pcap -o test.rewrite_layer21 >>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"; firewrite_config:	$(PRINTF) "%s" "[tcprewrite] Config test: "	$(PRINTF) "%s\n" "*** [tcprewrite] Config test: " >>test.log	$(TCPREWRITE) -i test.pcap -o test.rewrite_config1 --load-opts config	diff test.$@ test.$@1 >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fireplay_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%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fireplay_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%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fireplay_multi:	$(PRINTF) "%s" "[tcpreplay] Multiplier test: "	$(PRINTF) "%s\n" "*** [tcpreplay] Multiplier test: " >>test.log	$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -m 25.0 test.pcap >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fireplay_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%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fidatadump_mode:	$(PRINTF) "%s" "[tcpreplay] Data dump test: "	$(PRINTF) "%s\n" "*** [tcpreplay] Data dump mode test: " >>test.log	$(TCPREPLAY) $(ENABLE_DEBUG) -D -i $(nic1) -j $(nic2) -w primary.data -W secondary.data -c test.cidr -R test.pcap >>test.log 2>&1	if [ $? ] ; then $(PRINTF) "\t%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; fireplay_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%s\n" "FAILED"; else $(PRINTF) "\t%s\n" "OK"; ficlean:	rm -f *1 test.log core* *~ primary.data secondary.datadistclean: clean	rm -f Makefile configmaintainer-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:
 |