New upstream version 2.3.2
This commit is contained in:
		
							parent
							
								
									09f4277f49
								
							
						
					
					
						commit
						21323d25dd
					
				
					 104 changed files with 34386 additions and 7430 deletions
				
			
		| 
						 | 
				
			
			@ -37,6 +37,9 @@ TESTS = @PLUGIN_TEST@
 | 
			
		|||
test:
 | 
			
		||||
	perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
 | 
			
		||||
 | 
			
		||||
test-debug:
 | 
			
		||||
	NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
 | 
			
		||||
 | 
			
		||||
setuid_root_mode = ug=rx,u+s
 | 
			
		||||
 | 
			
		||||
# /* Author Coreutils team - see ACKNOWLEDGEMENTS */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,8 @@
 | 
			
		|||
# Makefile.in generated by automake 1.11.6 from Makefile.am.
 | 
			
		||||
# Makefile.in generated by automake 1.16.3 from Makefile.am.
 | 
			
		||||
# @configure_input@
 | 
			
		||||
 | 
			
		||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 | 
			
		||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 | 
			
		||||
# Foundation, Inc.
 | 
			
		||||
# Copyright (C) 1994-2020 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.
 | 
			
		||||
| 
						 | 
				
			
			@ -15,23 +14,61 @@
 | 
			
		|||
 | 
			
		||||
@SET_MAKE@
 | 
			
		||||
 | 
			
		||||
am__make_dryrun = \
 | 
			
		||||
  { \
 | 
			
		||||
    am__dry=no; \
 | 
			
		||||
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 \
 | 
			
		||||
      *\\[\ \	]*) \
 | 
			
		||||
        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
 | 
			
		||||
          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
 | 
			
		||||
      *) \
 | 
			
		||||
        for am__flg in $$MAKEFLAGS; do \
 | 
			
		||||
          case $$am__flg in \
 | 
			
		||||
            *=*|--*) ;; \
 | 
			
		||||
            *n*) am__dry=yes; break;; \
 | 
			
		||||
          esac; \
 | 
			
		||||
        done;; \
 | 
			
		||||
        bs=\\; \
 | 
			
		||||
        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
 | 
			
		||||
          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
 | 
			
		||||
    esac; \
 | 
			
		||||
    test $$am__dry = yes; \
 | 
			
		||||
  }
 | 
			
		||||
  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@
 | 
			
		||||
| 
						 | 
				
			
			@ -53,7 +90,6 @@ noinst_PROGRAMS = check_dhcp$(EXEEXT) check_icmp$(EXEEXT) \
 | 
			
		|||
	@EXTRAS_ROOT@ $(am__empty)
 | 
			
		||||
EXTRA_PROGRAMS = pst3$(EXEEXT)
 | 
			
		||||
subdir = plugins-root
 | 
			
		||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 | 
			
		||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 | 
			
		||||
am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.m4 \
 | 
			
		||||
	$(top_srcdir)/m4/np_mysqlclient.m4 \
 | 
			
		||||
| 
						 | 
				
			
			@ -156,6 +192,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/libcurl.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 = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs
 | 
			
		||||
CONFIG_HEADER = $(top_builddir)/config.h
 | 
			
		||||
CONFIG_CLEAN_FILES =
 | 
			
		||||
| 
						 | 
				
			
			@ -167,27 +204,54 @@ am__DEPENDENCIES_1 =
 | 
			
		|||
am__DEPENDENCIES_2 = ../plugins/netutils.o $(BASEOBJS) \
 | 
			
		||||
	$(am__DEPENDENCIES_1)
 | 
			
		||||
am__DEPENDENCIES_3 = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1)
 | 
			
		||||
AM_V_lt = $(am__v_lt_@AM_V@)
 | 
			
		||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
 | 
			
		||||
am__v_lt_0 = --silent
 | 
			
		||||
am__v_lt_1 = 
 | 
			
		||||
check_icmp_SOURCES = check_icmp.c
 | 
			
		||||
check_icmp_OBJECTS = check_icmp.$(OBJEXT)
 | 
			
		||||
pst3_SOURCES = pst3.c
 | 
			
		||||
pst3_OBJECTS = pst3-pst3.$(OBJEXT)
 | 
			
		||||
pst3_LDADD = $(LDADD)
 | 
			
		||||
pst3_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
 | 
			
		||||
	--mode=link $(CCLD) $(pst3_CFLAGS) $(CFLAGS) $(pst3_LDFLAGS) \
 | 
			
		||||
	$(LDFLAGS) -o $@
 | 
			
		||||
pst3_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 | 
			
		||||
	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(pst3_CFLAGS) $(CFLAGS) \
 | 
			
		||||
	$(pst3_LDFLAGS) $(LDFLAGS) -o $@
 | 
			
		||||
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 = 
 | 
			
		||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
 | 
			
		||||
depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
 | 
			
		||||
am__depfiles_maybe = depfiles
 | 
			
		||||
am__maybe_remake_depfiles = depfiles
 | 
			
		||||
am__depfiles_remade = ./$(DEPDIR)/check_dhcp.Po \
 | 
			
		||||
	./$(DEPDIR)/check_icmp.Po ./$(DEPDIR)/pst3-pst3.Po
 | 
			
		||||
am__mv = mv -f
 | 
			
		||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
 | 
			
		||||
	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 | 
			
		||||
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
 | 
			
		||||
	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
 | 
			
		||||
	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
 | 
			
		||||
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 | 
			
		||||
	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
 | 
			
		||||
	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
 | 
			
		||||
	$(AM_CFLAGS) $(CFLAGS)
 | 
			
		||||
AM_V_CC = $(am__v_CC_@AM_V@)
 | 
			
		||||
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
 | 
			
		||||
am__v_CC_0 = @echo "  CC      " $@;
 | 
			
		||||
am__v_CC_1 = 
 | 
			
		||||
CCLD = $(CC)
 | 
			
		||||
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
 | 
			
		||||
	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
 | 
			
		||||
	$(LDFLAGS) -o $@
 | 
			
		||||
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
 | 
			
		||||
	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
 | 
			
		||||
	$(AM_LDFLAGS) $(LDFLAGS) -o $@
 | 
			
		||||
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
 | 
			
		||||
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
 | 
			
		||||
am__v_CCLD_0 = @echo "  CCLD    " $@;
 | 
			
		||||
am__v_CCLD_1 = 
 | 
			
		||||
SOURCES = check_dhcp.c check_icmp.c pst3.c
 | 
			
		||||
DIST_SOURCES = check_dhcp.c check_icmp.c pst3.c
 | 
			
		||||
am__can_run_installinfo = \
 | 
			
		||||
| 
						 | 
				
			
			@ -195,10 +259,232 @@ am__can_run_installinfo = \
 | 
			
		|||
    n|no|NO) false;; \
 | 
			
		||||
    *) (install-info --version) >/dev/null 2>&1;; \
 | 
			
		||||
  esac
 | 
			
		||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
 | 
			
		||||
# Read a list of newline-separated strings from the standard input,
 | 
			
		||||
# and print each of them once, without duplicates.  Input order is
 | 
			
		||||
# *not* preserved.
 | 
			
		||||
am__uniquify_input = $(AWK) '\
 | 
			
		||||
  BEGIN { nonempty = 0; } \
 | 
			
		||||
  { items[$$0] = 1; nonempty = 1; } \
 | 
			
		||||
  END { if (nonempty) { for (i in items) print i; }; } \
 | 
			
		||||
'
 | 
			
		||||
# Make sure the list of sources is unique.  This is necessary because,
 | 
			
		||||
# e.g., the same source file might be shared among _SOURCES variables
 | 
			
		||||
# for different programs/libraries.
 | 
			
		||||
am__define_uniq_tagged_files = \
 | 
			
		||||
  list='$(am__tagged_files)'; \
 | 
			
		||||
  unique=`for i in $$list; do \
 | 
			
		||||
    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
 | 
			
		||||
  done | $(am__uniquify_input)`
 | 
			
		||||
ETAGS = etags
 | 
			
		||||
CTAGS = ctags
 | 
			
		||||
am__tty_colors = \
 | 
			
		||||
red=; grn=; lgn=; blu=; std=
 | 
			
		||||
am__tty_colors_dummy = \
 | 
			
		||||
  mgn= red= grn= lgn= blu= brg= std=; \
 | 
			
		||||
  am__color_tests=no
 | 
			
		||||
am__tty_colors = { \
 | 
			
		||||
  $(am__tty_colors_dummy); \
 | 
			
		||||
  if test "X$(AM_COLOR_TESTS)" = Xno; then \
 | 
			
		||||
    am__color_tests=no; \
 | 
			
		||||
  elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
 | 
			
		||||
    am__color_tests=yes; \
 | 
			
		||||
  elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
 | 
			
		||||
    am__color_tests=yes; \
 | 
			
		||||
  fi; \
 | 
			
		||||
  if test $$am__color_tests = yes; then \
 | 
			
		||||
    red='[0;31m'; \
 | 
			
		||||
    grn='[0;32m'; \
 | 
			
		||||
    lgn='[1;32m'; \
 | 
			
		||||
    blu='[1;34m'; \
 | 
			
		||||
    mgn='[0;35m'; \
 | 
			
		||||
    brg='[1m'; \
 | 
			
		||||
    std='[m'; \
 | 
			
		||||
  fi; \
 | 
			
		||||
}
 | 
			
		||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
 | 
			
		||||
am__vpath_adj = case $$p in \
 | 
			
		||||
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
 | 
			
		||||
    *) f=$$p;; \
 | 
			
		||||
  esac;
 | 
			
		||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
 | 
			
		||||
am__install_max = 40
 | 
			
		||||
am__nobase_strip_setup = \
 | 
			
		||||
  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
 | 
			
		||||
am__nobase_strip = \
 | 
			
		||||
  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
 | 
			
		||||
am__nobase_list = $(am__nobase_strip_setup); \
 | 
			
		||||
  for p in $$list; do echo "$$p $$p"; done | \
 | 
			
		||||
  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
 | 
			
		||||
  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
 | 
			
		||||
    if (++n[$$2] == $(am__install_max)) \
 | 
			
		||||
      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
 | 
			
		||||
    END { for (dir in files) print dir, files[dir] }'
 | 
			
		||||
am__base_list = \
 | 
			
		||||
  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
 | 
			
		||||
  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
 | 
			
		||||
am__uninstall_files_from_dir = { \
 | 
			
		||||
  test -z "$$files" \
 | 
			
		||||
    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
 | 
			
		||||
    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
 | 
			
		||||
         $(am__cd) "$$dir" && rm -f $$files; }; \
 | 
			
		||||
  }
 | 
			
		||||
am__recheck_rx = ^[ 	]*:recheck:[ 	]*
 | 
			
		||||
am__global_test_result_rx = ^[ 	]*:global-test-result:[ 	]*
 | 
			
		||||
am__copy_in_global_log_rx = ^[ 	]*:copy-in-global-log:[ 	]*
 | 
			
		||||
# A command that, given a newline-separated list of test names on the
 | 
			
		||||
# standard input, print the name of the tests that are to be re-run
 | 
			
		||||
# upon "make recheck".
 | 
			
		||||
am__list_recheck_tests = $(AWK) '{ \
 | 
			
		||||
  recheck = 1; \
 | 
			
		||||
  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
 | 
			
		||||
    { \
 | 
			
		||||
      if (rc < 0) \
 | 
			
		||||
        { \
 | 
			
		||||
          if ((getline line2 < ($$0 ".log")) < 0) \
 | 
			
		||||
	    recheck = 0; \
 | 
			
		||||
          break; \
 | 
			
		||||
        } \
 | 
			
		||||
      else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
 | 
			
		||||
        { \
 | 
			
		||||
          recheck = 0; \
 | 
			
		||||
          break; \
 | 
			
		||||
        } \
 | 
			
		||||
      else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
 | 
			
		||||
        { \
 | 
			
		||||
          break; \
 | 
			
		||||
        } \
 | 
			
		||||
    }; \
 | 
			
		||||
  if (recheck) \
 | 
			
		||||
    print $$0; \
 | 
			
		||||
  close ($$0 ".trs"); \
 | 
			
		||||
  close ($$0 ".log"); \
 | 
			
		||||
}'
 | 
			
		||||
# A command that, given a newline-separated list of test names on the
 | 
			
		||||
# standard input, create the global log from their .trs and .log files.
 | 
			
		||||
am__create_global_log = $(AWK) ' \
 | 
			
		||||
function fatal(msg) \
 | 
			
		||||
{ \
 | 
			
		||||
  print "fatal: making $@: " msg | "cat >&2"; \
 | 
			
		||||
  exit 1; \
 | 
			
		||||
} \
 | 
			
		||||
function rst_section(header) \
 | 
			
		||||
{ \
 | 
			
		||||
  print header; \
 | 
			
		||||
  len = length(header); \
 | 
			
		||||
  for (i = 1; i <= len; i = i + 1) \
 | 
			
		||||
    printf "="; \
 | 
			
		||||
  printf "\n\n"; \
 | 
			
		||||
} \
 | 
			
		||||
{ \
 | 
			
		||||
  copy_in_global_log = 1; \
 | 
			
		||||
  global_test_result = "RUN"; \
 | 
			
		||||
  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
 | 
			
		||||
    { \
 | 
			
		||||
      if (rc < 0) \
 | 
			
		||||
         fatal("failed to read from " $$0 ".trs"); \
 | 
			
		||||
      if (line ~ /$(am__global_test_result_rx)/) \
 | 
			
		||||
        { \
 | 
			
		||||
          sub("$(am__global_test_result_rx)", "", line); \
 | 
			
		||||
          sub("[ 	]*$$", "", line); \
 | 
			
		||||
          global_test_result = line; \
 | 
			
		||||
        } \
 | 
			
		||||
      else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
 | 
			
		||||
        copy_in_global_log = 0; \
 | 
			
		||||
    }; \
 | 
			
		||||
  if (copy_in_global_log) \
 | 
			
		||||
    { \
 | 
			
		||||
      rst_section(global_test_result ": " $$0); \
 | 
			
		||||
      while ((rc = (getline line < ($$0 ".log"))) != 0) \
 | 
			
		||||
      { \
 | 
			
		||||
        if (rc < 0) \
 | 
			
		||||
          fatal("failed to read from " $$0 ".log"); \
 | 
			
		||||
        print line; \
 | 
			
		||||
      }; \
 | 
			
		||||
      printf "\n"; \
 | 
			
		||||
    }; \
 | 
			
		||||
  close ($$0 ".trs"); \
 | 
			
		||||
  close ($$0 ".log"); \
 | 
			
		||||
}'
 | 
			
		||||
# Restructured Text title.
 | 
			
		||||
am__rst_title = { sed 's/.*/   &   /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
 | 
			
		||||
# Solaris 10 'make', and several other traditional 'make' implementations,
 | 
			
		||||
# pass "-e" to $(SHELL), and POSIX 2008 even requires this.  Work around it
 | 
			
		||||
# by disabling -e (using the XSI extension "set +e") if it's set.
 | 
			
		||||
am__sh_e_setup = case $$- in *e*) set +e;; esac
 | 
			
		||||
# Default flags passed to test drivers.
 | 
			
		||||
am__common_driver_flags = \
 | 
			
		||||
  --color-tests "$$am__color_tests" \
 | 
			
		||||
  --enable-hard-errors "$$am__enable_hard_errors" \
 | 
			
		||||
  --expect-failure "$$am__expect_failure"
 | 
			
		||||
# To be inserted before the command running the test.  Creates the
 | 
			
		||||
# directory for the log if needed.  Stores in $dir the directory
 | 
			
		||||
# containing $f, in $tst the test, in $log the log.  Executes the
 | 
			
		||||
# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
 | 
			
		||||
# passes TESTS_ENVIRONMENT.  Set up options for the wrapper that
 | 
			
		||||
# will run the test scripts (or their associated LOG_COMPILER, if
 | 
			
		||||
# thy have one).
 | 
			
		||||
am__check_pre = \
 | 
			
		||||
$(am__sh_e_setup);					\
 | 
			
		||||
$(am__vpath_adj_setup) $(am__vpath_adj)			\
 | 
			
		||||
$(am__tty_colors);					\
 | 
			
		||||
srcdir=$(srcdir); export srcdir;			\
 | 
			
		||||
case "$@" in						\
 | 
			
		||||
  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;;	\
 | 
			
		||||
    *) am__odir=.;; 					\
 | 
			
		||||
esac;							\
 | 
			
		||||
test "x$$am__odir" = x"." || test -d "$$am__odir" 	\
 | 
			
		||||
  || $(MKDIR_P) "$$am__odir" || exit $$?;		\
 | 
			
		||||
if test -f "./$$f"; then dir=./;			\
 | 
			
		||||
elif test -f "$$f"; then dir=;				\
 | 
			
		||||
else dir="$(srcdir)/"; fi;				\
 | 
			
		||||
tst=$$dir$$f; log='$@'; 				\
 | 
			
		||||
if test -n '$(DISABLE_HARD_ERRORS)'; then		\
 | 
			
		||||
  am__enable_hard_errors=no; 				\
 | 
			
		||||
else							\
 | 
			
		||||
  am__enable_hard_errors=yes; 				\
 | 
			
		||||
fi; 							\
 | 
			
		||||
case " $(XFAIL_TESTS) " in				\
 | 
			
		||||
  *[\ \	]$$f[\ \	]* | *[\ \	]$$dir$$f[\ \	]*) \
 | 
			
		||||
    am__expect_failure=yes;;				\
 | 
			
		||||
  *)							\
 | 
			
		||||
    am__expect_failure=no;;				\
 | 
			
		||||
esac; 							\
 | 
			
		||||
$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
 | 
			
		||||
# A shell command to get the names of the tests scripts with any registered
 | 
			
		||||
# extension removed (i.e., equivalently, the names of the test logs, with
 | 
			
		||||
# the '.log' extension removed).  The result is saved in the shell variable
 | 
			
		||||
# '$bases'.  This honors runtime overriding of TESTS and TEST_LOGS.  Sadly,
 | 
			
		||||
# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
 | 
			
		||||
# since that might cause problem with VPATH rewrites for suffix-less tests.
 | 
			
		||||
# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
 | 
			
		||||
am__set_TESTS_bases = \
 | 
			
		||||
  bases='$(TEST_LOGS)'; \
 | 
			
		||||
  bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
 | 
			
		||||
  bases=`echo $$bases`
 | 
			
		||||
AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
 | 
			
		||||
RECHECK_LOGS = $(TEST_LOGS)
 | 
			
		||||
AM_RECURSIVE_TARGETS = check recheck
 | 
			
		||||
TEST_SUITE_LOG = test-suite.log
 | 
			
		||||
TEST_EXTENSIONS = @EXEEXT@ .test
 | 
			
		||||
am__test_logs1 = $(TESTS:=.log)
 | 
			
		||||
am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
 | 
			
		||||
TEST_LOGS = $(am__test_logs2:.test.log=.log)
 | 
			
		||||
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver
 | 
			
		||||
TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
 | 
			
		||||
	$(TEST_LOG_FLAGS)
 | 
			
		||||
am__set_b = \
 | 
			
		||||
  case '$@' in \
 | 
			
		||||
    */*) \
 | 
			
		||||
      case '$*' in \
 | 
			
		||||
        */*) b='$*';; \
 | 
			
		||||
          *) b=`echo '$@' | sed 's/\.log$$//'`; \
 | 
			
		||||
       esac;; \
 | 
			
		||||
    *) \
 | 
			
		||||
      b='$*';; \
 | 
			
		||||
  esac
 | 
			
		||||
am__DIST_COMMON = $(srcdir)/Makefile.in \
 | 
			
		||||
	$(top_srcdir)/build-aux/depcomp \
 | 
			
		||||
	$(top_srcdir)/build-aux/mkinstalldirs \
 | 
			
		||||
	$(top_srcdir)/build-aux/test-driver
 | 
			
		||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 | 
			
		||||
VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir)
 | 
			
		||||
pkglibexecdir = @pkglibexecdir@
 | 
			
		||||
| 
						 | 
				
			
			@ -206,6 +492,7 @@ ACLOCAL = @ACLOCAL@
 | 
			
		|||
ALLOCA = @ALLOCA@
 | 
			
		||||
ALLOCA_H = @ALLOCA_H@
 | 
			
		||||
AMTAR = @AMTAR@
 | 
			
		||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
 | 
			
		||||
APPLE_UNIVERSAL_BUILD = @APPLE_UNIVERSAL_BUILD@
 | 
			
		||||
AR = @AR@
 | 
			
		||||
ARFLAGS = @ARFLAGS@
 | 
			
		||||
| 
						 | 
				
			
			@ -1331,6 +1618,7 @@ pdfdir = @pdfdir@
 | 
			
		|||
prefix = @prefix@
 | 
			
		||||
program_transform_name = @program_transform_name@
 | 
			
		||||
psdir = @psdir@
 | 
			
		||||
runstatedir = @runstatedir@
 | 
			
		||||
sbindir = @sbindir@
 | 
			
		||||
sharedstatedir = @sharedstatedir@
 | 
			
		||||
srcdir = @srcdir@
 | 
			
		||||
| 
						 | 
				
			
			@ -1381,7 +1669,7 @@ check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS)
 | 
			
		|||
all: all-am
 | 
			
		||||
 | 
			
		||||
.SUFFIXES:
 | 
			
		||||
.SUFFIXES: .c .lo .o .obj
 | 
			
		||||
.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
 | 
			
		||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
 | 
			
		||||
	@for dep in $?; do \
 | 
			
		||||
	  case '$(am__configure_deps)' in \
 | 
			
		||||
| 
						 | 
				
			
			@ -1394,14 +1682,13 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__confi
 | 
			
		|||
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins-root/Makefile'; \
 | 
			
		||||
	$(am__cd) $(top_srcdir) && \
 | 
			
		||||
	  $(AUTOMAKE) --gnu plugins-root/Makefile
 | 
			
		||||
.PRECIOUS: 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);; \
 | 
			
		||||
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
 | 
			
		||||
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
 | 
			
		||||
	esac;
 | 
			
		||||
 | 
			
		||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
 | 
			
		||||
| 
						 | 
				
			
			@ -1421,15 +1708,18 @@ clean-noinstPROGRAMS:
 | 
			
		|||
	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
 | 
			
		||||
	echo " rm -f" $$list; \
 | 
			
		||||
	rm -f $$list
 | 
			
		||||
 | 
			
		||||
check_dhcp$(EXEEXT): $(check_dhcp_OBJECTS) $(check_dhcp_DEPENDENCIES) $(EXTRA_check_dhcp_DEPENDENCIES) 
 | 
			
		||||
	@rm -f check_dhcp$(EXEEXT)
 | 
			
		||||
	$(LINK) $(check_dhcp_OBJECTS) $(check_dhcp_LDADD) $(LIBS)
 | 
			
		||||
	$(AM_V_CCLD)$(LINK) $(check_dhcp_OBJECTS) $(check_dhcp_LDADD) $(LIBS)
 | 
			
		||||
 | 
			
		||||
check_icmp$(EXEEXT): $(check_icmp_OBJECTS) $(check_icmp_DEPENDENCIES) $(EXTRA_check_icmp_DEPENDENCIES) 
 | 
			
		||||
	@rm -f check_icmp$(EXEEXT)
 | 
			
		||||
	$(LINK) $(check_icmp_OBJECTS) $(check_icmp_LDADD) $(LIBS)
 | 
			
		||||
	$(AM_V_CCLD)$(LINK) $(check_icmp_OBJECTS) $(check_icmp_LDADD) $(LIBS)
 | 
			
		||||
 | 
			
		||||
pst3$(EXEEXT): $(pst3_OBJECTS) $(pst3_DEPENDENCIES) $(EXTRA_pst3_DEPENDENCIES) 
 | 
			
		||||
	@rm -f pst3$(EXEEXT)
 | 
			
		||||
	$(pst3_LINK) $(pst3_OBJECTS) $(pst3_LDADD) $(LIBS)
 | 
			
		||||
	$(AM_V_CCLD)$(pst3_LINK) $(pst3_OBJECTS) $(pst3_LDADD) $(LIBS)
 | 
			
		||||
 | 
			
		||||
mostlyclean-compile:
 | 
			
		||||
	-rm -f *.$(OBJEXT)
 | 
			
		||||
| 
						 | 
				
			
			@ -1437,44 +1727,50 @@ mostlyclean-compile:
 | 
			
		|||
distclean-compile:
 | 
			
		||||
	-rm -f *.tab.c
 | 
			
		||||
 | 
			
		||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_dhcp.Po@am__quote@
 | 
			
		||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_icmp.Po@am__quote@
 | 
			
		||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pst3-pst3.Po@am__quote@
 | 
			
		||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_dhcp.Po@am__quote@ # am--include-marker
 | 
			
		||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_icmp.Po@am__quote@ # am--include-marker
 | 
			
		||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pst3-pst3.Po@am__quote@ # am--include-marker
 | 
			
		||||
 | 
			
		||||
$(am__depfiles_remade):
 | 
			
		||||
	@$(MKDIR_P) $(@D)
 | 
			
		||||
	@echo '# dummy' >$@-t && $(am__mv) $@-t $@
 | 
			
		||||
 | 
			
		||||
am--depfiles: $(am__depfiles_remade)
 | 
			
		||||
 | 
			
		||||
.c.o:
 | 
			
		||||
@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
 | 
			
		||||
@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_FALSE@	$(COMPILE) -c $<
 | 
			
		||||
@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
 | 
			
		||||
 | 
			
		||||
.c.obj:
 | 
			
		||||
@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
 | 
			
		||||
@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
 | 
			
		||||
@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
 | 
			
		||||
 | 
			
		||||
.c.lo:
 | 
			
		||||
@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
 | 
			
		||||
@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
 | 
			
		||||
@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
 | 
			
		||||
 | 
			
		||||
pst3-pst3.o: pst3.c
 | 
			
		||||
@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -MT pst3-pst3.o -MD -MP -MF $(DEPDIR)/pst3-pst3.Tpo -c -o pst3-pst3.o `test -f 'pst3.c' || echo '$(srcdir)/'`pst3.c
 | 
			
		||||
@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/pst3-pst3.Tpo $(DEPDIR)/pst3-pst3.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='pst3.c' object='pst3-pst3.o' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -MT pst3-pst3.o -MD -MP -MF $(DEPDIR)/pst3-pst3.Tpo -c -o pst3-pst3.o `test -f 'pst3.c' || echo '$(srcdir)/'`pst3.c
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/pst3-pst3.Tpo $(DEPDIR)/pst3-pst3.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='pst3.c' object='pst3-pst3.o' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -c -o pst3-pst3.o `test -f 'pst3.c' || echo '$(srcdir)/'`pst3.c
 | 
			
		||||
@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -c -o pst3-pst3.o `test -f 'pst3.c' || echo '$(srcdir)/'`pst3.c
 | 
			
		||||
 | 
			
		||||
pst3-pst3.obj: pst3.c
 | 
			
		||||
@am__fastdepCC_TRUE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -MT pst3-pst3.obj -MD -MP -MF $(DEPDIR)/pst3-pst3.Tpo -c -o pst3-pst3.obj `if test -f 'pst3.c'; then $(CYGPATH_W) 'pst3.c'; else $(CYGPATH_W) '$(srcdir)/pst3.c'; fi`
 | 
			
		||||
@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/pst3-pst3.Tpo $(DEPDIR)/pst3-pst3.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='pst3.c' object='pst3-pst3.obj' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -MT pst3-pst3.obj -MD -MP -MF $(DEPDIR)/pst3-pst3.Tpo -c -o pst3-pst3.obj `if test -f 'pst3.c'; then $(CYGPATH_W) 'pst3.c'; else $(CYGPATH_W) '$(srcdir)/pst3.c'; fi`
 | 
			
		||||
@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/pst3-pst3.Tpo $(DEPDIR)/pst3-pst3.Po
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='pst3.c' object='pst3-pst3.obj' libtool=no @AMDEPBACKSLASH@
 | 
			
		||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 | 
			
		||||
@am__fastdepCC_FALSE@	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -c -o pst3-pst3.obj `if test -f 'pst3.c'; then $(CYGPATH_W) 'pst3.c'; else $(CYGPATH_W) '$(srcdir)/pst3.c'; fi`
 | 
			
		||||
@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(pst3_CPPFLAGS) $(CPPFLAGS) $(pst3_CFLAGS) $(CFLAGS) -c -o pst3-pst3.obj `if test -f 'pst3.c'; then $(CYGPATH_W) 'pst3.c'; else $(CYGPATH_W) '$(srcdir)/pst3.c'; fi`
 | 
			
		||||
 | 
			
		||||
mostlyclean-libtool:
 | 
			
		||||
	-rm -f *.lo
 | 
			
		||||
| 
						 | 
				
			
			@ -1482,26 +1778,15 @@ mostlyclean-libtool:
 | 
			
		|||
clean-libtool:
 | 
			
		||||
	-rm -rf .libs _libs
 | 
			
		||||
 | 
			
		||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
 | 
			
		||||
	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
 | 
			
		||||
	unique=`for i in $$list; do \
 | 
			
		||||
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
 | 
			
		||||
	  done | \
 | 
			
		||||
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
 | 
			
		||||
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
 | 
			
		||||
	mkid -fID $$unique
 | 
			
		||||
tags: TAGS
 | 
			
		||||
ID: $(am__tagged_files)
 | 
			
		||||
	$(am__define_uniq_tagged_files); mkid -fID $$unique
 | 
			
		||||
tags: tags-am
 | 
			
		||||
TAGS: tags
 | 
			
		||||
 | 
			
		||||
TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
 | 
			
		||||
		$(TAGS_FILES) $(LISP)
 | 
			
		||||
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
 | 
			
		||||
	set x; \
 | 
			
		||||
	here=`pwd`; \
 | 
			
		||||
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
 | 
			
		||||
	unique=`for i in $$list; do \
 | 
			
		||||
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
 | 
			
		||||
	  done | \
 | 
			
		||||
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
 | 
			
		||||
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
 | 
			
		||||
	$(am__define_uniq_tagged_files); \
 | 
			
		||||
	shift; \
 | 
			
		||||
	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
 | 
			
		||||
	  test -n "$$unique" || unique=$$empty_fix; \
 | 
			
		||||
| 
						 | 
				
			
			@ -1513,15 +1798,11 @@ TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
 | 
			
		|||
	      $$unique; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	fi
 | 
			
		||||
ctags: CTAGS
 | 
			
		||||
CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
 | 
			
		||||
		$(TAGS_FILES) $(LISP)
 | 
			
		||||
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
 | 
			
		||||
	unique=`for i in $$list; do \
 | 
			
		||||
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
 | 
			
		||||
	  done | \
 | 
			
		||||
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
 | 
			
		||||
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
 | 
			
		||||
ctags: ctags-am
 | 
			
		||||
 | 
			
		||||
CTAGS: ctags
 | 
			
		||||
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
 | 
			
		||||
	$(am__define_uniq_tagged_files); \
 | 
			
		||||
	test -z "$(CTAGS_ARGS)$$unique" \
 | 
			
		||||
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
 | 
			
		||||
	     $$unique
 | 
			
		||||
| 
						 | 
				
			
			@ -1530,104 +1811,185 @@ GTAGS:
 | 
			
		|||
	here=`$(am__cd) $(top_builddir) && pwd` \
 | 
			
		||||
	  && $(am__cd) $(top_srcdir) \
 | 
			
		||||
	  && gtags -i $(GTAGS_ARGS) "$$here"
 | 
			
		||||
cscopelist: cscopelist-am
 | 
			
		||||
 | 
			
		||||
cscopelist-am: $(am__tagged_files)
 | 
			
		||||
	list='$(am__tagged_files)'; \
 | 
			
		||||
	case "$(srcdir)" in \
 | 
			
		||||
	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
 | 
			
		||||
	  *) sdir=$(subdir)/$(srcdir) ;; \
 | 
			
		||||
	esac; \
 | 
			
		||||
	for i in $$list; do \
 | 
			
		||||
	  if test -f "$$i"; then \
 | 
			
		||||
	    echo "$(subdir)/$$i"; \
 | 
			
		||||
	  else \
 | 
			
		||||
	    echo "$$sdir/$$i"; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	done >> $(top_builddir)/cscope.files
 | 
			
		||||
 | 
			
		||||
distclean-tags:
 | 
			
		||||
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
 | 
			
		||||
 | 
			
		||||
check-TESTS: $(TESTS)
 | 
			
		||||
	@failed=0; all=0; xfail=0; xpass=0; skip=0; \
 | 
			
		||||
	srcdir=$(srcdir); export srcdir; \
 | 
			
		||||
	list=' $(TESTS) '; \
 | 
			
		||||
	$(am__tty_colors); \
 | 
			
		||||
	if test -n "$$list"; then \
 | 
			
		||||
	  for tst in $$list; do \
 | 
			
		||||
	    if test -f ./$$tst; then dir=./; \
 | 
			
		||||
	    elif test -f $$tst; then dir=; \
 | 
			
		||||
	    else dir="$(srcdir)/"; fi; \
 | 
			
		||||
	    if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
 | 
			
		||||
	      all=`expr $$all + 1`; \
 | 
			
		||||
	      case " $(XFAIL_TESTS) " in \
 | 
			
		||||
	      *[\ \	]$$tst[\ \	]*) \
 | 
			
		||||
		xpass=`expr $$xpass + 1`; \
 | 
			
		||||
		failed=`expr $$failed + 1`; \
 | 
			
		||||
		col=$$red; res=XPASS; \
 | 
			
		||||
	      ;; \
 | 
			
		||||
	      *) \
 | 
			
		||||
		col=$$grn; res=PASS; \
 | 
			
		||||
	      ;; \
 | 
			
		||||
	      esac; \
 | 
			
		||||
	    elif test $$? -ne 77; then \
 | 
			
		||||
	      all=`expr $$all + 1`; \
 | 
			
		||||
	      case " $(XFAIL_TESTS) " in \
 | 
			
		||||
	      *[\ \	]$$tst[\ \	]*) \
 | 
			
		||||
		xfail=`expr $$xfail + 1`; \
 | 
			
		||||
		col=$$lgn; res=XFAIL; \
 | 
			
		||||
	      ;; \
 | 
			
		||||
	      *) \
 | 
			
		||||
		failed=`expr $$failed + 1`; \
 | 
			
		||||
		col=$$red; res=FAIL; \
 | 
			
		||||
	      ;; \
 | 
			
		||||
	      esac; \
 | 
			
		||||
	    else \
 | 
			
		||||
	      skip=`expr $$skip + 1`; \
 | 
			
		||||
	      col=$$blu; res=SKIP; \
 | 
			
		||||
	    fi; \
 | 
			
		||||
	    echo "$${col}$$res$${std}: $$tst"; \
 | 
			
		||||
	  done; \
 | 
			
		||||
	  if test "$$all" -eq 1; then \
 | 
			
		||||
	    tests="test"; \
 | 
			
		||||
	    All=""; \
 | 
			
		||||
	  else \
 | 
			
		||||
	    tests="tests"; \
 | 
			
		||||
	    All="All "; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	  if test "$$failed" -eq 0; then \
 | 
			
		||||
	    if test "$$xfail" -eq 0; then \
 | 
			
		||||
	      banner="$$All$$all $$tests passed"; \
 | 
			
		||||
	    else \
 | 
			
		||||
	      if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
 | 
			
		||||
	      banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
 | 
			
		||||
	    fi; \
 | 
			
		||||
	  else \
 | 
			
		||||
	    if test "$$xpass" -eq 0; then \
 | 
			
		||||
	      banner="$$failed of $$all $$tests failed"; \
 | 
			
		||||
	    else \
 | 
			
		||||
	      if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
 | 
			
		||||
	      banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
 | 
			
		||||
	    fi; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	  dashes="$$banner"; \
 | 
			
		||||
	  skipped=""; \
 | 
			
		||||
	  if test "$$skip" -ne 0; then \
 | 
			
		||||
	    if test "$$skip" -eq 1; then \
 | 
			
		||||
	      skipped="($$skip test was not run)"; \
 | 
			
		||||
	    else \
 | 
			
		||||
	      skipped="($$skip tests were not run)"; \
 | 
			
		||||
	    fi; \
 | 
			
		||||
	    test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
 | 
			
		||||
	      dashes="$$skipped"; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	  report=""; \
 | 
			
		||||
	  if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
 | 
			
		||||
	    report="Please report to $(PACKAGE_BUGREPORT)"; \
 | 
			
		||||
	    test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
 | 
			
		||||
	      dashes="$$report"; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	  dashes=`echo "$$dashes" | sed s/./=/g`; \
 | 
			
		||||
	  if test "$$failed" -eq 0; then \
 | 
			
		||||
	    col="$$grn"; \
 | 
			
		||||
	  else \
 | 
			
		||||
	    col="$$red"; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	  echo "$${col}$$dashes$${std}"; \
 | 
			
		||||
	  echo "$${col}$$banner$${std}"; \
 | 
			
		||||
	  test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \
 | 
			
		||||
	  test -z "$$report" || echo "$${col}$$report$${std}"; \
 | 
			
		||||
	  echo "$${col}$$dashes$${std}"; \
 | 
			
		||||
	  test "$$failed" -eq 0; \
 | 
			
		||||
	else :; fi
 | 
			
		||||
# Recover from deleted '.trs' file; this should ensure that
 | 
			
		||||
# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
 | 
			
		||||
# both 'foo.log' and 'foo.trs'.  Break the recipe in two subshells
 | 
			
		||||
# to avoid problems with "make -n".
 | 
			
		||||
.log.trs:
 | 
			
		||||
	rm -f $< $@
 | 
			
		||||
	$(MAKE) $(AM_MAKEFLAGS) $<
 | 
			
		||||
 | 
			
		||||
distdir: $(DISTFILES)
 | 
			
		||||
# Leading 'am--fnord' is there to ensure the list of targets does not
 | 
			
		||||
# expand to empty, as could happen e.g. with make check TESTS=''.
 | 
			
		||||
am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
 | 
			
		||||
am--force-recheck:
 | 
			
		||||
	@:
 | 
			
		||||
 | 
			
		||||
$(TEST_SUITE_LOG): $(TEST_LOGS)
 | 
			
		||||
	@$(am__set_TESTS_bases); \
 | 
			
		||||
	am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
 | 
			
		||||
	redo_bases=`for i in $$bases; do \
 | 
			
		||||
	              am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
 | 
			
		||||
	            done`; \
 | 
			
		||||
	if test -n "$$redo_bases"; then \
 | 
			
		||||
	  redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
 | 
			
		||||
	  redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
 | 
			
		||||
	  if $(am__make_dryrun); then :; else \
 | 
			
		||||
	    rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
 | 
			
		||||
	  fi; \
 | 
			
		||||
	fi; \
 | 
			
		||||
	if test -n "$$am__remaking_logs"; then \
 | 
			
		||||
	  echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
 | 
			
		||||
	       "recursion detected" >&2; \
 | 
			
		||||
	elif test -n "$$redo_logs"; then \
 | 
			
		||||
	  am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
 | 
			
		||||
	fi; \
 | 
			
		||||
	if $(am__make_dryrun); then :; else \
 | 
			
		||||
	  st=0;  \
 | 
			
		||||
	  errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
 | 
			
		||||
	  for i in $$redo_bases; do \
 | 
			
		||||
	    test -f $$i.trs && test -r $$i.trs \
 | 
			
		||||
	      || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
 | 
			
		||||
	    test -f $$i.log && test -r $$i.log \
 | 
			
		||||
	      || { echo "$$errmsg $$i.log" >&2; st=1; }; \
 | 
			
		||||
	  done; \
 | 
			
		||||
	  test $$st -eq 0 || exit 1; \
 | 
			
		||||
	fi
 | 
			
		||||
	@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
 | 
			
		||||
	ws='[ 	]'; \
 | 
			
		||||
	results=`for b in $$bases; do echo $$b.trs; done`; \
 | 
			
		||||
	test -n "$$results" || results=/dev/null; \
 | 
			
		||||
	all=`  grep "^$$ws*:test-result:"           $$results | wc -l`; \
 | 
			
		||||
	pass=` grep "^$$ws*:test-result:$$ws*PASS"  $$results | wc -l`; \
 | 
			
		||||
	fail=` grep "^$$ws*:test-result:$$ws*FAIL"  $$results | wc -l`; \
 | 
			
		||||
	skip=` grep "^$$ws*:test-result:$$ws*SKIP"  $$results | wc -l`; \
 | 
			
		||||
	xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
 | 
			
		||||
	xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
 | 
			
		||||
	error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
 | 
			
		||||
	if test `expr $$fail + $$xpass + $$error` -eq 0; then \
 | 
			
		||||
	  success=true; \
 | 
			
		||||
	else \
 | 
			
		||||
	  success=false; \
 | 
			
		||||
	fi; \
 | 
			
		||||
	br='==================='; br=$$br$$br$$br$$br; \
 | 
			
		||||
	result_count () \
 | 
			
		||||
	{ \
 | 
			
		||||
	    if test x"$$1" = x"--maybe-color"; then \
 | 
			
		||||
	      maybe_colorize=yes; \
 | 
			
		||||
	    elif test x"$$1" = x"--no-color"; then \
 | 
			
		||||
	      maybe_colorize=no; \
 | 
			
		||||
	    else \
 | 
			
		||||
	      echo "$@: invalid 'result_count' usage" >&2; exit 4; \
 | 
			
		||||
	    fi; \
 | 
			
		||||
	    shift; \
 | 
			
		||||
	    desc=$$1 count=$$2; \
 | 
			
		||||
	    if test $$maybe_colorize = yes && test $$count -gt 0; then \
 | 
			
		||||
	      color_start=$$3 color_end=$$std; \
 | 
			
		||||
	    else \
 | 
			
		||||
	      color_start= color_end=; \
 | 
			
		||||
	    fi; \
 | 
			
		||||
	    echo "$${color_start}# $$desc $$count$${color_end}"; \
 | 
			
		||||
	}; \
 | 
			
		||||
	create_testsuite_report () \
 | 
			
		||||
	{ \
 | 
			
		||||
	  result_count $$1 "TOTAL:" $$all   "$$brg"; \
 | 
			
		||||
	  result_count $$1 "PASS: " $$pass  "$$grn"; \
 | 
			
		||||
	  result_count $$1 "SKIP: " $$skip  "$$blu"; \
 | 
			
		||||
	  result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
 | 
			
		||||
	  result_count $$1 "FAIL: " $$fail  "$$red"; \
 | 
			
		||||
	  result_count $$1 "XPASS:" $$xpass "$$red"; \
 | 
			
		||||
	  result_count $$1 "ERROR:" $$error "$$mgn"; \
 | 
			
		||||
	}; \
 | 
			
		||||
	{								\
 | 
			
		||||
	  echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |	\
 | 
			
		||||
	    $(am__rst_title);						\
 | 
			
		||||
	  create_testsuite_report --no-color;				\
 | 
			
		||||
	  echo;								\
 | 
			
		||||
	  echo ".. contents:: :depth: 2";				\
 | 
			
		||||
	  echo;								\
 | 
			
		||||
	  for b in $$bases; do echo $$b; done				\
 | 
			
		||||
	    | $(am__create_global_log);					\
 | 
			
		||||
	} >$(TEST_SUITE_LOG).tmp || exit 1;				\
 | 
			
		||||
	mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG);			\
 | 
			
		||||
	if $$success; then						\
 | 
			
		||||
	  col="$$grn";							\
 | 
			
		||||
	 else								\
 | 
			
		||||
	  col="$$red";							\
 | 
			
		||||
	  test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);		\
 | 
			
		||||
	fi;								\
 | 
			
		||||
	echo "$${col}$$br$${std}"; 					\
 | 
			
		||||
	echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}";	\
 | 
			
		||||
	echo "$${col}$$br$${std}"; 					\
 | 
			
		||||
	create_testsuite_report --maybe-color;				\
 | 
			
		||||
	echo "$$col$$br$$std";						\
 | 
			
		||||
	if $$success; then :; else					\
 | 
			
		||||
	  echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}";		\
 | 
			
		||||
	  if test -n "$(PACKAGE_BUGREPORT)"; then			\
 | 
			
		||||
	    echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}";	\
 | 
			
		||||
	  fi;								\
 | 
			
		||||
	  echo "$$col$$br$$std";					\
 | 
			
		||||
	fi;								\
 | 
			
		||||
	$$success || exit 1
 | 
			
		||||
 | 
			
		||||
check-TESTS: 
 | 
			
		||||
	@list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
 | 
			
		||||
	@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
 | 
			
		||||
	@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
 | 
			
		||||
	@set +e; $(am__set_TESTS_bases); \
 | 
			
		||||
	log_list=`for i in $$bases; do echo $$i.log; done`; \
 | 
			
		||||
	trs_list=`for i in $$bases; do echo $$i.trs; done`; \
 | 
			
		||||
	log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
 | 
			
		||||
	$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
 | 
			
		||||
	exit $$?;
 | 
			
		||||
recheck: all 
 | 
			
		||||
	@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
 | 
			
		||||
	@set +e; $(am__set_TESTS_bases); \
 | 
			
		||||
	bases=`for i in $$bases; do echo $$i; done \
 | 
			
		||||
	         | $(am__list_recheck_tests)` || exit 1; \
 | 
			
		||||
	log_list=`for i in $$bases; do echo $$i.log; done`; \
 | 
			
		||||
	log_list=`echo $$log_list`; \
 | 
			
		||||
	$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
 | 
			
		||||
	        am__force_recheck=am--force-recheck \
 | 
			
		||||
	        TEST_LOGS="$$log_list"; \
 | 
			
		||||
	exit $$?
 | 
			
		||||
.test.log:
 | 
			
		||||
	@p='$<'; \
 | 
			
		||||
	$(am__set_b); \
 | 
			
		||||
	$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
 | 
			
		||||
	--log-file $$b.log --trs-file $$b.trs \
 | 
			
		||||
	$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
 | 
			
		||||
	"$$tst" $(AM_TESTS_FD_REDIRECT)
 | 
			
		||||
@am__EXEEXT_TRUE@.test$(EXEEXT).log:
 | 
			
		||||
@am__EXEEXT_TRUE@	@p='$<'; \
 | 
			
		||||
@am__EXEEXT_TRUE@	$(am__set_b); \
 | 
			
		||||
@am__EXEEXT_TRUE@	$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
 | 
			
		||||
@am__EXEEXT_TRUE@	--log-file $$b.log --trs-file $$b.trs \
 | 
			
		||||
@am__EXEEXT_TRUE@	$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
 | 
			
		||||
@am__EXEEXT_TRUE@	"$$tst" $(AM_TESTS_FD_REDIRECT)
 | 
			
		||||
 | 
			
		||||
distdir: $(BUILT_SOURCES)
 | 
			
		||||
	$(MAKE) $(AM_MAKEFLAGS) distdir-am
 | 
			
		||||
 | 
			
		||||
distdir-am: $(DISTFILES)
 | 
			
		||||
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
 | 
			
		||||
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
 | 
			
		||||
	list='$(DISTFILES)'; \
 | 
			
		||||
| 
						 | 
				
			
			@ -1682,6 +2044,9 @@ install-strip:
 | 
			
		|||
	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
 | 
			
		||||
	fi
 | 
			
		||||
mostlyclean-generic:
 | 
			
		||||
	-test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
 | 
			
		||||
	-test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
 | 
			
		||||
	-test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
 | 
			
		||||
 | 
			
		||||
clean-generic:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1698,7 +2063,9 @@ clean-am: clean-generic clean-libtool clean-local clean-noinstPROGRAMS \
 | 
			
		|||
	mostlyclean-am
 | 
			
		||||
 | 
			
		||||
distclean: distclean-am
 | 
			
		||||
	-rm -rf ./$(DEPDIR)
 | 
			
		||||
		-rm -f ./$(DEPDIR)/check_dhcp.Po
 | 
			
		||||
	-rm -f ./$(DEPDIR)/check_icmp.Po
 | 
			
		||||
	-rm -f ./$(DEPDIR)/pst3-pst3.Po
 | 
			
		||||
	-rm -f Makefile
 | 
			
		||||
distclean-am: clean-am distclean-compile distclean-generic \
 | 
			
		||||
	distclean-tags
 | 
			
		||||
| 
						 | 
				
			
			@ -1744,7 +2111,9 @@ install-ps-am:
 | 
			
		|||
installcheck-am:
 | 
			
		||||
 | 
			
		||||
maintainer-clean: maintainer-clean-am
 | 
			
		||||
	-rm -rf ./$(DEPDIR)
 | 
			
		||||
		-rm -f ./$(DEPDIR)/check_dhcp.Po
 | 
			
		||||
	-rm -f ./$(DEPDIR)/check_icmp.Po
 | 
			
		||||
	-rm -f ./$(DEPDIR)/pst3-pst3.Po
 | 
			
		||||
	-rm -f Makefile
 | 
			
		||||
maintainer-clean-am: distclean-am maintainer-clean-generic
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1765,19 +2134,22 @@ uninstall-am:
 | 
			
		|||
 | 
			
		||||
.MAKE: check-am install-am install-strip
 | 
			
		||||
 | 
			
		||||
.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
 | 
			
		||||
	clean-generic clean-libtool clean-local clean-noinstPROGRAMS \
 | 
			
		||||
	ctags distclean distclean-compile distclean-generic \
 | 
			
		||||
	distclean-libtool distclean-tags 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-exec-local 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-compile mostlyclean-generic mostlyclean-libtool \
 | 
			
		||||
	pdf pdf-am ps ps-am tags uninstall uninstall-am
 | 
			
		||||
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-TESTS \
 | 
			
		||||
	check-am clean clean-generic clean-libtool clean-local \
 | 
			
		||||
	clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
 | 
			
		||||
	distclean-compile distclean-generic distclean-libtool \
 | 
			
		||||
	distclean-tags 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-exec-local \
 | 
			
		||||
	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-compile mostlyclean-generic \
 | 
			
		||||
	mostlyclean-libtool pdf pdf-am ps ps-am recheck tags tags-am \
 | 
			
		||||
	uninstall uninstall-am
 | 
			
		||||
 | 
			
		||||
.PRECIOUS: Makefile
 | 
			
		||||
 | 
			
		||||
@RELEASE_PRESENT_FALSE@NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
 | 
			
		||||
@RELEASE_PRESENT_FALSE@	@$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
 | 
			
		||||
| 
						 | 
				
			
			@ -1787,6 +2159,9 @@ uninstall-am:
 | 
			
		|||
test:
 | 
			
		||||
	perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
 | 
			
		||||
 | 
			
		||||
test-debug:
 | 
			
		||||
	NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
 | 
			
		||||
 | 
			
		||||
install-root: $(noinst_PROGRAMS)
 | 
			
		||||
	@$(INSTALL_SUID)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,19 +50,11 @@ const char *email = "devel@monitoring-plugins.org";
 | 
			
		|||
#if HAVE_SYS_SOCKIO_H
 | 
			
		||||
#include <sys/sockio.h>
 | 
			
		||||
#endif
 | 
			
		||||
#include <sys/ioctl.h>
 | 
			
		||||
 | 
			
		||||
#include <sys/time.h>
 | 
			
		||||
#include <sys/types.h>
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <stdarg.h>
 | 
			
		||||
#include <unistd.h>
 | 
			
		||||
#include <stddef.h>
 | 
			
		||||
#include <errno.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <signal.h>
 | 
			
		||||
#include <ctype.h>
 | 
			
		||||
#include <netdb.h>
 | 
			
		||||
#include <sys/socket.h>
 | 
			
		||||
#include <net/if.h>
 | 
			
		||||
#include <netinet/in_systm.h>
 | 
			
		||||
#include <netinet/in.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -71,8 +63,6 @@ const char *email = "devel@monitoring-plugins.org";
 | 
			
		|||
#include <netinet/ip_icmp.h>
 | 
			
		||||
#include <netinet/icmp6.h>
 | 
			
		||||
#include <arpa/inet.h>
 | 
			
		||||
#include <signal.h>
 | 
			
		||||
#include <float.h>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/** sometimes undefined system macros (quite a few, actually) **/
 | 
			
		||||
| 
						 | 
				
			
			@ -207,7 +197,7 @@ static int add_target(char *);
 | 
			
		|||
static int add_target_ip(char *, struct sockaddr_storage *);
 | 
			
		||||
static int handle_random_icmp(unsigned char *, struct sockaddr_storage *);
 | 
			
		||||
static void parse_address(struct sockaddr_storage *, char *, int);
 | 
			
		||||
static unsigned short icmp_checksum(unsigned short *, int);
 | 
			
		||||
static unsigned short icmp_checksum(uint16_t *, size_t);
 | 
			
		||||
static void finish(int);
 | 
			
		||||
static void crash(const char *, ...);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -223,7 +213,7 @@ static int mode, protocols, sockets, debug = 0, timeout = 10;
 | 
			
		|||
static unsigned short icmp_data_size = DEFAULT_PING_DATA_SIZE;
 | 
			
		||||
static unsigned short icmp_pkt_size = DEFAULT_PING_DATA_SIZE + ICMP_MINLEN;
 | 
			
		||||
 | 
			
		||||
static unsigned int icmp_sent = 0, icmp_recv = 0, icmp_lost = 0;
 | 
			
		||||
static unsigned int icmp_sent = 0, icmp_recv = 0, icmp_lost = 0, ttl = 0;
 | 
			
		||||
#define icmp_pkts_en_route (icmp_sent - (icmp_recv + icmp_lost))
 | 
			
		||||
static unsigned short targets_down = 0, targets = 0, packets = 0;
 | 
			
		||||
#define targets_alive (targets - targets_down)
 | 
			
		||||
| 
						 | 
				
			
			@ -233,7 +223,6 @@ static pid_t pid;
 | 
			
		|||
static struct timezone tz;
 | 
			
		||||
static struct timeval prog_start;
 | 
			
		||||
static unsigned long long max_completion_time = 0;
 | 
			
		||||
static unsigned char ttl = 0;	/* outgoing ttl */
 | 
			
		||||
static unsigned int warn_down = 1, crit_down = 1; /* host down threshold values */
 | 
			
		||||
static int min_hosts_alive = -1;
 | 
			
		||||
float pkt_backoff_factor = 1.5;
 | 
			
		||||
| 
						 | 
				
			
			@ -410,6 +399,7 @@ main(int argc, char **argv)
 | 
			
		|||
#ifdef SO_TIMESTAMP
 | 
			
		||||
	int on = 1;
 | 
			
		||||
#endif
 | 
			
		||||
	char *source_ip = NULL;
 | 
			
		||||
	char * opts_str = "vhVw:c:n:p:t:H:s:i:b:I:l:m:64";
 | 
			
		||||
 | 
			
		||||
	setlocale (LC_ALL, "");
 | 
			
		||||
| 
						 | 
				
			
			@ -464,7 +454,6 @@ main(int argc, char **argv)
 | 
			
		|||
	/* Parse protocol arguments first */
 | 
			
		||||
	for(i = 1; i < argc; i++) {
 | 
			
		||||
		while((arg = getopt(argc, argv, opts_str)) != EOF) {
 | 
			
		||||
			unsigned short size;
 | 
			
		||||
			switch(arg) {
 | 
			
		||||
			case '4':
 | 
			
		||||
				if (address_family != -1)
 | 
			
		||||
| 
						 | 
				
			
			@ -487,10 +476,10 @@ main(int argc, char **argv)
 | 
			
		|||
	/* Reset argument scanning */
 | 
			
		||||
	optind = 1;
 | 
			
		||||
 | 
			
		||||
	unsigned short size;
 | 
			
		||||
	/* parse the arguments */
 | 
			
		||||
	for(i = 1; i < argc; i++) {
 | 
			
		||||
		while((arg = getopt(argc, argv, opts_str)) != EOF) {
 | 
			
		||||
			unsigned short size;
 | 
			
		||||
			switch(arg) {
 | 
			
		||||
			case 'v':
 | 
			
		||||
				debug++;
 | 
			
		||||
| 
						 | 
				
			
			@ -502,7 +491,7 @@ main(int argc, char **argv)
 | 
			
		|||
					icmp_data_size = size;
 | 
			
		||||
					icmp_pkt_size = size + ICMP_MINLEN;
 | 
			
		||||
				} else
 | 
			
		||||
					usage_va("ICMP data length must be between: %d and %d",
 | 
			
		||||
					usage_va("ICMP data length must be between: %lu and %lu",
 | 
			
		||||
					         sizeof(struct icmp) + sizeof(struct icmp_ping_data),
 | 
			
		||||
					         MAX_PING_DATA - 1);
 | 
			
		||||
				break;
 | 
			
		||||
| 
						 | 
				
			
			@ -530,7 +519,7 @@ main(int argc, char **argv)
 | 
			
		|||
				add_target(optarg);
 | 
			
		||||
				break;
 | 
			
		||||
			case 'l':
 | 
			
		||||
				ttl = (unsigned char)strtoul(optarg, NULL, 0);
 | 
			
		||||
				ttl = (int)strtoul(optarg, NULL, 0);
 | 
			
		||||
				break;
 | 
			
		||||
			case 'm':
 | 
			
		||||
				min_hosts_alive = (int)strtoul(optarg, NULL, 0);
 | 
			
		||||
| 
						 | 
				
			
			@ -542,7 +531,7 @@ main(int argc, char **argv)
 | 
			
		|||
				}
 | 
			
		||||
				break;
 | 
			
		||||
			case 's': /* specify source IP address */
 | 
			
		||||
				set_source_ip(optarg);
 | 
			
		||||
				source_ip = optarg;
 | 
			
		||||
				break;
 | 
			
		||||
			case 'V': /* version */
 | 
			
		||||
				print_revision (progname, NP_VERSION);
 | 
			
		||||
| 
						 | 
				
			
			@ -597,6 +586,8 @@ main(int argc, char **argv)
 | 
			
		|||
		sockets |= HAVE_ICMP;
 | 
			
		||||
	else icmp_sockerrno = errno;
 | 
			
		||||
 | 
			
		||||
	if( source_ip )
 | 
			
		||||
		set_source_ip(source_ip);
 | 
			
		||||
 | 
			
		||||
#ifdef SO_TIMESTAMP
 | 
			
		||||
	if(setsockopt(icmp_sock, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on)))
 | 
			
		||||
| 
						 | 
				
			
			@ -717,7 +708,7 @@ main(int argc, char **argv)
 | 
			
		|||
static void
 | 
			
		||||
run_checks()
 | 
			
		||||
{
 | 
			
		||||
	u_int i, t, result;
 | 
			
		||||
	u_int i, t;
 | 
			
		||||
	u_int final_wait, time_passed;
 | 
			
		||||
 | 
			
		||||
	/* this loop might actually violate the pkt_interval or target_interval
 | 
			
		||||
| 
						 | 
				
			
			@ -735,9 +726,9 @@ run_checks()
 | 
			
		|||
 | 
			
		||||
			/* we're still in the game, so send next packet */
 | 
			
		||||
			(void)send_icmp_ping(icmp_sock, table[t]);
 | 
			
		||||
			result = wait_for_reply(icmp_sock, target_interval);
 | 
			
		||||
			wait_for_reply(icmp_sock, target_interval);
 | 
			
		||||
		}
 | 
			
		||||
		result = wait_for_reply(icmp_sock, pkt_interval * targets);
 | 
			
		||||
		wait_for_reply(icmp_sock, pkt_interval * targets);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if(icmp_pkts_en_route && targets_alive) {
 | 
			
		||||
| 
						 | 
				
			
			@ -757,7 +748,7 @@ run_checks()
 | 
			
		|||
		 * haven't yet */
 | 
			
		||||
		if(debug) printf("Waiting for %u micro-seconds (%0.3f msecs)\n",
 | 
			
		||||
						 final_wait, (float)final_wait / 1000);
 | 
			
		||||
		result = wait_for_reply(icmp_sock, final_wait);
 | 
			
		||||
		wait_for_reply(icmp_sock, final_wait);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -776,7 +767,7 @@ static int
 | 
			
		|||
wait_for_reply(int sock, u_int t)
 | 
			
		||||
{
 | 
			
		||||
	int n, hlen;
 | 
			
		||||
	static unsigned char buf[4096];
 | 
			
		||||
	static unsigned char buf[65536];
 | 
			
		||||
	struct sockaddr_storage resp_addr;
 | 
			
		||||
	union ip_hdr *ip;
 | 
			
		||||
	union icmp_packet packet;
 | 
			
		||||
| 
						 | 
				
			
			@ -913,15 +904,33 @@ wait_for_reply(int sock, u_int t)
 | 
			
		|||
		if(debug) {
 | 
			
		||||
			char address[INET6_ADDRSTRLEN];
 | 
			
		||||
			parse_address(&resp_addr, address, sizeof(address));
 | 
			
		||||
			printf("%0.3f ms rtt from %s, outgoing ttl: %u, incoming ttl: %u, max: %0.3f, min: %0.3f\n",
 | 
			
		||||
				(float)tdiff / 1000, address,
 | 
			
		||||
				ttl, ip->ip.ip_ttl, (float)host->rtmax / 1000, (float)host->rtmin / 1000);
 | 
			
		||||
 | 
			
		||||
			switch(address_family) {
 | 
			
		||||
				case AF_INET: {
 | 
			
		||||
					printf("%0.3f ms rtt from %s, outgoing ttl: %u, incoming ttl: %u, max: %0.3f, min: %0.3f\n",
 | 
			
		||||
						(float)tdiff / 1000,
 | 
			
		||||
						address,
 | 
			
		||||
						ttl,
 | 
			
		||||
						ip->ip.ip_ttl,
 | 
			
		||||
						(float)host->rtmax / 1000,
 | 
			
		||||
						(float)host->rtmin / 1000);
 | 
			
		||||
					break;
 | 
			
		||||
					  };
 | 
			
		||||
				case AF_INET6: {
 | 
			
		||||
					printf("%0.3f ms rtt from %s, outgoing ttl: %u, max: %0.3f, min: %0.3f\n",
 | 
			
		||||
						(float)tdiff / 1000,
 | 
			
		||||
						address,
 | 
			
		||||
						ttl,
 | 
			
		||||
						(float)host->rtmax / 1000,
 | 
			
		||||
						(float)host->rtmin / 1000);
 | 
			
		||||
					  };
 | 
			
		||||
			   }
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		/* if we're in hostcheck mode, exit with limited printouts */
 | 
			
		||||
		if(mode == MODE_HOSTCHECK) {
 | 
			
		||||
			printf("OK - %s responds to ICMP. Packet %u, rta %0.3fms|"
 | 
			
		||||
				"pkt=%u;;0;%u rta=%0.3f;%0.3f;%0.3f;;\n",
 | 
			
		||||
				"pkt=%u;;;0;%u rta=%0.3f;%0.3f;%0.3f;;\n",
 | 
			
		||||
				host->name, icmp_recv, (float)tdiff / 1000,
 | 
			
		||||
				icmp_recv, packets, (float)tdiff / 1000,
 | 
			
		||||
				(float)warn.rta / 1000, (float)crit.rta / 1000);
 | 
			
		||||
| 
						 | 
				
			
			@ -938,6 +947,7 @@ static int
 | 
			
		|||
send_icmp_ping(int sock, struct rta_host *host)
 | 
			
		||||
{
 | 
			
		||||
	long int len;
 | 
			
		||||
	size_t addrlen;
 | 
			
		||||
	struct icmp_ping_data data;
 | 
			
		||||
	struct msghdr hdr;
 | 
			
		||||
	struct iovec iov;
 | 
			
		||||
| 
						 | 
				
			
			@ -969,6 +979,7 @@ send_icmp_ping(int sock, struct rta_host *host)
 | 
			
		|||
 | 
			
		||||
	if (address_family == AF_INET) {
 | 
			
		||||
		struct icmp *icp = (struct icmp*)buf;
 | 
			
		||||
		addrlen = sizeof(struct sockaddr_in);
 | 
			
		||||
 | 
			
		||||
		memcpy(&icp->icmp_data, &data, sizeof(data));
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -977,7 +988,7 @@ send_icmp_ping(int sock, struct rta_host *host)
 | 
			
		|||
		icp->icmp_cksum = 0;
 | 
			
		||||
		icp->icmp_id = htons(pid);
 | 
			
		||||
		icp->icmp_seq = htons(host->id++);
 | 
			
		||||
		icp->icmp_cksum = icmp_checksum((unsigned short*)buf, icmp_pkt_size);
 | 
			
		||||
		icp->icmp_cksum = icmp_checksum((uint16_t*)buf, (size_t)icmp_pkt_size);
 | 
			
		||||
 | 
			
		||||
		if (debug > 2)
 | 
			
		||||
			printf("Sending ICMP echo-request of len %lu, id %u, seq %u, cksum 0x%X to host %s\n",
 | 
			
		||||
| 
						 | 
				
			
			@ -985,7 +996,10 @@ send_icmp_ping(int sock, struct rta_host *host)
 | 
			
		|||
	}
 | 
			
		||||
	else {
 | 
			
		||||
		struct icmp6_hdr *icp6 = (struct icmp6_hdr*)buf;
 | 
			
		||||
		addrlen = sizeof(struct sockaddr_in6);
 | 
			
		||||
 | 
			
		||||
		memcpy(&icp6->icmp6_dataun.icmp6_un_data8[4], &data, sizeof(data));
 | 
			
		||||
 | 
			
		||||
		icp6->icmp6_type = ICMP6_ECHO_REQUEST;
 | 
			
		||||
		icp6->icmp6_code = 0;
 | 
			
		||||
		icp6->icmp6_cksum = 0;
 | 
			
		||||
| 
						 | 
				
			
			@ -1006,7 +1020,7 @@ send_icmp_ping(int sock, struct rta_host *host)
 | 
			
		|||
 | 
			
		||||
	memset(&hdr, 0, sizeof(hdr));
 | 
			
		||||
	hdr.msg_name = (struct sockaddr *)&host->saddr_in;
 | 
			
		||||
	hdr.msg_namelen = sizeof(struct sockaddr_storage);
 | 
			
		||||
	hdr.msg_namelen = addrlen;
 | 
			
		||||
	hdr.msg_iov = &iov;
 | 
			
		||||
	hdr.msg_iovlen = 1;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1293,7 +1307,7 @@ add_target_ip(char *arg, struct sockaddr_storage *in)
 | 
			
		|||
	if(!host) {
 | 
			
		||||
		char straddr[INET6_ADDRSTRLEN];
 | 
			
		||||
		parse_address((struct sockaddr_storage*)&in, straddr, sizeof(straddr));
 | 
			
		||||
		crash("add_target_ip(%s, %s): malloc(%d) failed",
 | 
			
		||||
		crash("add_target_ip(%s, %s): malloc(%lu) failed",
 | 
			
		||||
			arg, straddr, sizeof(struct rta_host));
 | 
			
		||||
	}
 | 
			
		||||
	memset(host, 0, sizeof(struct rta_host));
 | 
			
		||||
| 
						 | 
				
			
			@ -1514,18 +1528,19 @@ get_threshold(char *str, threshold *th)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
unsigned short
 | 
			
		||||
icmp_checksum(unsigned short *p, int n)
 | 
			
		||||
icmp_checksum(uint16_t *p, size_t n)
 | 
			
		||||
{
 | 
			
		||||
	unsigned short cksum;
 | 
			
		||||
	long sum = 0;
 | 
			
		||||
 | 
			
		||||
	while(n > 2) {
 | 
			
		||||
		sum += *p++;
 | 
			
		||||
		n -= sizeof(unsigned short);
 | 
			
		||||
	/* sizeof(uint16_t) == 2 */
 | 
			
		||||
	while(n >= 2) {
 | 
			
		||||
		sum += *(p++);
 | 
			
		||||
		n -= 2;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* mop up the occasional odd byte */
 | 
			
		||||
	if(n == 1) sum += (unsigned char)*p;
 | 
			
		||||
	if(n == 1) sum += *((uint8_t *)p -1);
 | 
			
		||||
 | 
			
		||||
	sum = (sum >> 16) + (sum & 0xffff);	/* add hi 16 to low 16 */
 | 
			
		||||
	sum += (sum >> 16);			/* add carry */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,7 +19,7 @@ if ($allow_sudo eq "yes" or $> == 0) {
 | 
			
		|||
my $sudo = $> == 0 ? '' : 'sudo';
 | 
			
		||||
 | 
			
		||||
my $successOutput = '/OK: Received \d+ DHCPOFFER\(s\), \d+ of 1 requested servers responded, max lease time = \d+ sec\./';
 | 
			
		||||
my $failureOutput = '/CRITICAL: No DHCPOFFERs were received/';
 | 
			
		||||
my $failureOutput = '/CRITICAL: (No DHCPOFFERs were received|Received \d+ DHCPOFFER\(s\), 0 of 1 requested servers responded, max lease time = \d+ sec\.)/';
 | 
			
		||||
my $invalidOutput = '/Invalid hostname/';
 | 
			
		||||
 | 
			
		||||
my $host_responsive    = getTestParameter( "NP_HOST_DHCP_RESPONSIVE",
 | 
			
		||||
| 
						 | 
				
			
			@ -36,7 +36,12 @@ my $hostname_invalid   = getTestParameter( "NP_HOSTNAME_INVALID",
 | 
			
		|||
 | 
			
		||||
# try to determince interface
 | 
			
		||||
my $interface = '';
 | 
			
		||||
if(`ifconfig -a 2>/dev/null` =~ m/^(e\w*\d+)/mx and $1 ne 'eth0') {
 | 
			
		||||
 | 
			
		||||
# find interface used for default route
 | 
			
		||||
if (-x '/usr/sbin/ip' and `/usr/sbin/ip route get 1.1.1.1 2>/dev/null` =~ m/\sdev\s(\S+)/) {
 | 
			
		||||
    $interface = "-i $1";
 | 
			
		||||
}
 | 
			
		||||
elsif (`ifconfig -a 2>/dev/null` =~ m/^(e\w*\d+)/mx and $1 ne 'eth0') {
 | 
			
		||||
    $interface = ' -i '.$1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,7 +12,7 @@ my $allow_sudo = getTestParameter( "NP_ALLOW_SUDO",
 | 
			
		|||
	"no" );
 | 
			
		||||
 | 
			
		||||
if ($allow_sudo eq "yes" or $> == 0) {
 | 
			
		||||
	plan tests => 16;
 | 
			
		||||
	plan tests => 20;
 | 
			
		||||
} else {
 | 
			
		||||
	plan skip_all => "Need sudo to test check_icmp";
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -83,3 +83,14 @@ $res = NPTest->testCmd(
 | 
			
		|||
is( $res->return_code, 2, "One of two host nonresponsive - two required" );
 | 
			
		||||
like( $res->output, $failureOutput, "Output OK" );
 | 
			
		||||
 | 
			
		||||
$res = NPTest->testCmd(
 | 
			
		||||
	"$sudo ./check_icmp -H $host_responsive -s 127.0.15.15 -w 10000ms,100% -c 10000ms,100% -n 1 -m 2"
 | 
			
		||||
	);
 | 
			
		||||
is( $res->return_code, 0, "IPv4 source_ip accepted" );
 | 
			
		||||
like( $res->output, $successOutput, "Output OK" );
 | 
			
		||||
 | 
			
		||||
$res = NPTest->testCmd(
 | 
			
		||||
	"$sudo ./check_icmp -H $host_responsive -b 65507"
 | 
			
		||||
	);
 | 
			
		||||
is( $res->return_code, 0, "Try max paket size" );
 | 
			
		||||
like( $res->output, $successOutput, "Output OK - Didn't overflow" );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue