rsplib-3.0.1/0000775000175000017500000000000012065103176010012 500000000000000rsplib-3.0.1/BUGS0000664000175000017500000000023411777021057010422 000000000000001. Information: Please report bugs to the author: Thomas Dreibholz, dreibh@iem.uni-due.de http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ 2. Known Bugs: rsplib-3.0.1/NEWS0000664000175000017500000000000611777021057010433 00000000000000News: rsplib-3.0.1/docs/0000775000175000017500000000000012065103200010726 500000000000000rsplib-3.0.1/docs/Makefile.am0000664000175000017500000000244011777020724012724 00000000000000# $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de EXTRA_DIST = Handbook.lyx Handbook.pdf rsplib-3.0.1/docs/Makefile.in0000664000175000017500000002652012065103163012730 00000000000000# Makefile.in generated by automake 1.11.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. # 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@ # $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de VPATH = @srcdir@ 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@ subdir = docs DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COLORGCC = @COLORGCC@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDADD = @QT_LDADD@ RANLIB = @RANLIB@ RSPLIB_AGE = @RSPLIB_AGE@ RSPLIB_CURRENT = @RSPLIB_CURRENT@ RSPLIB_RELEASE = @RSPLIB_RELEASE@ RSPLIB_REVISION = @RSPLIB_REVISION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ bz2_LIBS = @bz2_LIBS@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ glib_LIBS = @glib_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sctplib_LIBS = @sctplib_LIBS@ sharedstatedir = @sharedstatedir@ socketapi_LIBS = @socketapi_LIBS@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ thread_LIBS = @thread_LIBS@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = Handbook.lyx Handbook.pdf all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(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) --gnu docs/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu docs/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);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: 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: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile 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: maintainer-clean-am -rm -f Makefile 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 \ 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 uninstall uninstall-am # 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: rsplib-3.0.1/docs/Handbook.lyx0000664000175000017500000010002412065074753013152 00000000000000#LyX 2.0 created this file. For more info see http://www.lyx.org/ \lyxformat 413 \begin_document \begin_header \textclass article \begin_preamble \usepackage{a4wide} \usepackage{url} \urlstyle{rm} \usepackage[pdftex=true, pdftitle={Evaluation of a Simple Load Balancing Improvement for Reliable Server Pooling with Heterogeneous Server Pools}, pdfauthor={Thomas Dreibholz}, pdfsubject={Reliable Server Pooling}, pdfkeywords={Reliable Server Pooling, Redundancy, Load Balancing, Heterogeneous Pools, Performance Evaluation}, pdfpagemode=UseOutlines, plainpages=false, hypertexnames=true, pdfpagelabels=true, hyperindex=true, colorlinks=true]{hyperref} \usepackage{color} \definecolor{darkred}{rgb}{0.5,0,0} \definecolor{darkgreen}{rgb}{0,0.5,0} \definecolor{darkblue}{rgb}{0,0,0.5} \definecolor{black}{rgb}{0,0,0} \hypersetup{colorlinks ,linkcolor=darkblue ,urlcolor=blue ,citecolor=darkblue, ,filecolor=darkgreen} \end_preamble \use_default_options false \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman times \font_sans default \font_typewriter default \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize 11 \spacing single \use_hyperref false \papersize a4paper \use_geometry false \use_amsmath 1 \use_esint 0 \use_mhchem 1 \use_mathdots 1 \cite_engine basic \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \use_refstyle 0 \index Index \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Title The \noun on rsplib \noun default RSerPool Implementation Handbook \end_layout \begin_layout Author Thomas Dreibholz \begin_inset Newline newline \end_inset University of Duisburg-Essen \begin_inset Newline newline \end_inset Institute for Experimental Mathematics \begin_inset Newline newline \end_inset Ellernstraße 29, 45326 Essen, Germany \begin_inset Newline newline \end_inset \begin_inset ERT status collapsed \begin_layout Plain Layout \backslash href{mailto:dreibh@iem.uni-due.de}{dreibh@iem.uni-due.de} \end_layout \end_inset \end_layout \begin_layout Date December 21, 2012 \end_layout \begin_layout Standard \begin_inset CommandInset toc LatexCommand tableofcontents \end_inset \end_layout \begin_layout Section Introduction \end_layout \begin_layout Standard This is the documentation for the \noun on rsplib \noun default RSerPool package. It contains information how to install and make use of \noun on rsplib \noun default . For a detailed introduction to RSerPool and its concepts itself, see \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "Dre2006" \end_inset . For questions about RSerPool and \noun on rsplib \noun default , see our mailing lists at \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "RSerPoolPage" \end_inset . \end_layout \begin_layout Section What is RSerPool? \end_layout \begin_layout Standard \begin_inset Float figure wide false sideways false status collapsed \begin_layout Plain Layout \align center \begin_inset Graphics filename EN-RSerPool-Scenario-with-PPE.pdf width 80col% keepAspectRatio \end_inset \end_layout \begin_layout Plain Layout \begin_inset Caption \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label name "cap:The-RSerPool-Architecture" \end_inset The RSerPool Architecture \end_layout \end_inset \end_layout \end_inset \begin_inset Float figure wide false sideways false status collapsed \begin_layout Plain Layout \align center \begin_inset Graphics filename EN-RSerPool-ProtocolStack.pdf width 80col% keepAspectRatio \end_inset \end_layout \begin_layout Plain Layout \begin_inset Caption \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label name "cap:The-RSerPool-Protocol-Stack" \end_inset The RSerPool Protocol Stack \end_layout \end_inset \end_layout \end_inset Figure \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "cap:The-RSerPool-Architecture" \end_inset provides an illustration of the Reliable Server Pooling \begin_inset space ~ \end_inset (RSerPool) architecture as defined by the Internet Draft \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "rfc-rserpool-overview" \end_inset ; the protocol stack of RSerPool is shown in figure \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "cap:The-RSerPool-Protocol-Stack" \end_inset . An RSerPool scenario consists of three component classes \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "rfc-rserpool-overview" \end_inset : servers of a pool are called \emph on pool elements \emph default \begin_inset space ~ \end_inset (PE). Each pool is identified by a unique \emph on pool handle \emph default \begin_inset space ~ \end_inset (PH) in the handlespace, which is the set of all pools. The handlespace is managed by \emph on pool registrars \emph default (PR). PRs of an \emph on operation scope \emph default (the domain which is covered by the handlespace, e.g. \begin_inset space ~ \end_inset an organization or building) synchronize their view of the handlespace using the Endpoint haNdlespace Redundancy Protocol (ENRP \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "rfc-rserpool-enrp,draft-dreibholz-rserpool-enrp-takeover,rfc-rserpool-common-param" \end_inset ), transported via SCTP \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "RFC4960,Jun2005,JST2000b,SCI2002a" \end_inset . \end_layout \begin_layout Standard Unlike already available solutions in the area of GRID and high-performance computing, the fundamental property of RSerPool is to be \begin_inset Quotes eld \end_inset lightweight \begin_inset Quotes erd \end_inset , i.e. \begin_inset space ~ \end_inset it must also be usable low-performance devices like telecommunications equipment or routers. This property restricts the RSerPool architecture to the management of pools and sessions only, but on the other hand makes a very efficient realizati on possible \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "IJHIT2008,FGCN2007-HsMgt,Contel2005" \end_inset . In particular, an operation scope has a limited range, e.g. \begin_inset space ~ \end_inset a company or organization; RSerPool does not intend to scale to the whole Internet. Nevertheless, it is assumed that PEs can be distributed globally, for their service to survive localized disasters \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "KiVS2007" \end_inset . \end_layout \begin_layout Standard PEs choose an arbitrary PR to register into a pool by using the Aggregate Server Access Protocol (ASAP \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "rfc-rserpool-asap,draft-dreibholz-rserpool-asap-hropt,rfc-rserpool-common-param" \end_inset ), again transported via SCTP. Upon registration at a PR, the chosen PR becomes the Home-PR \begin_inset space ~ \end_inset (PR-H) of the newly registered PE. A PR-H is responsible for monitoring its PEs' availability by using ASAP Endpoint Keep-Alive messages (to be acknowledged by the PE within a given timeout) and propagates the information about its PEs to the other PRs of the operation scope via ENRP Update messages. \end_layout \begin_layout Standard A client is called \emph on pool user \emph default \begin_inset space ~ \end_inset (PU) in RSerPool terminology. To access the service of a pool given by its PH, a PE has to be selected. This selection procedure -- called \emph on handle resolution \emph default -- is performed by an arbitrary PR of the operation scope. A PU can request a handle resolution from a PR using the ASAP protocol. The PR selects PE identities by using a pool-specific server selection rule, denoted as \emph on pool policy \emph default . A set of adaptive and non-adaptive pool policies is defined in \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "rfc-rserpool-policies,draft-dreibholz-rserpool-delay" \end_inset ; for a detailed discussion of these policies, see \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "Dre2006,LCN2005,Tencon2005,Euromicro2007,ICDS2008-LUD,ICDS2008-Failover,ADCOM2007,AINTEC2007,FGCN2007-LoadBalancing" \end_inset . \end_layout \begin_layout Section Installation \end_layout \begin_layout Standard In this section, the installation of the \emph on \noun on rsplib \emph default \noun default package is described. \end_layout \begin_layout Subsection Installation of the SCTP Protocol \end_layout \begin_layout Standard The first step is to decide which SCTP implementation should be used. You have the choice between kernel SCTP and userland SCTP. In most cases, you probably want kernel SCTP. It is most efficient and the implementation should be sufficiently stable. \end_layout \begin_layout Subsubsection Installation of Kernel SCTP for Linux \end_layout \begin_layout Standard A SCTP kernel module is already provided by all major Linux distributions. To load it into the kernel, call: \end_layout \begin_layout Standard \family typewriter sudo modprobe sctp \end_layout \begin_layout Standard \noindent In order to load it permanently, add a line \begin_inset Quotes eld \end_inset sctp \begin_inset Quotes erd \end_inset to /etc/modules. After that, the module will be loaded automatically at boot time. Also make sure that the SCTP include files are installed (in particular: /usr/include/netinet/sctp.h). If they are not installed, install the package libsctp-dev (or similar name). For Debian/Ubuntu Linux, you can use: \end_layout \begin_layout Standard \family typewriter sudo apt-get install libsctp-dev \end_layout \begin_layout Subsubsection Installation of Userland SCTP \noun on sctplib/socketapi \end_layout \begin_layout Standard If you decide to use our userland SCTP implementation \noun on sctplib \noun default \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "sctplib" \end_inset , the following steps have to be performed. The \noun on sctplib \noun default userland SCTP implementation consists of two packages: \noun on sctplib \noun default containing the actual SCTP implementation and \noun on socketapi \noun default containing a BSD sockets API for \noun on sctplib \noun default . You need both. Get the latest versions from \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "RSerPoolPage" \end_inset (http://tdrwww.iem.uni-due.de/dreibholz/rserpool \begin_inset Flex URL status collapsed \begin_layout Plain Layout http://tdrwww.iem.uni-due.de/dreibholz/rserpool \end_layout \end_inset ). First, unpack, configure and install \noun on sctplib \noun default : \end_layout \begin_layout Standard \family typewriter tar xzf sctplib-.tar.gz \end_layout \begin_layout Standard cd \family typewriter sctplib- \end_layout \begin_layout Standard \family typewriter ./configure \end_layout \begin_layout Standard \family typewriter make \end_layout \begin_layout Standard \family typewriter sudo make install \end_layout \begin_layout Standard \noindent Useful options are \begin_inset Quotes eld \end_inset \family typewriter --enable-static --disable-shared --enable-maintainer-mode \family default \begin_inset Quotes erd \end_inset to generate a static library with debug symbols. This is useful for debugging purposes (e.g. \begin_inset space ~ \end_inset memory leak detection using Valgrind \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "Valgrind" \end_inset ). To use SCTP over UDP (defined in \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "draft-tuexen-sctp-udp-encaps" \end_inset ), use \begin_inset Quotes eld \end_inset \family typewriter --enable-sctp-over-udp \family default \begin_inset Quotes erd \end_inset . The next step is to install the socketapi package: \end_layout \begin_layout Standard \family typewriter tar xzf socketapi-.tar.gz \end_layout \begin_layout Standard \family typewriter cd socketapi- \end_layout \begin_layout Standard \family typewriter ./configure \end_layout \begin_layout Standard \family typewriter make \end_layout \begin_layout Standard \family typewriter sudo make install \end_layout \begin_layout Standard \noindent Again, you can use \begin_inset Quotes eld \end_inset \family typewriter --enable-static --disable-shared --enable-maintainer-mode \family default \begin_inset Quotes erd \end_inset to generate a static library with debug symbols. If you want to use kernel SCTP and SCTP over UDP simultaneously, add \begin_inset Quotes eld \end_inset \family typewriter --enable-sctp-over-udp \family default \begin_inset Quotes erd \end_inset . In this case, the socketapi will not abort if it finds a loaded kernel SCTP module. \end_layout \begin_layout Subsection Installation of the \noun on rsplib \noun default Package \end_layout \begin_layout Standard After installing SCTP support, the \noun on rsplib \noun default package can be installed. \end_layout \begin_layout Subsubsection \begin_inset CommandInset label LatexCommand label name "sub:Preparation-Work" \end_inset Preparation Work \end_layout \begin_layout Standard In order to prepare your system for the installation of the \noun on rsplib \noun default package, it is recommended to do the following tasks: \end_layout \begin_layout Itemize Add the environment variable QTDIR, setting the path to the installation of Qt. Qt is a GUI library and required for the Fractal PU example. Without Qt and properly set QTDIR, the client's compilation can be skipped. The ./configure script expects the environment variable QTDIR set to the Qt directory. You may need to set it appropriately, e.g. \begin_inset space ~ \end_inset "export QTDIR=/usr/share/qt4" for Ubuntu Linux. This setting depends on your distribution; use "locate qwidget.h" to find out the directory. \end_layout \begin_layout Itemize The Component Status Protocol \begin_inset space ~ \end_inset (CSP) can be used to send status messages of PRs, PEs and PUs to a central monitoring program (cspmonitor, to be explained later). This is a helpful feature to keep an overview of large, distributed test setups. You can set a default address and report interval for CSP by defining two environment variables: \begin_inset Newline newline \end_inset \family typewriter CSP_SERVER=
: \begin_inset Newline newline \end_inset CSP_INTERVAL= \family default \begin_inset Newline newline \end_inset Useful settings are CSP_SERVER=127.0.0.1:2960 and CSP_INTERVAL=333. \end_layout \begin_layout Itemize For debugging, it is useful to turn on the generation of core dumps. Under the bash shell, this can be done by \begin_inset Quotes eld \end_inset ulimit -c unlimited \begin_inset Quotes erd \end_inset . \end_layout \begin_layout Standard To make all settings above permanent, you can append them to your shell configuration (usually ~/.bashrc). Example (your settings may be different!): \end_layout \begin_layout Standard \family typewriter ... \end_layout \begin_layout Standard \family typewriter export QTDIR=/usr/share/qt4 \end_layout \begin_layout Standard \family typewriter export CSP_SERVER=127.0.0.1:2960 \end_layout \begin_layout Standard \family typewriter export CSP_INTERVAL=333 \end_layout \begin_layout Standard \family typewriter ulimit -c unlimited \end_layout \begin_layout Standard In order to use RSerPool, your host needs at least one multicast-capable network interface with at least a private IP address (i.e. \begin_inset space ~ \end_inset 192.168.x.y; 10.a.b.c; 172.16.n.m - 172.31.i.j). If your host is already connected to a network and has an IP address, everythin g should be fine. For testing with a non-connected host, you can just set up a dummy interface: \end_layout \begin_layout Standard \family typewriter sudo ifconfig dummy0 10.255.255.1 netmask 255.255.255.0 broadcast 10.255.255.255 up multicast \end_layout \begin_layout Standard In order to permanently set up a dummy interface, you can add the following lines to /etc/network/interfaces (Debian/Ubuntu Linux; may be different for other distributions!): \end_layout \begin_layout Standard \family typewriter auto dummy0 \end_layout \begin_layout Standard \family typewriter iface dummy0 \end_layout \begin_layout Standard \family typewriter inet static address 172.31.249.1 netmask 255.255.255.252 \begin_inset space ~ \end_inset \begin_inset space ~ \end_inset \begin_inset space ~ \end_inset \family default (You may need to change this!) \end_layout \begin_layout Standard \family typewriter post-up ip link set dummy0 up multicast on \end_layout \begin_layout Standard \family typewriter pre-down ip link set dummy0 up multicast off \end_layout \begin_layout Standard After appending these lines, they will be loaded automatically each time a new bash shell is started. Your system should now be ready to install the \noun on rsplib \noun default package. \end_layout \begin_layout Subsubsection \begin_inset CommandInset label LatexCommand label name "sub:Configuration-and-Installation" \end_inset Configuration and Installation \end_layout \begin_layout Standard In order to install \noun on rsplib \noun default , get the latest version from \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "RSerPoolPage" \end_inset ( \begin_inset Flex URL status collapsed \begin_layout Plain Layout http://tdrwww.iem.uni-due.de/dreibholz/rserpool \end_layout \end_inset ), unpack, configure and compile it: \end_layout \begin_layout Standard \family typewriter tar xzf rsplib-.tar.gz \end_layout \begin_layout Standard cd \family typewriter rsplib- \end_layout \begin_layout Standard \family typewriter ./configure \end_layout \begin_layout Standard \family typewriter make \end_layout \begin_layout Standard \family typewriter sudo make install \begin_inset space ~ \end_inset \begin_inset space ~ \end_inset \begin_inset space ~ \end_inset \family default (This step is optional and not needed to run the examples!) \end_layout \begin_layout Standard \noindent You may use the following options: \end_layout \begin_layout Description \family typewriter --enable-kernel-sctp \family default Enables usage of kernel SCTP ( \series bold default \series default ). \end_layout \begin_layout Description \family typewriter --disable-kernel-sctp \family default Use userland SCTP (i.e. \begin_inset space ~ \end_inset \noun on sctplib \noun default / \noun on socketapi \noun default ) instead of kernel SCTP. \end_layout \begin_layout Description \family typewriter --enable-qt \family default Enables Qt usage; this is necessary for the Fractal Generator client. Without Qt, the client's compilation will be skipped. The ./configure script expects the environment variable QTDIR set to the Qt directory. You may need to set it appropriately, e.g. \begin_inset space ~ \end_inset "export QTDIR=/usr/share/qt4" for Ubuntu Linux. This setting depends on your distribution; use "locate qwidget.h" to find out the directory. It is recommended to add the setting of QTDIR to your shell configuration (usually ~/.bashrc). ( \series bold default \series default ) \end_layout \begin_layout Description \family typewriter --disable-qt \family default Disables Qt usage; the Fractal Generator client will \series bold not \series default be available. \end_layout \begin_layout Description \family typewriter --enable-shared \family default Create a shared library. \end_layout \begin_layout Description \family typewriter --disable-shared \family default Disable the creation of a shared library (recommended for debugging). \end_layout \begin_layout Description \family typewriter --enable-static \family default Create a static library (recommended for debugging). \end_layout \begin_layout Description \family typewriter --disable-static \family default Disable the creation of a static library. \end_layout \begin_layout Description \family typewriter --enable-maintainer-mode \family default Enable the creation of debug symbols (-g) and turn off compiler optimization. Necessary for debugging, but makes programs much larger and slower. ( \series bold default \series default ) \end_layout \begin_layout Description \family typewriter --disable-maintainer-mode \family default Disables maintainer mode. The code will be optimized and without debugging symbols. Node: Please turn on the maintainer mode if you discover any problems and report bugs to us! \end_layout \begin_layout Description \family typewriter --with-max-loglevel \family default Allows for reduction of the maximum logging verbosity. Setting a lower value here makes the programs smaller, at cost of reduces logging capabilities ( \series bold default: 9 \series default ). \end_layout \begin_layout Description \family typewriter --enable-registrar-statistics \family default Adds registrar option to write statistics file. \end_layout \begin_layout Description \family typewriter --disable-registrar-statistics \family default Do not compile in the statistics option. In this case, the dependency on \noun on libbz2 \noun default is removed. \end_layout \begin_layout Description \family typewriter --enable-hsmgtverify \family default Enable Handlespace Management verification. This is useful for debugging only; it makes the very PR slow! \end_layout \begin_layout Description \family typewriter --disable-hsmgtverify \family default Turns off Handlespace Management verification. ( \series bold default \series default ) \end_layout \begin_layout Description \family typewriter --enable-csp \family default Enable the Component Status Protocol support (strongly recommended!) ( \series bold default \series default ) \end_layout \begin_layout Description \family typewriter --disable-csp \family default Turns the Component Status Protocol support off. \end_layout \begin_layout Standard For learning how to work with \noun on rsplib \noun default , the following options are highly recommended: \end_layout \begin_layout Standard \family typewriter --enable-kernel-sctp --disable-shared --enable-static --enable-qt --enable-csp --enable-maintainer-mode \end_layout \begin_layout Standard \noindent The \noun on rsplib \noun default package also provides filter and coloring rules for \noun on Wireshark \noun default \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "WiresharkUsersGuide" \end_inset . You can find them in the rsplib/wireshark/ subdirectory. Just copy the files \begin_inset Quotes eld \end_inset dfilters \begin_inset Quotes erd \end_inset and \begin_inset Quotes eld \end_inset colorfilters \begin_inset Quotes erd \end_inset to your \noun on Wireshark \noun default settings directory: ~/.wireshark (Ubuntu/Debian) or /root/.wireshark (you need root permission to do so, i.e. \begin_inset space ~ \end_inset use \begin_inset Quotes eld \end_inset sudo \begin_inset Quotes erd \end_inset !). Optionally, you can also copy the file \begin_inset Quotes eld \end_inset preferences \begin_inset Quotes erd \end_inset (if you do not have your own preferences configured yet, otherwise this would overwrite them!). You do \series bold not \series default need to install the provided dissectors, they have already contributed to the \noun on Wireshark \noun default developers and are included already! \end_layout \begin_layout Subsection \begin_inset CommandInset label LatexCommand label name "sub:Testing-the-Installation" \end_inset Testing the Installation \end_layout \begin_layout Standard To perform a test of the installation, start the following programs in the rsplib/ subdirectory of the \noun on rsplib \noun default package: \end_layout \begin_layout Enumerate Start the CSP monitor, it will print out useful information about the components started: \family typewriter \begin_inset Newline newline \end_inset ./cspmonitor \end_layout \begin_layout Enumerate First, start a registrar: \family typewriter \begin_inset Newline newline \end_inset ./rspregistrar \end_layout \begin_layout Enumerate Start a PE for the Fractal Generator service: \family typewriter \begin_inset Newline newline \end_inset ./rspserver -fractal \begin_inset Newline newline \end_inset \family default The PE should find the PR and show its PE \begin_inset space ~ \end_inset ID upon startup. When it shows the ID, it has successfully registered. If something does not work, use the parameter -loglevel=5 to increase the verbosity of the log output. Also refer to subsection \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "sub:Preparation-Work" \end_inset to check your system configuration. \begin_inset Newline newline \end_inset Have a look at the CSP monitor output. It should show the PR and PE. \end_layout \begin_layout Enumerate Start a PU for the Fractal Generator service: \family typewriter \begin_inset Newline newline \end_inset ./fractalpooluser \family default \begin_inset Newline newline \end_inset You should now see the calculation progress in the PU's window. Also have a look at the CSP monitor output; it should show the PU. \end_layout \begin_layout Enumerate Start more PEs, PUs and PRs. You can turn on the \begin_inset Quotes eld \end_inset unreliable mode \begin_inset Quotes erd \end_inset of the PE using the parameter -fgpfailureafter=20. When all PEs are in unreliable mode, you should see the failovers. You can also abort and restart the PRs. Also have a look at the CSP monitor output. \end_layout \begin_layout Enumerate Start \noun on Wireshark \noun default , sniff on the \begin_inset Quotes eld \end_inset lo \begin_inset Quotes erd \end_inset (loopback, only local traffic) or the \begin_inset Quotes erd \end_inset any \begin_inset Quotes erd \end_inset interface. If you have set up the filter and coloring rules (see subsection \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "sub:Testing-the-Installation" \end_inset ), you can select some useful filters and get the RSerPool traffic nicely colorized. \end_layout \begin_layout Section The Programs \end_layout \begin_layout Standard All installable programs in the rsplib/ subdirectory also have a manual page (suffix: \begin_inset space ~ \end_inset .8). You can view the manual page in the rsplib/ directory using \end_layout \begin_layout Standard \family typewriter man ./.8 \end_layout \begin_layout Standard \noindent After installation (make install, see subsection \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "sub:Configuration-and-Installation" \end_inset ), the manual pages will also be available directly. \end_layout \begin_layout Standard The programs included in rsplib/ subdirectory have the following purposes: \end_layout \begin_layout Description rspregistrar The PR implementation. \end_layout \begin_layout Description rspserver A PE which provides multiple services. The actual service started is given by command-line parameter. \end_layout \begin_layout Description rspterminal A simple PU for services like Echo, Discard, Daytime and CharGen. \end_layout \begin_layout Description pingpongclient A simple PU for a request-response example service with cookie-ba sed failover \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "LCN2002,IJAIT2009" \end_inset . \end_layout \begin_layout Description calcappclient The PU for the CalcApp service used for performance measurements (see \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "Dre2006,KiVS2007,Contel2009" \end_inset ). \end_layout \begin_layout Description fractalpooluser The PU for the FractalGenerator service. \end_layout \begin_layout Description scriptingclient The PU for the scripting service (remote script execution with input/output data transfer; see also \begin_inset space ~ \end_inset \begin_inset CommandInset citation LatexCommand cite key "OMNeT++Workshop2008" \end_inset ). \end_layout \begin_layout Description cspmonitor The CSP monitor program to view status information of running components. \end_layout \begin_layout Description hsdump A ENRP-based test utility to dump the handlespace of a PR. \end_layout \begin_layout Section The \noun on rsplib \noun default API \end_layout \begin_layout Subsection Initialization/Clean-Up \end_layout \begin_layout Subsubsection rsp_initinfo() \end_layout \begin_layout Subsubsection rsp_freeinfo() \end_layout \begin_layout Subsubsection rsp_initarg() \end_layout \begin_layout Subsubsection rsp_initialize() \end_layout \begin_layout Subsubsection rsp_cleanup() \end_layout \begin_layout Subsection Basic Mode API \end_layout \begin_layout Subsubsection rsp_pe_registration() \end_layout \begin_layout Subsubsection rsp_pe_deregistration() \end_layout \begin_layout Subsubsection rsp_pe_failure() \end_layout \begin_layout Subsubsection rsp_getaddrinfo() \end_layout \begin_layout Subsubsection rsp_freeaddrinfo() \end_layout \begin_layout Subsection Enhanced Mode API Socket Functions \end_layout \begin_layout Subsubsection rsp_socket() \end_layout \begin_layout Subsubsection rsp_update_session_parameters() \end_layout \begin_layout Subsubsection rsp_bind() \end_layout \begin_layout Subsubsection rsp_listen() \end_layout \begin_layout Subsubsection rsp_getsockname() \end_layout \begin_layout Subsubsection rsp_getpeername() \end_layout \begin_layout Subsubsection rsp_close() \end_layout \begin_layout Subsubsection rsp_poll() \end_layout \begin_layout Subsubsection rsp_select() \end_layout \begin_layout Subsubsection rsp_getsockopt() \end_layout \begin_layout Subsubsection rsp_setsockopt() \end_layout \begin_layout Subsection Enhanced Mode API Pool Element Functions \end_layout \begin_layout Subsubsection rsp_register() \end_layout \begin_layout Subsubsection rsp_deregister() \end_layout \begin_layout Subsubsection rsp_accept() \end_layout \begin_layout Subsubsection rsp_connect() \end_layout \begin_layout Subsection Enhanced Mode API Pool User Functions \end_layout \begin_layout Subsubsection rsp_has_cookie() \end_layout \begin_layout Subsubsection rsp_forcefailover() \end_layout \begin_layout Subsubsection rsp_sendmsg() \end_layout \begin_layout Subsubsection rsp_send_cookie() \end_layout \begin_layout Subsubsection rsp_recvmsg() \end_layout \begin_layout Subsubsection rsp_recvfullmsg() \end_layout \begin_layout Subsubsection rsp_read() \end_layout \begin_layout Subsubsection rsp_recv() \end_layout \begin_layout Subsubsection rsp_write() \end_layout \begin_layout Subsubsection rsp_send() \end_layout \begin_layout Subsection Enhanced Mode API Miscellaneous Functions \end_layout \begin_layout Subsubsection rsp_mapsocket() \end_layout \begin_layout Subsubsection rsp_unmapsocket() \end_layout \begin_layout Subsubsection rsp_print_notification() \end_layout \begin_layout Subsubsection rsp_getpolicybytype() \end_layout \begin_layout Subsubsection rsp_getpolicybyname() \end_layout \begin_layout Subsubsection rsp_csp_setstatus() \end_layout \begin_layout Standard \begin_inset CommandInset bibtex LatexCommand bibtex bibfiles "Referenzarchiv" options "bibtotoc,acm" \end_inset \end_layout \end_body \end_document rsplib-3.0.1/docs/Handbook.pdf0000664000175000017500000073745112065074763013134 00000000000000%PDF-1.4 % 1 0 obj << /S /GoTo /D (section.1) >> endobj 4 0 obj (Introduction) endobj 5 0 obj << /S /GoTo /D (section.2) >> endobj 8 0 obj (What is RSerPool?) endobj 9 0 obj << /S /GoTo /D (section.3) >> endobj 12 0 obj (Installation) endobj 13 0 obj << /S /GoTo /D (subsection.3.1) >> endobj 16 0 obj (Installation of the SCTP Protocol) endobj 17 0 obj << /S /GoTo /D (subsubsection.3.1.1) >> endobj 20 0 obj (Installation of Kernel SCTP for Linux) endobj 21 0 obj << /S /GoTo /D (subsubsection.3.1.2) >> endobj 24 0 obj (Installation of Userland SCTP sctplib/socketapi) endobj 25 0 obj << /S /GoTo /D (subsection.3.2) >> endobj 28 0 obj (Installation of the rsplib Package) endobj 29 0 obj << /S /GoTo /D (subsubsection.3.2.1) >> endobj 32 0 obj (Preparation Work) endobj 33 0 obj << /S /GoTo /D (subsubsection.3.2.2) >> endobj 36 0 obj (Configuration and Installation) endobj 37 0 obj << /S /GoTo /D (subsection.3.3) >> endobj 40 0 obj (Testing the Installation) endobj 41 0 obj << /S /GoTo /D (section.4) >> endobj 44 0 obj (The Programs) endobj 45 0 obj << /S /GoTo /D (section.5) >> endobj 48 0 obj (The rsplib API) endobj 49 0 obj << /S /GoTo /D (subsection.5.1) >> endobj 52 0 obj (Initialization/Clean-Up) endobj 53 0 obj << /S /GoTo /D (subsubsection.5.1.1) >> endobj 56 0 obj (rsp\137initinfo\(\)) endobj 57 0 obj << /S /GoTo /D (subsubsection.5.1.2) >> endobj 60 0 obj (rsp\137freeinfo\(\)) endobj 61 0 obj << /S /GoTo /D (subsubsection.5.1.3) >> endobj 64 0 obj (rsp\137initarg\(\)) endobj 65 0 obj << /S /GoTo /D (subsubsection.5.1.4) >> endobj 68 0 obj (rsp\137initialize\(\)) endobj 69 0 obj << /S /GoTo /D (subsubsection.5.1.5) >> endobj 72 0 obj (rsp\137cleanup\(\)) endobj 73 0 obj << /S /GoTo /D (subsection.5.2) >> endobj 76 0 obj (Basic Mode API) endobj 77 0 obj << /S /GoTo /D (subsubsection.5.2.1) >> endobj 80 0 obj (rsp\137pe\137registration\(\)) endobj 81 0 obj << /S /GoTo /D (subsubsection.5.2.2) >> endobj 84 0 obj (rsp\137pe\137deregistration\(\)) endobj 85 0 obj << /S /GoTo /D (subsubsection.5.2.3) >> endobj 88 0 obj (rsp\137pe\137failure\(\)) endobj 89 0 obj << /S /GoTo /D (subsubsection.5.2.4) >> endobj 92 0 obj (rsp\137getaddrinfo\(\)) endobj 93 0 obj << /S /GoTo /D (subsubsection.5.2.5) >> endobj 96 0 obj (rsp\137freeaddrinfo\(\)) endobj 97 0 obj << /S /GoTo /D (subsection.5.3) >> endobj 100 0 obj (Enhanced Mode API Socket Functions) endobj 101 0 obj << /S /GoTo /D (subsubsection.5.3.1) >> endobj 104 0 obj (rsp\137socket\(\)) endobj 105 0 obj << /S /GoTo /D (subsubsection.5.3.2) >> endobj 108 0 obj (rsp\137update\137session\137parameters\(\)) endobj 109 0 obj << /S /GoTo /D (subsubsection.5.3.3) >> endobj 112 0 obj (rsp\137bind\(\)) endobj 113 0 obj << /S /GoTo /D (subsubsection.5.3.4) >> endobj 116 0 obj (rsp\137listen\(\)) endobj 117 0 obj << /S /GoTo /D (subsubsection.5.3.5) >> endobj 120 0 obj (rsp\137getsockname\(\)) endobj 121 0 obj << /S /GoTo /D (subsubsection.5.3.6) >> endobj 124 0 obj (rsp\137getpeername\(\)) endobj 125 0 obj << /S /GoTo /D (subsubsection.5.3.7) >> endobj 128 0 obj (rsp\137close\(\)) endobj 129 0 obj << /S /GoTo /D (subsubsection.5.3.8) >> endobj 132 0 obj (rsp\137poll\(\)) endobj 133 0 obj << /S /GoTo /D (subsubsection.5.3.9) >> endobj 136 0 obj (rsp\137select\(\)) endobj 137 0 obj << /S /GoTo /D (subsubsection.5.3.10) >> endobj 140 0 obj (rsp\137getsockopt\(\)) endobj 141 0 obj << /S /GoTo /D (subsubsection.5.3.11) >> endobj 144 0 obj (rsp\137setsockopt\(\)) endobj 145 0 obj << /S /GoTo /D (subsection.5.4) >> endobj 148 0 obj (Enhanced Mode API Pool Element Functions) endobj 149 0 obj << /S /GoTo /D (subsubsection.5.4.1) >> endobj 152 0 obj (rsp\137register\(\)) endobj 153 0 obj << /S /GoTo /D (subsubsection.5.4.2) >> endobj 156 0 obj (rsp\137deregister\(\)) endobj 157 0 obj << /S /GoTo /D (subsubsection.5.4.3) >> endobj 160 0 obj (rsp\137accept\(\)) endobj 161 0 obj << /S /GoTo /D (subsubsection.5.4.4) >> endobj 164 0 obj (rsp\137connect\(\)) endobj 165 0 obj << /S /GoTo /D (subsection.5.5) >> endobj 168 0 obj (Enhanced Mode API Pool User Functions) endobj 169 0 obj << /S /GoTo /D (subsubsection.5.5.1) >> endobj 172 0 obj (rsp\137has\137cookie\(\)) endobj 173 0 obj << /S /GoTo /D (subsubsection.5.5.2) >> endobj 176 0 obj (rsp\137forcefailover\(\)) endobj 177 0 obj << /S /GoTo /D (subsubsection.5.5.3) >> endobj 180 0 obj (rsp\137sendmsg\(\)) endobj 181 0 obj << /S /GoTo /D (subsubsection.5.5.4) >> endobj 184 0 obj (rsp\137send\137cookie\(\)) endobj 185 0 obj << /S /GoTo /D (subsubsection.5.5.5) >> endobj 188 0 obj (rsp\137recvmsg\(\)) endobj 189 0 obj << /S /GoTo /D (subsubsection.5.5.6) >> endobj 192 0 obj (rsp\137recvfullmsg\(\)) endobj 193 0 obj << /S /GoTo /D (subsubsection.5.5.7) >> endobj 196 0 obj (rsp\137read\(\)) endobj 197 0 obj << /S /GoTo /D (subsubsection.5.5.8) >> endobj 200 0 obj (rsp\137recv\(\)) endobj 201 0 obj << /S /GoTo /D (subsubsection.5.5.9) >> endobj 204 0 obj (rsp\137write\(\)) endobj 205 0 obj << /S /GoTo /D (subsubsection.5.5.10) >> endobj 208 0 obj (rsp\137send\(\)) endobj 209 0 obj << /S /GoTo /D (subsection.5.6) >> endobj 212 0 obj (Enhanced Mode API Miscellaneous Functions) endobj 213 0 obj << /S /GoTo /D (subsubsection.5.6.1) >> endobj 216 0 obj (rsp\137mapsocket\(\)) endobj 217 0 obj << /S /GoTo /D (subsubsection.5.6.2) >> endobj 220 0 obj (rsp\137unmapsocket\(\)) endobj 221 0 obj << /S /GoTo /D (subsubsection.5.6.3) >> endobj 224 0 obj (rsp\137print\137notification\(\)) endobj 225 0 obj << /S /GoTo /D (subsubsection.5.6.4) >> endobj 228 0 obj (rsp\137getpolicybytype\(\)) endobj 229 0 obj << /S /GoTo /D (subsubsection.5.6.5) >> endobj 232 0 obj (rsp\137getpolicybyname\(\)) endobj 233 0 obj << /S /GoTo /D (subsubsection.5.6.6) >> endobj 236 0 obj (rsp\137csp\137setstatus\(\)) endobj 237 0 obj << /S /GoTo /D (subsubsection.5.6.6) >> endobj 239 0 obj (References) endobj 240 0 obj << /S /GoTo /D [241 0 R /Fit ] >> endobj 272 0 obj << /Length 1310 /Filter /FlateDecode >> stream xZYoF~# I>n\Te. Z\Ʉ)RQ$݃IIiwofg>܂#drtc y#FBL=BId]ٓ;=ì%0Qk  RI/c-kL' 18Z"gY⸘AlLBeXYj=L,Ѕ@rlf\ķwY]m\re84v0qE^75*u0A=wGE!ZQ(*>r#.E` ;N ZgDRc^:q(#WES7XfZUE|e{GbUQ%@$jt@N)@3ދX܊:Jj0Dr1y0-zQfi))Zo!`J=0@J^(@ :KYTMuFYSzx9^Xo;_וX_fdyBۃ"m@$ ݎbRe1 4l`wdt268l*0fmLs~ رd 0oqnzdbCx5nEċdsH:a᝸]"O֌ xӣ @ʨ92zFy5XZ^`G6OFKK>'>-d?4͡l}\K'u.0xƲ&aP$FM6:bҟQ0V31އsr|6]mb|}q|~hRb{NWn$=yŷma뱗߯1:Խd+$Nn%4diӚNdžrpQ@L }ou7Zc v B"Bn|J}L^5DYLe&w]ǧSr9= lMuu^,obt:ˮ%V kQf{" WQgPP&Z M@K^v~w.-6rx'S5&pć"~#fIXrl >}(4hRBh꾽b} ?될Fb_X)~hE.l|uPwa::ad{3DCꇬ+7}(o (Z6Xp@z4ZFa)n Q0oԳ(E^&R op@Ft׎&GҘh8 endstream endobj 241 0 obj << /Type /Page /Contents 272 0 R /Resources 271 0 R /MediaBox [0 0 595.276 841.89] /Parent 278 0 R /Annots [ 242 0 R 243 0 R 244 0 R 245 0 R 246 0 R 247 0 R 248 0 R 249 0 R 250 0 R 251 0 R 252 0 R 253 0 R 254 0 R 255 0 R 256 0 R 257 0 R 258 0 R 259 0 R 260 0 R 261 0 R 262 0 R 263 0 R 264 0 R 265 0 R 266 0 R 267 0 R 268 0 R 269 0 R ] >> endobj 242 0 obj << /Type /Annot /Border[0 0 0]/H/I/C[0 1 1] /Rect [243.867 587.05 359.133 602.991] /Subtype/Link/A<> >> endobj 243 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [80.004 494.999 157.563 504.639] /A << /S /GoTo /D (section.1) >> >> endobj 244 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [80.004 470.541 186.625 480.18] /A << /S /GoTo /D (section.2) >> >> endobj 245 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [80.004 446.082 151.704 455.722] /A << /S /GoTo /D (section.3) >> >> endobj 246 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 432.555 268.911 442.053] /A << /S /GoTo /D (subsection.3.1) >> >> endobj 247 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 419.006 324.438 428.504] /A << /S /GoTo /D (subsubsection.3.1.1) >> >> endobj 248 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 405.457 387.196 414.954] /A << /S /GoTo /D (subsubsection.3.1.2) >> >> endobj 249 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 389.655 274.867 401.405] /A << /S /GoTo /D (subsection.3.2) >> >> endobj 250 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 376.105 235.345 387.856] /A << /S /GoTo /D (subsubsection.3.2.1) >> >> endobj 251 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 362.556 289.267 374.307] /A << /S /GoTo /D (subsubsection.3.2.2) >> >> endobj 252 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 349.007 223.289 360.758] /A << /S /GoTo /D (subsection.3.3) >> >> endobj 253 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [80.004 324.696 165.123 336.419] /A << /S /GoTo /D (section.4) >> >> endobj 254 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [80.004 302.321 175.541 311.961] /A << /S /GoTo /D (section.5) >> >> endobj 255 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 286.541 224.653 298.292] /A << /S /GoTo /D (subsection.5.1) >> >> endobj 256 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 272.992 216.537 284.743] /A << /S /GoTo /D (subsubsection.5.1.1) >> >> endobj 257 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 259.443 218.937 271.193] /A << /S /GoTo /D (subsubsection.5.1.2) >> >> endobj 258 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 245.894 212.697 257.644] /A << /S /GoTo /D (subsubsection.5.1.3) >> >> endobj 259 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 232.345 222.591 244.095] /A << /S /GoTo /D (subsubsection.5.1.4) >> >> endobj 260 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 218.795 218.337 230.546] /A << /S /GoTo /D (subsubsection.5.1.5) >> >> endobj 261 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 207.499 196.17 216.997] /A << /S /GoTo /D (subsection.5.2) >> >> endobj 262 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 191.697 249.69 203.447] /A << /S /GoTo /D (subsubsection.5.2.1) >> >> endobj 263 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 178.148 259.988 189.898] /A << /S /GoTo /D (subsubsection.5.2.2) >> >> endobj 264 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 164.599 228.526 176.349] /A << /S /GoTo /D (subsubsection.5.2.3) >> >> endobj 265 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 151.049 234.701 162.8] /A << /S /GoTo /D (subsubsection.5.2.4) >> >> endobj 266 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 137.5 238.323 149.251] /A << /S /GoTo /D (subsubsection.5.2.5) >> >> endobj 267 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 126.204 293.02 135.701] /A << /S /GoTo /D (subsection.5.3) >> >> endobj 268 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 110.402 212.174 122.152] /A << /S /GoTo /D (subsubsection.5.3.1) >> >> endobj 269 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 96.853 303.776 108.603] /A << /S /GoTo /D (subsubsection.5.3.2) >> >> endobj 273 0 obj << /D [241 0 R /XYZ 80 770.89 null] >> endobj 274 0 obj << /D [241 0 R /XYZ 81 733.028 null] >> endobj 277 0 obj << /D [241 0 R /XYZ 81 509.503 null] >> endobj 271 0 obj << /Font << /F62 275 0 R /F65 276 0 R >> /ProcSet [ /PDF /Text ] >> endobj 328 0 obj << /Length 1473 /Filter /FlateDecode >> stream x[o6+(ʻahȰAaiQ(2m IO=)GR,iڥ- &%Qs M4ys)|K|s Exr`B|$hr5\{ܧ>0AˋǛT#O?\mfr=ytơ/(:dfDxunasZ(".">~ jBe[ oG.Ӎ>#]L=Ҡ4t13DaFghŻLA랄^X7ӛAAtGэFMwFo$(hF@;UX%r>b{^]̅֙͝fr-Ui/*V-G#fs9[E>8%e0H1=mAoiFx\Þ*/<- ۋfP1ę/o{'*MDfY3e~U`љMG!WtB6)s3=Qxu|y'śš'a1EmVS&ՕQcgfp@sUֵyU\ ƨ(dͫU 3 3&-Wf:~ 5u~@Zb'B4=/.uο%t*ᅮq1Mn6^J-Cw  -WzJ RYfCsѵX:{U.;z0?O< HSt;3>`76Ks&`rө4rQ3SDfp NOwklrFOI,쌠 7r'FZ u'>^l!+ŷکZ s* {hic!igҢhJ@Nqe˽D, v)KcjP,V6M*ʼ9( Q?22KL ۯOW mO_GVR&@]I줘K3UV~\BT8A QJƟypCJN| jjQ]A}b` Rgk mxoMA磔L]ju؟e"^)PYh.]T[( 9MZrLF+{\fqQHW3E&F^\:aCtkJ{,e/ νcT(o_=UW3X?<:ob endstream endobj 327 0 obj << /Type /Page /Contents 328 0 R /Resources 326 0 R /MediaBox [0 0 595.276 841.89] /Parent 278 0 R /Annots [ 270 0 R 279 0 R 280 0 R 281 0 R 282 0 R 283 0 R 284 0 R 285 0 R 286 0 R 287 0 R 288 0 R 289 0 R 290 0 R 291 0 R 292 0 R 293 0 R 294 0 R 295 0 R 296 0 R 297 0 R 298 0 R 299 0 R 300 0 R 301 0 R 302 0 R 303 0 R 304 0 R 305 0 R 306 0 R 307 0 R 308 0 R 309 0 R 310 0 R 311 0 R 312 0 R 315 0 R 316 0 R 317 0 R 318 0 R ] >> endobj 270 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 718.711 203.807 730.462] /A << /S /GoTo /D (subsubsection.5.3.3) >> >> endobj 279 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 705.162 208.05 716.912] /A << /S /GoTo /D (subsubsection.5.3.4) >> >> endobj 280 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 691.613 241.366 703.363] /A << /S /GoTo /D (subsubsection.5.3.5) >> >> endobj 281 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 678.064 240.144 689.814] /A << /S /GoTo /D (subsubsection.5.3.6) >> >> endobj 282 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 664.514 206.828 676.265] /A << /S /GoTo /D (subsubsection.5.3.7) >> >> endobj 283 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 650.965 201.385 662.716] /A << /S /GoTo /D (subsubsection.5.3.8) >> >> endobj 284 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 637.416 209.25 649.166] /A << /S /GoTo /D (subsubsection.5.3.9) >> >> endobj 285 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 623.867 231.57 635.617] /A << /S /GoTo /D (subsubsection.5.3.10) >> >> endobj 286 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 610.318 230.359 622.068] /A << /S /GoTo /D (subsubsection.5.3.11) >> >> endobj 287 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 599.021 322.529 608.519] /A << /S /GoTo /D (subsection.5.4) >> >> endobj 288 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 583.219 216.963 594.97] /A << /S /GoTo /D (subsubsection.5.4.1) >> >> endobj 289 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 569.67 227.261 581.42] /A << /S /GoTo /D (subsubsection.5.4.2) >> >> endobj 290 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 556.121 212.272 567.871] /A << /S /GoTo /D (subsubsection.5.4.3) >> >> endobj 291 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 542.572 218.337 554.322] /A << /S /GoTo /D (subsubsection.5.4.4) >> >> endobj 292 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 531.275 306.765 540.773] /A << /S /GoTo /D (subsection.5.5) >> >> endobj 293 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 515.473 233.49 527.224] /A << /S /GoTo /D (subsubsection.5.5.1) >> >> endobj 294 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 501.924 240.308 513.674] /A << /S /GoTo /D (subsubsection.5.5.2) >> >> endobj 295 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 488.375 222.592 500.125] /A << /S /GoTo /D (subsubsection.5.5.3) >> >> endobj 296 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 474.826 238.945 486.576] /A << /S /GoTo /D (subsubsection.5.5.4) >> >> endobj 297 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 461.276 221.37 473.027] /A << /S /GoTo /D (subsubsection.5.5.5) >> >> endobj 298 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 447.727 236.522 459.478] /A << /S /GoTo /D (subsubsection.5.5.6) >> >> endobj 299 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 434.178 203.185 445.928] /A << /S /GoTo /D (subsubsection.5.5.7) >> >> endobj 300 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 420.629 203.185 432.379] /A << /S /GoTo /D (subsubsection.5.5.8) >> >> endobj 301 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 407.08 206.828 418.83] /A << /S /GoTo /D (subsubsection.5.5.9) >> >> endobj 302 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 393.53 204.407 405.281] /A << /S /GoTo /D (subsubsection.5.5.10) >> >> endobj 303 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [96.367 382.234 326.456 391.732] /A << /S /GoTo /D (subsection.5.6) >> >> endobj 304 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 366.432 230.959 378.183] /A << /S /GoTo /D (subsubsection.5.6.1) >> >> endobj 305 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 352.883 241.868 364.633] /A << /S /GoTo /D (subsubsection.5.6.2) >> >> endobj 306 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 339.334 260.173 351.084] /A << /S /GoTo /D (subsubsection.5.6.3) >> >> endobj 307 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 325.784 254.544 337.535] /A << /S /GoTo /D (subsubsection.5.6.4) >> >> endobj 308 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 312.235 259.388 323.986] /A << /S /GoTo /D (subsubsection.5.6.5) >> >> endobj 309 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [121.458 298.686 241.377 310.437] /A << /S /GoTo /D (subsubsection.5.6.6) >> >> endobj 310 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [80.004 276.459 132.679 286.098] /A << /S /GoTo /D (subsubsection.5.6.6) >> >> endobj 311 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [490.292 203.086 497.74 212.474] /A << /S /GoTo /D (cite.Dre2006) >> >> endobj 312 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [356.753 189.536 364.2 198.925] /A << /S /GoTo /D (cite.RSerPoolPage) >> >> endobj 315 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [112.276 127.22 119.723 138.971] /A << /S /GoTo /D (figure.1) >> >> endobj 316 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [179.472 115.924 192.374 125.421] /A << /S /GoTo /D (cite.rfc-rserpool-overview) >> >> endobj 317 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [426.588 113.671 434.035 125.421] /A << /S /GoTo /D (figure.2) >> >> endobj 318 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [267.814 102.374 280.716 111.872] /A << /S /GoTo /D (cite.rfc-rserpool-overview) >> >> endobj 329 0 obj << /D [327 0 R /XYZ 80 770.89 null] >> endobj 2 0 obj << /D [327 0 R /XYZ 81 260.273 null] >> endobj 6 0 obj << /D [327 0 R /XYZ 81 170.989 null] >> endobj 326 0 obj << /Font << /F62 275 0 R /F65 276 0 R /F71 330 0 R >> /ProcSet [ /PDF /Text ] >> endobj 338 0 obj << /Length 239 /Filter /FlateDecode >> stream xڅMO0 >vxv47 i&(m)*RYa(Ro`D7k=TFc(8?<ʾ13\!Ss5U(Zz &Ae!\6m3SR3eʰ]~.۸uMO~B;ě0gɄl{6dq>?#٢8`P5繗mRU%F=/ky endstream endobj 337 0 obj << /Type /Page /Contents 338 0 R /Resources 336 0 R /MediaBox [0 0 595.276 841.89] /Parent 278 0 R >> endobj 313 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./0_home_dreibh_src_sctp-trunk_rsplib2_docs_EN-RSerPool-Scenario-with-PPE.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 340 0 R /BBox [0 0 421 256] /Resources << /XObject << /Im1 341 0 R >>/ProcSet [ /PDF ] >> /Length 38 /Filter /FlateDecode >> stream x+2T0BC]K]S3\.}\C|@.f endstream endobj 340 0 obj << /Producer (pdfTeX-1.40.3) /Creator (TeX) /CreationDate (D:20090320100649+01'00') /ModDate (D:20090320100649+01'00') /Trapped /False /PTEX.Fullbanner (This is pdfTeX using libpoppler, Version 3.141592-1.40.3-2.2 \(Web2C 7.5.6\) kpathsea version 3.5.6) >> endobj 341 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (/tmp/tmp.cKaLA27345) /PTEX.PageNumber 1 /PTEX.InfoDict 342 0 R /BBox [ 0 0 595.275591 841.889764] /Resources << /ExtGState << /a0 << /CA 1 /ca 1 >> >> /Font << /f-0-0 343 0 R /f-1-0 344 0 R >> >> /Length 345 0 R /Filter /FlateDecode >> stream xɎ.Iv&u6D-Т zA%A+Ԣ__}g?F13.`ՙqfg_uYޯ^zi^?oQ/oη:~oq<׵>= G9#~?_qk,u9u}{3{o>^P{[p~;:L`~3FЯxAO/[>oVQFz{\zogc/){9SF}uS?> _k };~U^}VAze/bV }Zcﯰ?/mWE߁w2?le } Go.9ol~x XJY7l]YG6 p3Ͼ.1G v|7I0ZO̅wU{oz}2?dceϗyoݑ7g[|Ŋ 'cx\#ԲO|DYgJJ r 瀬-(_?غˇOg+(uQTV?qоVb2f`п?dz(~g_^>7jmaVt6_}دvޮhۀ-ö|j`|&ju!@ylۆ@_ -Y@:j[ɜiudݸ?>d=^O߄-ɶ^ `[Eo= ߍN]}o ꍨP7m掍=o"þ!$fl߃ 7_?plw1&]/ۿ^٧2zZij(d5ɏ?ެAu3}"ϥo@4Yd>Zk鱽UN+kO/?ZzZb,r?<}|jq-X|lZiaY3:hOh&6s[;z>N +r-'{uֻѦ ވQIt^*5Ͷc2kQGϟ3]KsެtvM y|#{GrY) #G< ЦveJƲu?,L+܄3_|3~"_Q@H=k;p/{eENLg[bAK6zMʉ9U{eeT畩/br:?M r+~E:Km'h]"Ό s@2/Q&9Dk]IX0F'~!,d+=.0 w.(}.L#LƇL8\pp]5;o:OpMg&4RЂi-uS?<בFF~WN宏\g;^w:\;߹V[#.`qaF 痷/iU!h-YNV\6>*rZhCL"y]v9!Jf)_YNQ`O˔<7YD*(!c̦SM2:n'a.g{WPDo%V^+ Ap 7Sd{)62 5ҵT#ɉJȶ z:`?~1oY_z_,aֺ&A")jԼ6dDm̽aMTPx5=*>%ۏ-\%-NH&U|)L~mFT^tYrY-68LWwQ#~;y/L aa^TD9A<7>n?g/n4>10?L'Ze$^:At(82{bJLq]Bw!H !Q<H<`mpo~59u[pR5:C,,ۍ-tpi3WbkH{ZW3oX"9 SGUy0,Z"E̖&.45)b)MHFgJs!cT!-n&&Kb}+"Jxi€4[K){)Weǔs'u׬=aN@*Jb*IcJU Z_0)TACDmTƱ4icUWsC4EZtQUWA/) *S|T7&T| *7Mڹ5z2U;۹eƃ⇛!.T1a Wvhv8ȶ#!1%rAp\X0ن)iܱ}pb_pC`(Ø)^b0^T!3;69ά'@<3c8"ck k@N%ǖ\.Ɏp ?gJ2\|oZz)sIndVQ gp vI 5(N0B>^8mَUMp c}*QE5#= (4PDEnV˱3i_UW5s2S4NZtR"U[A0+7'+WAz$:U:k]^1tws!ӌ`^34FL r %/FXB|6pB4twIVz3V-LϚy$/Nl^GAS-Nnoy~4d{#@0VI}GFr[SQVqX^fR!Q7tJ#Wl- .U9 4)dmIātoH6EiK X )H.i䏁d=y\˷8T 7)wWlykָ~?]ƈ84}$لlllOa޳sP3rUBJ.[A>6ܙ&zL%"jTy)K)'࿔+sVzQr^Y<h0e} @14UHYb<ِS .Dd[5>\F ]W/5yq-sj?JMꢠSWN/+5*S{Ax8M{:c]'n1}uws xӬ_30B\Œ'/*t)30hdjCVϲLqxO /!@Tkn abb/-!؈$DžKZ&s| *uc^@]lhiJDU,KÃH1h Ն~\^uxzyPmZŴ?ߓM-/a4o(MqۦFⴊM] qZ>J  ^F?Yk"`g0Pɨc3k GRDmFۏMXi 国(.ڿ uFl?2bӶ>qB1${Y!s {@' 5_)T:NwTt 69J%0NuS|$x*vكY,LVS8BoH}0kP6ĒR%Ԑ7 Ƕ(:[}.:D+&5KR'm7d Y ;*3<" jdD!Nxs,lRKV4~f:Lܓ6WUDk-36eY?@ \W<aY.5{҂6bz(K(&zg1#ȥW@Tf%ѥi|IVʾn5ﱳbMM L]QNrj0sfsr ҩӕSܔkgWQ}g; 5~pu8pCŀ+.* 1ij#Y{z"-J-XZ$[j$,FMGB -/'VR+oBtBG\R70凄x/w}wᡢ Cq簊a2}TXc`u!er7X%֥T>\XL^2D^5dU:~.;޴ ~J; [iɐ|Gf݄LAk]nfu46{ P?n]sJ]oN>ZF}1?إ{M/g<Dpg 2[|)_l>1T |W!I;iٖ%%L~Rd?eUDF m-,b@BMNtI!VMQV%Ŗ8B'Bsq1UO\y'9"Bʔ(d^4oo< )+s]Naxxh;صg(ٝt/,%s36//-& }7M34vnuzƤTOD7GHMkRlY6CIE#Ea*7YѿHD)([ u*-ܗ HAZR<=>Z[6ZCM* /Y~\xDZWu,s껤c9 ^vxXcyTƐZ#TyK$K;IBO]ZP(d{di 7ݝ:%$5h&]umU:*霒|[3sdmZPpBH&f6|@!Tdhԗ ĵ-Ыh>lk:l|tqr2DjΏL'$:@QTiaǩ Y) qǫ_Y(EFD6O zR8V`L9Pc&U^bR-U8+e+Q6@ꐍJ5Q  @IT!@WH?f!E.Lt'xTp2Ij>Baj#TKPA& & 6ӃA+hӨAڮuM/;v:\; `FsчnhEӬKgb%XgB >nHimn@(~r,i&Nn_R- iW풘**Ԃ],)[RnKCR/fF D(-&BPlކ Ĩe Sܫˑ:/\_观و!~Q\yIvS/D ^Zay]*/NF)6},4-dkcV^y 2 b6^Ns/RX@ݱ5I_ aZ9 xK-cg{;us=|V&]k\*שoH'x c%2#@Z Oѩ@e/NDJ ;4xOD ʺERc]Ri2 !'Q+bRQ,?Sў7K+_Rwu/ ;|X2Ͼ<{?b ۹+>ЩIm=atsikRWw8l,IQ\eWDQgqhcR7X|c -lY ' =$E>E _k@$Ot(# ,! B$(BJ$^A&cP܋&c*@+\8\ZDmu;O0Gh uH6srTZ)5SiuiOk|c:7 -npu™pE@)&%1Ij1S'l[kꑦum߫syKo)֙кv4~/)='K05L  p[< KU{]nY&NѷVxԉLQ7l5DE3),\ߔ{K) Z@|t kx^-a5-EPl7eyr*. 2qE#- d1V[Z>k6Sh3%1*H:ٕs@hBNz_&: "8=Z3z[{&9т~ip,8 LS&*LTMg nN݈l(ƛyƨJta?լ[ܐ0H)wT V!-eHhoUˁ&R&) 6ovNC&) E!Mt,E1H b_SϓX%E{c;,\؛Jۄ=</Tn/azc?˭:SLnR,qiC@BHb%fD}|4^E$ ">hA0G@*PTd' '5]L3O7lH*  ',F*≓E@)mfDXK8pI} ȵ5|xWGe%#Ulj:0HEƵwtJnBe ]7O62sC>*K‰:w'$0PG h5dcLRw: 9Fe)g/Ucd#=z1x:ר*MnK #UTos <4̅ESWu.cl(?e^{ ;bLT1keKcuKW)V`6DRԹMjft$)vUh.=KͅAZjMThv6Vmà 6DOw1_{Ch-}Qa84b\N]Qb <vzuq @6f!p-L埕d:LeiHp,,"}o*Xr#U*M\i3Қ ,OJo6 9^2Z0$_m, ]&Tbqsmy癶a~R SbL*B:襜2+ 0r^}*VVu1(6tԢuH:XhZP"pCr1/X>Ad֢¬Pd@\!x=Oe'Ze߉;K04;NRV<`>`orD.GhXO) ۊ C:m8ĩApdˤ!tÍaSIdԶ*Ryu`1V;}°DFP"0X6Ac6.O:l璖٦/FMބ",C@:Ry>UaF~wb- arseyCUھ4ĉޭ%Yzd^Cw:.fLM%HO]86MUh,~]Oݯç_V1zbu~KJ6 zBb* 8oyi J}+sX l=vZ.2jGug*XkD/{}*筨-pe C miJ&³2ZKtÄtvKjIYygFlvERF9-,$tP5? Z`{B~VGVKp9w S $J+Ȍ1|+%aT_^ KIXuAx+d;/TC oD탴(/0~/›YXƋr/]Ƌt"d&fsj0#ܢSGKhxwBLTDm3ᓕ`Flj%av3ލAZ1DɌ'ϒxײE&@rɇBckZQb Kr (1~ `jZ,`=x<)08'0#m@NoXS8K-Y $'ŸWhA>Ϩ .@ېPYٴֱ{UkXu&]b.#Y_SwKW.Q'U1W%wm\,mRjBK⢮%r L-:]^E'$Eo.-enSJ61 W#8~ʍ@yZjNW E-&R\`V^v 7O5y .l\ ;r%cαUKM18s1Pm$k {^$8GX*3#HPϐ09nu<ܘ&ݎ2;(Tץ}gպ>\"Ct.aMFB֡)ց Ī nCgm|f!h9wN5nL( 9LvX`r| ~x^̶sT7BMeE "STeΓjZCK<",V%~`+BlS黂:_F"rd@RA DN4Rd\\],`^VU̚ Wv2v ҍ PׁKf|݋5~Ji;%}vjueIJI;vpet ۉMg^p`|N!?Js=G(YAY=&߁$A)QA1s#VФXV+d9=!ɿ3#_\L"vl1ާqߺ++ @lIʤXfì@{:HhH@#/Ɨ/Ky*/ 3\5脤Ԟv9G%݌(@=ngA1'Hoae3/>˯ɺ5 'z$0e Mm)W͒4]WLzuO@YcQ轩+i2yR !*րȵr&P *kO0["a.į`NύOi?Oq=+S; '(߳?~Y#-Qd,Ը$Գ%(Еr_P+\˯R݀&h !Ĭ)2bo̥"@|iwE,a+$NukW5q4y),&2pRu4xaa]Ҏ 1~}2+|wM67F 0W^f*uG\9G)0jn 09r:Q2N -ڽ ]eTdN4+z9W:Z(.|kȏ4*`:p@W9Io Nd+@t:Z,^ C*32g-2wdSLkz[BltntkY)Cm]Pd0YKQ^,>oq̫_pO Sm!4t z7Ce6u%$"ϔ5 |(yiޞT|sJjH rrd!0hjѥJ 񩣾OZ`V-,o-JUAqE]]-٫H'0A[/sS+__M`@KnnB*1PlѤ)E%- *"0x_N SAI\RkSEA}EϽ doF/ g+v;vTPf[*ۀ)F=hrZ#xHC U 2 DN2c[X:m+BLGYD b=j-hutBj@9͗8DFm<1$A'Ddw[ ߷\M닢Ϊάɥ}P J@}'tŃһ[|?Yd Ⱥ 6 ZD6h9wP#]'d%uG @$7 Di;%2$jMboNݨ[o貢axk~4#~J!* 7*K$A@` Vae.RI^yؔx$t7\Z8neRGް2BY#f N_[=YyJ07ZZ_hoBM|CR4H)^Y "N㐍zԗLϽ,9X:U N.)L}:\Z! VH+vK*'[( ~gP\iRdRP^M  ,G y!Iyu"Dr="Ҭ@) qZ&w JivaYa@irUe N%mA:Ϊ5ԑ"IEkI %[!06`rԔ:3H4&Dl_@m%n!6~!S/D0qԬ/o_]F~w:-oƪEM ,׷/y[?sW#vՊ[IMkKcf5foIA*]kWDqX_cq bKK~Q :b7w^ lRҚBG]#- |PJ eUq?|Q45S>wd|yF04dY Aajv]?A3|Ý0'I:dw_QZ$@ǴHpSR6`xAMf=K bʼnޭ+ypI >JFՋ~7vELiːk苭x6s BM}wh|͛ಧOE:7G3Ab/!kw ߂IzW{-j]UK.b}/SCk\,{h(cT-/Ws-@}EI~v/+~٤*cNRSgN @)!3""rI)8!LI%@[ 1FRJ\):[$(Ri%M>Kl T%{Ru!gJ*q{4I%-sڮJJ<)2 bs8ky$±DR XR "RR D!Tt[ÃͫkӤ]7fiKtTT[ Vo!1sR 6}dF$,ÝJU䂚QcHN*⩨+2(#;)i<@N .{Tb>pJN*{$0TO*jTȲ\TiZJjI%@H*55#P*?$DPäf9koe)2͒J\+%fvìO*QdJUȝJ7! n#wU"rV)Ki d|Jܟ.5g2̖VFKZ u|(jN+Q:͜VyAO+rGZ bbPQ4!L89W4qK22&U#zj:djf]Kd e 2 K3OL MӉ@Q>d)Ph)0|.,>k l K66Of'MM@a @ɄS?C2NI:d4?N׏I8,9~j`/K8SpzE@"Nmc|vcRM/ղ,0=D /{N2In1%2%dpUw5S·[RKD.BfɌߜYfYr? ;Elf=a(T)~@c ̒/3K[ /_6,avةY#,&ZY|YSf #yl̒LJ=eTY"H[$+-D@Z"Y?@m`RRKԒSKTbzf;9m._:#ԛ\RKYvmڛD-,ĉp؍xfaJZĺtd3uEdO4i^A,QtF]א& rlh3V{j&EF3gܵ]n7'2'J1E[q,ĻԔ௢>Swt6qKʬg4 {JbX@(kp16f&KVdX@S fl")z~E%ߝX"Cab Rb\tX"#gȎwKiY"[י2K:t2%\xb1Rb pH΍Rb)&%ll֒1ғ mXʲhzB'6X&^%čּ=lVIf  kfiַ,"x S8%ʦ7n2Vt7DKEda.=%@6hf0,AĀ=&TJ|J,u Ӵ~LZNSPY_iiX4l6imM& [*ަS /H%Uˊ)|*yuI^SKUSrBя.ɏӧ[RIUڼ[*V ^N% /խ6pҗYnKEޗ@Cι%'zO`,#d$-"Z+:/@X~{ٚ[zEV&ost@R/g$a\:s\!S_Ǐ n7x,WɤW$E2H&$L&ɤ$|bXϧI’IɤB2Aŧ2A}@dRdRd2)PX2)P|2(,(>L L L& K&O&&I Iɤ@Q>d2)Ph2)0|.,>L L K&K&O&%'I’Iɤ@aɤ@dR?CI¼G)Td%W6fX-l?٤WD_l q("a80.C䆻T諗#k?m@]vU?;?t>o,uo;Ρ'c?.O_,y>a=ʎrYixI'~iFSJ )*C>wk)XR_'\'W~weEDVZ_ݱ\M#ȕ{!čyVp"L=K%gNy;:{"( @h%jgrW$N'?sHs,$ UhH ^CH\wvǡoS'4Ch {McwI6\:j#[L+$ ~$$=$`"gNV MAIosٝ'DPQAI?$(I$i3̰xU#(i~LP2%4[6EE@4я Ja|K,)Ie 1QI[@J?**IǬf(X@D?&*io{D%ǏJچHT2mF%3ʆꏈJ^;DJ̱gg4#1QI:)9*f./d$S%*-)’/F%OzD%[:'G%̼d<}AtPtIpKg)ČTZ5_9KT O>#No~d3c^wt |_>0@b`GC`+_6'h58kb?i61w:_Z}Ik-j]aFcG ul}FkVRe.V(O),—Q?"kazj[q(]bbfZgE4 Z?_D7M)Ϫ|b0rsT R/fͥ;G 1yU~K~/kW F bX W\.WKW*%Z4|x26?Mr-( '![NJbWHAg'0iL莇ǎelb"4) A3# $(މld%@H}T  /`P! ]vķA܀ 4® Ur$@._y@3pm9*M*`'fR!K5Gm"D&m(Zբ9o9CK!lrDz[3|5VN߀uDbixYؑ7y=Gbt.ă0"QW"*$誉f6UH%bAQmJO|# >",ReZ]H@fY&Fk9_ Y@hX9 Iy2d'^otB,+lN+q=sKb%{~=1]gSu8zRwCZ)# FBs[(] ]GmFBȐP lIq/2!Dv\,#}=>d [CbC^|S}0;"""OAZ|SEà$s ,@P4OF)gAD2 u@C`\{ԫdl, ;8 $, }TGeH+ rه&;Ǘ&%=l_1)~=lr"9M"qҠap^ ]Ok]O/ݨZ}83l[fSm;"F}8{=da@T*n. ҭUH{@!q",AT%* L_ !*xǪp 9B۶5Uob6b'tS/##Vh ?ӖAQG|]g\_n Ƅ3G6JDdEF2nT@buf(AT% *dUTd\&IjlTqHofJRsdMiad@DmM UfPNjZIt] laxkֺ %43xGuj=0*T3n V2Z#,L0F䖇Rx~aT  @P\≺c=EU&hH*S]+zvf)V-%juSI*w䳮F&rl!vQ-aUipB|ϢB> ו"@ԓ0n($)Y%hP"@fQ-2.H%E!.nY]!*jsf".pjbw#"3|_]޻ O"?iW:N b.rrIՠJ'ᰋ.rfp ۙ*"c=T0sB^}16xkscK~oPj b8n,x+"35xkF]dYl*uIy0w0Y U lw{SxfK^cYi9S8.<"ͺ,< mHQ% 5ܦgH54#ȃ g =_aNVxvs'-TJ<)kKnx(S$AlF Tʜ=eoY8EysHf Lsuʜ-r^!@=3eɀ*r>2e#kOh+%NP_M[bOѸX\ѴZ^wg ꦶRJ*)O(*p UV7rS歹J&U;g6Dc6<{cdbgQȔ2\d2| Q"< ae4 &쭑!܌՛d/4᫛ 2)ᾗ.}]ؙDO.tWM5gD-srs=sV+l#AZ5koȐ9 閂3[-(l$aH<xNavZsROuTFfq}#J #fY>Y &=`py=24b"%;?`y )I okxqiK-7|x귊~TLTT^^P2lloV5t˚1 YZgN+{ riQS&>|Kedٍavo;hA돭f*HpXpyNwRVk2tGbbFBwK'M5|uH[wt 58CKvyfO\/k^sxz#@.+p^IOMdA ^ -0 !)m.L+LƇH8Bpk=v켩;#a8gGN ^PlFU\AqtEkT9s+LW `kF*LDT "4*K^12qq&s `Z&>O m=1X7L{ cii=?UBO-oKc%.R7 ?p1CN vV @d.,3fyt_ @lS)9TgL #Ղ|Sg"9%a HpLiR i̢ @nǃ1/6yY?a:9>xI^ x=o]X$ uCj|kR9lZ]n8 \ sD~SCA-.x0+s<qQ&N|Du27qR% E<KvO֬K[Ek8#&[˒2ܗ3O &yYK_ݙ_0n\w-r[Gh^M@x`ߨ' UPo9퀜 $!)UNR_B} Ҍ*oY`(#b^@aW1/ځ-at_EDrf1$8T81@e"ՇX "dg 8L\džHϛ*b?ﻨ8HtȢ2 Z9TAD'j1 CkP3*w^:LéI)6CY+ά0I0bL<}F }@UDl&j>+KO@Zvz g4Հn 8.5!j6[?I`X?3B m(0FdlPyCf^V22?4r؆w 넚rp6ܹ̟Qtf Ia$7*!7%TբFÎ $[?|䠸Xn@gXCgXCML%gHi>h~uoݰ}6h)ӵ^LOK}ЋOYU-5AvR0﷚atlіkEqJ6>c,-7YY1ik$%9,IĚ^ R+!VxbT>lC6|dL\;I|=l%G7%Hݣ%"C%*fGI;=JI*$-\ed(7&@96ll('GCOT #"&Y=/S@W)F dL 5lNF "Wݬ0zTm$G5K*Dѣj,Y=ɩ:Ld*3[=X٣710Dx2{n5BbX)άp''*Gc>:1>ٯsYUp#ĜNLUSLSe9Nh| ,hF,HhJaBf mZN{L-rj[%~$-h˒THnZ\3W4AA' FkوS0§[ڊX@GY=xR봦}{EO AWgOq[c;4ƞ>բ{w$5ZO{?H)z!!5h)&`NWڳHЧ%O#iKX:ǹ*2`{2Qe#T!+,$AF !`izG36ҿ }/f(۱w6ƮΔ}ٚtfXv 4x0 e#vCWBLl-&Nj'_ƻR%Μa12b}cVIpFjO i"B!GI@G24IJ_ >DrT s[j?v4/#v~kM9Fsfϩ5SkQH9>v>p=SuH9ׅ}0ņ05+cyh2E1sEE2izya hIrD!Q >B)%ȱ [0ju{KGB+..5ɅdD][]B/3rP4EЭZGkоdnvh_hKf;< *D_t";+_#B(fإ3 `W$}nO,_;b(~]E|+w%fƢM$b,j9垡2"E8tyZ ZT"u0ZvjbܠGL"÷rufht@H(]V'4Iд<򈨏DȂM)3z,njI p2 օ#SG&đ*ӫVkd3 ZR Q47sP )Jp$z\EH"i,nF=U)xzL{ƣقۡc͵kd|F]@h`z][˩}1]Al,Hz] 8}~\DCA]Z_R@p'GP0U3tơg" P.aA@h|Tge"bq; 0](d*~]m4Tx Ҙbv1n« H- zd ra xrdZX[^ =*u(k"wVQH.H7ȭBQd>BŒjȥ1.İ r˯.FQ-‹ }/ZYSE ˨HA#I/d"'Of_YHtxB#=7MXd^ ?~OIiUz}VBW>0_TU|KCW&!+Y_FwJ]4 Rrcf +<Ι˽q փ8^K!'CP#;8=TIn2l*ؿ MNj!`ΙtT< mM)6-r  8 dڸ5nGEotޯ8= dhul+;Lqc!Xb҆kH8 yeͷOp@dQ+:ߪcD\쓦 ,l@M=k6jqlC9u^[b@b&XIE:{~4>^陉ÁW{1D}d"݋!^LPHK腰f / K!v6_ ))$}ϰ0)C>P/v }d $-&fR5 %nN ҈f>~:1H=vY`\9aht>}&ÜfIf!ĉ=N;1 :1b҂ԋUNy81=Ỳ8 byjf@:xb8܋I^Ly1AYxsb'ԇ q&0$&U2ćIܮ>LaP˫<n!v%V4o)tvr`0P݁?-~TeLUA"ҥ$ [-4-y/M]{ $ 'VB{{K Şn&$:/]\ҋޚ z\:/bk dԷ伨N"DL0,\IA@ ZZbf%n-BÕ[(Ur#J*)D$]$2D00 C"ϗ"f/s>aO8==z?M0^MP(PW L? u 9Y2I$P^~JϘ_NIb5B4>|@Ҡs :Mi4P.${.t* O]Ix.BGG"κ^ JY`X0yyPjЃ,pDNٻe 6d*J"2(0N4V=85'/ MbF[͔'tˁܽ!2cRLr\مsS+Nj~p^ὖdp]ke.CCf1u4kie15ORm7kcp뚳Goa^Q30vf%㉒`<8)Dd<O.qSH"2BBƓKc<%o"H'"!ZA()Kư* ⋖Fx0Ɔ#kO'N_[CpFxhUs\ң)kG %>$lKRSHx ?G()]t K( T OGE6fD8) a@P$ƓA`0 $d0 v0 `0  '0 H' Q@0_$ʓ`0 LPqsz8 A`)F0NCrT%G0yt gƿ&)R'0=aa LC0މ~( ( Q@v0da@20ab0a`߉&YAx"`߉&-01 `5[0n&LrH ^$sy vӓvck;IZO.ɡ_`ռ4'K4\2,$v:*+( nwANG5rdF={H($uk Z;JuY:dp")gDWTq\ҜU 58RY*l ^6YY,=`D'qAj{_V t<';Gs* ΥO"}aaa>w!wLC 8Q [裀8(O%dާw&?[W-{]/_o匂gKؖ4j2Y) Sr@MNri zRFz(5v'9Mo^pR PSdKv\$;~i^uЌY a58IvD=U`'GItL<$MrcHq_1HVu [l$T,KH_لp!@!>ɜ/=_EeL"'-rTgB=Ƌ#mxƳHu pbj قH cҒhG=ׇЭkZ"' j pꑲcI9Pl$N6gg,dYTd+ 8MsJ]qF!qAT]X#څsvkW j^ :cfT :퓴Lj[XMF¬?Qh1BmAº$S+za}mK} 4e8WػLq5QL޲"gۤ\II;jT{8NP H];|i%czi)Bh BTj5ogq8Ox.O}%U_Vy>tT?jsOW- QOBDȒL"튣6HG' %c?tɢ5>[z}'d][_eג B- ]#!jURgau7`i+r$W!zɭN%%PA\C?Ӎ^ӧN1Ots,yz;y3tϝxo-J℧/遚ϧrMxJ$q g7Kւ(m?Em$Wn'rW}5gA-2G9{-%yhً1dU&g SM]7PG7?|`píb*PW6>]~S4~~aۗO_>U|||"jm"-._}`ؾ.\`bq)[PQ^;\=ߒgo_IE]Ѡ屉]2se`ɟ(́l_kOZ3Bof;U;W$rRVQrVaV3JaTOX94/'ZeZzQugn/5Ő-S{vK\l.pTw #V |rq{as*z^L6^{$7ҷ=<|ןɐQ,vOWaG=c+5ǀ'xv $K߻&ST٩2˹dИ(p w MN7( o]?>xM"y裨J!fkr]O_J{h {ع)axkQ]tգ Dyl}=eeV )m9,j߻hQ++ vS̥ihiE,,sYU }J˃P|Cd \*7=vq==$Fy!~U {Ko$N"TLl(%]'Ǯaq»,}t68G6W|u7YCSR%^RU uǐ\oH*#z0ɥJ~a1ǓzCj#X[b׏l.'I!f k7ko(%~ɡg_c mEnRQ??xCSVT@` +Ogk>\V6"){WUIr! 5~BmUa׏v\.gFohjPq\vfk/G$C6}> endobj 343 0 obj << /Type /Font /Subtype /Type0 /BaseFont /BitstreamVeraSansBold /Encoding /Identity-H /DescendantFonts [ 346 0 R] /ToUnicode 347 0 R >> endobj 344 0 obj << /Type /Font /Subtype /Type0 /BaseFont /BitstreamVeraSans /Encoding /Identity-H /DescendantFonts [ 348 0 R] /ToUnicode 349 0 R >> endobj 345 0 obj 32591 endobj 346 0 obj << /Type /Font /Subtype /CIDFontType2 /BaseFont /BitstreamVeraSansBold /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> /FontDescriptor 350 0 R /W [ 0 [ 600 770 678 715 342 595 478 493 674 732 687 342 348 683 1041 711 720 651 812]] >> endobj 347 0 obj << /Length 351 0 R /Filter /FlateDecode >> stream x]n0 {PAh)a?@tFBzlI҇8du6B&ac8OZ'dڪjRq֙I5d)8ǰIO>ނ`v_?u7pD!MMQ)nOeG(Ȓ&]Qy &F@2yY4t*YV:άTX'֑U9Nμ^9fXK25 9S I2xgWX|l]X۴-~xqoɯU| endstream endobj 348 0 obj << /Type /Font /Subtype /CIDFontType2 /BaseFont /BitstreamVeraSans /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> /FontDescriptor 352 0 R /W [ 0 [ 600 603 411 611 591 591 317 277 731 520 615 787 392 633 698 277 633 634 591 631 974 684 634 549 612 748 694]] >> endobj 349 0 obj << /Length 353 0 R /Filter /FlateDecode >> stream x]Mn0b" tâ?*b,CܾJZc1_Z v /ZYL_ @-DKny%ş.8/vݳ:~(~4܍BITUw^[֎LOŇeݻ?jRWٴm;;UZҺ^Zɓ$O*Oc :x*zP ΠS'A'tAg@-!yB? eRP e#ĠJ ]_@ O&A Yy6m3wkݸ9o4?vLf/eY endstream endobj 350 0 obj << /Type /FontDescriptor /FontName /BitstreamVeraSansBold /Flags 4 /FontBBox [ -199 -235 1416 928] /ItalicAngle 0 /Ascent 928 /Descent -235 /CapHeight 928 /StemV 80 /StemH 80 /FontFile2 354 0 R >> endobj 351 0 obj 306 endobj 352 0 obj << /Type /FontDescriptor /FontName /BitstreamVeraSans /Flags 4 /FontBBox [ -183 -235 1287 928] /ItalicAngle 0 /Ascent 928 /Descent -235 /CapHeight 928 /StemV 80 /StemH 80 /FontFile2 355 0 R >> endobj 353 0 obj 339 endobj 354 0 obj << /Length 356 0 R /Filter /FlateDecode /Length1 6408 >> stream xXyxTEݷI/ @aҲFexa !( "Dq\Ff2c D&JFYG QQqE 627|ו{SU: %@Vn&D/ 7 "^Q|!8{VV|UxKm傹VBey(P ~_F~@eղʚEC~=KMz1%Usօ 5GV߷zܭED*D=M 8QGSPLb$+:ػ]LR!%THRz땋|V;$H"y$KI8O|R\'dQӲ6qƃ=ѫ#Lփ'n{̐dfuuF|%.u ߛ,DoߪHnO4 >_Bb;3=3=S_^)JiV^nN`P stz?s H뮕[i*Muo{; f.(u򵣼>0ԱNХշk{-*">2."񘡋7Z#>dpd$F&.E;~R]\:o?;# I쬼ንb' 9):=77=q5kqBJh25bʟۥ슇7^D3\GtxsCE}~-&r+[^H"6 c.o#i+ecrR-DFPKѬ,ٳѳFݷPvFUInTSms<ٚuqqZ/o-~W9g4E~`iͦbWM7(2qy Mkohlz y!9t.-^Ed{ITfn 3#bcXkdԉWvZ!ԋ]ݬsO>,C_O""Yy#g@6&hssw7*1|D8o2|zrvK_|@n]ѳyG\[0 f5Fle$Xkm!ݘnJ7[A|HHHXh*4Z&+,+6CfnaΪFI6 9XJJ1y%@b?VNjM9yJ;+-⊈-3Z4໎K=?fŅfcWvNI]}@8+7`Bwlvu ։^KDÌئا*jQT6ugEnT8#_@ 6X*bwT}{Vě\%EVlzX7f^qVx-{k]%t c  fGuz槭G&L vS8̏N%휆z:H MOg}U! D3J3F j7 ^ae{/ޏ3O : ɻq' D Ix(G@vL`__>p6:8:TvsPi488PPu'B/_|=g#;ŁV@%`/EiX ؐ3 ۇb n:Ȥκm.u;?6ޯ\ϖ~fP^Z8槪=r?M٭TILza1ad x,;d)> .D,PHf+qS 2B)J*}.ItxG|)Z]ռ\cĝUi3#C#Nb9ok c#=?g; ? ƊW^NCt/>}tze˖WԋqHD7R~,$Qؙ]}wWZ\?D֢ dF\Cw@ k &ʍX Xjqg"r S3۵מmmx؍ eA>$NOD>9Ɏ3J5aV,3F:{iYPЇ ^ b[ -38:6m}ګiRepc )O_҉T, e\YukӥrbŠ_n4߿p#VtgYuGr#X}J2ȲͮE%7Ze2oW.Wڿw=9Vň,~%'xNSb^>n/`]fxnу}0~v7fXퟨWsshm+UI@~_( Jfg%.IZ_ .AYf^fY&՛:]ډ4HƸ4M^ZpjɎ-(eJiT!JRKvZ 4ᤉR:u2"χPL+XYO tW7AdGúH: S>EHplj*8>H6%ԏkncuMц&ظԉͣ5D5xS!gPrۋI zUE;XOJlĎqiph :TTi$pf{NþYװ㪎4#]5vF:O3٤- |RªhX+X*XiA/d*E^ɶ 5KKs- t$?ʏnMqvB2ѷE,%W]&i\)E7PMqHi+:- F$g('d&Pލy,B˜ֹ!V!]!Q YBSAh9pc8֡dC"ݴ8+qV{Ai/9·KUR9Mw6ԘNV|AJy6tQ׺a2ӑ 0U0q!}΁Pp~rF_Y]gi".I5FWR>#%^hأ q [m%C3BC-E^[\||F OlSOg)*. '섲(oU(0~跫NۨIc۾cvoo"<]_s YeJ ԙJGqΫH o#d;;H{v^8caD0l8~lI@F=o`D.b\JNLBt?c܂<3[,=AU_AoTKS @Ø@A8@bȥD*:%k{Am<@#rIh""?MhF4ѨW8ukzԩ;4jVR6SdM&¨ #efjBpmFPJTе>orR/QmG&%B@!G!ÕI2 pI퇋.p^QV@k& 6bS/189g|) g|.3't9|6r08Óaa >x?v w=33ލI|0xΟ]Tq ;K.8rx??"R~x?e"oR8ao-*v)`") ;b>p~ ^oW оfmf}} 8?K@ky5;8c^-~/e,&hV+IV+l-h-1،K61^|JZְ.J!žcgӡ# .}&O[`6oOy`օIk E /rA+/T`&`D䆉.| YaMa>673o C# Xy Xa((F.Qp'&0xnvs\Sa vAveY`Xf3&  Hw!# q0n(A!-Ni~H BR!Ed"l &!)˓hsD/$ExdHKE/ N7apSyElV;9v2GX[3{\Lx07qna,PV@9U^ZZ:Ǐ_+K"- endstream endobj 355 0 obj << /Length 357 0 R /Filter /FlateDecode /Length1 7628 >> stream xX{\UU_k{}^{ 8" _IG%Z:9 $u44253+5#s L43nj7'V8͠ь53tgXk=oJH){x"w%Gbc/|q&&덄ж¢Gf_9]!u|#.)r5 }l1}j!añ lG(c}g~lqlX9OZ?|!6=uq xf_ѼE6>HPTB WȀ ͷl#q͇E۟8IBZ~$ *TYVtMQx= ۚښHusЀz<y^p:i2vKǥ1F(Ԭ{7(7< v__"4Y11Hj-[bXQgiT4Y%jKokjNY/_on:L==D9Єxc$鞡4=-4 F{Gb}>pe:~/|sDv\b p>+ #!r\k-.=ǭ^7eR YŤX.QJKVb-K%(vh0p-wh ҈x,ߴoo}6PpɓWމoD*NLBtA%,X@7dEf0żpF% $QojEŪ)b1TUFJRם6l٦N nN L3n󫊮vZ-oL31y2&uŹmX&k<:;[4ƴHѺiCmxv2Q+ҥl򘶖Ԟffe^M_fZsfX"Ѝ-=>@ y_%Ӛj9|e5`D&I$O') I\bZbnR]JCE{=e b, /A4yi2Mfۏ:1R-t]P7CVqҝUipݰىyq5f3V-n+MQwmE:Ӫb:_Nldaiuuc..ty.ZdUP-̮QXddmVa/o4krauQ3int&D('-~-њhKpp$fH,Y3Tc Ѐ Pjev}c3`{=xe,imF!-fh33FرYIYlJGiKVquuc:;hO^EM=KnZ;Ġwwffdy۶ EC%/݈oUICD@A̳/-\SBҍcuuͦmēK 2&J* YR4 C4knklRӵPa\եCސus`N҉,F:JNE{ϵ-h9sV= .Oh9b]lI8ojm\76[zJ.T_gYQ 7Ju(;~Dw6_F_4_s݄Ub%x$Q:%0;ZFXzil,AA6Ќkݭ=BR)c{}qIZVnw;$Y`;8 :D@$DA4$$g%?\\>yGrKr8{.twR[NK;9#FF~)`ؗ&WVN۔_?Σǧ\3}o`/~[xe=//0*ʭddLgLߙXr۾Xr+|$ZU26z8Ug[TJH.`piBAvJ~ kfX $g(%g,%eyx/%EMA!sigN7:zqkӈܾJN1Ĵ?%+I/wHN>ro=zTøsi=G>[1cTٞ2c3"ǎKmvdW{n6[s^SI(/iα_2sd? {XDI[4'RtFyLVd@"~lqi<"ZN+J"r:*v 8/N<Й#vABzi8UQQ$%`ɵ[,"0YWoܒ/N'm|S=zKH))`J*gw|](vxso 2XD~Џ?D&(:0ySN)?*PhizE~sqeַ^i)}]Wވ"592ox{_-(oHq&T$ Bl 7$Qcsڿ$]Lc$! 1 CQM1_d")͒\*v!?-``䡑ɺn4O@V1T5Q0r@`=rBRHgL! cT.#e*Y%/I5,o_/ʵQڡŸb0ZY~[컱 i5u+UL"+*ƩEhl"3e^;*;$ԶGJ'3 =%}!Lt]p'c"uQ:fENUs ՙF$6\AJ=A!Ew`y+bbG%!{?O+_=R?o]_Ud^\LgznLҶϼ|Щ3fN20n C&AC 1$)fM5dP(ppz_>#FܕJZп|6t td!)"kW*hW4B@'J6D4i1](-ylXRifafV@LK8H5/2?^Ъs[{"vtM"]:&4.aS]iYe&,-;bet\.a 2?:3׊?5i6h/=SEƩO\9rk Y(xܾJ39^XH\v2=囁DMJgQzTiQnW>>;#M;Yƾ=/>}g=hx2+F҈4"0&; _!>f#an/P~E tz.8r)ԘTo/5.5>+) x@\ >7&76כˍˍM*J*V*'HjIfc"o(4[+ 폴K7\e5d]J:rqߊ9Oe5w^ܜ(oi ?0{ QW>}$%uOG%XJǀlaUEf -H:8aU@ZMH' PFJw(3BTRte\UNә>)WyU71"SIKM}V?w˾lɾp!2ЏA ` [fSeqWWXP""֢m,!e`42;a~fre~P54r)G'W-B?K ItSY|h?)H3 BVɫ-ŋ;}ʈbpsV2,сgѡ7d/*plUa;q'⍁b!#i##{Vk8\l! edCOJ7%&Jy.412f"&6d:v&|v4v |7B;:z' C#"=k:Zt)Ap/I 94FLIsSI%@T?c5d> Ոzb<@o~.XZH ΜGvɘ+ 8),o$;xg%HSO5f.]Z W;9J I#d4A%|CN+Y kB@wd?9@zC5Y#+?`ϭK:V$k(k4C2^>V* 3ޤ޽~V銯ڗ::r'(>Gׂ_e//{;W>bxר#c۸xkְG i!=osīͺ.x}DTfcU`?e!DkڝE3$& k25Ax V㔙`=Lw@sid~y&f 'SX_Btlk`8RI4cвi{Qփ쏼ȡAUd2ણ]RK3ЧiT! p]_g|W -~a[תj54ŸZȆ+~__ǿqp~J/|!b> >sOOùwsp(~FQ> 8] 8 I ~< &x[1G%74 8,r?Pa^'CSRv7~~hJopPp@kj*`}{|_{/_n(`\K;4 ` zx[[ ?5:<|j;Tajش7u O?̟~0/e~ X_#`ux0\enXe l(rT 'V + X!T@@˗,_ 8ËT 5X V Zan+ #_edY` .@ :[ALp&MV}4 `<<><0|\8{F{ZncXwp1dѣt>:F(F90 ]oo0l d :Ňa`'|p 0P@|@+natȰBXHCmV&6+XyRЧѡzA~޳z$x?${wI~nN[!Q@x'>\+o+b (hQ X^a(0)4<Bjd`rm M_S(n Cls7PZG Ҟ~z/uy endstream endobj 356 0 obj 4757 endobj 357 0 obj 5702 endobj 314 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (./1_home_dreibh_src_sctp-trunk_rsplib2_docs_EN-RSerPool-ProtocolStack.pdf) /PTEX.PageNumber 1 /PTEX.InfoDict 358 0 R /BBox [0 0 297 114] /Resources << /XObject << /Im1 359 0 R >>/ProcSet [ /PDF ] >> /Length 38 /Filter /FlateDecode >> stream x+2T0BC]sK]3s\.}\C|@.gk endstream endobj 358 0 obj << /Producer (pdfTeX-1.40.3) /Creator (TeX) /CreationDate (D:20090320100644+01'00') /ModDate (D:20090320100644+01'00') /Trapped /False /PTEX.Fullbanner (This is pdfTeX using libpoppler, Version 3.141592-1.40.3-2.2 \(Web2C 7.5.6\) kpathsea version 3.5.6) >> endobj 359 0 obj << /Type /XObject /Subtype /Form /FormType 1 /PTEX.FileName (/tmp/tmp.wkWsc27239) /PTEX.PageNumber 1 /PTEX.InfoDict 360 0 R /BBox [ 0 0 595.275591 841.889764] /Resources << /ExtGState << /a0 << /CA 1 /ca 1 >> >> /Font << /f-0-0 361 0 R /f-1-0 362 0 R >> >> /Length 363 0 R /Filter /FlateDecode >> stream xZKo$7W@+z?a{r &9/%Tig&*(ʟ;Id-S4*]P6%yFAGWYI˟~ݼU)VYƋ] (w0Xl -+?0Z[~SdrI0%,^m嫴! jb)咑,FU\gL(ʖVb@wlhq} ,oB@ :A)NŘ ȹ*ׁ>^ 'g?; &GQ& l6N9e/_W/'}0/jԫ]x ,FUk.?>~+yp>rb!R$zM(_dc2&$Z #bt^[aq&@~dphñ )cAY9/30АM1WR.a0;0Y#SJ5!Bt-CA9)aă!BaYhSӪ2˨+#C vI-A*Y Dh G7tG,wK\Ol&]w>O=m8cb<(e Xo ;7\M,iSŇ95"8e950a% 9ºJsjL%dL6ʜ$>gX wu>YM*QSLEE0_-Lf8&ޟ O;$JK>?<~ Vx e ^ֵX sh˜ 5Tlp< 2x"Bkz? xwhvF.Ab~_zEroӥl.X`TꄀKA 4)La :"\"ĠૄAjN0A),La X Y/ڠpl)WRKϥO=U319 X[!X]-bPW9wόX:Œо@^ͅ{ !b\Y*UAfX텐C`L6}K}{nh;#;"`Bw'Fw^N7sOY,ȍ跸!qv6wנ3y w:)g?"3? ֥]36gXaQy?@@t}`2Sہ]K'.HN6]ȡ " G `0v)MWuO,5wj4(r4uhEXs{mD_|_ݫ7r2bV.d#Cr7iCQy>qUMOAC0?(nrX&0ڇ!h *Y]|"+OwZܳpa 2PqhAN?ڔxo홷Kl|I&XoQ i νzp2a'NEh]V>ţ.;VYNrIszڱHi2Ɩ֒C{qF@hF0.)C d@#ϐ2>|m4tNrڻ1[ .~tvnqL\?#@gqX,ԯ29|q@M0`^Ѡz$m0ݻ>Zyræq8&rްaRZƜFàKNN__T~A endstream endobj 360 0 obj << /Creator (cairo 1.8.0 \(http://cairographics.org\)) /Producer (cairo 1.8.0 \(http://cairographics.org\)) >> endobj 361 0 obj << /Type /Font /Subtype /Type0 /BaseFont /BitstreamVeraSansBold /Encoding /Identity-H /DescendantFonts [ 364 0 R] /ToUnicode 365 0 R >> endobj 362 0 obj << /Type /Font /Subtype /Type0 /BaseFont /BitstreamVeraSans /Encoding /Identity-H /DescendantFonts [ 366 0 R] /ToUnicode 367 0 R >> endobj 363 0 obj 2422 endobj 364 0 obj << /Type /Font /Subtype /CIDFontType2 /BaseFont /BitstreamVeraSansBold /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> /FontDescriptor 368 0 R /W [ 0 [ 600 732 687 342 348 683 678 1041 711 478 812 595 493 770 715 342 674]] >> endobj 365 0 obj << /Length 369 0 R /Filter /FlateDecode >> stream x]j0{bǮ]l/Am &mo-4su]{Uu:4A!xN%h&Azn"3k>Rqaݓ{|쾮?fp@!MMEW9 dԼou۸S_s%ORKA:Oڤt_8q[oԷ /R<ϫ!aXu$["+։,zd!B:Y߾\;diNnB2 Y `u҈piTѯ]t牚 endstream endobj 366 0 obj << /Type /Font /Subtype /CIDFontType2 /BaseFont /BitstreamVeraSans /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> /FontDescriptor 370 0 R /W [ 0 [ 600 684 634 277 277 549 612 392 611 633 634 698 610 603 294 591 636 336 636 411 520 748 615 817 579 631 694 751 634 633 591 634 317 779 862 575 770 633]] >> endobj 367 0 obj << /Length 371 0 R /Filter /FlateDecode >> stream x]n0 > endobj 369 0 obj 294 endobj 370 0 obj << /Type /FontDescriptor /FontName /BitstreamVeraSans /Flags 4 /FontBBox [ -183 -235 1287 928] /ItalicAngle 0 /Ascent 928 /Descent -235 /CapHeight 928 /StemV 80 /StemH 80 /FontFile2 373 0 R >> endobj 371 0 obj 383 endobj 372 0 obj << /Length 374 0 R /Filter /FlateDecode /Length1 5820 >> stream xW{xTEVow~%N HHBBJA0A l"B@Q"88EHSA_.6e"mRso`?ۮzsNK(!@Ydտ*JKr݋ȯA>EsfF;#V/H&IW|'V[B,B$ MbաZk&"MƁSH["-ɰ9at-O7||C~8j&=z;rh{Z]RuhԹ8]̶$SY8)-!2gJNjV:/qVW&G2lCmt(?1\la/;OA4E-kIpһ7ޮ%I'i;$xGJ&[+ǝ*>|#r ZPoRt$XBCnR2R S*RR֧-#0!I{-¶P/65U97SzE<ٲ;-me Q0?XR7g !١XI$pvyҺL%bU\8S#CJUn @6ꕒFj7KV*^CÓ/;0q@qЄܔwŁ*R^8?pfz3|c!=Booʷѻ޷ͻYf =O =mO4_zB?wt*PS=Ĵ4*'Hz@ "?"\ %==Vrsle>ij1􈭑w3+ ,+A(rsQԻ8Z\M`].c*"bl:L78e}V:;F!Ap21,Vz99e1C"E3:AyTo454ipA4a;EI;-đr@ߧ"ڀԇ\M;跨frԐuԆ\39zC%kcBJE) Y@ 0cJ T`6 $B 7hبѼΈ%S؋PPFvZZ\Ԅ ppL86&.]!<&Ԑ tmD YM%٢hj"ҡ`C gBg3亨!Wa-P#Av/6_c#h rv(&lSU]*oFW3B&/e#=@6d Qدa"BФ"iZ=)V6CPW/.Oоcn.;$aSPyԈs?NuƃjݼTm9݌ 5<%Wcq?znd0@*R$&rRJv >&*,# مsͬPƳ0)uI)U eB³N\(nf2w,F@xjq+7&[ ?,9q@JC%|+ï^Y:Ni>҄ԋZMP{xƩJcURJԁyQ)mvmSI%[TNi<Y2II?MHLU(3Rb@B"WgT\Pe46N5]L: TUBUJB=38_RY_R!ϕpcWsC'55*Jp ~Ȅ (|žmoe8Ek_E—B)| xR " sAY>>u'Vڭc#|#>9\\>gba2|p>p p'O4N/f'Dx<~/! Rh]oeQG83DP8|(΄C2;M,CS5Yqpx mqˡ!rC uތDa7]Xv$ß8sxu^ffqfm!q+5 [p/bUWW/^RM1{ ^kYM1Ԅ9lF4؄7yC=9&V 83anPjҐ8g1l*qYʬ 3 p?bfp~Mpry`(ȇzr/ɓlr&a$7Nt(L[fp wyaBMpBA pGa6 w8`lƘYƘa Q r-,!wZ`F  `X) 9 868ك,;[A r*1+IJ3M00c;!&HÀԡl@RA:mЏC_', ~zOпdH$KBw^/$ĻYB-v36 ,ܸb9\QpG)eq9XKb2,- *Q) L0iFDa B([Uf%1*?~Z_;km endstream endobj 373 0 obj << /Length 375 0 R /Filter /FlateDecode /Length1 9972 >> stream xx{|EU~Ϋ'3yd&&$& # /1C@!0%! @" D@Dd1cX1c9舁mL@1rTLvJ8824ۣ8<\sǡ!t7EIDe#]-ٗ-K677_nlq5^ jEr_>Nfw(v.B$'^OdNv~KtvSYxh0~tb7з\ӤW&FU2BQE[vB^V.9fuu-ּ~}W!Ai`ڇdc7ؑ҂ZV-xU]TtV|]:/ES ƒ ZrTWTUg顸dgxW{svF[\%Oh$-}26@}U :. '^.øwM>TCݟq̙ {{Cv^t 9QrLOEHD5V|,.ggcvKKf7+>˗JJJO }A0!L*/   SU+*W%=Zښ~|Eą }hn\OɹYRrI yk9V${+<]_W߰zSʞTtdWW+))c;V-Ǝ㯻wojj`?m$ 81JP5 vs4v4-4Xf:CD9z@sLUc?~nGe%&jܖut(  Qdt0Bwz[{Mvwx4nAIΏ)%rRiezQj+9ʜe2]c^c5RjGaob6Wa -. &|~y7[)"'i:X9JTc 1pPatT2>-!@XC0QyYyed3W R*[z}}ˋ8vvmΎJhC60%Qt t痼xl6j1&ͧX$8(14Ɩfӝgm% 3 i֙zğ~K:\~^afҾ4_OkN#3cKv?忋OߗBC/ߦQ?=ɑOw?N4X^yc=:&} %N<rh:YX% aCIE$O-VdŒ=*^ :;>܌;IDsƇ#GYn6oT̪ !:ތk%;9Or$Q@s_u]Ӧ8f,}q?ϰb4~o-~OE.RptMI!ko1Cz"sVߛ}k^@bH7[++mʊ//;t~H+EFtgp.kR[0W.RR(Ud*W5nb[`oj:JDf)ߤw;wIEa0Vvt S;QwQeJ-t$NV%ul-:?-h!h{6mm^EFdYB#J$@[d@:b>!XEae9:9dΝ/=IB>@: ء_ zH( v(F(d6`r˯Zf Sv=aCA0HO2%3B& k"wjmUIOŭ ؒ_D$calov]6bwOig8#5&Y;c&a,d`8zUha;Wo߾w}f E뗢C\4v30g{vQgQ|t_ѵt)EwH7hdC!:AenW{cX]ni<5Å#, Tzo}U}lzMlC[:$~/\ ]T3wjPUI oUurͭCQ=IӬq נ|rM7ՐTKqZo6X6ی@{4=L{VFfp bBfH/K/O265=}&59$h=x|ܞiUU67޼̕k wKK&N JtzjWssSp^mz"y, ySVE BpYyqel2ݤc%J9Sd-INyRy}L[˂DO# 4֎E[+C?X0PPWszwmM\^an@kv8.#*=?~a|m<|͏录L5zY@.vbR6ƘZ&E*k?d;f;q%ZzTcVow;z_zӁTGvq,OFJEα1'\5i$$ CMEU8*و͢"[HGj3tMb<]g߉ZILWil4'>~Ce*wl1mHۭ' Y$Iz>#~;O {ٽD_䶔J47 N{<3 djhxyY DJ=xy -@(xTh$_ͳe9F0B J<(:L3âɬPooU D}19l>̑|^mqmc1YLL~H)}Vml5_D6эllj0ƶݱ;N'+ԝb/q^s47m4DM\W|U'? m ̷+P>ߊYdj(QL])PAldN%YqÒdgͰ{4G]UP(BUHy:El _ɪV7dnk23@W UJrͅ"[BiV^lM^xQR>RwU1>k&Eq8~q^ϣ:.wgqJzq }^ZTZ-s)u%[xn C~;N#ұ]i8уcEA+FtiZ> q`*`IP K ZTWH\11lR,aaҒ,ҲYUG=nT#ap潃 5miƓC!#VY&ђ쳷HBݱeXίZu,Xkut*X7ncx|ijOtkX JtiBduu^Zٴ쥎ϭ_gv?ZϤ(6SxKX88)Siʧabʩ/UN?8(.倕RPWwK8E3ou'+Rdvk(CިL3S7 tݴىupؑl&RC\pa4v!#Ni07i ^.bKW]TUPC kR=.~[eUY{ewٓQ-84m>_7:!E%x1<TT4-4zR prY-cRTVOHAc!T~tLVjsWеPMO(ѨUI Ӵ]NhDY(,]_2HLJdAw֑^P9 =,tBqʜ0c!+8pFЭojvv̥[l`ΏγEj9ZB 1tLteK $ vzֈPWhLQ{Өb(EV|AV_ת[yPQmTeO6TRv`0oc?4s :;tvH_Jhت48Y$nxI$"$4wII&=I%u 7^ƫ}RUd1IhmqPⓕ PGl%e:>)(MqaVN(!EHZDd\hk%ed\'{deM"o CURGIօ-EdzG.KqVjΖHEt/F*RfaoY3ofJHKdi0]U8Rn<92}AY&dxVJCԐuSh3U缎e?30H8;'\Y`T) &O .% )a/gܼd3C~"~5G[B?X*e]QzOG7*};)}%|)qq9.3"q79+y ą6CrANK zE1hrT x;k!ɏ|ANu4i@]㶰p+,Y!>i>|Hk>/eܨD++Z-Z}ux8oGm_7#& :*VT|.c+< +?:h p6 &ApQUU 4—B| _ϳ3|Z >9 h9;{?~?A,']gj&G@ΆN28x+)*฀5"Խr xt1x\:?2= GҟpX5pHK xQbxbط`A?{<'`]n);ٰC->R[lol}&o-g31OY;$Ru l`ַSOO xrt1x\ZDX+`}pU ^TbCe1T*ʄG<Xi ;^?,`rXV 4 X*A,:,6X}mP ;~'`YOy.Df %` (j;m0] :ES`E۲aII0 O[=0~t/Ѐ[ c;c#`TrH;$`D and}mPp nA^C=p' C`a<x6x ׀~>ȱCupYϲC}h h;2zxF1Jw^HwCZjH < z HDg>= /bDCZ*J@$^[s5 `Er>mCM M = Y. h-^fo#oFi endstream endobj 374 0 obj 4283 endobj 375 0 obj 7435 endobj 339 0 obj << /D [337 0 R /XYZ 80 770.89 null] >> endobj 333 0 obj << /D [337 0 R /XYZ 263.657 452.395 null] >> endobj 335 0 obj << /D [337 0 R /XYZ 258.95 170.853 null] >> endobj 336 0 obj << /Font << /F62 275 0 R >> /XObject << /Im1 313 0 R /Im2 314 0 R >> /ProcSet [ /PDF /Text ] >> endobj 399 0 obj << /Length 2913 /Filter /FlateDecode >> stream xڝr8o+WŊc)>vRt?csG`9է+䇹@KNb;)N^^9 N`Ƅq|w\|;`\u< ,woANhWwg6H~OlG`(bdщ朸zԄ(͵aF(B+G7wMKVFL[g F KfS(1)&Y8Z7W2;BLIF UYsQCJ]3h=JǺD :V8!Aq9'J.b6 4%=5׶;넚H.^m.n_SI|</cx4s). 8h~鹛Y!zpKo(rcϟ?qIpM(cnnB / S@I9; RJ{tn 1tvܢL (ERpˆ-q@ r.Ii@ғ ͭGj+l' } $G cnKp%1fDR@=+!BC>odʭ0C:EC8 g$x`-${Ԓߜ$&e#J*Vۂ2ʲ+8D0ЭVOL*~ 2L:ѸT*iݛhTΰ|v?'6:7Rh4Ο0O~w"VRI`bl <)/m+}?.l4U8\cIJ؁jLJ #<ub\1Eқp,ml_5lԹX6!K0J|)7-UH+$2%| aqtĹ]q ΅̺\w{<r?:1$H6@V)8t@8P5}ǵss>_ !SU_ ZEem\xX0}z5kj(d#m/eZwn%·{IE0 %$|SdNeF07@`kּ:hka/oF՗]?qN˴_qa S0θe쌛Ys~s3Tgn(\d]߽?a> endobj 319 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [399.187 680.316 412.089 689.814] /A << /S /GoTo /D (cite.rfc-rserpool-enrp) >> >> endobj 320 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [415.627 680.316 428.528 689.814] /A << /S /GoTo /D (cite.draft-dreibholz-rserpool-enrp-takeover) >> >> endobj 321 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [432.066 680.316 444.968 689.814] /A << /S /GoTo /D (cite.rfc-rserpool-common-param) >> >> endobj 322 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [112.436 666.876 125.338 676.265] /A << /S /GoTo /D (cite.RFC4960) >> >> endobj 323 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [128.8 666.636 141.701 676.265] /A << /S /GoTo /D (cite.Jun2005) >> >> endobj 324 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [145.163 666.876 158.065 676.265] /A << /S /GoTo /D (cite.JST2000b) >> >> endobj 325 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [161.527 666.767 174.428 676.265] /A << /S /GoTo /D (cite.SCI2002a) >> >> endobj 376 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [170.724 599.13 183.625 608.519] /A << /S /GoTo /D (cite.IJHIT2008) >> >> endobj 377 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [187 599.021 194.448 608.519] /A << /S /GoTo /D (cite.FGCN2007-HsMgt) >> >> endobj 378 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [197.823 599.021 205.27 608.519] /A << /S /GoTo /D (cite.Contel2005) >> >> endobj 379 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [423.734 571.792 431.181 581.42] /A << /S /GoTo /D (cite.KiVS2007) >> >> endobj 380 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [118.386 544.824 131.288 554.322] /A << /S /GoTo /D (cite.rfc-rserpool-asap) >> >> endobj 381 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [135.256 544.824 142.703 554.322] /A << /S /GoTo /D (cite.draft-dreibholz-rserpool-asap-hropt) >> >> endobj 382 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [146.672 544.824 159.573 554.322] /A << /S /GoTo /D (cite.rfc-rserpool-common-param) >> >> endobj 383 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [425.17 422.991 438.072 432.379] /A << /S /GoTo /D (cite.rfc-rserpool-policies) >> >> endobj 384 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [441.892 422.882 454.794 432.379] /A << /S /GoTo /D (cite.draft-dreibholz-rserpool-delay) >> >> endobj 385 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [224.831 409.441 232.278 418.83] /A << /S /GoTo /D (cite.Dre2006) >> >> endobj 386 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [235.74 409.332 243.187 418.83] /A << /S /GoTo /D (cite.LCN2005) >> >> endobj 387 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [246.649 409.332 254.096 418.536] /A << /S /GoTo /D (cite.Tencon2005) >> >> endobj 388 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [257.558 409.332 270.459 418.83] /A << /S /GoTo /D (cite.Euromicro2007) >> >> endobj 389 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [273.921 409.332 286.823 418.83] /A << /S /GoTo /D (cite.ICDS2008-LUD) >> >> endobj 390 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [290.285 409.441 303.187 418.83] /A << /S /GoTo /D (cite.ICDS2008-Failover) >> >> endobj 391 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [306.649 409.332 319.55 418.83] /A << /S /GoTo /D (cite.ADCOM2007) >> >> endobj 392 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [323.012 409.332 335.914 418.83] /A << /S /GoTo /D (cite.AINTEC2007) >> >> endobj 393 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [339.376 409.332 352.277 418.83] /A << /S /GoTo /D (cite.FGCN2007-LoadBalancing) >> >> endobj 400 0 obj << /D [398 0 R /XYZ 80 770.89 null] >> endobj 10 0 obj << /D [398 0 R /XYZ 81 390.894 null] >> endobj 14 0 obj << /D [398 0 R /XYZ 81 332.167 null] >> endobj 18 0 obj << /D [398 0 R /XYZ 81 254.253 null] >> endobj 397 0 obj << /Font << /F62 275 0 R /F71 330 0 R /F65 276 0 R /F73 401 0 R >> /ProcSet [ /PDF /Text ] >> endobj 429 0 obj << /Length 2578 /Filter /FlateDecode >> stream xYYoH~ϯl&c`1,h%H݌I4= &00 vW_UU_W~,>rOa8XlvX,"׵0Ylog ]8EtZΫrrǪvdSeƽWͿh؎íEڡɴr ֆ~DyG }o3`aIDo}cNvc뜦;vUQTK7nr$eyHc}^:]&Gb%|cpȵj(3iUvƤܩIl5ͳUʕVL`p-}pFt{z:{ 2_+ֲ`e%]|YViD#6#8Ȩ 6~ j=A 9|O 12/^s_UԼ zS,jg?8ab?mT:oɄm /B;q,!+v1' _%;K}ȯW>Mwزa:w3p.;9ܝ!5G[g]zE`)0qLo]Y[ jMf27Ȧ صV"W"6wR]כA Z2. NGAtE~Bn+=s/9i_٬U&gm?C=\; ڒ ;ؔD\`6wܹd_vx] ]b!WL/%N!NRcπ TҬFԐQ+fı tL@˭O #YIߊQ{fP…śeL1cL72RL pD$)$/x#'=qzoI|Bdl]Y=gl;"[ ;`d)Q _40312[}zw:gzf1p)ma J_`f q]lӺ=X h)۴XC] "0]6a'cF+zl2aG0SL/mSʂ&%C(K5'.BpA\8wl jUq^m[i!I=|_+(T@i)I<%ƛaC6'VYinUy|Ǥ nfzBؾ7yRƉJ3i]jOa'AMl,]}:,XOj(jPxgҔU 'V|ǎ~5 lwMkں?J3k<<7!vj4z-Gb>SY 00[u%\կ(PwT%TMFôoඒ;wT&wOma#n;MKCISvec ا+Fn#$7׋aIņL(U7\pf{!0GD5 f'9a^N@\9o <YKy}qGԚن74M*ag/ }Շ])OmNo)M II,0yyX_2xVA7U-œd7ӔHNneXjc^AnhU7y]s1L v1km Vkh5nB&@ȹDtGJúBB՘`+ 37L qH55XӲ=[FXzq)UEXgxN kJr]^_v9PO.`,TK|gX2 J79oOH?.-gtg{cS4L~˹&9w LG2 0m *ْF lJW۪u֘Tv6[r2"5u!U 숾 0*s.1#;)Q#e -?7j.dz5pЉgd'*Dk`S&$3{33?58O؁3w7ϟaZpxl yp6x쒅5*q bQzJs2V"BUd XAn:m2^ /=> endobj 394 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [379.512 700.051 392.414 709.549] /A << /S /GoTo /D (cite.sctplib) >> >> endobj 395 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [291.682 659.512 299.129 668.901] /A << /S /GoTo /D (cite.RSerPoolPage) >> >> endobj 396 0 obj << /Type /Annot /Border[0 0 0]/H/I/C[0 1 1] /Rect [80.004 643.602 294.794 655.352] /Subtype/Link/A<> >> endobj 425 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [180.759 537.33 193.66 546.958] /A << /S /GoTo /D (cite.Valgrind) >> >> endobj 426 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [359.938 537.461 372.84 546.958] /A << /S /GoTo /D (cite.draft-tuexen-sctp-udp-encaps) >> >> endobj 430 0 obj << /D [428 0 R /XYZ 80 770.89 null] >> endobj 22 0 obj << /D [428 0 R /XYZ 81 733.028 null] >> endobj 26 0 obj << /D [428 0 R /XYZ 81 387.514 null] >> endobj 30 0 obj << /D [428 0 R /XYZ 81 334.95 null] >> endobj 427 0 obj << /Font << /F65 276 0 R /F62 275 0 R /F73 401 0 R /F76 431 0 R >> /ProcSet [ /PDF /Text ] >> endobj 439 0 obj << /Length 2346 /Filter /FlateDecode >> stream xڭko{~/pS]rN6lEq9W|o<(ӉÙy3Μg]Τ#b'fG Y *f}rd4}]21\VmwXZ][]n_.-7[}6}θ2cߔ Ufv*UtzPmxLPd}Qbne Nڝsnc9l7O8ZU\s]Йc<%!Uem7n@jt,8VΥc)%y@B~CYH*UY|wiW=_]2cQDKo4ԈOnAۈN)e{!PM t]%E!?Kl8+3M jh%_P0Zodp!]]5pW_W?_^Z-lFZv4j_7FWՁ?ҍC9 ͇WMl yЦp<`gh~}T \U3*ZU_}]pEw:&uѨTATv OA(XkCh/tW&նtZ'#egL.BL`@v1ٵO6ΓF4zC;DdhHvtM?2)@Eh>_NA1GCZ\ݘ'"y`|.)cx4XQ5{pmF[A9oh xT7Ϊ}iv]W\,0VK *GUׅW~ӪR|^ MuviUzgt\C M[zmeШ^ ۯO-i6)9 p\6: &E=uD3ɏԝ9dSI V5lp=3}KWD~pV;m:C-0UgwSV&c!4}y/PRNB{E*nۗg(sӀџm)'Tݦ]2> Zv g#?8$طTW{E+.qń OxN8 -J_=i9~9%,ABoK@A~yMa$`>㑌{J&M_]K*.0N{Re"$0J {~9\COn?a/8x6Nriiy_[JqA( *zjX1ecU 5 P%nn>0h{*h `/͓)n@| \ ')(0"/7 a^%qSՍ#*T`ƻ%Lix;=Ƿ4|:xɝ#>̜lhxIj7_̋A߈G4I?ϫߦ&y3(9X7qdnd]"<EUP<]vBrߎ> endobj 435 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [327.446 336.509 334.893 345.898] /A << /S /GoTo /D (cite.RSerPoolPage) >> >> endobj 436 0 obj << /Type /Annot /Border[0 0 0]/H/I/C[0 1 1] /Rect [343.955 334.147 522.996 345.898] /Subtype/Link/A<> >> endobj 441 0 obj << /Type /Annot /Border[0 0 0]/H/I/C[0 1 1] /Rect [80.004 320.598 117.745 332.349] /Subtype/Link/A<> >> endobj 440 0 obj << /D [438 0 R /XYZ 80 770.89 null] >> endobj 34 0 obj << /D [438 0 R /XYZ 81 369.606 null] >> endobj 437 0 obj << /Font << /F76 431 0 R /F62 275 0 R /F73 401 0 R /F65 276 0 R >> /ProcSet [ /PDF /Text ] >> endobj 446 0 obj << /Length 2346 /Filter /FlateDecode >> stream xڵYY۸~ߨ*C׻fT*q"1k(B!=h"iJZ5UC軿v޾go^ܼ*O* V1cbqݢlM%_nt_~߼xs̽`Jo6k [G߾ͶOvo,ﲊ:oe-S u󪔵\VRŌq/IVY5!/$k6l| '++כ8˃Kh傔D dPJY#J}%Ff@;}nWɚ:̱DZ4W`&Ht8SWzJ~#s˺+ AMmYoaipWMUNk+/Bꬌ&]gKնo ZgHyYwY U!/r IhXHĘ, pnZCUZ 4Mt}s:ߜJ=lEWnp/UǮܗxk eflhFL`gOkoQ&ۛ޾wF1Yg+͹ jR3LTY_< ZZ91ŀə.2h !?{픟cNӐm9dZ =1#ꠕGYAn*=M>%0 [h̹dJZD-eڪ1fF5gNH#GSu e?!w yȃj%nu&ꗗbş- \v(z2z2 0"'d>'.:?~IЀK:p=r"qmT[v&"M{uân CF96 /T ;E?Bԡ}Va }̨"Wm7 Ϛk{^MY]i:gV6+R(33#& ~hq=%1_K'!xi4R͇;|n>xi挿`{)ڤ4ԡ4JuN-eAp-i:: i/ۖ*?N)[8֠2ھPT4e61BhτFMdi]F>B5XCfD׺ExBa^t> endobj 442 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [437.188 283.912 450.089 293.301] /A << /S /GoTo /D (cite.WiresharkUsersGuide) >> >> endobj 447 0 obj << /D [445 0 R /XYZ 80 770.89 null] >> endobj 38 0 obj << /D [445 0 R /XYZ 81 185.297 null] >> endobj 448 0 obj << /D [445 0 R /XYZ 81 132.404 null] >> endobj 444 0 obj << /Font << /F73 401 0 R /F62 275 0 R /F65 276 0 R >> /ProcSet [ /PDF /Text ] >> endobj 461 0 obj << /Length 2104 /Filter /FlateDecode >> stream xڽY[o~_1oY˦)nɦ@ax&3CFTIi9m ֛( <1QQ:LНb-znWh_)*n79Ghċ~| ;8u+VuOunꋨI8H쐺&"S{T-1rev8RFS~oeC5_o4~;1PnWv.]ŵu}m4\?>hQ#p+!yhqTd[u^T~O7ơu?tP?}U} E/HiYHy^.٦HoN'ხ\21x E!'x7{CjKiH_&Α endstream endobj 460 0 obj << /Type /Page /Contents 461 0 R /Resources 459 0 R /MediaBox [0 0 595.276 841.89] /Parent 449 0 R /Annots [ 443 0 R 451 0 R 452 0 R 453 0 R 454 0 R 455 0 R 456 0 R 457 0 R 458 0 R ] >> endobj 443 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [335.623 628.632 359.434 640.383] /A << /S /GoTo /D (subsubsection.3.2.1) >> >> endobj 451 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [351.801 466.789 367.43 478.54] /A << /S /GoTo /D (subsection.3.3) >> >> endobj 452 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[1 0 0] /Rect [283.231 352.728 307.042 364.479] /A << /S /GoTo /D (subsubsection.3.2.2) >> >> endobj 453 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [512.822 238.934 520.269 248.323] /A << /S /GoTo /D (cite.LCN2002) >> >> endobj 454 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [107.277 225.276 120.178 234.774] /A << /S /GoTo /D (cite.IJAIT2009) >> >> endobj 455 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [474.744 203.052 482.191 212.441] /A << /S /GoTo /D (cite.Dre2006) >> >> endobj 456 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [485.653 202.812 493.101 212.441] /A << /S /GoTo /D (cite.KiVS2007) >> >> endobj 457 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [496.563 202.943 509.464 212.441] /A << /S /GoTo /D (cite.Contel2009) >> >> endobj 458 0 obj << /Type /Annot /Subtype /Link /Border[0 0 0]/H/I/C[0 1 0] /Rect [165.737 144.728 178.639 154.226] /A << /S /GoTo /D (cite.OMNeT++Workshop2008) >> >> endobj 462 0 obj << /D [460 0 R /XYZ 80 770.89 null] >> endobj 463 0 obj << /D [460 0 R /XYZ 81 733.028 null] >> endobj 464 0 obj << /D [460 0 R /XYZ 81 701.704 null] >> endobj 465 0 obj << /D [460 0 R /XYZ 81 611.688 null] >> endobj 466 0 obj << /D [460 0 R /XYZ 81 548.707 null] >> endobj 467 0 obj << /D [460 0 R /XYZ 81 499.276 null] >> endobj 42 0 obj << /D [460 0 R /XYZ 81 437.145 null] >> endobj 459 0 obj << /Font << /F62 275 0 R /F73 401 0 R /F65 276 0 R >> /ProcSet [ /PDF /Text ] >> endobj 474 0 obj << /Length 67 /Filter /FlateDecode >> stream x3PHW0Pp2@B̌ , , B,-͍,, -BR5,5cC\C/ endstream endobj 473 0 obj << /Type /Page /Contents 474 0 R /Resources 472 0 R /MediaBox [0 0 595.276 841.89] /Parent 449 0 R >> endobj 475 0 obj << /D [473 0 R /XYZ 80 770.89 null] >> endobj 46 0 obj << /D [473 0 R /XYZ 81 733.028 null] >> endobj 472 0 obj << /Font << /F62 275 0 R >> /ProcSet [ /PDF /Text ] >> endobj 478 0 obj << /Length 936 /Filter /FlateDecode >> stream xڝW]8}_#HO>;m;V/;"1Ȭ~;y1{y;yߠv}S=B"⭷^Eν {|_9L!c=!S,"~')K”#՝$弟Hb- =&1;Ut(_+*C)Z|OL(LQ5dXIm~XL8zmRҳ߹`$^\"VKm@ρ XN@bZ*KK2sjers[ 扉u* ȯr[Q7Y>ټffYމ^j{~GGy'#K45IL5,L~->q1(L>w,_L\F&,Tؑ7Y0? TQ3Jeߨza_M%0e[5{({&  5>͓68 Ҍ&IPH)U0蚙9Ktij0hNGzV?T^ endstream endobj 477 0 obj << /Type /Page /Contents 478 0 R /Resources 476 0 R /MediaBox [0 0 595.276 841.89] /Parent 449 0 R >> endobj 479 0 obj << /D [477 0 R /XYZ 80 770.89 null] >> endobj 50 0 obj << /D [477 0 R /XYZ 81 710.606 null] >> endobj 54 0 obj << /D [477 0 R /XYZ 81 687.04 null] >> endobj 58 0 obj << /D [477 0 R /XYZ 81 666.34 null] >> endobj 62 0 obj << /D [477 0 R /XYZ 81 645.427 null] >> endobj 66 0 obj << /D [477 0 R /XYZ 81 624.514 null] >> endobj 70 0 obj << /D [477 0 R /XYZ 81 603.601 null] >> endobj 74 0 obj << /D [477 0 R /XYZ 81 582.688 null] >> endobj 78 0 obj << /D [477 0 R /XYZ 81 563.448 null] >> endobj 82 0 obj << /D [477 0 R /XYZ 81 540.464 null] >> endobj 86 0 obj << /D [477 0 R /XYZ 81 519.551 null] >> endobj 90 0 obj << /D [477 0 R /XYZ 81 498.639 null] >> endobj 94 0 obj << /D [477 0 R /XYZ 81 477.726 null] >> endobj 98 0 obj << /D [477 0 R /XYZ 81 456.813 null] >> endobj 102 0 obj << /D [477 0 R /XYZ 81 437.573 null] >> endobj 106 0 obj << /D [477 0 R /XYZ 81 414.589 null] >> endobj 110 0 obj << /D [477 0 R /XYZ 81 393.676 null] >> endobj 114 0 obj << /D [477 0 R /XYZ 81 372.763 null] >> endobj 118 0 obj << /D [477 0 R /XYZ 81 351.85 null] >> endobj 122 0 obj << /D [477 0 R /XYZ 81 330.937 null] >> endobj 126 0 obj << /D [477 0 R /XYZ 81 310.025 null] >> endobj 130 0 obj << /D [477 0 R /XYZ 81 289.112 null] >> endobj 134 0 obj << /D [477 0 R /XYZ 81 268.199 null] >> endobj 138 0 obj << /D [477 0 R /XYZ 81 247.286 null] >> endobj 142 0 obj << /D [477 0 R /XYZ 81 226.373 null] >> endobj 146 0 obj << /D [477 0 R /XYZ 81 205.461 null] >> endobj 150 0 obj << /D [477 0 R /XYZ 81 186.22 null] >> endobj 154 0 obj << /D [477 0 R /XYZ 81 163.236 null] >> endobj 158 0 obj << /D [477 0 R /XYZ 81 142.324 null] >> endobj 162 0 obj << /D [477 0 R /XYZ 81 121.411 null] >> endobj 166 0 obj << /D [477 0 R /XYZ 81 100.498 null] >> endobj 170 0 obj << /D [477 0 R /XYZ 81 81.258 null] >> endobj 174 0 obj << /D [477 0 R /XYZ 81 58.274 null] >> endobj 178 0 obj << /D [477 0 R /XYZ 81 37.361 null] >> endobj 182 0 obj << /D [477 0 R /XYZ 81 16.448 null] >> endobj 186 0 obj << /D [477 0 R /XYZ 81 -4.465 null] >> endobj 190 0 obj << /D [477 0 R /XYZ 81 -25.377 null] >> endobj 194 0 obj << /D [477 0 R /XYZ 81 -46.29 null] >> endobj 198 0 obj << /D [477 0 R /XYZ 81 -67.203 null] >> endobj 202 0 obj << /D [477 0 R /XYZ 81 -88.116 null] >> endobj 206 0 obj << /D [477 0 R /XYZ 81 -109.029 null] >> endobj 210 0 obj << /D [477 0 R /XYZ 81 -129.942 null] >> endobj 214 0 obj << /D [477 0 R /XYZ 81 -149.182 null] >> endobj 218 0 obj << /D [477 0 R /XYZ 81 -172.166 null] >> endobj 222 0 obj << /D [477 0 R /XYZ 81 -193.078 null] >> endobj 226 0 obj << /D [477 0 R /XYZ 81 -213.991 null] >> endobj 230 0 obj << /D [477 0 R /XYZ 81 -234.904 null] >> endobj 234 0 obj << /D [477 0 R /XYZ 81 -255.817 null] >> endobj 480 0 obj << /D [477 0 R /XYZ 81 -303.911 null] >> endobj 468 0 obj << /D [477 0 R /XYZ 81 -299.428 null] >> endobj 476 0 obj << /Font << /F65 276 0 R /F62 275 0 R /F71 330 0 R >> /ProcSet [ /PDF /Text ] >> endobj 483 0 obj << /Length 2926 /Filter /FlateDecode >> stream xZKsFW`EGYl:2lU r,a\<(~ -Uzu!L_ܟ?0fUO8 x -Hd:Q0%t:ŧP.Ӝz6YV]YJdbig؇ϮNA0d 3c$f^ޤЃ Uzs0+TM9{h4`L(8̉usЭmB1Og! l7"G:Q>W u[B]k7oʻ]b/ƒ-ܛ7h󯇶.P]gnzU`ֲYz!(z#QeTEE4o&+ Mġqdo+irujLQ Szcޣ"g5.`M{VxYcMK:vhS$cޭzjLոUE6Cl:kNU2]Y}7̃@i]6Vͩp7]EΖ(nVJKYmoeF0WxxYaf4^wƬqp|N7@H,DE;ey`J \y.UEznCAx>?ŶBNU=2[ǖTpJ5gŊ4&[tJ<ܱ1-ZJ{:ko$pg3WoMin4>AWz62w@-zʝoZ c󍕷x(שnG섟Pۭ9nxQ嘆z-$jف @~;Ao*!vFA,g[ہd0YN? `Sz&7kS4K`00U C(x2ݴoIri AdI3DAliH km-hGl1Igr,ȖaMu@1fI~MwgU m)Lo ̝ =ݻhP$g1gy Z o V*`%)fa%^+VwR1l NUyݚG-P:Dm֡>~8Thyb1 ?P #[|P 6Ά- OE!$5َXb̟V6'?n"_vpx grSuSyq s[2fac$бiZp~"~ NJ+N!Ne)hy)b #/o#/^ wd7@*(e5D#C&]RKSUV"ca$ Bvؓ;O !ӛ76k we tp2 d˦:I?+gy (R>N$A!DYbF-{D$#](0@{idp.dLr ]P:"G3z9x8v0ӎ:[Gy wa e;gC+!+ C<>*___f^ ]2JuV78?g3H"RE,26fE&"@4t1K!bB'ґvT6U@ۙil&-m.I1o-4 FY$Bq(kLiB" ~ U 0lg?oSQ@R 7w8Ǫx-uS1#dMkلmEk&dVBP8}髐:IٖB@ N3/` 2γfi&󥤑 &9%*ÿxHmdcsj) !Uz L䞥 S!@cpi{G] oe|k'ǭ`'ygCIs)bܐq؃Q|V5X7Ͻ7e|0jO%ׅ9ž#b` b=׉%M4(I||Uvq_ ]9J礲yЍRYm3 ݢl'>:>:E#vE#vo% ţ("azcaG{[FO?/HkIR =Uي*DF&] <{{znf C"|T45Z }ov摽FϜtypplҷsRRNmY𕸆-P0GC_Ym9֩&$9t-iGG.˳ ;$zx]cA aJE [}2;̾\f>{Q̙6[cG}}h aٿ[sJq,CD[se\iYD$t[кHG>ogh,a2a}9Ǭ~`.i#U5Lw q|FbΕ8YfvO(>򁵰_p,"mH 53ׂf:AѼX'ޭbd5kXWGۋ%xX=eq$Hlw3v4MN]>9 hJ"%D6:v+|Tg?D> endstream endobj 482 0 obj << /Type /Page /Contents 483 0 R /Resources 481 0 R /MediaBox [0 0 595.276 841.89] /Parent 449 0 R >> endobj 484 0 obj << /D [482 0 R /XYZ 80 770.89 null] >> endobj 331 0 obj << /D [482 0 R /XYZ 81 701.675 null] >> endobj 414 0 obj << /D [482 0 R /XYZ 81 652.061 null] >> endobj 332 0 obj << /D [482 0 R /XYZ 81 615.996 null] >> endobj 411 0 obj << /D [482 0 R /XYZ 81 593.481 null] >> endobj 417 0 obj << /D [482 0 R /XYZ 81 543.867 null] >> endobj 418 0 obj << /D [482 0 R /XYZ 81 494.253 null] >> endobj 410 0 obj << /D [482 0 R /XYZ 81 445.048 null] >> endobj 412 0 obj << /D [482 0 R /XYZ 81 381.476 null] >> endobj 471 0 obj << /D [482 0 R /XYZ 81 318.312 null] >> endobj 409 0 obj << /D [482 0 R /XYZ 81 257.271 null] >> endobj 421 0 obj << /D [482 0 R /XYZ 81 205.535 null] >> endobj 469 0 obj << /D [482 0 R /XYZ 81 144.625 null] >> endobj 481 0 obj << /Font << /F71 330 0 R /F62 275 0 R >> /ProcSet [ /PDF /Text ] >> endobj 487 0 obj << /Length 2961 /Filter /FlateDecode >> stream xZKw۶WxwsBO>-'גorRwAKc!)ί >M][If#1x|̀`u@Bo濼>%^D"z0=AG`sKS]~L?7:'<|„M\IX>Z{=zF(_\h:+{?*x+\O'pRI|*h"3SÄJG"$[iH&Q%vsyrd$>Jg9O&!уié^D#,x̉4t6=b07FҀQ.l@(~'Q *|AQ d;Qy-LSJN%. W(UKgp՟eB)W*˗g Fz2IR v ̸PH>hD|rԷ?#ǿZ ӘVʔ;՝25Mjk6˸R5 ,9W 7]ՎFWmNCBDivifXk24SVk24YMń̘}c0켳[oőx2,bx9e?q\@*q@0onckx1π#܋` O1SZIhص~Jl1xԄ k)|2oG&^$գPY\$90̖%x=(&;B%drw{"d9/&O l>rLhqM$9z fT_.OJ% p-:|mImll=5c>EBXJ$ \/d~#~$.g&k Eo'(1r|-4v`΀GO$ߢczźP fq 4T8Y|㾉 fJYq7,NˤЎL-|:W8K5N apDp@Δ #tJhFOz5mBOоǕVxT4>@n^98r̎ hhk8dPA H 5EAF4PO]2Fa1 =? ._ Ȱ}vI]ˤľFTF0ft+E1Sijޛ/ƦA$ote}\exműۤͅA* ލʝqeT۪>< Na| x6tU#L;a*kП1o#_tԌ$G-A8U84ox8P"@Y{Ąc-//V/e5\H]|@ąe`P*uk mwO$铀Ȫ*Y.} &{8AtU{Qicy#7z9#0U<#w$U?"b ^f[ܢ9Ѭ? oA,YotWUh 7 .Ԧ]+ d BGtѬj jڦ:UbuZr롱vmښ;7m2>KV@2Qd%+j;pob|Ѧ{U}Ul"꾲Bt]ܛL֤1&O޲*JZ$6B9wa̤I:vb:50q|o;a) *1Ј?<Ȼ{-Z 8;҆ʡ(WV]\gUAg]dv\[ nkoԙ:2㴿.gxGDp0P@Վ=״0Nz2O\6mzLF /8u 2܇Da kM[;WzPۻ҃v)H5ѯuƂ jv/C0٨o[/a(:jvt, {^>ޗVx!۽m LȖqDRú޼l|M{O,|wJm9;}84`> endobj 488 0 obj << /D [486 0 R /XYZ 80 770.89 null] >> endobj 415 0 obj << /D [486 0 R /XYZ 81 733.028 null] >> endobj 416 0 obj << /D [486 0 R /XYZ 81 703.928 null] >> endobj 403 0 obj << /D [486 0 R /XYZ 81 652.061 null] >> endobj 419 0 obj << /D [486 0 R /XYZ 81 602.447 null] >> endobj 470 0 obj << /D [486 0 R /XYZ 81 539.284 null] >> endobj 406 0 obj << /D [486 0 R /XYZ 81 478.242 null] >> endobj 408 0 obj << /D [486 0 R /XYZ 81 440.056 null] >> endobj 407 0 obj << /D [486 0 R /XYZ 81 379.015 null] >> endobj 450 0 obj << /D [486 0 R /XYZ 81 314.139 null] >> endobj 334 0 obj << /D [486 0 R /XYZ 81 291.214 null] >> endobj 405 0 obj << /D [486 0 R /XYZ 81 255.149 null] >> endobj 413 0 obj << /D [486 0 R /XYZ 81 219.085 null] >> endobj 404 0 obj << /D [486 0 R /XYZ 81 183.02 null] >> endobj 432 0 obj << /D [486 0 R /XYZ 81 133.406 null] >> endobj 485 0 obj << /Font << /F62 275 0 R /F71 330 0 R >> /ProcSet [ /PDF /Text ] >> endobj 491 0 obj << /Length 1994 /Filter /FlateDecode >> stream xڽw:WhΩ]}Z#P6p۞`$~g$`ۼiF3?Lz]!Gw!Q$]/=X@¸7_yXWzN/h&Gb\NJ923s.~ȼؔ'ƚ, xU}&CKc1&)E5iJ5X Y u j/}n>mސU"umQ h b鍳EIm{6A›}J<]@]g.2]ѣ"s}J| ֊H})]Ǩ^dm^DAi WEAĻIFGa2( .rwwr[_}ƒ9gak5&%^Wށ-Z3 4|8>Lȑ[}4pUy跶hmA】ʄҙN~2! 81`M5pp V؛YD.Zq:@y(+u}1Bn6E (x@<:+d'u }kvP p gV4ΖHB/Wқ>t<` d0kTwy/նz[g$ d+@oLJh_[^\{uXI<_t>J$&(^g8|Gv֙}HKrPa|?a7Th17r$\v6˕`}=si[f/2ؙGJlY}ZE FO7./8upd^C+|)L ggR9`WVZ0Dqìw/˶_FU'0M MtP߿qy50..53{A e<'(Rܠ("Q$"?篇"NPMgP$m(RPDB_ !wu7{("T % 9Sp܁R;nk "nj-b@_ xLh&p HG[gxCO|9mㄉzh8QL0Vkwie F5K:YuK$ږ]jj*8U+q-E};0I0qʰXE>@E$:M('1ī:@M)$F K2*dfF41&  +-̘z}ib |,Rգ`Sά1vv2׀e<(/Rm}"q !]8$g,$<@M(#3RUYh>˩ҶqI#)Ȉͪ=JWiY 5V\,(᪉gI ?MR/^o ޥ6 iSa9~pRENANKAT'Z)R'h1R]No  endstream endobj 490 0 obj << /Type /Page /Contents 491 0 R /Resources 489 0 R /MediaBox [0 0 595.276 841.89] /Parent 493 0 R >> endobj 492 0 obj << /D [490 0 R /XYZ 80 770.89 null] >> endobj 434 0 obj << /D [490 0 R /XYZ 81 733.028 null] >> endobj 433 0 obj << /D [490 0 R /XYZ 81 688.126 null] >> endobj 402 0 obj << /D [490 0 R /XYZ 81 665.61 null] >> endobj 422 0 obj << /D [490 0 R /XYZ 81 629.545 null] >> endobj 424 0 obj << /D [490 0 R /XYZ 81 566.382 null] >> endobj 423 0 obj << /D [490 0 R /XYZ 81 503.219 null] >> endobj 420 0 obj << /D [490 0 R /XYZ 81 440.056 null] >> endobj 489 0 obj << /Font << /F62 275 0 R /F71 330 0 R >> /ProcSet [ /PDF /Text ] >> endobj 494 0 obj [500] endobj 496 0 obj [516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7 516.7] endobj 498 0 obj [333 333 500 675 250 333 250 278 500 500 500 500 500 500 500 500 500 500 333 333 675 675 675 500 920 611 611 667 722 611 611 722 722 333 444 667 556 833 667 722 611 722 611 500 556 722 611 833 611 556 556 389 278 389 422 500 333 500 500 444 500 444 278 500 500 278 278 444 278 722 500 500 500 500 389 389 278 500 444 667 444 444 389 400 275 400 541 0 0 0 333 500 556 889 500 500 333 1000 500 333 944 0 0 0 0 0 0 556 556 350 500 889 333 980 389 333 667 0 0 556 0 389 500 500 500 500 275 500 333 760 276 500 675 333 760 333 400 675 300 300 333 500 523 250 333 300 310 500 750 750 750 500 611 611 611 611 611 611 889 667 611 611 611 611 333 333 333 333 722 667 722 722 722 722 722 675 722 722 722 722 722 556 611 500 500 500 500 500 500 500 667 444 444 444 444 444 278 278 278 278 500 500 500 500 500 500 500 675 500 500 500 500 500] endobj 499 0 obj [556 556 167 333 667 278 333 333 0 333 570 0 667 444 333 278 0 0 0 0 0 0 0 0 0 0 0 0 333 278 250 333 555 500 500 1000 833 333 333 333 500 570 250 333 250 278 500 500 500 500 500 500 500 500 500 500 333 333 570 570 570 500 930 722 667 722 722 667 611 778 778 389 500 778 667 944 722 778 611 778 722 556 667 722 722 1000 722 722 667 333 278 333 581 500 333 500 556 444 556 444 333 500 556 278 333 556 278 833 556 500 556 556 444 389 333 556 500 722 500 500 444] endobj 500 0 obj [556 556 167 333 611 278 333 333 0 333 564 0 611 444 333 278 0 0 0 0 0 0 0 0 0 0 0 0 333 180 250 333 408 500 500 833 778 333 333 333 500 564 250 333 250 278 500 500 500 500 500 500 500 500 500 500 278 278 564 564 564 444 921 722 667 667 722 611 556 722 722 333 389 722 611 889 722 722 556 722 667 556 611 722 722 944 722 722 611 333 278 333 469 500 333 444 500 444 500 444 333 500 500 278 278 500 278 778 500 500 500 500 333 389 278 500 500 722 500 500 444 480 200 480 541 0 0 0 333 500 444 1000 500 500 333 1000 556 333 889 0 0 0 0 0 0 444 444 350 500 1000 333 980 389 333 722 0 0 722 0 333 500 500 500 500 200 500 333 760 276 500 564 333 760 333 400 564 300 300 333 500 453 250 333 300 310 500 750 750 750 444 722 722 722 722 722 722 889 667 611 611 611 611 333 333 333 333 722 722 722 722 722 722 722 564 722 722 722 722 722 722 556 500 444 444 444 444 444 444 667 444 444 444 444 444 278 278 278 278 500 500 500 500 500 500 500 564 500 500 500 500 500] endobj 501 0 obj << /Length1 1403 /Length2 6029 /Length3 0 /Length 6987 /Filter /FlateDecode >> stream xڍx4ֶ Zhчu{NDc0D{ !: G'JM=5k={_{p (!mHZ$(i PD&0пD&Pw ;ؔh P<@"H\ Re'-xD@QDJHWw#S[7Pp `@v`*Bp!}#*%$%vA "dy^0#{B(t.?8F0_C= ` p@aB<vPw:PC E Ht%!~!+C8ap(@WUKv`8 {ap-{`>a sEQ0/B`ڬSB@hѯ)ܡL}3{eCa*dy@5`0&h(PRLLG_|\~HW=4f|P@  B`gǘ1X1>(TL PSQ H H .. guoz`؟GF =  L&GƆ :HP\@!,{Gpo?_v} 0z@cfCCM 6^ 43# @P0o qKK!Q_L_>A1~g]ikE`wwF(U;oH4&G:X(@#1vxc0^u( !ABÜ^(0x l୬vF'E9g9jgM)ؽ37W11|Qwnrz>Ko]P`qI0&NqDfckb:s.#rPr(9%gMg@)ub?1ge_E?"naakhimn_Qfo؋J:*ytIPXJilt.86? ےD<to>~QY>b1.Dr99ڑ&]t(ZߋK \֞Bka/4?snLK ||(gv7]auZ/yҌ%qmPO! dpYG& &*bZYd5OB^TA~^[Cyɹq#Y#mLBsp)rRJ/L/= iI>^?@^~KMD[C!a+·6:\a'gZS=~o#IAB]CxtjdwL3_vpm{7\RI +D[-Z'=O,ΤmZ}j9pQᦨ M5.)B;S8$PmxC BѾh.@Sk9BqQ/ 8DU⇧ȇBfbo}]_n[1(hE[)=h(4O~Whru%n-rEK9R=͏D=IG5A߆$9?0aa2VI=*jI> gQyEmzɬgX_$DPRMi? Rpc.G}yahPeYAVY;8Ϫq+ԫwPFOJgu9!}r\?o"epc o*ItBYϋ5:$JCT&ȺEּdTZa륕*7eN4PJ+Wv$#%pMgkV8׳®Ϧ,Tu憜zHd 32Ө-Aч1n/N(h1ܬš[ rWËIlƥr'ur)3a➤2z TY|NաHZf}kG$2E' (>5ANF\tl_㇓~YYki;3P\J>k5/^[B%Rjn\t[74.91$}/!U,n9c%'pñX`;h4b5y|dI!OKhBpu %Ydm cV}[ 0d+NvaeM z%(CXX2Z'xP;>qVNi)7"5?(?1FzuE .O} ):p@}|j]) ج2Yg[|'?ES2Œu<{K >L4X껞v'2wK=Lտ9,LCOӠ*M<8HqKYV-)ɱqCX?զ }bjjx3rwSWUf@K#[a,!>.ع./jJ> 7!汫brԋ߷j~89n71Ii+ϹADi.F@x$wvmX6XDf'TkFKjYǴOu韝{W Ǭ8ȁ W{.amXd.ȩ{7[_k@ Oڏ:wA@B礱*w3"!,*d:G>GbMty/#xxH"OKa)5dEI"8tgX$s*8xĒjO&~1~i_<>>*[G,4qr%-B}S;f~seBЗB%*[tS.T3oԝZ̊ {D>7qFY-b U>$յZ[r灻(Bqb^2aL[@{Ȳ=Hud2'8Iɏ I3[ɻlكh;!حiTެEGaeW%RO?4 ~Z6J]$l~8fM/8r_:6GT_*[k)s|f /B S(`xηiꆌ9F@Be -tAjk ؑT/tc˃Hd|MZzdH>.Ef쇒*4N2DO,yݬ&9+V0Uwb֧=۫nXV^/Oka,Jzg=a1a_zMgEIKݞ6jўtz_3 zTFaSu$+RS"sE=+  A\.{YƟ%]Y;Kmp̔%+ydYq,b&Wn^y?HF;;sIQ._XtҎg"u;"rt a#n9hBix:ì{̚Q}zʷ(csR\S6~M}̀o׏<#rSI9HH ^͔m{*BUEK8'f-zB m)t\"(IXŢclsqayY5W/L%4d=K_,Jh!Q"䑲Yw迦O%Tku6b%,b]Z EJ6O]lGI;<'ҕskr;co$׎^t;(<"h["WH] iEt:Z=K&Ij}7śuР<ɚ{81%]Wv*wO{*j,rk,ו/NYL.i ~D"d>{mJ=s6O(oi<AG6V^8UDo|I!Ҋqǎ7M]3w^r#_= _w_Ub}#rȾc魖bw±\' LN }plHlプ:0B*\WtEo#̫zf9$^[ڕM=dV0Y ?4C!RL2 1Zt+%!.T ߳b, F<˃(v Z1SJ%^O!{ZN?㡏5+#;|ݺsj\b^GbfȻ5u#s,KL{,vƂTf"S"XflIL{iԼ|1 _{s"g,y ZtͰ3Pس Kc*u!{T#wbzAB/𾏢x9;|y4GX=#[lg\_YeE~h{۟[ML3%פR;s!LnPSO.K~xZU[^l:DxBFIC%2`Hjx^xYv56KߴYշ{?Z!NJs˕ssc {;2Sd՟=WE iƤ ]Z%u)r:Uzj턜7:83-nN|UNѓg\hԗ`;Hr0q/h,ӇZ=w^G9XpG+fvPh5b-hk ~jɗa˂ifAgќyK"'krTUGO(νʨPꥪ޷GKI:$g̬WxҒe` Y%WDS8pHG1R&v#SYSSĘG&5 _+,/w1r^+/_=}b+Ք6_:Q8U9dS'8vd`'=b7eTo F?liG:Vt?V^.}|>V6L+Vi> endobj 503 0 obj << /Length1 725 /Length2 33765 /Length3 0 /Length 34240 /Filter /FlateDecode >> stream xlctۜd'm۶Ķm{mN&mN{ﳿZg UdDv.@&:&zFn*#L hbio'jhM*@3 bdin4ncdjikPw4𺹹 9;\,3K @DAQKJ^@)!l6&YK3 `f`bogj/L`tr-@NLUH\A^ & *03Jn7_dcIguD04q-ś=?jSW>?RLfx".@')/ݝ,r1 !;cYhh.N5ɍ?8'v61**kK_,fgbojigPqO#'S۬hd /V[8YztU"+^ť:v& :9\M?gzM֖MxB~V@N,3LZY^ީ#^H5LE-Tl)G_CؚCD޺d)ROfH;J0uCl'.6X7݅uF桢 ox6rCg/~TEo=VtFθ=MkhR8FLSmKϋ zq,:nzOpmjQ[&lbWFE%_;9 +Cl_Alڝ ȊI'!<2 3[$"-c:S)$D,Y2WU .|VQ%/i"=*GRn65=qK*yVU 6j& j@9E<ҷx8~[P2f5Q>V.G(㞅:ñq`6i\ oEYbcxE@)z!)h0W$j2ُLB Il&*S ЫS{7;!],|uD] ᤢ]i;L8:7ILƃ`Fߙbs4-^gWȅfClY*ꔿHPE`+LOaxa4oAl`y{!ٶ%$5\3U?52j %83'2.40 f~[gx'!h-skX=xҫSަA7D5ɱ;Ur&|jb'ι^KmzQm5Mx/h {ߣ}-UV.x-ۮ&'k)zx!-Q +^+MJ@vX?Y/h\9UN`H\v@l&z^F \u7%}Cl#Tž˺I遚ՐM݅?F1G҆C>|:3!<}_i)Ћ+XOg pqaUm&祕'jWmI?6(_O5:ɥicBy;;XzhW{x ~LPf}bGL&l"Gq?Go]|5ݡYLzi5ٌE3a-# Y^L]u1ɶ D6uNv6F S"M;y]]3tǠhS,46%4@+sArin.5 !{>Bx]FO4s[o1W*T(NB˦G? Km&`'.l 0i9ϼ`&sQmj!ڙGI {φcb2)r8uM5K| (9ԅj ]k`i ܠaSߠL޴!E$ ͆cfH Fhsuf^BXOa+ܳ=K:{I62D`w>WfF $WM-OkY@zC/b* .MqW~3GH0 Iu( - c%>C,O_n BaWMm[b!КfePg짪+YkI޶O;2X9ݦC됉VuI\ Xh̖**7iAo#攠E3"OxBt+qr|*8e?0ShaC5 ڵ'5vfglE5z벭F%b |a=H{3.2KNQ)(kF[&OH}η(Bӵ;C[Kld~USCW/D2GV*5oJpA^~TVɴYpls ˻ NѱNBQ8k+Q[R]f$7q5 IG$ r[}ESD֌*5V<] =,{{+#%z72^LɅv OPuMg,zMO_u_IB1;O2#Œ|)-PM,@J™aU՚w433#*FRUUf^@nfSYK1(jF})ng茔wr5S懹izKROשD _S}ݲ,zI1Q ӗ [II&ق#&y~uw%h ῐG.0 zl 9$hR;/FfePo#L8~:ot{ӊ0܊"NӮS yVTke*\!ةw s@MH?{G ts ?÷ikjHIZ#5\d֪ߟm/7Gku1UBBj0>ݯ Ћi?Nɺ`oU2KyOSD՚gtGYR|r8Nqthj ;Y| rp2; y Lź^j(C'FuuŽG":1o+Ѭ aYYE]zz=!2 Wћ߃(ÉVV(z$?$7 Ӑ\#c Zʹt*<)܀^}}ߕB}ZU Jiܒz;x=Wglj;.=1ayvcоKC( nA{HҊ`8i͗$D^Igb+&zhaS/?̎Uma^H푶pH.i^{YdGo/2@/eE~`~`K9]M2rF6$gR?]j@CY\kaѕri,吢);+F"*.|J!ѡ‡L4IC)I~`v35aӟm*Dlۥ41<zzBzB? WS}ړ} Hu%&{j=|c'8n<>`ܯk< $:|1BcXQC'HNeoȌdb&QU7~!~7Fkʂ)<],iMt0"I^SfcSf<(w&.^ՆÎg~:+;ɗ s C;+;;9RXYgb mt  + JCslgQG&I$Wl2*S/]U]ڿ[x2_i Jg$MACP3,N3؃As#7bNs%I_{|wɑi„ \ < 4-m@AP gjǯblK]s'7ѯ凔*Q~6X IL?_h'v?] sXVΏX}}r և#/m ǂT2NVFh'g $-`͜kbCڒ ~ vU]kV:cDwA} .S+:Z=%Ӊ6ť8yH1y(Fs|T]ҙ[+rp%v $kY1Xh*X/9gЊGh Lo~޺5ͱlՙl(p#1]r,= oj?#Ȓj7lk19$2q&motQH86| _n{pB8}n"o/ Tz4QB\ ڻ xnu;ps UJ*`8ekGZc1X'E}AXL|oj\}g M;,eLˆYH\Bq">Zޮ vjY2WR4%Gsn i)(2nfh,{x:ߧR?e-}*#LP7`q%-;ɼZ÷B?L.Ok^[u˦'NšVf+ui;+#`H⮿ hG>٨'%H3%0!RSWFjq,P^{`7Hl#k <2 p,iڋqsihFv'TyUD$SQ<#;u^>=X|*jUWO2>z8jÂϛ2NX]a<  x}QAv`8Ant`ȴMԯt~ڕ,\76,nj3"V+?A  AQؑzkA_ 30#W:o0VNbVxq;ޖq(vB;͝y$K p.BlBͬYh)db-M:N~:A$l\ J!y+VQ(hO$.fdA)s:_sZhs0=ygL(r Í9b`{W nNX9P-ue}:M#X;S G$B8rFRCo稥dp19X` Sv !^⸺p9/׆/M3eUx\pSEFX3Z [12\9ٯ*n ql%+ȇ`"22=x/d7[%|ىJc7s(CD:C?DLHrsrltêjX~3 ˽?I嬁rs:^RmFJmE1(vM_ v\P|Hd81ܖL~Ġf~W!Q,%ɠQ 'kWi 8ٟjLp_ȁۏseA`^ZW.1̋IrhPuMk"rWrzi_V-;c*W<8yG5Ҫ &RdۈHִAF'0{$SYiryTֲg U_UTY`V]`V}"_ z2tEk t1D֫~2A)UALuF"mˡ/b#؜NBHcc~h`B.3'6[ 2@SA~eHUB`ݍqPdb)·CY6jb#-޸ ՐƱwLN%_0;1ɐ^>)f 9dzʀ/X#bdd$چz뀃uk4BRaK Ŏ6h;߄)G\2_DD?Y5~ͯg?@ jJd *8=*+P(ʄ<5 AT*L⊵e,U~.N56Gs]hgiqwc wh!HwĺgVf:9kdC.ܲuU6 6y~h׭B+@۳n[اʯ!jw$v 0U@Vi^w"$<)<Jh? D:r18 BvVKy^6 3!ɺnk\#0fn-q3 xu~Ĵ`9aJRTʧl򒖣B9"2 ཭jcKSs2,1rFk\ŠfWm1ۛ BtAzx2ݘ$iڟS2'I(<.y%c'h5OO3^(C#njףLg/!.Cj1zYEO 1W0kű#8Z1F9r2^+t{S(]Y2@-V ޅMKVn ɕx}{ds_s"Ë/vtS{n|b>c3N^+6P$׋c^x Z?ZL㼖}xWUB7i߬551=Uq'I5Qas0y40&;ӊ6e:W@ һӏ3F #f܃1쬞oo*(&zֶ)_:(XL6`h2G ޺W`:WfVق튍saцX-|B2L+Sf YU__Csζ'0G tgh=gJa-.#4T"FǽB&/{gh֭gAp}έ2+Lx> I ,O<X6/i2DbM3)֯vc7*h/I̻)v3uH4mߺlJPx7w[ fƎY}aYA]V'煩 :wZ4|:82u.C'B/E:2aJ\H?^nަS袵&QJ=cISF@vKk]F\XC:~IQ Cfgs r{j H/=)qvS9\`lP+WJ2"]z$̯Uo= #u 8ː,if9F_ X"ZTk %nA@SfZ=+Y{  ׇ1kRawMPlϙ#ysAtlϞ(jė݊Ly=)'K4z8e׊K>C,p KI mȳ֢jovAŶwG %?Ht Ľ BͬtB'/P P/M1sIWv8PmnQS6~cwbo:0fvj[_>х G=ZCRDXY g CፗqSdK0D>ܫf%,IIk3%& bl7hȏ=ːLdEU~l}x$3'Lik^7FaeDMy\lzp7HWyxkqffr_9RFXo !1f&=yA2&Olf&4հf/^g yG4% 7T[Jyrvߠ!oxe1؄njHacKF&_E0~*𴔜XsֳVL.X5&2+A4@e-Xni҇j#JghΚPXfT_NĝV‹FEt$\F_:"nM,;2'> 0Q~ PLPH_/Ys[U6rE_,ƣMe䓗˽{ã¿b[piZlD ~viIv)myK Ɔ7T9Ѩ ?73}?1w׼\~PM(cZS@o933Bԍ wpݮ`AAGaOBHp͐cr^QrH&E=-Lxp_IUXF1>kZs 7 y)\!Z Ik"t8li! \%/"s60<\~ _6ɏ_Ptd{1X2K^>`4U]<ڮm0w,?z GpMwsp#.o.n`Sĥ<kb=Ei q X߽׃ށx,!ObH{UCOo.gk "-C8;Xc:aHl6=e5f6e[6u9jj7I$V)zB `mkBĔ%,QCz\B71+mҳY>OFl氰߽I(e!A .,Y܄vz|z VO]*A,ܛC:L`tRwMU^FSw{a}O$5D: 笝~gr?'@3ʸ~ e>=Rᚆ0Fh_gEü ʙ615,YVsrwXK6_8<~=X,i_*hUt' 5@m[in{,Do x[*aFdڦGiWI9_e(tv.j8wfbTE[.y6c+Gg*Z[[֞c]NɨSL1/c JOFz3C0Zh7#QI)ɕ:SnS0')q-K4tMB'c洒q.yzZN~asDa8ŸDZ!Ȍnu0lPr6xi5eÞVQ'$g n^(sFjmF/@ 3)Eck_]GP9|!B8~\v@)!fj^ҕ=(L}I/<&gŦ(n}A0 Q LV,R9 z-den2-f$5 I_SU08xB^Sd h9O"I'oO-\B4:꺇\j/c_r1b" O|eX(Ə^51 +eQDj5K<`꥕bVqRQcvdN)\fmę&c;10gk㵴Ku 4jOT\3,\aa| ZS* bp|律|ì,wIs/fD}7ԑݱHNkHNlYWoղ'Oh'9m_(dzCNm:34wsuǖKuoĮܜ u%x촢Յ$(3f1S^[rOl#/ݼgcGubb9\uKD ܺU!99M0R u4W!c;.USQN[p<㺔no q/{WOolUB j)OD}<}NS#Nam@"М&8U 9gV|Uj5˜/>̖=1npsɭCȈ Ҧ&2mU7Ư "ٴ+8?J?Y9(δ!L{qJ?AhUk dnB3 0VHa|"T:5? }@<:bO ?lKF sy/t'!_bUf_1)Sb[: -edV.0;l0Ij)?2ƓMɳ2)8sJq-$ .WeB}hj7gt0:I!ӘPQl?5~ѾA&s6WgKA횠MUi?$ *Pjb>wOZ4#I/؛{Q|B) .2ًRŠ 5$UX3Al.fx 0kLD>ځ{*qQȨ`؛"i߀x9ݎ-$C*ɢT ,9tc*a2rkǜw?" F#'[SOG_xqDQ6`GJ_zVǬsx |^jpS-+ǻڲg#"x_TnÁ:cD(t0^w`'5"u'gbILE&Hfgʮhnj:W5XY  CT#ZmR?k6~ukGv Fn?x;$}^j xF U0Mm`B^åK=L&rơ)Fi+LfԢ4Ll:[+= ʪ"_ik许.a>-xRn;1JPЈ"[74܃;`{;5.hav{/^P%_mg/htAt+Qfٱmulv:v:m۶m۶m'jժ1fU/Ʋ-" 5aM&esi_i5t?cC^r:y}R'8HWU߿@*OOl?1e +ą9|VbQHfMdh>V9a9#B[Pcp1c!~]w΄8z2aAVxj0EH:x |Z@a:KN@ =ᓴ=̬zq\=4SxzqoYLәܔ'nBV[җGPxtcih'7M!:i$%FA LNi%s/_?gJXoAhF Pk>0$_\B3,G*ɡ:o˧S>bX Lp1tdL0F*mz0߁H ~$MUu=e]Ɛ]k m'=OesY6h+($jКGd'>!{];c "Qo&yȳ?+S=|k! ^Sgȴ:o% 2GB-9"b~aB79B+wh2Ķq;`H xX?OڣYEO 1 B ˒$%˓8/mE 7#M*sJ޷㋔|6DnjTn݅Ӂб-8 $yuZ#z|Qewqw9t}B/Xm<\1qnj|jJ+|QՕucH0ۨqL "ZWPMA fS CD+NgwbT'7|ibA7ƏוlA#zR)1{bqn^|MPz+k nF12F1e tx&O$=`ޓ(42Q=q o4uvL>/$Dn/ ΝYps9,t;d34:c2tqa35=آs`7hvTZ,'Z4{NvՒu_B#3`ptj/YΤK09Rrg5Mn$/a;T^Nӗ /:QIUg#ƈ P!߄0֏`˼KvVg-c,pk.)$x*.ԿK{eGaYT C/!oRd2ԝSFaQ?wDKG4㉯ %虥#f/ZʷdoRwYUAt ZBy h-:;_ʂΕėSbqɍyp9[̀Gj25=d$ NLmF(V ޹zވRp tǨ f8>kgkO4uzI!TԎl^OiՌ)P@`Iյɶ m,\KI"!<-J#do$< Es~[rRxWN3qbrAf_odO@w*E: %far k.0l9 ?>~t%rF񲑭Ԭ&XcJz.p56)BCK1W#?KOþj*IHv5ޤK/+4@ΝV;ׯ6@ecPw *T>uogzywv{ :fV3WꉾНA ^Ж:3#YX o.h>ClORfOI/nk*hGRĠf])},-c!fp+&_ܸ@>ʘ@`K{EYbM9C2eՂwy1Ą9\D6߫v׮[T[vќh#H:Lo$,q3A[M)Ϩvzc󩖕7"c$b)gGZO]qi{xc:W02 2 au~ؤ[V8yob*V/OOYS |’ᩱ4.gƸYZH>ͅ5XczIT Zj/lX+6/}Aε6mpl4}1FxjRBu\5g$#揕<;0gi̟gآ;.k꿠<]Wf%L#k {`5cбGT(+&UzFbC<_%4[/ 46eΝ)^zmAu׳+vNe8YCyJ!9^* O x>C :?iLC N>i4.|: 0ؗMU$_1^(R٥c<0^U|j!~s:+3;c&f1:|^:+ޖS='5[2$Qe21J4_9:GBYo\HPoVA;JҀ@s*F]D7  fZ-ۮ`t%WAEW&sgxchN1A4a??r(IQ >m z&*ݎn]Aa!Afp1il@PMP)<&K%EIv-2[mWxc)| D h,ׯUDuAo84\Yx@a|.r#LĚ-}^aYQ3?S*1OLƒx 姅֩g#@ҁE;1n5$dqCrNMvr}(27QE$SH| C-G!~j"?Zm+&BΦ'idK ]L2SdъIŋ!Y+J?17itZ)[ɢog |D-vjN ~$I=USTmvz0a@zS_Cl6Ιҵt$ܤ\m,f)NTNׇTn6G邕$*NWN[mwDIdNޝ$߮;f[N.9n&{0uA w0)Sü7Z'mDXTJpdNuW:;BjڥKFbzO=o`k&>Q%m34k`T W$WĦ H%)[w4 .h./gաP`=V=ިk]Ǵ'BSwȉ; x`ma ZéڍŖЮ^2aH X=  %@W/TvD +3t}.WO0-_)"Hp Q>M$LQDostՄ6gX5ոx~6FZwNezc,'k`Tc%|f޵:x)MSƍ^3dĔ&%DI>՟5$'iwx:|¦ĉ-e$b. 'XT3adiqWC\ sfX|6EȡϨ7dhu;d>E6mPt f'ol-B# 0$#|D[АvaR|m0/L^$yo mbLnPF4aT>m+"thjO܄{%(:19qW3L13S8r=ʤk~-׉|%51CBl$C9Q3 8dUau 8"ci S=䌧n-NxYCvЕ/#]]rPʞvģ1q8SGf' YM7?Pi!LVj=iM$H)W$$jYm}aNj?r9yak Hz@I#4H\,n$,+m6%iZ*,&b'-r|ZcCݐލ;eڟ+oo쒟Zsn|^LI >@M)rŝ(7diI+O3(,`t[w$~̶I1umE\4ŏШSAk˹p.A)/p`e.V$%d x@OX{,bMNMdk^d,VaB|CXۢ/sr.RKyY: 6o֟RaZ^ZetS τĸs:Ѥ1-/]'Ƽ,㳠j8K1mU)%a]{3ɑD_"w|ޔ%#AÐq+,]g{, l4Y-(~a׃(ig/{] cavsril_.SCtު4Y'I#so v/x{29O\]t=hn` q Iٶxk;y[XVx&vWnDždu+q+@?33;]Y\=f '7}zF P#|\uJPr;i]ȍ́ȧ;/} tN^¹- k*>  *{=-5ғ()Kgݚ^p~Eb? ὙR6Cqu`n 0Eao(ɞJ1){6]gӖNL{`G.MC}jв50nS. +@[hZiZtMgA;9:'Gzk8xi`Lj@3G? cTaC &GiJb~÷{ڤ=+V,эlfO鼫krߟVv| 0CeEP$7 oeN1K}1#3O*Gnr VH-2#nmu#@jjIaa=+ێ5l(^ӱ8?ld1^Uj昳o6b~鋺KȨ&B-q5P #Cӫa:vlB~lqB}UZtt| rz6? ǧKS"{#m:q2h SR?/s+R0M׫p(yКrTLs Xa=gt['\ eQ*Xy;WWiᥗؽ<9bLl74wW*EkyЦ cٷb4l/mU'Am'n \ISwnF5Z;Q$ܒe \FǽET \W|=_:KΣJx ⊷wc 5JV;ϐnB7[4ݛy.탯l!zמTa+cr&r dN/-t!K&).#QnV,|-ϫ"C7,௱C ̜1 \5';I55^hfes[G6goDDcm;q >ߝ=!gcЇ(Sq !nMw>KEc &r}Ee{ruv[Ќ{fs"]mm>}-k$͚)1a#XdMs ~^@/$FC +LeU!rת2M MFa{q'd_{dHp=zCɡ&6(no#M" l~m=t"Q=&c^/`8hB%n/]bk'l,hC8^$$h\cx$?9}Kl!4sN*"T9rBz"EdGe4]B6L)22C9Li#Ѩa6&حF5R,/r_Zg-ɥ,V!}(D~;fbw-I\0RwJ=lKG9 H§d oWk\{;4*9r%c6^];cX}y!A!0bWϤ|<6 .1ifJR-\Њ )9Պ\ꣲZwBe*p'l*`xOA qEK9,ݔ795%cK=e%2_{Gsrd Fvh{ PF*^?%gtwR2KN;RLj ;^,28yڛݺؽK)cvG]Biձ^+m^'`܉ 9cb{uͷ2BԔ3 Cz/8 `vfJ]IY2J85`+G$?'d7 Yc犣[T$>D^mG^JyC(dp}6a)#r}Vh ,r7̅*̨em'\Gh@`- VF`Vd3I%i Tj]u ]Z4+4',+!%؞'hv}9?5ˑWI(J BnT&UDsYҁ$!vOra2MJeG*9Cl@ anz◅:VFVTU5LRw6ڧ-`m ɠI\;X1r7z0?3 $_-jG)*;~ a4̻'m>+B8`CwYi ^rgٷ$<2܅}b=o<Mh|7[KI:CGh5V;>rp@Q{tO{v G"ne\o'J.nL@"f7j#n|78|:Iߕ T8t&s ү f p.{[L4Mmΐxƥva(];9>]e2wI5rnH';bk0KB ЯȰle)suRYj4g-E[ G!]}rF|hd53>ӹ;+.Of.LBBPFW](_aZ0 hwƷv; <U*F 1єc\GUI(=anW*r;niDx)fdLyyijr$ga7bd6pxKźdLelLXLDtUib LEP:4,E,f$n/ {/˞bԎ7:䨓?RqǝYp6T>M\Nx]n3Oj9hh- ȮǨX*{0[Tn'Թf(j4:r`y:`TyBtJ]d.k~ߞ.)"Z,hjtHSCVLK 561Nu☉%Veƫ5PkbV)B&^B6W)?z4*o,tᶰƔ+HU2.}*M 9@j?sNvZ:C*az̟ek$yçjq8 ܲ!IN @e"h#aPcA lN(jl\ qCRNf< {y{N~ zEՁA܈q%*Np΅R4{ 朇{L\/C.'ZB!ْR@ ^!JS#v)V!SIa1#Bڢ;z'U1 ,ئEղ*% *п::-~ VE8~Cm*k͑I))vP+;8[i_NJf^#2 jY یNUQaѮp?lP,J(={#ק:Lp,_Fޡn*"HTB:>g-5mT+NY.2[' 4re2jܿˋ&<76vl 7oTէȯ\8T+«L}tSAel~$V/ &Ƚ3-<K$G`+=[-d!X01g ~AL^sC {"B KS&* /+]DwK\ bzPruՕৎ^n[?&GC7gl2.e_Yǣ:|1~K& ]6U r\ȇ_&^nI-LBP+y!l4UZK(\ȓLq;ߢv]E 1&4S4;OŔ_LP}Nt߯Mx<\Ҟ<'xE1MC^44,.ɱ๪`Mx 3厫KI_Hs+W DyPC'-?JA>;k%τFތn hR\^RJl~IJqi\kn?< TDPUm38޸Q66SGI^nm*4ZE_:c 瓿K$w1D\wդk3\VOɷ@iv<(F n1c:fp7 jQLx 1!=5ض#i;%q.\)|ޡ;$zw^xn[Ν 00dC#/fk}/ Y4|@dVԎ] i  "mRvcWmݠ~`h;+ya"\Q;[f_:178ظQ3i%؁gO˛GfCCVc~R17'ۍxϠk (屎p_T= ܍;+%0}S~Qj'=`h|':t8y&p(jsUM?&ZhNQP=HP` } * ۄh7W^8Rq!ҐARzU /O֦밙,c3zYN[w021Ymov}a?Bā/>N8b % P{ :kYMm9 AE3nSfm8-!c~1NZR_Y7Qv2˚$ѲGU(hM)=t.Ñc<Iz5#ͷ%s?*p+${ǎ4۽qah}.TTǡH9u}0ͧ^ 0 Ki bQ~BxDf MoigX N |aR%x~N}$=xWE7TReYc`|4)ȁ4ƗXH c *Ĺ;O&tQZ$k'S0;*%Ά:)?~%RC_\ʳzR9/ b8..],bi*RhTC]M|;%kMGP0Ö+Od4)d6:h,!\ F^^+Z-mfTk"Hhg)_ɺ'$oyY]d8&5A %2y-t.|HUg" h`sz5 "v 5U'h$zڹBGy`k޿ GK f68kvs]ZznpL{w-cu!a riۈUT$[q4O=lh wՓ29ؤ=q k6ZeKPX뮠 Wkɞocmd.֜2mKL[!kxms Lg蹎~j{qN<97w<\.od}z"1cy7$b|ǝ3?R9UWWaO=0M:)^V?$b~S؆TNy{Z7 kC'g5zo&zOUx(7) +Ĩ,"t8+9sY\pSTZ^ֹֈ.N닇܄ot]o)XPAg4J gR&m7%%=) ;cfƷFqD':b$hS~eG${hrg)X1$rএ麌 yYZ<Ո a:l/Ny.xIIG~;B\x iQXdyzgzd3X5*UoKw(Y8o;4  l{ Ītƅ.W9@30!w}m n5ʏ )+7-[3dSh{tFz)H%TK1鏙k,h&BHC FȼdI˛ݒ3_dB,qCD)Sj3*_ۓ3lobfRc?sFVV.V1 cprſ\I!X1ϑ |) \ɚKJ ~!9=.AG3^ZA҉'Xxu/qͺ u.ϯXɦxjfOXQҹ`D Dh96U|7ۢV]iJԧN,yJ!Y%M2c|s+p$m4?p-~J%_T uYw[M!CĉIvIp(7Eѽjukr]/jH2xY\)^Ԓ8 >.KdpѤǎ>I|aNi1pWأ+#j3XR"JUd޿wӚ =ZU0c>N}%UPhj_(^{쾞4w}Lr!T-B#ʙs>{:jq!`v 8b,Q܁ /a}VΩl`(u/,jk/*+\ycDǬdh NF]= f:Di-R8,曆ʪ]s܅g QiW :^;ΰ,VZZ,Ngޜll|)ӗM 3g]#*=|da ]R`S'p 'C#VDph%)oE֊D}aq-`SkA+^U Tin`lDX%G)\/ïky9uYJBв3ɗ#{+C삌=LaZyeT+'I~_Q?2W#>*70ٳiGpŽo)p/o˾<\jZKw&ZmܾW:>fl_紕'% .zuՑfu`TqɚlLVTh),qYEvwWL++'[(@\#π*Ik1X *kt]9;%tkHE`su6BW:ӂ%}gLmmRw35qAȒaEl QyKhdv{V 3+Blɜf(kkZ i$LZsKmC͓ O?g7ɷl A$@i{*_EBXG8e,R`; L*sBQ B5"PK*eK)ם󅕰?M=3ֆq_#BA'PiU}e 8WGuODv_F3AdbOVo$+;?鮥~uҹ*^in\ uY_d (4OR4JeFe޹Cb߃Q=?=-wB*&'LQ-9Mty0LZc !P,d8ɀZ}4]?:Ⱥv@!b*4atm1$TBu;; Y~OgR%fy5ۑM<(OSv!4 ;a /i_BzR>_z'0~|$Ō ' 4XLbP%&Q߉=$eyk9~8nN=* P:ӝ{>!i7"i2B2^6}=WEE)_[}P_c[>^ ~7 F!i0m|ΌnjϪ qR)4JOETF+24x{E/l8Te%GՎFNoBtZML[awBiD99\jNixҦ𦐲 `RZOK,|;cfe#"C^ &TkAd͍9?MN{ )y֥/d v{[7gy"j饒hئW܄:q^`#YQ. TcY]2+!FG|B>[O섻9t76H$W6#.r4hf<sHڽ,#7;>j4YY3 [ӭ1rgNڻ?a |.]1)E-2G,ҀO|b$#MU/7~ t%i#'E ɬ&mΈ mC5; :lo(TTp%MB~Vd!u]olVk$ Q;Zn'ʈ/~M uJ#S:NNr,,LNck|->ZB5}u."pO8A-9>:}s 7=!+{o~bVpUTT?!Zx_7UE :)Z/sNZ>zd{ڇ W _k$4v+>j^i0,k15T-AXd"?BrtP*^qbjXGNl.(.o|̂0Tf/!f#Do2֠,pi P| lqaE.~mCZT2`1wT; /q)LiW9>u܃Tjumz7Cpݕi?2(M&6|aaF!sw?.Z_%i'6WHb endstream endobj 504 0 obj << /Type /FontDescriptor /FontName /TRLRZI+SFTT1095 /Flags 4 /FontBBox [-204 -361 1351 830] /Ascent 611 /CapHeight 611 /Descent -222 /ItalicAngle 0 /StemV 50 /XHeight 430 /CharSet (/A/C/D/E/I/L/N/O/P/Q/R/S/T/V/a/b/c/colon/d/e/eight/equal/f/five/four/g/greater/h/hyphen/i/k/l/less/m/n/nine/o/one/p/period/q/r/s/seven/six/slash/t/three/two/u/underscore/v/w/x/y/z/zero) /FontFile 503 0 R >> endobj 505 0 obj << /Length1 1626 /Length2 14473 /Length3 0 /Length 15320 /Filter /FlateDecode >> stream xڭctf&Wlm۶UqbNŶ*mUP1+mݻX559*1P֙`acbg`-G/4|aEFvbF@& 4av?T*Դt%`?5_NW +*pYXJ *Iu$hd Pr10Ym3;G;[SJsb%08M,܀&@Tt{; `hdg;?fvdhea ddha ʪ$&o?dؙ}YڙSҿt_aFNg?S '{k#_-F@'0_ ߪ7ݿ g',3WN̊rSs:AT #S;[k) Q+%e>(o!'G%{3{-k,ZkV?uF_-5B ' wW%W5:Z[xWKLLSaabeVmMU(*/LX2Tg5/ly;u'; @uqs0R+卜-_u31I?ˆؙۚ36F_M\5@;vy΄72-3ݹ+wh\L|(ľA0߿ڮ/-|&qc}OfӚ'x ߇/ev?Q!T3r^nBIc{\YE `ڟ5$>"rptxw5dmN, 9o q]+=̲(CiS{Y:_&mBMí|F^CKlDHC\qz\ct3D4';c- kem+O^ Dlq,Suƾ ocPPs ϥ$c"r>khƎ.~ai9$D,Lvc4].hD}i>um ԴԴcy> zWy6EEU@.ߊx%ӳYgV B~Bw?]к{~3kLc ͪyYHǥYOIy Y=HF3ThH~uPOzy Zetao3.:MY}j⻆{ zU?vl&Uxs+P nnܚyXH9K!FqԆ)祬n x4+dB="+N9%~ [0vYR!/=>􆷓|zL?e&Kz-_CvGއ/+5uԸKNE󐚛7bhh9\ 8+ڟ1`/\E|bX9ɪ4 0\x5 WLN $vWS)^ɼbǂEEPB/k$:jtf6-7pcL"o`bbZM~tOΠ\JQ<.Ț0NRA,wωm#=#u5eE`rSηՓdvUQ ɮQJ3gƪ_7ր*KNm ǻE#'JstE)hwо0qNE(ﶰ3j~oG-κ!y}L@4nHrS'^dcjKտM^rq}\8M1U7#K!V*ܬpr_ڮJ1OBGˊi$-b0~'̈́L<'RlYUG+ ulhClnNCЌ:Z< +!^iL٘ÙEd(ng'6EyIo7%T݉ HT l 雷[}Ș* 5Min 4q^'t't1C<[$Z8BZMLf@<5 HIWۮ8HXaY5P'IX }9?~jx=B9{1^w!dt~)rfҼx0OF9υ_2܅w w #b@,M4>`œ_]k(z3R9juf :ʲ iyER4,(_+`u{&JXĸ&vWم[*}gm):SJ%3bm ]4_ߞyD(T)ƾdY,w˹xь7t Vw>n]Cq =N0qhУBP RRJSI _G ᾰ2+6ScsnG?GъpXn÷%n%0h<+xJ5VKiDcQ~y~"y%{s#`M7shIbw2I7 У,76ߪL3W_GK? pܹCѣ3w:PƔ2)a2DV4l3VB m}dXN9}M 'ns7`H@ TFGH$ɽQhφÛx*M)ȟ2td!%xW+_Г,O >vP6%EU0Yx&d0ǽg; ʝ4BgҕAμ'e}L͋_PζؗIŘ# r-wX;`}zZ,p e(w\I4d_@N '4L 8&GU}M W/]1125Y Jdg~G\>*ga`>@&*7tLM~l'˲p }y7"Xv$N=>tm z?r+b)#ӬJQB-6?38ȯU rMwRZWK0R*!VqGD39ݥC;AqΊ~A!\ŘϤިM 11D:vJCAUnώZ)41 Hg֭6ަIǴ6OXegY Z){3⹋uC&ZZY=ޮHe%Ý@1E5-g xCBDW^u4k#9Kb TjaT75mhSjA+Q)\ЄWMEtɟK! >(bW:e3C`B`CC9f*|XFLV<|^ lҒALZAT{ (s%f "uIW:cEBM2}d:]8씋 i:۠*˦Dx1p~N??'PϒO>R SCe)!.3 ב7#SsT(=*J0 b呅*B6bFGgץ`]*gtCEk=+-I"PKl$$ؽJBR-;*[q|}.9ٯ1xVs8)őE$qHNvgmMO[ZRb] e5xzmiCC\2l#< i?yw8a"ՌɞWdV'ܷh2 ]4|+Ԥ%S-b!T⎇WIMӫjß>/k.` Ѥ 8cȒBr@|q9 $"Ain$ ll1@<j8+Gvni?lY%>6a<&1YS y`E Rod5qFi N bu`os֊9\B?4<8 Ώ;*V z'w-aGԵH(HVrz)ar<&ˋʱ^/J $c)QQWc= WS xŮnB^cgR>hq)Ƞs) W]'.!cO̪3w\&4GrArl{{\a]NەJI.X&̩\/8 0&8˴!48Iqxe*8)[H (;7X {b\[#.zi1uw5Wr󆬚1ᤤ^<;FƚxCFt璥>C>?dq>-zJu (n[g[`,w ʤȟ1EiA"^N΄j``m̸.ڦ~G Jlft0ݼGU/U[ZQV[| wQh нH{k`!\, @vm:.i:7 $^)|P2{x 6RSgJvQEoA]?Oh"3eP7|ᑗI7 F[f'@0kN^]ۊfj5,79>5鶅ȰڜM3't͉Q7vlMHf}Yh5zF9TBN >>i:R>I8n/eBjpAT$\T|)ke?/7 Ag6rh+{B<wˮTj#tL`[}ӧ>~WmŦlf kNfcE{w8R>"%\BnM PL1mߨZ^aļ|3uHc:h"Ρ7Q/~ '5G݇y>Ykvd%#1KUBG͏|c.( '9ѷX~xU]#lރ%kajJ.dL({ H𗳻ߜ7c^StJW#(n9lSmv 4 ؝5xEvzr؅BЅ̄>qB^oLM4O{6n6Ü:`5 :SBѶ "v $zJyS} ^Sg3tF y>/[\ |F^X,>9Wu*c:O M99]PM/8͝9kXmZȼt!$`$d &PC#X(!?uhB{`8^Vkpܜc^ḑ>Kx߲c/ jvy!c,Y```VyƑ63~P_KuͰwupƌ;ܵᆾ17#JI"[Zӊ4m#ʙ2ƟG C+ʿ\3Na1˟]\R']7IbSީ(h򈃅8b #N(^Fo! 'l(mx;={r0/^õӌ`mA{셒i7p+;*PeCa>G-/;F׉Ft(x.lwo߳潐AP/4+:\bf.L"z0ébmQ>,.thQT?c:R-|ϔɲLfRD^mE'c"4heHsԙ]$M"ޭAn)k/KSF4p7RgYq´BŜ_Zдb#vaMvAvx0DHxΆx˜@,\Nm,0E6^Hc+UXv#QnI @e,eSm ÚV!o *̗~Za$+C'x` txw둆[n ldJuף5/^. };'a#JM&q;P Db2%txfG'37::뻁ƺšSb-#rA "8mSsK##ݭy'voYcO =bN]m-g:3=p<׎9U.mD=XN.> Hv,GBY9C~a>?'ufbgaS8]S߲ME8}{8i冉 䃱`xN.1_byʢg=.眄}<o.zZ;s dzhq;#Ut)vs r- ՘_vx]2 OSbm%3 a}ղrIȇzC*vt!`gE"xddNbҮ\dI8YBטpG0"-09?rlt)t/tqbeE;/y;:WnFU +[~>-Ol%},onJųcQ=!u(TisI[``tL* 靗cad4_1;HX-~.8l bV-v`hP*ZݜCP|r+^mYj{8 _=k`9 xzz=]Ai`ʐ%s6L>N CeMɴRCj(o2}ZOߧvr:D3Hy@۠`߾V<*}'KjU0 TOb씮'y.=ڍ>4)`Hl.VQqB&Dg5._VBhBZ,4j>rN7 sIWò&r:0 ߛ0<Ӯٟ 7*^m $,h%a\-` "v%eݚ'qԞIeg 6gu8H<'3),_Up -ϛIxI+qa=eKgHj *5AG$y)v8#62 xEĩ<lє.`+{maNjJA8hhR(?VD:*Z?СLrNlF- ;WLGյD~&)*݊SVŷZst:LXj<=jLpGޣr-JA]_F2O^H?So!gm)RF}5Nߥ+IsJ-mq.y; G\4/i֊ODNQ%^0l;;?(zD G'o='D͹'{Sj5.}I/%k&g H mxw&wAEpsCaO#~i*!`\7ݖpiXYaU_h.П! G '޲px /!KS:zJApp^Sփw~$LI5koL͔6]Vl11ZxoT #Zݞ )>xKܨ*ҘyL|[.Ø6\>s}[?Cu~_ntW^u8g??XOY:MWÝ/tTfr[,P36p|oQ>F(wbӦ%2 mne}P"HEZnY[ 7\>Xg-2<q99rv<'ؗe(#<ڋ>,J~y=\g+VkvJ% nf#1~q.YILUBT ;Jjr{V㔀u!ݤQW2=lJ 7B&65a σTF_) N9j ۻ](,o`Ta QǪ-Hkni&^Ћ&:{** ؤBxJ-Kq'}>@BRZ"$\QzѶмx4yףjO]B@5^dV*OIϠG/!?ZϟQvrVe|0|I4) y%gfEl&c݋j a} ~vbQwjqȌ|\@l[gݩ:<:KOIk#6[ma}ylF9bC]tq=Ec?)nH6XCWQMbޙ?[z+ Z5To"P;O)ДAa!Ek,n$(0r=6EM„i`wZ&t{?2uKhOIKD 1Ŝj` qnvg8k4RӘwIk\Ͷ-Χ6Rt/m@Z|Poe7 Uk]GNy_\ZqO?G}ɴ ۶m)/~aI^:^;Vv}CUoy''vJn9N'$MK҈O4׎<סYٵ˝< $ԬiX0&yC^8h$49/[3ZeH#c~$ߜ)xW* K[rYVNRЁ]\"߭lV=+ˋhs9s#6ۂn<ɷ].sTD4l`Q*7`kJUDj1՞M͵?^< . FSyzw2*p{aBo ᜳi7}Ѷ|LOfƙu{_^85#9_bq+k;tCߚpXXt*\!هӏy$zi #|Zlvr95*Oܠ':FcGxW蝡DXxG{ъ%u4 /8S I" ~C<`,`OČ~%IexlHr3OȨJj|ʊ[PO$߇wӓߡ?[N?*/ઘ.\/apߞR%Dn13_{әogYT͔7xI;kRL1BW?9Ⱒ͢ bQP\%~S% Ҏ^ 0& "~ݣgɔ{ ['H^LW&el7'tʾbe ݧjXk"*L5b:B݉ PIAc+1y%݂7'jPH!t1]Ƿ˿{g@q)uwC.l^^Yc=Nw4Rqa1v׈D9c{=r C嗇E 釲EZk>.$:Ië~-w-{<W40528㩱;It7o?>H乕xxӂ܈yCnOpY z<Cs^MVF QW8@4Uz,CNv4qN(>5Ǖ&-Wg `Y?^Ŏ_dVO6 Ɇ5\5} {+'.p&R4ya?gXw%׸@*|G6mM"X7|#VƑܖ NL{k uU)\m ˸??w-}!jqI[Яȅh'FGrttjZЌm+8j̠ISίx+sj#'es>pjsGsup%GyT1l8_'\m$uLjL]tywh 6xX&@6H{ ']\1n|5mZ*RV SeyXh98g;-H1Q#lG}VT4Z;Ҁ/"WƅQEc12!+=^Yf&([fDYߖ/g@|hbkpl}: #P#)PE[BW.jz+Pej/yo=-2@(%dOֶ aj15p?A.f|\n}oxO c&樬Rw| endstream endobj 506 0 obj << /Type /FontDescriptor /FontName /BSMJZQ+NimbusRomNo9L-Medi /Flags 4 /FontBBox [-168 -341 1000 960] /Ascent 690 /CapHeight 690 /Descent -209 /ItalicAngle 0 /StemV 140 /XHeight 461 /CharSet (/A/B/C/E/F/I/K/L/M/O/P/R/S/T/U/W/a/b/c/colon/d/e/eight/f/fi/five/four/g/h/hyphen/i/k/l/m/n/nine/o/one/p/parenleft/parenright/period/question/r/s/seven/six/slash/t/three/two/u/underscore/v/w/x/y/z/zero) /FontFile 505 0 R >> endobj 507 0 obj << /Length1 1630 /Length2 19303 /Length3 0 /Length 20138 /Filter /FlateDecode >> stream xڬcpgo&NGضm۶mcF'c۶m[og9S23vվkݫjWmRBeZA{#S1{;ZF:.= +௜TNŔ nj1501999aHN. U%uJjjc0_OgKs;7S{[S;ǎʦ S)@X^ASRN@!. 73u2(Xd,MM)fNv&LK`pv05fal`dk` 0w2s{? +!'u],\*;O Cb;[UZSҿtaj] -..22X:;z_i:[ڙW4'SsC'Sg0 7tp3KgS3:F1]6gV$ :_ gf(&ahbog 015w@2;P'ߑ9.}b66r;w Ecc1ywkut1A;01[h,faj`bl03۳ULLl,LrhNX23_˪k +IS/ G5&yFHMe`{&/ :8Yz_'#jglo(ڙ6vurKߪ7505Y]7Jpa u(kP). O4 kj\ +8W^bcP;ܝPT+jgv~ v+ @#yr@3NC@jB-:;'K:y~"=΍&6K9#Lv4pzh0scwZnQFNRuy_r% yAe̸d7gX2vTGC0&<"Wױ$y¶vQǕnk {$N\̺F! 1`";RT!J6`W@I^/>oos!^KP#GM0'7 X= B&V!ӛb;kܥI߰"Kl6pEKܧtkwvL5JBy6 iJt]KCh", 66hGTd fuG%seY0U R<"ckQFlN5ZQXf/ qF+2 j ɕQd>nnYyщ;?C\{S15gKt26 S-GSQU&:p*<h ^&Bd6QS1ɗ[Ss(OUŎYe7Z.nݜ׊B{w@Ԏ78nL=ΟCw{y+aZ r=zR:th9OMI64WO$7E>k&/{rԴLP>b +@Գ@ ub} 941K>Jw=Vx9&PayMQVYmgڳNV&fRedg.hx{s?j›qfFg\8¥.0, ` Swu,퀕 t;+ ݦjw_P~6ۦv@) _VAD ^;7y+.w*t$ ^0$E&LEk䄶z=kp BuxN9vfb=#S!l|(:E%ɄuX? S pІI2`% qnXɏ秙EB髐`ZV|Wx%ZA3HzB.:+ A!)g0Za/mXI9+7f^nvkxmu* XSA 44ƛ.{ŧ/AVxǜ'&zĜ25$҂mm~?]InE߬> ɇ'Xr|z{9ݻlk-mؼ)3mB͚Mt?7:WC}]fF2ۧ7{p]:F)J+}CKt`&%1Efς/3~QPۚ7ڮ;xxnv+b{IQEyF#n^tFq8P"+j=frM+('R[r]"//5U C fnE+^_>]4blaCՊx()Xف_ c%:о4A&+5gڷb$7 wJ>#A1 ZDvp'Rة`v-:w0}%W!v ?NF!(G7a#-M&0^JŧrgҢy˫.˵hX 7S71Up4[ez(uBN24I (Ų,IisŐB+TX= 8>ʃvrDf3{l~ ;f(&#Y.k&`}.Lpi*˻}a0;A-@iln|3\5Vd"eUL&YZS6|${KݯyK|E tBq@L^Smm,bїH聚o9Zۗ>QC8>~oMu0botd}RA|~i9lqs~?UpSG@e3Bo础Ll1,2=<9[NOds<?45*ݥdº򢾼w뿤4ّܪ;{Tb!He $<7{ Vl3N?D3oHq|&X} ")ZePiES '="ԛڣ]HG1K 똖@@@[Sm@]K2 % Oz_nY}ix #Bj,+l'o *Y_EdvǢ/z]:݀b9!62%Frǝ *?:E?XѰ ] [[myWR_NRQ9asDo+]1t3GuDQaqb@-l&DNx1.Nq-mu7 [N>HG,=3Hw‘lyud'% g1Y@KU2(lLGyx~tDP +xy < cjnb{vKӐ}aEd_uS2RRV'drm:KLtrqjǷuBcrw$47%W+R<Xa7?{93Pq ɭKw]`t=!9vPjZ!!6te"|.ƹ^>-1Y6FQ$C/=j6sSЭ-'no Iݠn4՝ W#D@͆:Xߠؿ%YY'm9}!tU67?>F6Rn CTN#%JV@~c])]OE{#l%;-}^rwj\Yuz lۗ4 Sw3Sm#Wa)zH奄Grg! T,(4 m\efQCHϵ mu4>A-\s xƧ')fKkc!UdZ_+";"i; C:\,6[Y؋&Ջ뺅H㥩4{Gta~B2ehLz6- 콩(BQ,+59<%>cST109~8ޥ>U/ZSemUqpF9(\ '8A-'Wd6949 lqGTQm'BC2駧уH&:V< >{G*~Lp3c ?G(Le8A"(1VН'ʞj+b 1~|p׉ t9??aʅI4nA1d$8,'jBQ.zf-srB?LQzaPK9]nJiǸsM޽[f PjF#s:SvU3I|?!;gDE\8d5(+'kaFty:0Ed(l92* JǪFXqإ:/tt$牠?]w]b!6<EԸWa6e>ӨH )yc$/˭9T*OB=\Lsm9$=I,(oz'dTZ riW'G/3g7j )a]Q WHNI2H! $t WAPQ!{wT;'A6_5k^(mpU_Icw*~uHI.MvGa/%ESu;s.dճs?5"vNOF: NW[ޑ%uM },`vaB++d@?)?^I)LtQKdC~ͯ#r)e+Џh~&!tSp=pLn<HȿӕiABn5wD4u+BSY|~. A%E B8ݦKK @~oF NWH~׶Ee#o]łiM`gU1BR AuҎ 'ntMf"cb@C; {a&&;)' S2h$xJB9,NI*yhF^IiC_0Z`N/f$⹞@-5K6o<ɛ$!1$;Nf"8Avlԗ*lTi`cE5Qc1wW.m<ǹQ~~*9Bs>afT-XHkW 7̱A  =j+~Pq>c,vA9 \.&G~Huک-C6r#,|lL I-r+Ǔ,.nq+ wF`Qq]rTu4{mIvNA:܃I'X=I$!i|:jm~"!j^ugcrV:9@fҢ੸sQ^=/2s1c ZZTy[7X'Cl,bֈ)m S= sR'uQ OcOAJȨFjBoi)uعILY/uj:ƧdU%|crNI{?kp kW,uقPV*y6|m'TyCb39(NBmmʑ 5+P4'1Őx֏ؓEH?\OjO M4˭ \Yf(wzSо[d))ڙ ?7,#[O*1А应 cfu@ .AOzE[H zfl㺲_hAW#o$OȘj:'en?S[M+F_LjE>7! 2xO`1@9lU5۸4j=y 8V;_uPn⒔;Wvj:^Y/()o_L |s徕 k]kcۘ40JHl7dO&ͮl(wd:yoh.<6_'pG<5en(>WLz8 1SfHT~hPݐn;߈&͍/ K=jԫ̴ʁ8d&hx54)@.po2<;N`=VF׉՝R/ǟ6%11[d%v : BɢσN2Ѓ]DC$Їw[ʩ&'E%#y3[V$U#q)_52Gb 5tҩ5Zn0Y7Vsx@% c&9??KZj⺄莑:qdytƷR% AJy ,8I/e>jpBO+$8K#1œ vS"*\ڂ|R|##B\j]9%Ԥ,/^0쥅WZJnPWIgҹId2{-YGЛx:!☩'#(h#)X' W~Md:<ʶɐ_o M+e7i10a2ΒSrņlX/a,Y"TSjm}zT,`e±frH[oa2jCktp~GDǔ[=):<\#6^&&w 2o#Hʑx<'u=$؂"t{KHm_ReNGZQj7HFT*Ypԃ"!X*&x I>=ML,K-H_=HW<;p0Ф9_Cw1q- 'Ȣ^ ۹6y eΠ8q'S'"D#K=C藥ll:3ZZAduYEm U,x3 H^ml_`KK#J8Ocex rB_j_Gg `#9?0yg|ThMg:Q?=H; m&*cLSd&c*36{2zmƴRz؀s 24.;vinN}8be!y1I2jX&,hix>uKGijo񠵳dLG/: Sr_t7GaE]ݼg )*ڑD5WF-74ȽM4)Vy#m~Q""2r-~'zBACІ5_PV(PQW:l< QԽ~Y ./_79Dc&*p~>&nܵm7z1W;f8xqM)\TqƗEϜL*;, 4>*I-?@q܂ZkGu=NfH{&wPGq\;f$:6>͐`q52dd5Sq*ОXu-ߥϬMO i}NI^뗳`{YX$IJvTm=Wq9_~dQ-^^ͤ ~ YAuxp|D:aJ\G>c Ψfe.,^|D'hb#+6?r;'Tq#^*w2lvߏIketRR%WD[ :[;{'&%?9Za-Mϸ QSY_Co{mR=피vb>wڣf[_K#^Գ}V [57B|% /hD̅ʍ))zϡ][^0i@'ag),9y Ud(0 p6"L`칿| _[6Y/uGA Žv_>cw5}W`, ,B[$ 8ppn=$UCAA`脚j"۟7,aa k3 qp|st}YF`A;JAG`,_,DBКb;]rn\m@Pd(qÇ8Ǡ,ҤE!g,HϨEynٟIά+Bdx0¨E<+\,l#; bNQS1S7=^`A/oΖO3!{8iSB) .hv VU|ѢyGC$ݶy:5m㑤bmRxL52ip-d(aJbۍ, &2>Cӥ b[ϟܫ=sÜ"(!>"F9Gh fgoH~s`:& Jv% YߣZ:s.r %7DgjbKE@Ƽ. 8ZgPlpſ ϔ-G6A\vKM3IA-ײY >xO./[|A|=՗+%Eb֎kœ Ǵ+2Aü2'?=N*/tFy~0w#f}rAg*q,IQ)#i')K򢞣(h3u?ဤi6|fStv(R-j$1%[,7kKDTa9Wj0y_x q8bmP5⎾qoXڣ|ؚad7_ ݡaWnL 3j!uW]. 14B픉a/gUenj6SuPԜGϲȤI:+.~O{R{WTCؓ.=Z?~ )x;2 lC% TwĂM2;j2-Z?I/L5<uDyOt/*kKU}_ |Գryn3³+KhѨ'KAy_9<3[`md Mʓ{bؕOf* jQB\Iu>GW=lo S2b28č^ZЏN.Z"1+GM'XizKeFL^.m8U^*i-uPX[~riRqhLj<W7U0K ЩF T(CT:$ٮ929k޺) Vbڣ}4ۧ[Bz7n*{t=U(Ǖ.UTەG3zpeݚƎNQuj8^ EѶ&}* ycƖY)8'W6r/C2MWr@7>&WNbd,gIs7HLyΔc1Ri/QiO*!lB}xmK6Rj[i3uDޓ;`C E;L~|?*O_yխ>r޹}`{e *>] 1!ݢZn"v,;Ğ944V>P͂f^L  6>YQfYb"VEQ ҇OJK-%i8i*,sīkipMEd\ vug wG+'צꮑ:UKFoZr͆ cƱH}-ᕰB0˧]tHuƣamԅb9V!{?X mNs lD_5=ԯv6hO!7EA99"$azr9KNjz_ۿN,2(_?N}M[G<^}^5V|Ą6ґx?xiGH^\ˆA;PMe,`a#}8ˍڋ"-Jcu/]GЄ?tH$4{|4][ OŇbË% ֨"0ǛKo^d4HSCT7Mre"|uh[L޴" O-~ FwNgIߙ/ln#9"tsfyQ @L7U}3AƤ<0X48 UullXߑ)Ҁ{ZҠ*,ֵ\vD$ @ˇ\S7L21DپS|766a(%'qE͈"M:mg }? 9kFJk6;YqvS~qĞUK3ҫpxmOȒۧDq zD}ۦٴdV׏~RbSF4UV'C+ mf\CP.Dy7]7Y7vSΘ*QI>߰KJh>vWb&Z +*D&1yC-O=aG㋸ 1X??U{l܃Dm)UW\"ZD%jU:0`b6g:qMu{u 7Z5W'3z}FpGJ6d +kX3Mˡ5GUr{)mѨ^F^% ~ʸ&8 Z N<4o/,DvTÏ)b>S&;rG19g<e.3j[[j5_~9=تj;#tM"J4Ai,t)#~l4]3lt̎XWu';H9C*>;甚!w #hY98&PUojB]zjkROkf0˒zJƀyX*T ?'FZA:v2_9n;yu${yc\֋-^ $M}jھ?Ջ,CoF}dH=R˧XgbX|ݍ((DHFL, %E$ WSzM4n4TBq0FL+QrkhcdOd4*M L5I+j)@N[k$thjVZNt4C<:`s'zͽ&rvCkՙ!JJ_BZ<CJñ6l'z##rQt244[Hv ](J|RCOdK413‰?;@v.ndVc}ĺΓQezǁI/~&H|rBQہD4x-_IM]Aq{i#vIW<㣌 LExbj$=bA+\DFaO(pXJOPQ+u55 e SS;Q r vBA D4gkN5ޯo+tʛuQT)(j?XR#~ý9jMΏ.% RspϕWPUyc)[޿D pHEK=ƗwRk5ٛYoX@5zڝ-zlF$?P*{3Y@U|<#l̇?p*ǃsŞ}* }6]h@V*4K޼4Y"N3?q ʌk 2l?{7.ccgi~},瘛i7B.21P?0yh{c|exs7yl@eĘT%~+?2Ak#}2mp' 4:osx5hc^yn=ݎMrީG< (uٔ, I7ա/?N U/^佋eT+olEPdev P'(b {3UJÔuM4 ׎Ֆm˅l"a[HZ "NmU@}CģffH7MYJ}45qw6I${I#Rh=gƄ?m 3=$/\[Yw:^s 7TU]շ^[#vvClwm5ٴqPo>[;+|(Rj*hK7,0ã`hy~"p+ Z`{sq$i6dNIje#p`ZGaD--*ٳZ`ycj: e򩞴:n*Do{0"$-  qXE9;wpF\8)k Y 5H44F*B)|XÒ|Jfnn]"/Pad[R"Ox7%F7h~ͣgfSCO|T^&3l1-( 5,$l72pt^j%<3W vT[륗b<J;nTZa_ zvVTnTЁ=AcۅJ$@qױE{*֦^m0*Ν6'帓Ձ[O;Fc {+2 &V;lI.iʶ4cj#waG⶛݀T6p@$.w qT3g`4~>iCm'\`aEV(bQj3wm2f(\s/Qt5-H:Zا*=EX";QL=ͬb S}KU;J.蟾?zu> 4ȾNs׾4̡cuRP1٭`0<2mNSn*J i {+yg9ؠ{Σ1f$R> _WLṑj&\P/xCѷaKO@+!Oo󤤶LGƏu ].̬ .ގɚKW'(_[0jJ ] o"VB&ᅵ4}R)!e&؂8Μ([,#ݯwړi~zoc MJ4 |cх3+s3 kwʢ½n#7ԏ3p\GBb:Q=bC wp;|T'Mn -;:&0Pn7GR`hskAJaEdQ>as}brkВ "̠kA=,uIE&=ɆibHh K|84$&aZ숭 "^[X1^f,@뭘Q;aI [z2ۊچ}MyTQRxڼe!X)bO<A#U* ڑvI͌8~ج"q7E/H~\p<JVj @g$f>G. 4YO([1% erWLo;p"^HTqz&u_na9&O/S˗~^Ȕ^u VpnZ2D!!_^1@#.E7mzb0)ƈsݐ6XcM@x,]N[kRpGglZRlևXN58JWZ^?5\)(peV"Aaت,1u:Ћ6kvm[/Np=۠ͯ" endstream endobj 508 0 obj << /Type /FontDescriptor /FontName /MWYCRK+NimbusRomNo9L-Regu /Flags 4 /FontBBox [-168 -281 1000 924] /Ascent 678 /CapHeight 651 /Descent -216 /ItalicAngle 0 /StemV 85 /XHeight 450 /CharSet (/A/Atilde/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/Udieresis/V/W/X/Y/Z/Zcaron/a/adieresis/asciitilde/at/b/bracketleft/bracketright/c/colon/comma/d/e/eight/endash/equal/exclam/f/fi/five/four/g/germandbls/h/hyphen/i/j/k/l/m/n/nine/o/one/p/parenleft/parenright/period/plus/q/quotedbl/quotedblleft/quotedblright/quoteright/r/s/semicolon/seven/six/slash/t/three/two/u/udieresis/underscore/v/w/x/y/z/zero) /FontFile 507 0 R >> endobj 509 0 obj << /Length1 1647 /Length2 14279 /Length3 0 /Length 15136 /Filter /FlateDecode >> stream xڭeT\%Ӹ;=84k]0<;w}g^}jUuvU"SQg3w4J;:21M@jJ|Lj@K79W;'ƅ@E%4qvt4qILJ@ptrrji100+S@>=A֖@;G'{':p, e]9%&@t,B hmt.fbL ' p[@ :In\?obd* W+3t2q'68Z|4w4sa4 t')`n r3Ib4@#hibn>i>yUod/o_9Xvl1\?c[Z; /r6ݜsh$L@ %Gϐ;DoEyoC:ZNgk cmq5?9g?9+b 1q1sl XY,L>_vMsS+4lQۿ*`Wf?l]V W /' FhP;z|ظL<9|~?aE/&.̬֞lH99G&柭 fn..k|V  4CX_q4Ip:9TڨQTƱ7 =_km(s {۾Oq+ouxf(rJg!_Mvs #sk/:>YԘnhRIp ;O.2,7KwӀGjF؏J92K}>.GD:Q<4#|9ѬH,jș)*._tm&4Nד eBos>rbZkkp!itSҺZ˫@Vo#̐i#{Sd \^4fI<˪caDvC }nV9/~XXhUJʊĄpKD:ĎKWJG'K .=>n!OHVWcvhN̖ *c6?|P%]M-mdlcPN+ >?XpzT /S!`&'tlo}?Y1 J(/'oXb.Қ}GD49;PwTOsl7"7"i醳THKLul<"&VFXabN|ǿ)U.$\JͲX_6ewSn+HA! 0wd}܍(;PJHa|Kk'k+h#(WRe,>jT3{,7 Y+V:/ wLv}a;^[" WPrQ? ގL;ٕ;[wK- ܽ)thHy$tZ7&'M̻C]*ylJNxpš;\LLWXIz#4~DM5]|"?MO$;+:=#՞$䃕+sJ2EfqJ'uM=~nI"~f6-8{8Msk vmW1*p!݁u VZ/A~_<%S!=mO9D Sq0)]>ξ~tl?!AwV~NJY=h_ ((UTrcwwEWżdG =k~vF&g~LbZ՞)tUP^8}U'aw[zN*t9Acq΄-G `~#M$DKk?rOWuS3[PՋЍR ؼ䷐Wv'w޷ wF#6`v#E/$y95+QѠeZ?tpb`Ņ%q˨>#$y_o%/2u}>UNs7[%M#,.qG_<ΐ%VU*ѬF1<"e"t,XxW  qYD&QAJ8ky:1Iguqy4slop+:I=Y_M:wq/UK{Ŭ9VON-[xxOi\20PBꠜWDQ70aæz^*pKԚOPqWOp|bG{zKjPyPrxńFGDWX=S6-:ä#TzڒQxF5όUc(u~<ZN6`ؿd6 Ur-x%#ɧWz2N}e#'Msy lc%#c:شh~ LSŲ>aAl!7ȖަLuK KҼnis'% 2T)`2*ÔjtքF Kk@&3->_9[pJKBJ ٦j1gX nID&0LOz!Y--_O͗m:M<b e#9_\ l$Ӎlfijѣh̝6F~7Bv 9B^N05Ոi|l=G`#W@=s.X減)!$.,Mc@hss/3683'BǪk.a,ih(`C{db6ܪ ?Rnʆ9 rF %LABGYm -ҸuV*N+s=d߾VrHu XRiR{VkPg+?{1+R E֦R&tϺ1YD)Ϊ=wsmQ37ntIwURyk[\cQO KqEQ} ]{6,46yy*r ,_{;a-`o-֎OY?n;xTj @@1Dm;n6}j7/$wghZc =2 ,b#ɔ܍'%}>{Nkn*dTҫZ69HO/ 4͇+_;}%t~w(zrC:''P<<3@sKG {Jƒ1 NRݛ>@Bf`bQ>࠘IqR>@A!-J /X~հSo֬tO5Ch^r=YJCOղ@&ɭBBJe  Fc:}@ډZP^NwoF4C~jp9ظ VɃ&UU:$VCM,Q&ބ;^p{{:YA%P].%a{
KemFd8ڈI{7k|4er4\ӽISs9$FW}iq:[J PikҸd-!)/ȗHIsX8n45>R$ZI/D{GIubc{T\{[MȦۥX<5?x {YF-mlm;EH1 d&? ofc{gl5rQ&VX{^J\A*C-˸&۳IYɓn7e%vVf^ 2{9q!YWH6?<P\NN;iCT1|sM,ʈ5Mvd77K0R&LJB__ EW)EڜfgZr8#.Ntrus,Vp;uQc {^+EBC$ 干ʙ/N^fbkJ\ߘ=ĂAʌ>U+{KĴ#5#{mZh]#(ʰp@&Ӝ܆Q2-AqH+N>: X2q4^p͢`$_{l6]n νs;HT)z/ \砭w w@KA M|Gzk~'>\,:bF(Som؄xIt_Qi %Rx~,G oPݜm4_LHb꓿EFBUkiB9 eT5N-W\E&>_yikHpmƪ!e7pk8ֺZԞzX2 ߳47JpEe`1D=vsmDl]w ciQ4hZ6"MJDcPk-UݷA/\&hexyۮDbfba32Qt2 l 㜽PHxT.zBI'IȚa+'\T݃3}G.BTOo )%/ْzvQjLQlNX#_d;\.Ik.6̌1cmߺ=x=dB3I]$ XHDѴ$M:TJ#c'G1ߤ;E_kbs\-JM2AV/3GR?#:#kٟ>}}G&2Mcr8˚@s: k`++\#9f4}~W;[Y~/ZeXzzړѢS˓:-&.u XE-{ d4YZ7l5Tsv;I!2Sv"s{EBtA9;c K~Z0Far}AeY>h֦_ǡd^VLQăBtf}ƤaFSsw %oN(=#x$oIR)6s'|g~OImA-8m9qQEd~w . Ls wUoq7}~;*rҗe,+'xAAKyd 1x'Hz,j5bڪ7ui˜TGv,.y.#ǗB2o9=kI5+s ,.%L2jgD]C#罼sƘٹTpOAb^ۑHfȀkC^Rʭ.W[9KHI?Ke$>)D]:Dq^=/{lTd:Z-x ى4:3OlHKY4GRr7҆c7]d$)\ Π|Ǩ`SL+|qa5orJ]^ESZǰ?ڼ2NƧV{ ~P -&H'a{4*0M^xi-e[A2VsI(yaZB!WK-r_Ȑj(VỴ'YBz~KB(8ڒV )P* )i2'ZTa-P1,R1Ўf( %W@4wbα|(m#7}0Sʤ (K>(6_\]@*M>[.e 4 L]t Q]nQZ8q4s~NN)G {7$i{A'}bI\9K"x怨r4N0|)ÔY}1=hC}#5TY,]j^1τ eJJ9sVGSt۾+jk4ZXOӻPҫl7T-POQKXZ:3Ji#A*t!qAv 0N)gɒRF}2kG4n,/LX: s*UlQ83csܩ%7-AHM~ ӌOUlLE 3ulJ'PW)\ 0BpnM͍eN|ald[Mt0ONDTCYZͯ=g6slRٿ_t.+P~?W-L=[?dl9lAyvbz7"K2cQ*)Pt nձv +eB˪'Zje)}&r̅,8_d)XR* }8W8"Har/C %F]̒0A Xخ7]x(TJ%tŞ G5";;NBحّhnPT*Ј+lЛɽKVne]u̹otRb%G0؋yNƜM|<\ZZ̷F.5Җ)~sgo%ؔݿG3(S+/b} 8 aVXE:о7uwD:Y"N`]G/JFg69Nl6pW@uF bV'c"]&0s}bWCln|h-ȯvLh.C)Cl\pQMm|w2bq1:}UJy9Ұw!!ћj-x};/ck䁙 nDlE4׻0IKX#zM;gɽ%^g+eQq# qYC ;xT0}IgU3Iqpqw7)wbYzLyu%n:u`#ḷS<  C0QnZ2SAgcF+4;MoL/p j;#M1Vpv)[c4/wkQ1$NBz\]GRA@8 -͔BXw5)׹fU=2ZbF6$q>'uKyE4ƨLRp>b2{2^V'˪6MTfF p#z)I~A;^8r,BֶzE}Ꙥ&%Ǟ'cH_:7e&?W4&ƬX.B/ܲϰ}]m gn~CZ*X5H>hnuHXޞw"Al)Iꈩ"~P0qΏ{ Pטm$ Z\z8*֡-,Ȁu ҷvȭɁ_wmw{nSvqXi+7=5@r'>??!W"ivtM8=]-=VTQ4_Xx6NBk9=IN OdWg:.RQ7g<95%a<۽WPAI TD( U{.}BEeHvYhg7}.WKjn1t5ٷ%CQ攮MWnYת侜TU{QRVD擏NLJV<TvS_x*H}aea0(ZBXd'WUw ErS?FB jE1{@,5Dɦ)q\^4Zq*ǘz:i .`bC@rqw8ҳB沣_Gme1{גq`d͚[2{ƊLn~h%1Kے_nq=ܧީ9(YX<˓_0Jwʏ4-DV[PDStlt5f1)oGNt#mX rm]P+X'em#Nc/rM:8 fj$DZ/I%LY-//zl!Tk)בl̮" ԉ~gUi*O-a7iE }]Hzq S4hI<+gF)!m!C{bki'D/yJ|+7dlߊ0CCpAu7A {O7&E^ӀƜrcqn%e9lKcgVs]Cre?A B}9l -Aڙ'l 1h$xJRhcQ=M C;$b.EÝdSz2ޚ!9Zmǿ{ZHZC3! ]9Fيif?;JX/BP$S}7,+b%~z0$A&Ñ}D#"no!F4eYh DRS K!#Yh?i2 3| ʿ̤C oIspsl qjƓْQ5-xdCh`}Ȥr.i0O/h;,QBM݈U&(={̷oSf"75r(;x Jt{Q &3:H֥vM+{V,7u B-C)?40SDH@4BK:hBYIi4f2:K"*Kwb3Lo.1|0xJ.sb_:,FGIs=ꉞZ*hl^dfe}1CKOsիU\hVcVpqR=BrwWQW8yTcO~bIg0Z2_ M)T濮g54<ǃ$X[2/E뼖N(}Fkʞb}?D+R{|uYk#m.A8TB0k(z+-RXghΑܦ3Š #}bJNֈήD\)9l ƍ72Gf'iЂNplM`6ϔ";#ߌŝ(WmL/Bx c &\)A:,yaR򺨱~QQ4*WG }Zp_B"K h^L}:BdS̳*n4q2,g)mC_vA Cuo`V7dS;Qgp#wVN5j@GLVt\Xؽa?<ܤ=˙s;:oLbtկbSFQ:W.HHr׿ }36PdWW v'y*Ar&߲  {K)ߟ&UBEPkx9 Fv/.WV6iԪ-F߹rOEFf<>w5mql/߬Y6+ͤ#]z"%5 "44nc_8"ȏ}"o}j.29K뤢w,XfVa)FcǗSd O4^eBkL,(ݕob NFfB j:5gi1և>~_Z}C+mCA}!ãG-6kpE( )wzF$67H^CCI|Qs aϟ~d̸w++|9}pF_rZV[r 3ug\xH]2ɋY8CY7Q aY/&^Tkq.;{FIo!8l2yt;Cb+6_\jw?]BJ^h 1HWޯ3CoEWh]"T],R,xz]E_@.DZP?߭q_N5 8쨐,{JB<Έ*@CIk9"q,WWjksX6ɜMNgЁr1ępz|3ZwlU!xBwkP LՔN:(-SSetgK\,Ž2< ? 9H{SxKʇX%q$ a-0q;NN0 !gҳk@7QI$ˆ#wNš(܄Yo<61+ jG_QsdW)]3ub>rh+ #xXΎd .|e;} K/Wv=»Xºv ki㇪UimDyE1Pj6-Sٜ!0Ɨ;=3U,vq*l{Il?z’404!$=}#d:+jmުeƍU⤴(<6vMjqs%NC(|(q0l0b|QGk?̨VS(F_?o-wWBQqH +B;63˞ĝ1m|֟is'h1eE"xFWnSO7eD'צlF0sAExw 9- 꽑C f {衶Fb"#&2i'kt Z߉j' 4LHK$Ds?3zcd[/+?%6174&g,m%]!mo9g[4w=&NZ9>cysh,G;8 endstream endobj 510 0 obj << /Type /FontDescriptor /FontName /GIGJJO+NimbusRomNo9L-ReguItal /Flags 4 /FontBBox [-169 -270 1010 924] /Ascent 668 /CapHeight 668 /Descent -193 /ItalicAngle -15 /StemV 78 /XHeight 441 /CharSet (/A/C/D/E/F/G/H/I/J/K/L/M/N/O/Odieresis/P/R/S/T/V/W/Z/a/b/c/comma/d/e/eight/endash/f/five/g/h/hyphen/i/k/l/m/n/o/one/p/parenleft/parenright/period/plus/r/s/seven/slash/t/three/two/u/udieresis/v/w/x/y/z/zero) /FontFile 509 0 R >> endobj 497 0 obj << /Type /Encoding /Differences [2/fi 14/Zcaron 33/exclam/quotedbl 39/quoteright/parenleft/parenright 43/plus/comma/hyphen/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon/semicolon 61/equal 63/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft 93/bracketright 95/underscore 97/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z 126/asciitilde 147/quotedblleft/quotedblright 150/endash 195/Atilde 214/Odieresis 220/Udieresis 223/germandbls 228/adieresis 252/udieresis] >> endobj 495 0 obj << /Type /Encoding /Differences [45/hyphen/period/slash/zero/one/two/three/four/five/six/seven/eight/nine/colon 60/less/equal/greater 65/A 67/C/D/E 73/I 76/L 78/N/O/P/Q/R/S/T 86/V 95/underscore 97/a/b/c/d/e/f/g/h/i 107/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z] >> endobj 431 0 obj << /Type /Font /Subtype /Type1 /BaseFont /GFAWRG+CMSY10 /FontDescriptor 502 0 R /FirstChar 15 /LastChar 15 /Widths 494 0 R >> endobj 401 0 obj << /Type /Font /Subtype /Type1 /BaseFont /TRLRZI+SFTT1095 /FontDescriptor 504 0 R /FirstChar 45 /LastChar 122 /Widths 496 0 R /Encoding 495 0 R >> endobj 276 0 obj << /Type /Font /Subtype /Type1 /BaseFont /BSMJZQ+NimbusRomNo9L-Medi /FontDescriptor 506 0 R /FirstChar 2 /LastChar 122 /Widths 499 0 R /Encoding 497 0 R >> endobj 275 0 obj << /Type /Font /Subtype /Type1 /BaseFont /MWYCRK+NimbusRomNo9L-Regu /FontDescriptor 508 0 R /FirstChar 2 /LastChar 252 /Widths 500 0 R /Encoding 497 0 R >> endobj 330 0 obj << /Type /Font /Subtype /Type1 /BaseFont /GIGJJO+NimbusRomNo9L-ReguItal /FontDescriptor 510 0 R /FirstChar 40 /LastChar 252 /Widths 498 0 R /Encoding 497 0 R >> endobj 278 0 obj << /Type /Pages /Count 6 /Parent 511 0 R /Kids [241 0 R 327 0 R 337 0 R 398 0 R 428 0 R 438 0 R] >> endobj 449 0 obj << /Type /Pages /Count 6 /Parent 511 0 R /Kids [445 0 R 460 0 R 473 0 R 477 0 R 482 0 R 486 0 R] >> endobj 493 0 obj << /Type /Pages /Count 1 /Parent 511 0 R /Kids [490 0 R] >> endobj 511 0 obj << /Type /Pages /Count 13 /Kids [278 0 R 449 0 R 493 0 R] >> endobj 512 0 obj << /Type /Outlines /First 3 0 R /Last 238 0 R /Count 6 >> endobj 238 0 obj << /Title 239 0 R /A 237 0 R /Parent 512 0 R /Prev 47 0 R >> endobj 235 0 obj << /Title 236 0 R /A 233 0 R /Parent 211 0 R /Prev 231 0 R >> endobj 231 0 obj << /Title 232 0 R /A 229 0 R /Parent 211 0 R /Prev 227 0 R /Next 235 0 R >> endobj 227 0 obj << /Title 228 0 R /A 225 0 R /Parent 211 0 R /Prev 223 0 R /Next 231 0 R >> endobj 223 0 obj << /Title 224 0 R /A 221 0 R /Parent 211 0 R /Prev 219 0 R /Next 227 0 R >> endobj 219 0 obj << /Title 220 0 R /A 217 0 R /Parent 211 0 R /Prev 215 0 R /Next 223 0 R >> endobj 215 0 obj << /Title 216 0 R /A 213 0 R /Parent 211 0 R /Next 219 0 R >> endobj 211 0 obj << /Title 212 0 R /A 209 0 R /Parent 47 0 R /Prev 167 0 R /First 215 0 R /Last 235 0 R /Count -6 >> endobj 207 0 obj << /Title 208 0 R /A 205 0 R /Parent 167 0 R /Prev 203 0 R >> endobj 203 0 obj << /Title 204 0 R /A 201 0 R /Parent 167 0 R /Prev 199 0 R /Next 207 0 R >> endobj 199 0 obj << /Title 200 0 R /A 197 0 R /Parent 167 0 R /Prev 195 0 R /Next 203 0 R >> endobj 195 0 obj << /Title 196 0 R /A 193 0 R /Parent 167 0 R /Prev 191 0 R /Next 199 0 R >> endobj 191 0 obj << /Title 192 0 R /A 189 0 R /Parent 167 0 R /Prev 187 0 R /Next 195 0 R >> endobj 187 0 obj << /Title 188 0 R /A 185 0 R /Parent 167 0 R /Prev 183 0 R /Next 191 0 R >> endobj 183 0 obj << /Title 184 0 R /A 181 0 R /Parent 167 0 R /Prev 179 0 R /Next 187 0 R >> endobj 179 0 obj << /Title 180 0 R /A 177 0 R /Parent 167 0 R /Prev 175 0 R /Next 183 0 R >> endobj 175 0 obj << /Title 176 0 R /A 173 0 R /Parent 167 0 R /Prev 171 0 R /Next 179 0 R >> endobj 171 0 obj << /Title 172 0 R /A 169 0 R /Parent 167 0 R /Next 175 0 R >> endobj 167 0 obj << /Title 168 0 R /A 165 0 R /Parent 47 0 R /Prev 147 0 R /Next 211 0 R /First 171 0 R /Last 207 0 R /Count -10 >> endobj 163 0 obj << /Title 164 0 R /A 161 0 R /Parent 147 0 R /Prev 159 0 R >> endobj 159 0 obj << /Title 160 0 R /A 157 0 R /Parent 147 0 R /Prev 155 0 R /Next 163 0 R >> endobj 155 0 obj << /Title 156 0 R /A 153 0 R /Parent 147 0 R /Prev 151 0 R /Next 159 0 R >> endobj 151 0 obj << /Title 152 0 R /A 149 0 R /Parent 147 0 R /Next 155 0 R >> endobj 147 0 obj << /Title 148 0 R /A 145 0 R /Parent 47 0 R /Prev 99 0 R /Next 167 0 R /First 151 0 R /Last 163 0 R /Count -4 >> endobj 143 0 obj << /Title 144 0 R /A 141 0 R /Parent 99 0 R /Prev 139 0 R >> endobj 139 0 obj << /Title 140 0 R /A 137 0 R /Parent 99 0 R /Prev 135 0 R /Next 143 0 R >> endobj 135 0 obj << /Title 136 0 R /A 133 0 R /Parent 99 0 R /Prev 131 0 R /Next 139 0 R >> endobj 131 0 obj << /Title 132 0 R /A 129 0 R /Parent 99 0 R /Prev 127 0 R /Next 135 0 R >> endobj 127 0 obj << /Title 128 0 R /A 125 0 R /Parent 99 0 R /Prev 123 0 R /Next 131 0 R >> endobj 123 0 obj << /Title 124 0 R /A 121 0 R /Parent 99 0 R /Prev 119 0 R /Next 127 0 R >> endobj 119 0 obj << /Title 120 0 R /A 117 0 R /Parent 99 0 R /Prev 115 0 R /Next 123 0 R >> endobj 115 0 obj << /Title 116 0 R /A 113 0 R /Parent 99 0 R /Prev 111 0 R /Next 119 0 R >> endobj 111 0 obj << /Title 112 0 R /A 109 0 R /Parent 99 0 R /Prev 107 0 R /Next 115 0 R >> endobj 107 0 obj << /Title 108 0 R /A 105 0 R /Parent 99 0 R /Prev 103 0 R /Next 111 0 R >> endobj 103 0 obj << /Title 104 0 R /A 101 0 R /Parent 99 0 R /Next 107 0 R >> endobj 99 0 obj << /Title 100 0 R /A 97 0 R /Parent 47 0 R /Prev 75 0 R /Next 147 0 R /First 103 0 R /Last 143 0 R /Count -11 >> endobj 95 0 obj << /Title 96 0 R /A 93 0 R /Parent 75 0 R /Prev 91 0 R >> endobj 91 0 obj << /Title 92 0 R /A 89 0 R /Parent 75 0 R /Prev 87 0 R /Next 95 0 R >> endobj 87 0 obj << /Title 88 0 R /A 85 0 R /Parent 75 0 R /Prev 83 0 R /Next 91 0 R >> endobj 83 0 obj << /Title 84 0 R /A 81 0 R /Parent 75 0 R /Prev 79 0 R /Next 87 0 R >> endobj 79 0 obj << /Title 80 0 R /A 77 0 R /Parent 75 0 R /Next 83 0 R >> endobj 75 0 obj << /Title 76 0 R /A 73 0 R /Parent 47 0 R /Prev 51 0 R /Next 99 0 R /First 79 0 R /Last 95 0 R /Count -5 >> endobj 71 0 obj << /Title 72 0 R /A 69 0 R /Parent 51 0 R /Prev 67 0 R >> endobj 67 0 obj << /Title 68 0 R /A 65 0 R /Parent 51 0 R /Prev 63 0 R /Next 71 0 R >> endobj 63 0 obj << /Title 64 0 R /A 61 0 R /Parent 51 0 R /Prev 59 0 R /Next 67 0 R >> endobj 59 0 obj << /Title 60 0 R /A 57 0 R /Parent 51 0 R /Prev 55 0 R /Next 63 0 R >> endobj 55 0 obj << /Title 56 0 R /A 53 0 R /Parent 51 0 R /Next 59 0 R >> endobj 51 0 obj << /Title 52 0 R /A 49 0 R /Parent 47 0 R /Next 75 0 R /First 55 0 R /Last 71 0 R /Count -5 >> endobj 47 0 obj << /Title 48 0 R /A 45 0 R /Parent 512 0 R /Prev 43 0 R /Next 238 0 R /First 51 0 R /Last 211 0 R /Count -6 >> endobj 43 0 obj << /Title 44 0 R /A 41 0 R /Parent 512 0 R /Prev 11 0 R /Next 47 0 R >> endobj 39 0 obj << /Title 40 0 R /A 37 0 R /Parent 11 0 R /Prev 27 0 R >> endobj 35 0 obj << /Title 36 0 R /A 33 0 R /Parent 27 0 R /Prev 31 0 R >> endobj 31 0 obj << /Title 32 0 R /A 29 0 R /Parent 27 0 R /Next 35 0 R >> endobj 27 0 obj << /Title 28 0 R /A 25 0 R /Parent 11 0 R /Prev 15 0 R /Next 39 0 R /First 31 0 R /Last 35 0 R /Count -2 >> endobj 23 0 obj << /Title 24 0 R /A 21 0 R /Parent 15 0 R /Prev 19 0 R >> endobj 19 0 obj << /Title 20 0 R /A 17 0 R /Parent 15 0 R /Next 23 0 R >> endobj 15 0 obj << /Title 16 0 R /A 13 0 R /Parent 11 0 R /Next 27 0 R /First 19 0 R /Last 23 0 R /Count -2 >> endobj 11 0 obj << /Title 12 0 R /A 9 0 R /Parent 512 0 R /Prev 7 0 R /Next 43 0 R /First 15 0 R /Last 39 0 R /Count -3 >> endobj 7 0 obj << /Title 8 0 R /A 5 0 R /Parent 512 0 R /Prev 3 0 R /Next 11 0 R >> endobj 3 0 obj << /Title 4 0 R /A 1 0 R /Parent 512 0 R /Next 7 0 R >> endobj 513 0 obj << /Names [(Doc-Start) 274 0 R (Item.1) 448 0 R (Item.2) 463 0 R (Item.3) 464 0 R (Item.4) 465 0 R (Item.5) 466 0 R] /Limits [(Doc-Start) (Item.5)] >> endobj 514 0 obj << /Names [(Item.6) 467 0 R (cite.ADCOM2007) 422 0 R (cite.AINTEC2007) 423 0 R (cite.Contel2005) 411 0 R (cite.Contel2009) 470 0 R (cite.Dre2006) 331 0 R] /Limits [(Item.6) (cite.Dre2006)] >> endobj 515 0 obj << /Names [(cite.Euromicro2007) 419 0 R (cite.FGCN2007-HsMgt) 410 0 R (cite.FGCN2007-LoadBalancing) 424 0 R (cite.ICDS2008-Failover) 421 0 R (cite.ICDS2008-LUD) 420 0 R (cite.IJAIT2009) 469 0 R] /Limits [(cite.Euromicro2007) (cite.IJAIT2009)] >> endobj 516 0 obj << /Names [(cite.IJHIT2008) 409 0 R (cite.JST2000b) 407 0 R (cite.Jun2005) 406 0 R (cite.KiVS2007) 412 0 R (cite.LCN2002) 468 0 R (cite.LCN2005) 417 0 R] /Limits [(cite.IJHIT2008) (cite.LCN2005)] >> endobj 517 0 obj << /Names [(cite.OMNeT++Workshop2008) 471 0 R (cite.RFC4960) 405 0 R (cite.RSerPoolPage) 332 0 R (cite.SCI2002a) 408 0 R (cite.Tencon2005) 418 0 R (cite.Valgrind) 433 0 R] /Limits [(cite.OMNeT++Workshop2008) (cite.Valgrind)] >> endobj 518 0 obj << /Names [(cite.WiresharkUsersGuide) 450 0 R (cite.draft-dreibholz-rserpool-asap-hropt) 414 0 R (cite.draft-dreibholz-rserpool-delay) 416 0 R (cite.draft-dreibholz-rserpool-enrp-takeover) 403 0 R (cite.draft-tuexen-sctp-udp-encaps) 434 0 R (cite.rfc-rserpool-asap) 413 0 R] /Limits [(cite.WiresharkUsersGuide) (cite.rfc-rserpool-asap)] >> endobj 519 0 obj << /Names [(cite.rfc-rserpool-common-param) 404 0 R (cite.rfc-rserpool-enrp) 402 0 R (cite.rfc-rserpool-overview) 334 0 R (cite.rfc-rserpool-policies) 415 0 R (cite.sctplib) 432 0 R (figure.1) 333 0 R] /Limits [(cite.rfc-rserpool-common-param) (figure.1)] >> endobj 520 0 obj << /Names [(figure.2) 335 0 R (page.1) 273 0 R (page.10) 479 0 R (page.11) 484 0 R (page.12) 488 0 R (page.13) 492 0 R] /Limits [(figure.2) (page.13)] >> endobj 521 0 obj << /Names [(page.2) 329 0 R (page.3) 339 0 R (page.4) 400 0 R (page.5) 430 0 R (page.6) 440 0 R (page.7) 447 0 R] /Limits [(page.2) (page.7)] >> endobj 522 0 obj << /Names [(page.8) 462 0 R (page.9) 475 0 R (section*.1) 277 0 R (section*.2) 480 0 R (section.1) 2 0 R (section.2) 6 0 R] /Limits [(page.8) (section.2)] >> endobj 523 0 obj << /Names [(section.3) 10 0 R (section.4) 42 0 R (section.5) 46 0 R (subsection.3.1) 14 0 R (subsection.3.2) 26 0 R (subsection.3.3) 38 0 R] /Limits [(section.3) (subsection.3.3)] >> endobj 524 0 obj << /Names [(subsection.5.1) 50 0 R (subsection.5.2) 74 0 R (subsection.5.3) 98 0 R (subsection.5.4) 146 0 R (subsection.5.5) 166 0 R (subsection.5.6) 210 0 R] /Limits [(subsection.5.1) (subsection.5.6)] >> endobj 525 0 obj << /Names [(subsubsection.3.1.1) 18 0 R (subsubsection.3.1.2) 22 0 R (subsubsection.3.2.1) 30 0 R (subsubsection.3.2.2) 34 0 R (subsubsection.5.1.1) 54 0 R (subsubsection.5.1.2) 58 0 R] /Limits [(subsubsection.3.1.1) (subsubsection.5.1.2)] >> endobj 526 0 obj << /Names [(subsubsection.5.1.3) 62 0 R (subsubsection.5.1.4) 66 0 R (subsubsection.5.1.5) 70 0 R (subsubsection.5.2.1) 78 0 R (subsubsection.5.2.2) 82 0 R (subsubsection.5.2.3) 86 0 R] /Limits [(subsubsection.5.1.3) (subsubsection.5.2.3)] >> endobj 527 0 obj << /Names [(subsubsection.5.2.4) 90 0 R (subsubsection.5.2.5) 94 0 R (subsubsection.5.3.1) 102 0 R (subsubsection.5.3.10) 138 0 R (subsubsection.5.3.11) 142 0 R (subsubsection.5.3.2) 106 0 R] /Limits [(subsubsection.5.2.4) (subsubsection.5.3.2)] >> endobj 528 0 obj << /Names [(subsubsection.5.3.3) 110 0 R (subsubsection.5.3.4) 114 0 R (subsubsection.5.3.5) 118 0 R (subsubsection.5.3.6) 122 0 R (subsubsection.5.3.7) 126 0 R (subsubsection.5.3.8) 130 0 R] /Limits [(subsubsection.5.3.3) (subsubsection.5.3.8)] >> endobj 529 0 obj << /Names [(subsubsection.5.3.9) 134 0 R (subsubsection.5.4.1) 150 0 R (subsubsection.5.4.2) 154 0 R (subsubsection.5.4.3) 158 0 R (subsubsection.5.4.4) 162 0 R (subsubsection.5.5.1) 170 0 R] /Limits [(subsubsection.5.3.9) (subsubsection.5.5.1)] >> endobj 530 0 obj << /Names [(subsubsection.5.5.10) 206 0 R (subsubsection.5.5.2) 174 0 R (subsubsection.5.5.3) 178 0 R (subsubsection.5.5.4) 182 0 R (subsubsection.5.5.5) 186 0 R (subsubsection.5.5.6) 190 0 R] /Limits [(subsubsection.5.5.10) (subsubsection.5.5.6)] >> endobj 531 0 obj << /Names [(subsubsection.5.5.7) 194 0 R (subsubsection.5.5.8) 198 0 R (subsubsection.5.5.9) 202 0 R (subsubsection.5.6.1) 214 0 R (subsubsection.5.6.2) 218 0 R (subsubsection.5.6.3) 222 0 R] /Limits [(subsubsection.5.5.7) (subsubsection.5.6.3)] >> endobj 532 0 obj << /Names [(subsubsection.5.6.4) 226 0 R (subsubsection.5.6.5) 230 0 R (subsubsection.5.6.6) 234 0 R] /Limits [(subsubsection.5.6.4) (subsubsection.5.6.6)] >> endobj 533 0 obj << /Kids [513 0 R 514 0 R 515 0 R 516 0 R 517 0 R 518 0 R] /Limits [(Doc-Start) (cite.rfc-rserpool-asap)] >> endobj 534 0 obj << /Kids [519 0 R 520 0 R 521 0 R 522 0 R 523 0 R 524 0 R] /Limits [(cite.rfc-rserpool-common-param) (subsection.5.6)] >> endobj 535 0 obj << /Kids [525 0 R 526 0 R 527 0 R 528 0 R 529 0 R 530 0 R] /Limits [(subsubsection.3.1.1) (subsubsection.5.5.6)] >> endobj 536 0 obj << /Kids [531 0 R 532 0 R] /Limits [(subsubsection.5.5.7) (subsubsection.5.6.6)] >> endobj 537 0 obj << /Kids [533 0 R 534 0 R 535 0 R 536 0 R] /Limits [(Doc-Start) (subsubsection.5.6.6)] >> endobj 538 0 obj << /Dests 537 0 R >> endobj 539 0 obj << /Type /Catalog /Pages 511 0 R /Outlines 512 0 R /Names 538 0 R /PageMode/UseOutlines /OpenAction 240 0 R >> endobj 540 0 obj << /Author(Thomas Dreibholz)/Title(Evaluation of a Simple Load Balancing Improvement for Reliable Server Pooling with Heterogeneous Server Pools)/Subject(Reliable Server Pooling)/Creator(LaTeX with hyperref package)/Producer(pdfTeX-1.40.10)/Keywords(Reliable Server Pooling, Redundancy, Load Balancing, Heterogeneous Pools, Performance Evaluation) /CreationDate (D:20121221160210+01'00') /ModDate (D:20121221160210+01'00') /Trapped /False /PTEX.Fullbanner (This is pdfTeX, Version 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) kpathsea version 5.0.0) >> endobj xref 0 541 0000000000 65535 f 0000000015 00000 n 0000020670 00000 n 0000228457 00000 n 0000000060 00000 n 0000000090 00000 n 0000020725 00000 n 0000228373 00000 n 0000000135 00000 n 0000000170 00000 n 0000093313 00000 n 0000228250 00000 n 0000000215 00000 n 0000000246 00000 n 0000093369 00000 n 0000228139 00000 n 0000000297 00000 n 0000000349 00000 n 0000093425 00000 n 0000228065 00000 n 0000000405 00000 n 0000000461 00000 n 0000097316 00000 n 0000227991 00000 n 0000000517 00000 n 0000000583 00000 n 0000097372 00000 n 0000227867 00000 n 0000000634 00000 n 0000000687 00000 n 0000097428 00000 n 0000227793 00000 n 0000000743 00000 n 0000000778 00000 n 0000100781 00000 n 0000227719 00000 n 0000000834 00000 n 0000000883 00000 n 0000103737 00000 n 0000227645 00000 n 0000000934 00000 n 0000000977 00000 n 0000108104 00000 n 0000227557 00000 n 0000001023 00000 n 0000001054 00000 n 0000108581 00000 n 0000227430 00000 n 0000001100 00000 n 0000001133 00000 n 0000109901 00000 n 0000227319 00000 n 0000001184 00000 n 0000001226 00000 n 0000109957 00000 n 0000227245 00000 n 0000001282 00000 n 0000001320 00000 n 0000110012 00000 n 0000227158 00000 n 0000001376 00000 n 0000001414 00000 n 0000110067 00000 n 0000227071 00000 n 0000001470 00000 n 0000001507 00000 n 0000110123 00000 n 0000226984 00000 n 0000001563 00000 n 0000001603 00000 n 0000110179 00000 n 0000226910 00000 n 0000001659 00000 n 0000001696 00000 n 0000110235 00000 n 0000226786 00000 n 0000001747 00000 n 0000001780 00000 n 0000110291 00000 n 0000226712 00000 n 0000001836 00000 n 0000001884 00000 n 0000110347 00000 n 0000226625 00000 n 0000001940 00000 n 0000001990 00000 n 0000110403 00000 n 0000226538 00000 n 0000002046 00000 n 0000002089 00000 n 0000110459 00000 n 0000226451 00000 n 0000002145 00000 n 0000002186 00000 n 0000110515 00000 n 0000226377 00000 n 0000002242 00000 n 0000002284 00000 n 0000110571 00000 n 0000226248 00000 n 0000002335 00000 n 0000002389 00000 n 0000110627 00000 n 0000226170 00000 n 0000002446 00000 n 0000002483 00000 n 0000110684 00000 n 0000226078 00000 n 0000002540 00000 n 0000002602 00000 n 0000110741 00000 n 0000225986 00000 n 0000002659 00000 n 0000002694 00000 n 0000110798 00000 n 0000225894 00000 n 0000002751 00000 n 0000002788 00000 n 0000110855 00000 n 0000225802 00000 n 0000002845 00000 n 0000002887 00000 n 0000110911 00000 n 0000225710 00000 n 0000002944 00000 n 0000002986 00000 n 0000110968 00000 n 0000225618 00000 n 0000003043 00000 n 0000003079 00000 n 0000111025 00000 n 0000225526 00000 n 0000003136 00000 n 0000003171 00000 n 0000111082 00000 n 0000225434 00000 n 0000003228 00000 n 0000003265 00000 n 0000111139 00000 n 0000225342 00000 n 0000003323 00000 n 0000003364 00000 n 0000111196 00000 n 0000225264 00000 n 0000003422 00000 n 0000003463 00000 n 0000111253 00000 n 0000225134 00000 n 0000003515 00000 n 0000003575 00000 n 0000111310 00000 n 0000225055 00000 n 0000003632 00000 n 0000003671 00000 n 0000111366 00000 n 0000224962 00000 n 0000003728 00000 n 0000003769 00000 n 0000111423 00000 n 0000224869 00000 n 0000003826 00000 n 0000003863 00000 n 0000111480 00000 n 0000224790 00000 n 0000003920 00000 n 0000003958 00000 n 0000111537 00000 n 0000224658 00000 n 0000004010 00000 n 0000004067 00000 n 0000111594 00000 n 0000224579 00000 n 0000004124 00000 n 0000004168 00000 n 0000111650 00000 n 0000224486 00000 n 0000004225 00000 n 0000004269 00000 n 0000111706 00000 n 0000224393 00000 n 0000004326 00000 n 0000004364 00000 n 0000111762 00000 n 0000224300 00000 n 0000004421 00000 n 0000004466 00000 n 0000111818 00000 n 0000224207 00000 n 0000004523 00000 n 0000004561 00000 n 0000111874 00000 n 0000224114 00000 n 0000004618 00000 n 0000004660 00000 n 0000111931 00000 n 0000224021 00000 n 0000004717 00000 n 0000004752 00000 n 0000111987 00000 n 0000223928 00000 n 0000004809 00000 n 0000004844 00000 n 0000112044 00000 n 0000223835 00000 n 0000004901 00000 n 0000004937 00000 n 0000112101 00000 n 0000223756 00000 n 0000004995 00000 n 0000005030 00000 n 0000112159 00000 n 0000223639 00000 n 0000005082 00000 n 0000005143 00000 n 0000112217 00000 n 0000223560 00000 n 0000005200 00000 n 0000005240 00000 n 0000112275 00000 n 0000223467 00000 n 0000005297 00000 n 0000005339 00000 n 0000112333 00000 n 0000223374 00000 n 0000005396 00000 n 0000005448 00000 n 0000112391 00000 n 0000223281 00000 n 0000005505 00000 n 0000005551 00000 n 0000112449 00000 n 0000223188 00000 n 0000005608 00000 n 0000005654 00000 n 0000112507 00000 n 0000223109 00000 n 0000005711 00000 n 0000005758 00000 n 0000223031 00000 n 0000005815 00000 n 0000005845 00000 n 0000007288 00000 n 0000007643 00000 n 0000007818 00000 n 0000007969 00000 n 0000008119 00000 n 0000008270 00000 n 0000008426 00000 n 0000008588 00000 n 0000008750 00000 n 0000008906 00000 n 0000009068 00000 n 0000009230 00000 n 0000009386 00000 n 0000009537 00000 n 0000009688 00000 n 0000009844 00000 n 0000010006 00000 n 0000010168 00000 n 0000010330 00000 n 0000010492 00000 n 0000010654 00000 n 0000010809 00000 n 0000010970 00000 n 0000011132 00000 n 0000011294 00000 n 0000011454 00000 n 0000011614 00000 n 0000011769 00000 n 0000011931 00000 n 0000014344 00000 n 0000012262 00000 n 0000005897 00000 n 0000012092 00000 n 0000012148 00000 n 0000222216 00000 n 0000222043 00000 n 0000012205 00000 n 0000222567 00000 n 0000014506 00000 n 0000014667 00000 n 0000014829 00000 n 0000014991 00000 n 0000015153 00000 n 0000015315 00000 n 0000015476 00000 n 0000015638 00000 n 0000015801 00000 n 0000015957 00000 n 0000016118 00000 n 0000016278 00000 n 0000016440 00000 n 0000016602 00000 n 0000016758 00000 n 0000016919 00000 n 0000017081 00000 n 0000017243 00000 n 0000017405 00000 n 0000017566 00000 n 0000017728 00000 n 0000017890 00000 n 0000018052 00000 n 0000018212 00000 n 0000018374 00000 n 0000018530 00000 n 0000018692 00000 n 0000018854 00000 n 0000019016 00000 n 0000019178 00000 n 0000019340 00000 n 0000019502 00000 n 0000019663 00000 n 0000019817 00000 n 0000021317 00000 n 0000067869 00000 n 0000019975 00000 n 0000020125 00000 n 0000020294 00000 n 0000020445 00000 n 0000089191 00000 n 0000089356 00000 n 0000089542 00000 n 0000089715 00000 n 0000089870 00000 n 0000090023 00000 n 0000090179 00000 n 0000020780 00000 n 0000013901 00000 n 0000012347 00000 n 0000020614 00000 n 0000222389 00000 n 0000115961 00000 n 0000116075 00000 n 0000085630 00000 n 0000120460 00000 n 0000085692 00000 n 0000085753 00000 n 0000021198 00000 n 0000020878 00000 n 0000085574 00000 n 0000021689 00000 n 0000021963 00000 n 0000054885 00000 n 0000055013 00000 n 0000055166 00000 n 0000055315 00000 n 0000055338 00000 n 0000055615 00000 n 0000055998 00000 n 0000056302 00000 n 0000056718 00000 n 0000056932 00000 n 0000056953 00000 n 0000057163 00000 n 0000057184 00000 n 0000062032 00000 n 0000067825 00000 n 0000067847 00000 n 0000068237 00000 n 0000068511 00000 n 0000071264 00000 n 0000071392 00000 n 0000071545 00000 n 0000071694 00000 n 0000071716 00000 n 0000071985 00000 n 0000072356 00000 n 0000072704 00000 n 0000073164 00000 n 0000073378 00000 n 0000073399 00000 n 0000073609 00000 n 0000073630 00000 n 0000078004 00000 n 0000085530 00000 n 0000085552 00000 n 0000090335 00000 n 0000090491 00000 n 0000090649 00000 n 0000090806 00000 n 0000090961 00000 n 0000091126 00000 n 0000091309 00000 n 0000091482 00000 n 0000091650 00000 n 0000091828 00000 n 0000091982 00000 n 0000092135 00000 n 0000092293 00000 n 0000092453 00000 n 0000092612 00000 n 0000092776 00000 n 0000092931 00000 n 0000093088 00000 n 0000096422 00000 n 0000096577 00000 n 0000096737 00000 n 0000093481 00000 n 0000088860 00000 n 0000085866 00000 n 0000093257 00000 n 0000221879 00000 n 0000123193 00000 n 0000120061 00000 n 0000120631 00000 n 0000120517 00000 n 0000120232 00000 n 0000120346 00000 n 0000120289 00000 n 0000116474 00000 n 0000116303 00000 n 0000116132 00000 n 0000116360 00000 n 0000120574 00000 n 0000116018 00000 n 0000119947 00000 n 0000120004 00000 n 0000116189 00000 n 0000116246 00000 n 0000120118 00000 n 0000123420 00000 n 0000116531 00000 n 0000123249 00000 n 0000123363 00000 n 0000123306 00000 n 0000096931 00000 n 0000097085 00000 n 0000097483 00000 n 0000096251 00000 n 0000093592 00000 n 0000097260 00000 n 0000221736 00000 n 0000120687 00000 n 0000123136 00000 n 0000123079 00000 n 0000100176 00000 n 0000100336 00000 n 0000100837 00000 n 0000100021 00000 n 0000097594 00000 n 0000100725 00000 n 0000100531 00000 n 0000103514 00000 n 0000106336 00000 n 0000103850 00000 n 0000103375 00000 n 0000100948 00000 n 0000103681 00000 n 0000103793 00000 n 0000222684 00000 n 0000120403 00000 n 0000106498 00000 n 0000106653 00000 n 0000106815 00000 n 0000106970 00000 n 0000107127 00000 n 0000107282 00000 n 0000107438 00000 n 0000107596 00000 n 0000108160 00000 n 0000106133 00000 n 0000103948 00000 n 0000107763 00000 n 0000107819 00000 n 0000107876 00000 n 0000107933 00000 n 0000107990 00000 n 0000108047 00000 n 0000112623 00000 n 0000116588 00000 n 0000120175 00000 n 0000116417 00000 n 0000108637 00000 n 0000108406 00000 n 0000108258 00000 n 0000108525 00000 n 0000112681 00000 n 0000109726 00000 n 0000108709 00000 n 0000109845 00000 n 0000112565 00000 n 0000116645 00000 n 0000115786 00000 n 0000112779 00000 n 0000115905 00000 n 0000120744 00000 n 0000119772 00000 n 0000116730 00000 n 0000119891 00000 n 0000123477 00000 n 0000122904 00000 n 0000120829 00000 n 0000123023 00000 n 0000222801 00000 n 0000123562 00000 n 0000221464 00000 n 0000123585 00000 n 0000220929 00000 n 0000124072 00000 n 0000124920 00000 n 0000125397 00000 n 0000126371 00000 n 0000133478 00000 n 0000133705 00000 n 0000168065 00000 n 0000168470 00000 n 0000183911 00000 n 0000184343 00000 n 0000204602 00000 n 0000205230 00000 n 0000220487 00000 n 0000222878 00000 n 0000222956 00000 n 0000228528 00000 n 0000228696 00000 n 0000228905 00000 n 0000229168 00000 n 0000229384 00000 n 0000229629 00000 n 0000229986 00000 n 0000230262 00000 n 0000230433 00000 n 0000230595 00000 n 0000230770 00000 n 0000230970 00000 n 0000231193 00000 n 0000231453 00000 n 0000231713 00000 n 0000231979 00000 n 0000232245 00000 n 0000232511 00000 n 0000232779 00000 n 0000233045 00000 n 0000233221 00000 n 0000233347 00000 n 0000233486 00000 n 0000233619 00000 n 0000233720 00000 n 0000233827 00000 n 0000233865 00000 n 0000233993 00000 n trailer << /Size 541 /Root 539 0 R /Info 540 0 R /ID [ ] >> startxref 234563 %%EOF rsplib-3.0.1/depcomp0000755000175000017500000004755612065040221011315 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2011-12-04.11; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, # 2011 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test "$stat" = 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/ \1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/ / G p }' >> "$depfile" rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: rsplib-3.0.1/aclocal.m40000664000175000017500000127446312065103162011606 00000000000000# generated automatically by aclocal 1.11.3 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, # Inc. # This file 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. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, [m4_warning([this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software # Foundation, Inc. # # This file 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. # serial 1 # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.3], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.3])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file 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. # serial 1 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file 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. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, # 2010, 2011 Free Software Foundation, Inc. # # This file 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. # serial 12 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file 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. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file 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. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file 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. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, # Inc. # # This file 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. # serial 1 # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file 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. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file 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. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file 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. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, # Inc. # # This file 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. # serial 1 # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software # Foundation, Inc. # # This file 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. # serial 5 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file 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. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file 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. # serial 1 # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. # # This file 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. # serial 3 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. # # This file 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. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR # Configure paths for GLIB # Owen Taylor 1997-2001 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject, dnl gthread, or gio is specified in MODULES, pass to pkg-config dnl AC_DEFUN([AM_PATH_GLIB_2_0], [dnl dnl Get the cflags and libraries from pkg-config dnl AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], , enable_glibtest=yes) pkg_config_args=glib-2.0 for module in . $4 do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; gio*) pkg_config_args="$pkg_config_args $module-2.0" ;; esac done PKG_PROG_PKG_CONFIG([0.16]) no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi min_glib_version=ifelse([$1], ,2.0.0,$1) AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" dnl dnl Now check if the installed GLIB is sufficiently new. (Also sanity dnl checks the results of pkg-config to some extent) dnl rm -f conf.glibtest AC_TRY_RUN([ #include #include #include int main () { unsigned int major, minor, micro; char *tmp_version; fclose (fopen ("conf.glibtest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" AC_TRY_LINK([ #include #include ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed."]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" GLIB_COMPILE_RESOURCES="" ifelse([$3], , :, [$3]) fi AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) AC_SUBST(GLIB_GENMARSHAL) AC_SUBST(GOBJECT_QUERY) AC_SUBST(GLIB_MKENUMS) AC_SUBST(GLIB_COMPILE_RESOURCES) rm -f conf.glibtest ]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file 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. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 57 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # `#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test $lt_write_fail = 0 && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_REPLACE_SHELLFNS mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test "$lt_cv_ld_force_load" = "yes"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script which will find a shell with a builtin # printf (which we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case "$ECHO" in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified).], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([${with_sysroot}]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and in which our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) _LT_TAGVAR(link_all_deplibs, $1)=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi _LT_TAGVAR(link_all_deplibs, $1)=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS="$save_LDFLAGS"]) if test "$lt_cv_irix_exported_symbol" = yes; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) # ------------------------------------------------------ # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. m4_defun([_LT_PROG_FUNCTION_REPLACE], [dnl { sed -e '/^$1 ()$/,/^} # $1 /c\ $1 ()\ {\ m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: ]) # _LT_PROG_REPLACE_SHELLFNS # ------------------------- # Replace existing portable implementations of several shell functions with # equivalent extended shell implementations where those features are available.. m4_defun([_LT_PROG_REPLACE_SHELLFNS], [if test x"$xsi_shell" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"}]) _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl func_split_long_opt_name=${1%%=*} func_split_long_opt_arg=${1#*=}]) _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) fi if test x"$lt_shell_append" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl func_quote_for_eval "${2}" dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) fi ]) # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine which file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, # Inc. # Written by Gary V. Vaughan, 2004 # # This file 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. # serial 7 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file 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. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file 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. # @configure_input@ # serial 3337 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.2]) m4_define([LT_PACKAGE_REVISION], [1.3337]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2' macro_revision='1.3337' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file 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. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES m4_include([acinclude.m4]) rsplib-3.0.1/README0000664000175000017500000003174311777021057010630 00000000000000A. FIRST STEPS How to set up a simple test of the rsplib-3.x.y release: 1. If, AND ONLY IF, you would like to use the sctplib/socketapi *userland* SCTP implementation, do the following two steps first: 1.a. Get latest sctplib-****.tar.gz archive and install it by - Unpack the Tar/GZip archive - ./configure - make - make install (as root!) 1.b. Get latest socketapi-****.tar.gz and install it by - Unpack the Tar/GZip archive - ./configure - make - make install (as root!) 2. Get latest rsplib-****.tar.gz and install it by - Unpack the Tar/GZip archive - If, AND ONLY IF, you would like to use sctplib/socketapi SCTP userland implementation (if unsure, you do *NOT* want this!): ./configure --disable-kernel-sctp OTHERWISE (i.e. for kernel SCTP): ./configure - make - make install (Only necessary if you want an installation; as root!) Optional "configure" Parameters: --enable-qt: Enables Qt 4.x usage; this is necessary for the Fractal Generator client! Without Qt, the client's compilation will be skipped. --disable-qt: Disables Qt usage; the Fractal Generator client will *not* be available. (DEFAULT) --enable-maintainer-mode: Enable the creation of debug symbols (-g) and turn off compiler optimization. Necessary for debugging, but makes programs much larger and slower. (DEFAULT) --disable-maintainer-mode: Disables maintainer mode. The code will be optimized and without debugging symbols. Node: Please turn on the maintainer mode if you discover any problems and report bugs to us! --enable-hsmgtverify: Enable Handlespace Management verification. This is useful for debugging only (makes the PR slow!) --disable-hsmgtverify: Turns off Handlespace Management verification. (DEFAULT) --enable-csp: Enable the Component Status Protocol support (strongly recommended!) (DEFAULT) --disable-csp: Turns the Component Status Protocol support off. 3. Ensure that multicast is working! - You need a configured network interface with: + at least a private address (192.168.x.y; 10.a.b.c; 172.16.n.m - 172.31.i.j) + having the multicast flag set (e.g. "ifconfig multicast") even if you want to make tests only via loopback! Multicast-announces do not work correctly otherwise! If you have a dummy device, configure it appropriately: root# ifconfig dummy0 10.255.255.1 netmask 255.255.255.0 broadcast 10.255.255.255 up multicast - Ensure that your firewall settings for the ethernet interface allow UDP packets to/from the registrar (ASAP Announce/ENRP Presence) as well as ASAP/ENRP traffic over SCTP. 4. Start at least one registrar ./registrar-example (You can start multiple registrars; they may also run on different hosts, of course) Alternatively, start the registrar directly: ./registrar -asap=auto -asapannounce=auto -enrp=auto -enrpannounce=auto See also chapter D for registrar parameters. 5. Start at least one pool element ./poolelement-example (You can start multiple pool elements; they may also run on different hosts, of course. If it complains about finding no registrar, check the multicast settings!) 6. Start a pool user ./pooluser-example (If it complains about finding no registrar, check the multicast settings!) Now, you have to manually enter text lines on standard input. 7. If everything works, you can test RSerPool functionality by stopping the pool element and watching the failover. 8. You can monitor the status of each component using the Component Status Protocol client "cspclient". Simply start it by "./cspmonitor". It will listen for status messages sent via UDP on port 2960. The components (registrar, rspserver, etc.) accept the command line arguments "-cspserver=:" and "-cspinterval=". For example, if you want a status update every 300ms and your CSP client is listening on port 2960 of host 1.2.3.4, use the arguments "-cspserver=1.2.3.4:2960 -cspinterval=300". NOTE: You *must* specify address AND interval, otherwise no messages are sent. 9. You can use Wireshark (http://www.wireshark.org) to observe the RSerPool and demo protocol traffic. Coloring rules and filters can be found in the directory "rsplib/wireshark" Simply copy "colorfilters", "dfilters" and optionally "preferences" to ~/.wireshark (or /root/.wireshark). Dissectors for the application protocols are already included in recent Wireshark distributions! B. DEMO POOL ELEMENTS (SERVERS) All demo servers can be started using the ./rspserver program. It takes a set of common parameters as well as some service-specific arguments. These parameters are explained in the following. Note: For most of the provided services, the latest version of Wireshark (http://www.wireshark.org) already includes the packets dissectors! B.1 Common Parameters -loglevel=0-9: Sets the logging verbosity from 0 (none) to 9 (very verbose). -logcolor=on|off: Turns ANSI colorization of the logging output on or off. -logfile=filename: Write logging output to a file (default is stdout). -poolhandle=PH: Sets the PH to a non-default value; otherwise, the default setting will be the service-specific default (see below). -registrar=Address:Port: Adds a static PR entry into the Registrar Table. It is possible to add multiple entries. -asapannounce=Address:Port: Sets the multicast address and port the ASAP instance listens for ASAP Server Announces on. -rereginterval=milliseconds: Sets the PE's re-registration interval (in ms). -runtime=seconds: After the configured amount of seconds, the service is shut down. -quiet: Do not print startup and shutdown messages. -policy=Policy...: Sets the pool policy and its parameters: Valid Settings: - Random - WeightedRandom:Weight - RoundRobin - WeightedRoundRobin:Weight - LeastUsed - LeastUsedDegradation:Degradation (0 to 1) B.2 Echo Service -echo: Selects Echo service. The default PH will be "EchoPool". B.3 Discard Service -discard: Selects Discard service. The default PH will be "DiscardPool". B.4 Daytime Service -daytime: Selects Daytime service. The default PH will be "DaytimePool". B.5 Character Generator Service -chargen: Selects Character Generator service. The default PH will be "ChargenPool". B.6 Ping Pong Service -pingpong: Selects Ping Pong service. The default PH will be "PingPongPool". -pppfailureafter=number: After the set number of packets, the server will terminate the connection in order to test failovers. -pppmaxthreads=threads: Sets the maximum number of simultaneous sessions. B.7 Fractal Generator Service -fractal: Selects the Fractal Generator service. The default PH will be "FractalGeneratorPool". -fgpcookiemaxtime: Send cookie after given number of milliseconds. -fgpcookiemaxpackets: Send cookie after given number of Data messages. -fgptransmittimeout: Set transmit timeout in milliseconds (timeout for rsp_sendmsg()). -fgptestmode: Generate simple test pattern instead of calculating a fractal graphics (useful to conserve CPU power). -fgpfailureafter=number: After the set number of data packets, the server will terminate the connection in order to test failovers. -fgpmaxthreads=threads: Sets the maximum number of simultaneous sessions. C. DEMO POOL USERS (CLIENTS) C.1 Common Parameters -loglevel=0-9: Sets the logging verbosity from 0 (none) to 9 (very verbose). -logcolor=on|off: Turns ANSI colorization of the logging output on or off. -logfile=filename: Write logging output to a file (default is stdout). -poolhandle=PH: Sets the PH. C.2 Terminal (e.g. for Echo, Discard, Daytime and Chargen services) Start with ./rspterminal; the default PH is EchoPool. C.3 Fractal Client (for the Fractal Generator service) ./fractalpooluser -configdir=Directory: Sets a directory to look for FGP config files. From all FGP files (pattern: *.fgp) in this directory, random files are selected for the calculation of requests. -threads=Count: Sets the number of parallel sessions for the calculation of an image. -caption=Title: Sets the window title. C.4 Ping Pong Client (for the Fractal Generator service) ./pingpong -interval=milliseconds: Sets the Ping interval. D. REGISTRAR Start with ./registrar. By default, the auto-configuration (for ASAP as well as for ENRP) is turned off! The script "./registrar-example" is provided for convenience and starts the registrar with auto-configuration turned on. In most cases, you want the following command line: ./registrar -asap=auto -asapannounce=auto -enrp=auto -enrpmulticast=auto D.1 Common Parameters -loglevel=0-9: Sets the logging verbosity from 0 (none) to 9 (very verbose). -logcolor=on|off: Turns ANSI colorization of the logging output on or off. -logfile=filename: Write logging output to a file (default is stdout). -peer=Address:Port: Adds a static PR entry into the Peer List. It is possible to add multiple entries. D.2 ASAP Parameters -asap=auto|address:port{,address}: Sets the ASAP endpoint address(es). Use "auto" to automatically set it (default). Examples: -asap=auto -asap=1.2.3.4:3863 -asap=1.2.3.4:3863,[2000::1:2:3],9.8.7.6 -asapannounce=auto|address:port: Sets the multicast address and UDP port to send the ASAP Announces to. Use "auto" for default. Examples: -asapannounce=auto -asapannounce=239.0.0.1:3863 -maxbadpereports=reports: Sets the maximum number of ASAP Endpoint Unreachable reports before removing a PE. -endpointkeepalivetransmissioninterval=milliseconds: Sets the ASAP Endpoint Keep Alive interval. -endpointkeepalivetimeoutinterval=milliseconds: Sets the ASAP Endpoint Keep Alive timeout. -serverannouncecycle=milliseconds: Sets the ASAP Announce interval. -autoclosetimeout=seconds: Sets the SCTP autoclose timeout for idle ASAP associations. -minaddressscope: Sets the minimum address scope acceptable for registered PEs: * loopback: Loopback address (only valid on the same node!) * site-local: Site-local addresses (e.g. 192.168.1.1, etc.) * global: Global addresses -quiet: Do not print startup and shutdown messages. D.3 ENRP Parameters -enrp=auto|address:port{,address}: Sets the ENRP endpoint address(es). Use "auto" to automatically set it (default). Examples: -enrp=auto -enrp=1.2.3.4:9901 -enrp=1.2.3.4:9901,[2000::1:2:3],9.8.7.6 -enrpannounce=auto|address:port: Sets the multicast address and UDP port to send the ENRP Announces to. Use "auto" for default. Examples: -enrpannounce=auto -enrpannounce=239.0.0.1:9901 -peerheartbeatcycle=milliseconds: Sets the ENRP peer heartbeat interval. -peermaxtimelastheard=milliseconds: Sets the ENRP peer max time last heard. -peermaxtimenoresponse=milliseconds: Sets the ENRP maximum time without response. -takeoverexpiryinterval=milliseconds: Sets the ENRP takeover timeout. -mentorhuntinterval=milliseconds: Sets the mentor PR hunt interval. E. COMPONENT STATUS PROTOCOL The Component Status Protocol is a simple UDP-based protocol for RSerPool components to send their status to a central monitoring component. A console-based receiver is ./cspmonitor; it receives the status updates by default on UDP port 2960. In order to send status information, the registrar as well as all servers and clients described in section B provide two parameters: -cspserver=Address:Port: Sets the CSP monitor server's address and port. -cspinterval=Interval: Sets the interval for the CSP status updates in milliseconds. Note: Both parameters MUST be provided in order to send status updates! ================================================================================== Please subscribe to our mailing list and report any problems you discover! Help us to improve rsplib, the world's first Open Source RSerPool implementation! Visit http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ for more information ================================================================================== 06.06.2012 Thomas Dreibholz, dreibh@iem.uni-due.de rsplib-3.0.1/ltmain.sh0000644000175000017500000105204011657416066011565 00000000000000 # libtool (GNU libtool) 2.4.2 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --no-warn don't display warning messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION="2.4.2 Debian-2.4.2-1ubuntu1" TIMESTAMP="" package_revision=1.3337 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_warning=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-warning|--no-warn) opt_warning=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$absdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) func_fatal_configuration "$modename: unknown library version type \`$version_type'" ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then # Remove ${wl} instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" func_resolve_sysroot "$deplib" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 rsplib-3.0.1/configure0000775000175000017500000223724012065103164011650 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for rsplib 3.0.1. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='rsplib' PACKAGE_TARNAME='rsplib' PACKAGE_VERSION='3.0.1' PACKAGE_STRING='rsplib 3.0.1' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_unique_file="rsplib/rspbasicmode.c" ac_default_prefix=/usr/local # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS RSPLIB_RELEASE RSPLIB_AGE RSPLIB_REVISION RSPLIB_CURRENT bz2_LIBS MOC QT_LDADD QT_CXXFLAGS BUILD_QT_PROGRAMS_FALSE BUILD_QT_PROGRAMS_TRUE glib_LIBS socketapi_LIBS sctplib_LIBS GLIB_COMPILE_RESOURCES GLIB_MKENUMS GOBJECT_QUERY GLIB_GENMARSHAL GLIB_LIBS GLIB_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG thread_LIBS BUILD_TEST_PROGRAMS_FALSE BUILD_TEST_PROGRAMS_TRUE ENABLE_REGISTRAR_STATISTICS_FALSE ENABLE_REGISTRAR_STATISTICS_TRUE COLORGCC CXXCPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL LN_S am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock with_max_loglevel enable_csp enable_hsmgtverify enable_qt enable_maintainer_mode enable_registrar_statistics enable_test_programs enable_kernel_sctp with_sctplib with_socketapi enable_glibtest with_qt_dir with_qt_include with_qt_lib with_qt_bin ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures rsplib 3.0.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/rsplib] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of rsplib 3.0.1:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-csp enable CSP support default=yes] --enable-hsmgtverify enable handlespace management verification default=no --enable-qt enable QT-based examples default=no] --enable-maintainer-mode enable maintainer mode default=yes] --enable-registrar-statistics enable registrar statistics logging option (requires libbz2) default=yes] --enable-test-programs build with batch test programs default=no] --enable-kernel-sctp use kernel SCTP instead of sctplibdefault=yes] --disable-glibtest do not try to compile and run a test GLIB program Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-max-loglevel Highest supported logging level [9] --with-sctplib=DIR where the root of sctplib is installed --with-socketapi=DIR where the root of socketapi is installed --with-qt-dir=/path/to/Qt-4.x to specify the path to the Qt-4.x directory. --with-qt-include=/path/to/Qt-4.x include to specify the path to the Qt-4.x include directory --with-qt-lib=/path/to/Qt-4.x lib to specify the path to the Qt-4.x lib directory --with-qt-binaries=/path/to/Qt-4.x binaries to specify the path to the Qt-4.x binaries directory Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF rsplib configure 3.0.1 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- # Tries to find if the field MEMBER exists in type AGGR, after including # INCLUDES, setting cache variable VAR accordingly. ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 $as_echo_n "checking for $2.$3... " >&6; } if eval \${$4+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main () { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main () { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" else eval "$4=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$4 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by rsplib $as_me 3.0.1, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac if test "x$prefix" = "xNONE"; then prefix=$ac_default_prefix ac_configure_args="$ac_configure_args --prefix $prefix" fi ac_config_headers="$ac_config_headers config.h" am__api_version='1.11' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='rsplib' VERSION='3.0.1' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # ###### Checks for programs ################################################ ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.2' macro_revision='1.3337' ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 $as_echo "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; *-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD="${LD-ld}_sol2" fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test $_lt_result -eq 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for lt_pkg in $withval; do IFS="$lt_save_ifs" if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS="$lt_save_ifs" ;; esac else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec_CXX='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty # executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared # libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi else ld_shlibs_CXX=no fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; linux* | k*bsd*-gnu | gnu*) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='NetBSD ld.elf_so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink || test "$inherit_rpath_CXX" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_commands="$ac_config_commands libtool" # Only expand once: # ###### colorgcc ########################################################### # Extract the first word of "colorgcc", so it can be a program name with args. set dummy colorgcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_COLORGCC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$COLORGCC"; then ac_cv_prog_COLORGCC="$COLORGCC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_COLORGCC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_COLORGCC" && ac_cv_prog_COLORGCC="no" fi fi COLORGCC=$ac_cv_prog_COLORGCC if test -n "$COLORGCC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLORGCC" >&5 $as_echo "$COLORGCC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$COLORGCC" == "yes" then { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling using colorgcc" >&5 $as_echo "$as_me: Compiling using colorgcc" >&6;} CC=colorgcc CXX=colorgcc fi # ###### Options ############################################################ # Check whether --with-max-loglevel was given. if test "${with_max_loglevel+set}" = set; then : withval=$with_max_loglevel; max_loglevel=${withval} else max_loglevel=9 fi cat >>confdefs.h <<_ACEOF #define MAX_LOGLEVEL ${max_loglevel} _ACEOF # Check whether --enable-csp was given. if test "${enable_csp+set}" = set; then : enableval=$enable_csp; enable_csp=$enableval else enable_csp=yes fi if test "${enable_csp}" = "yes"; then $as_echo "#define ENABLE_CSP 1" >>confdefs.h fi # Check whether --enable-hsmgtverify was given. if test "${enable_hsmgtverify+set}" = set; then : enableval=$enable_hsmgtverify; enable_hsmgtverify=$enableval else enable_hsmgtverify=no fi if test "${enable_hsmgtverify}" = "yes"; then $as_echo "#define VERIFY 1" >>confdefs.h fi # Check whether --enable-qt was given. if test "${enable_qt+set}" = set; then : enableval=$enable_qt; enable_qt=$enableval else enable_qt=no fi # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; enable_maintainer_mode=$enableval else enable_maintainer_mode=yes fi # Check whether --enable-registrar-statistics was given. if test "${enable_registrar_statistics+set}" = set; then : enableval=$enable_registrar_statistics; enable_registrar_statistics=$enableval else enable_registrar_statistics=yes fi if test "${enable_registrar_statistics}" = "yes"; then $as_echo "#define ENABLE_REGISTRAR_STATISTICS 1" >>confdefs.h fi if test x$enable_registrar_statistics = xyes; then ENABLE_REGISTRAR_STATISTICS_TRUE= ENABLE_REGISTRAR_STATISTICS_FALSE='#' else ENABLE_REGISTRAR_STATISTICS_TRUE='#' ENABLE_REGISTRAR_STATISTICS_FALSE= fi # Check whether --enable-test-programs was given. if test "${enable_test_programs+set}" = set; then : enableval=$enable_test_programs; enable_test_programs=$enableval else enable_test_programs=no fi if test x$enable_test_programs = xyes; then BUILD_TEST_PROGRAMS_TRUE= BUILD_TEST_PROGRAMS_FALSE='#' else BUILD_TEST_PROGRAMS_TRUE='#' BUILD_TEST_PROGRAMS_FALSE= fi # ###### Check for sin6_scope_id of sockaddr_in6 ############################ if test "$cv_ipv6" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5 $as_echo_n "checking whether struct sockaddr_in6 has a sin6_scope_id field... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { static struct sockaddr_in6 ac_i;int ac_j = sizeof(ac_i.sin6_scope_id); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_SIN6_SCOPE_ID 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi # ###### Operating system checks ############################################ case $host_os in bsdi*) CFLAGS="$CFLAGS -DBSDI" thread_LIBS="-lpthread" CFLAGS="$CFLAGS `glib-config --cflags`" LDFLAGS="$LDFLAGS `glib-config --libs`" ;; freebsd*) CFLAGS="$CFLAGS -DFreeBSD -D_PTHREADS -pthread -I/usr/local/include -DHAVE_CONNECTX_WITH_ID" CXXFLAGS="$CXXFLAGS -DFreeBSD -D_PTHREADS -pthread -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/v6/lib" thread_LIBS="" ;; hpux*) CFLAGS="$CFLAGS -DSNAKE" test -z "$GCC" && TRY_CFLAGS="$TRY_CFLAGS -Wp,-H600000" thread_LIBS="-lpthread" ;; linux*) CFLAGS="$CFLAGS -DLINUX -D_GNU_SOURCE -D_FORTIFY_SOURCE=2" CXXFLAGS="$CXXFLAGS -DLINUX -D_GNU_SOURCE -std=c++98 -D_FORTIFY_SOURCE=2" LDFLAGS="$LDFLAGS" thread_LIBS="-lpthread" ;; openbsd*) LIBS="$LIBS -lcompat" thread_LIBS="-lpthread" ;; solaris*) CFLAGS="$CFLAGS -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5" CXXFLAGS="$CXXFLAGS -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5" thread_LIBS="-lpthread" LDFLAGS="$LDFLAGS -lsocket -lnsl -lrt -lresolv" ;; sunos4*) CFLAGS="$CFLAGS -DSUN -DSUN4" thread_LIBS="-lpthread" ;; darwin*) CFLAGS="$CFLAGS -DDARWIN -DUSE_SELECT -DHAVE_CONNECTX_WITH_ID" CXXFLAGS="$CXXFLAGS -DDARWIN" thread_LIBS="-lpthread" ;; esac # ###### Networking declarations ############################################ for ac_header in sys/types.h sys/socket.h netinet/in.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 $as_echo_n "checking for socklen_t... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_TYPES_H #include #endif #include int main () { socklen_t x = 1; return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 $as_echo "int" >&6; } $as_echo "#define socklen_t int" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stderr is a variable of type FILE* and not a macro" >&5 $as_echo_n "checking if stderr is a variable of type FILE* and not a macro... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE** stdlog = &stderr ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : $as_echo "#define HAVE_STDERR_FILEPTR 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'struct sockaddr' has sa_len" >&5 $as_echo_n "checking whether 'struct sockaddr' has sa_len... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_TYPES_H #include #endif #include int main () { static struct sockaddr sa; int i = sizeof(sa.sa_len); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'struct sockaddr_in' has sin_len" >&5 $as_echo_n "checking whether 'struct sockaddr_in' has sin_len... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_TYPES_H #include #endif #include int main () { static struct sockaddr_in in; int i = sizeof(in.sin_len); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_SIN_LEN 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'struct sockaddr_in6' has sin6_len" >&5 $as_echo_n "checking whether 'struct sockaddr_in6' has sin6_len... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef HAVE_SYS_TYPES_H #include #endif #include int main () { static struct sockaddr_in6 in; int i = sizeof(in.sin6_len); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_SIN6_LEN 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext for ac_func in socket do : ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" if test "x$ac_cv_func_socket" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SOCKET 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 $as_echo_n "checking for socket in -lsocket... " >&6; } if ${ac_cv_lib_socket_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_socket=yes else ac_cv_lib_socket_socket=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 $as_echo "$ac_cv_lib_socket_socket" >&6; } if test "x$ac_cv_lib_socket_socket" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSOCKET 1 _ACEOF LIBS="-lsocket $LIBS" fi fi done # ###### Check if kernel SCTP should be used ################################ # Check whether --enable-kernel-sctp was given. if test "${enable_kernel_sctp+set}" = set; then : enableval=$enable_kernel_sctp; enable_kernel_sctp=$enableval else enable_kernel_sctp=yes fi # ###### Check for SCTP implementation ###################################### if test "x$enable_kernel_sctp" = "xno"; then # ====== sctplib ========================================================= ac_sctplib_includes=no ac_sctplib_libraries=no ac_sctplib_bindir=no sctplib_libraries="" sctplib_includes="" # Check whether --with-sctplib was given. if test "${with_sctplib+set}" = set; then : withval=$with_sctplib; ac_sctplib_includes="$withval"/include ac_sctplib_libraries="$withval"/lib ac_sctplib_bindir="$withval"/bin fi if test "$ac_sctplib_libraries" = "no"; then ac_sctplib_defaultdir="/usr/local" ac_sctplib_includes="$ac_sctplib_defaultdir"/include ac_sctplib_libraries="$ac_sctplib_defaultdir"/lib ac_sctplib_bindir="$ac_sctplib_defaultdir"/bin fi if test ! -e "$ac_sctplib_includes/sctp.h" ; then as_fn_error $? "No sctplib installation found ($ac_sctplib_includes/sctp.h)!" "$LINENO" 5 fi if test ! -e $ac_sctplib_libraries/libsctplib.a ; then as_fn_error $? "No sctplib installation found ($ac_sctplib_libraries/libsctplib.a)!" "$LINENO" 5 fi # ====== socketapi ======================================================= ac_socketapi_includes=no ac_socketapi_libraries=no ac_socketapi_bindir=no socketapi_libraries="" socketapi_includes="" # Check whether --with-socketapi was given. if test "${with_socketapi+set}" = set; then : withval=$with_socketapi; ac_socketapi_includes="$withval"/include ac_socketapi_libraries="$withval"/lib ac_socketapi_bindir="$withval"/bin fi if test "$ac_socketapi_libraries" = "no"; then ac_socketapi_defaultdir="/usr/local" ac_socketapi_includes="$ac_socketapi_defaultdir"/include ac_socketapi_libraries="$ac_socketapi_defaultdir"/lib ac_socketapi_bindir="$ac_socketapi_defaultdir"/bin fi if test ! -e $ac_socketapi_libraries/libsctpsocket.a ; then as_fn_error $? "No socketapi installation found ($ac_socketapi_libraries/libsctpsocket.a)!" "$LINENO" 5 fi # In maintainer mode, use static linking for sctplib/socketapi! if test "$enable_maintainer_mode" = "yes"; then sctplib_LIBS="$ac_sctplib_libraries/libsctplib.a" socketapi_LIBS="$ac_socketapi_libraries/libsctpsocket.a -lstdc++" else sctplib_LIBS="-L$ac_sctplib_libraries -lsctplib" socketapi_LIBS="-L$ac_socketapi_libraries -lsctpsocket -lstdc++" fi $as_echo "#define HAVE_SPP_FLAGS 1" >>confdefs.h # ====== Check for glib ================================================== # Check whether --enable-glibtest was given. if test "${enable_glibtest+set}" = set; then : enableval=$enable_glibtest; else enable_glibtest=yes fi pkg_config_args=glib-2.0 for module in . do case "$module" in gmodule) pkg_config_args="$pkg_config_args gmodule-2.0" ;; gmodule-no-export) pkg_config_args="$pkg_config_args gmodule-no-export-2.0" ;; gobject) pkg_config_args="$pkg_config_args gobject-2.0" ;; gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; gio*) pkg_config_args="$pkg_config_args $module-2.0" ;; esac done if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.16 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi no_glib="" if test "x$PKG_CONFIG" = x ; then no_glib=yes PKG_CONFIG=no fi min_glib_version=2.4.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; } if test x$PKG_CONFIG != xno ; then ## don't try to run the test against uninstalled libtool libs if $PKG_CONFIG --uninstalled $pkg_config_args; then echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" enable_glibtest=no fi if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then : else no_glib=yes fi fi if test x"$no_glib" = x ; then GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` if test "x$enable_glibtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$GLIB_LIBS $LIBS" rm -f conf.glibtest if test "$cross_compiling" = yes; then : echo $ac_n "cross compiling; assumed OK... $ac_c" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { unsigned int major, minor, micro; char *tmp_version; fclose (fopen ("conf.glibtest", "w")); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = g_strdup("$min_glib_version"); if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_glib_version"); exit(1); } if ((glib_major_version != $glib_config_major_version) || (glib_minor_version != $glib_config_minor_version) || (glib_micro_version != $glib_config_micro_version)) { printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, glib_major_version, glib_minor_version, glib_micro_version); printf ("*** was found! If pkg-config was correct, then it is best\n"); printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); printf("*** required on your system.\n"); printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); printf("*** to point to the correct configuration files\n"); } else if ((glib_major_version != GLIB_MAJOR_VERSION) || (glib_minor_version != GLIB_MINOR_VERSION) || (glib_micro_version != GLIB_MICRO_VERSION)) { printf("*** GLIB header files (version %d.%d.%d) do not match\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); printf("*** library (version %d.%d.%d)\n", glib_major_version, glib_minor_version, glib_micro_version); } else { if ((glib_major_version > major) || ((glib_major_version == major) && (glib_minor_version > minor)) || ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) { return 0; } else { printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", glib_major_version, glib_minor_version, glib_micro_version); printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", major, minor, micro); printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); printf("***\n"); printf("*** If you have already installed a sufficiently new version, this error\n"); printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); printf("*** being found. The easiest way to fix this is to remove the old version\n"); printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); printf("*** correct copy of pkg-config. (In this case, you will have to\n"); printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); printf("*** so that the correct libraries are found at run-time))\n"); } } return 1; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else no_glib=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_glib" = x ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if test "$PKG_CONFIG" = "no" ; then echo "*** A new enough version of pkg-config was not found." echo "*** See http://www.freedesktop.org/software/pkgconfig/" else if test -f conf.glibtest ; then : else echo "*** Could not run GLIB test program, checking why..." ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS" LIBS="$LIBS $GLIB_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GLIB or finding the wrong" echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means GLIB is incorrectly installed." fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GLIB_CFLAGS="" GLIB_LIBS="" GLIB_GENMARSHAL="" GOBJECT_QUERY="" GLIB_MKENUMS="" GLIB_COMPILE_RESOURCES="" as_fn_error $? "GLib installation not found." "$LINENO" 5 fi rm -f conf.glibtest CFLAGS="$CFLAGS $GLIB_CFLAGS" CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS" glib_LIBS="$GLIB_LIBS" # ====== Version compatibility test ====================================== oldLIBS=$LIBS LIBS="$LIBS $socketapi_LIBS $sctplib_LIBS $glib_LIBS $thread_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking socketapi library version" >&5 $as_echo_n "checking socketapi library version... " >&6; } if test "$cross_compiling" = yes; then : socketapi_version=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include "ext_socket.h" int main(int argc, char** argv) { unsigned int version = socketAPIGetVersion(); printf("Version is %u.%04x\n", (version >> 16), version & 0xffff); if(version >= 0x21100) { return(0); } return(1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : socketapi_version=good else socketapi_version=bad fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi case $socketapi_version in good) ;; bad|*) as_fn_error $? "You need at least version 2.110 of the socketapi library!" "$LINENO" 5 ;; esac $as_echo "#define HAVE_SCTP_SENDMSG 1" >>confdefs.h $as_echo "#define HAVE_SCTP_CONNECTX 1" >>confdefs.h $as_echo "#define HAVE_SCTP_SEND 1" >>confdefs.h $as_echo "#define HAVE_SCTP_SENDX 1" >>confdefs.h $as_echo "#define HAVE_SPP_FLAGS 1" >>confdefs.h $as_echo "#define HAVE_CONNECTX_WITH_ID 1" >>confdefs.h $as_echo "#define HAVE_SCTP_DELAYED_SACK 1" >>confdefs.h LIBS=$oldLIBS # ======================================================================== else # ====== Kernel SCTP ===================================================== oldLIBS=$LIBS for ac_func in sctp_sendmsg do : ac_fn_c_check_func "$LINENO" "sctp_sendmsg" "ac_cv_func_sctp_sendmsg" if test "x$ac_cv_func_sctp_sendmsg" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SCTP_SENDMSG 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_sendmsg in -lsctp" >&5 $as_echo_n "checking for sctp_sendmsg in -lsctp... " >&6; } if ${ac_cv_lib_sctp_sctp_sendmsg+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsctp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sctp_sendmsg (); int main () { return sctp_sendmsg (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sctp_sctp_sendmsg=yes else ac_cv_lib_sctp_sctp_sendmsg=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sctp_sctp_sendmsg" >&5 $as_echo "$ac_cv_lib_sctp_sctp_sendmsg" >&6; } if test "x$ac_cv_lib_sctp_sctp_sendmsg" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSCTP 1 _ACEOF LIBS="-lsctp $LIBS" fi fi done for ac_func in sctp_connectx do : ac_fn_c_check_func "$LINENO" "sctp_connectx" "ac_cv_func_sctp_connectx" if test "x$ac_cv_func_sctp_connectx" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SCTP_CONNECTX 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_connectx in -lsctp" >&5 $as_echo_n "checking for sctp_connectx in -lsctp... " >&6; } if ${ac_cv_lib_sctp_sctp_connectx+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsctp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sctp_connectx (); int main () { return sctp_connectx (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sctp_sctp_connectx=yes else ac_cv_lib_sctp_sctp_connectx=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sctp_sctp_connectx" >&5 $as_echo "$ac_cv_lib_sctp_sctp_connectx" >&6; } if test "x$ac_cv_lib_sctp_sctp_connectx" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSCTP 1 _ACEOF LIBS="-lsctp $LIBS" fi fi done case $host_os in linux*) { $as_echo "$as_me:${as_lineno-$LINENO}: LK-SCTP's sctp_send() is broken. Using wrapper." >&5 $as_echo "$as_me: LK-SCTP's sctp_send() is broken. Using wrapper." >&6;} ;; *) for ac_func in sctp_send do : ac_fn_c_check_func "$LINENO" "sctp_send" "ac_cv_func_sctp_send" if test "x$ac_cv_func_sctp_send" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SCTP_SEND 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_send in -lsctp" >&5 $as_echo_n "checking for sctp_send in -lsctp... " >&6; } if ${ac_cv_lib_sctp_sctp_send+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsctp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sctp_send (); int main () { return sctp_send (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sctp_sctp_send=yes else ac_cv_lib_sctp_sctp_send=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sctp_sctp_send" >&5 $as_echo "$ac_cv_lib_sctp_sctp_send" >&6; } if test "x$ac_cv_lib_sctp_sctp_send" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSCTP 1 _ACEOF LIBS="-lsctp $LIBS" fi fi done ;; esac for ac_func in sctp_sendx do : ac_fn_c_check_func "$LINENO" "sctp_sendx" "ac_cv_func_sctp_sendx" if test "x$ac_cv_func_sctp_sendx" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SCTP_SENDX 1 _ACEOF else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_sendx in -lsctp" >&5 $as_echo_n "checking for sctp_sendx in -lsctp... " >&6; } if ${ac_cv_lib_sctp_sctp_sendx+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsctp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sctp_sendx (); int main () { return sctp_sendx (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sctp_sctp_sendx=yes else ac_cv_lib_sctp_sctp_sendx=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sctp_sctp_sendx" >&5 $as_echo "$ac_cv_lib_sctp_sctp_sendx" >&6; } if test "x$ac_cv_lib_sctp_sctp_sendx" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSCTP 1 _ACEOF LIBS="-lsctp $LIBS" fi fi done ac_fn_c_check_member "$LINENO" "struct sctp_paddrparams" "spp_flags" "ac_cv_member_struct_sctp_paddrparams_spp_flags" "#ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_NETINET_SCTP_H #include #endif " if test "x$ac_cv_member_struct_sctp_paddrparams_spp_flags" = xyes; then : $as_echo "#define HAVE_SPP_FLAGS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sctp_connectx has an associd parameter" >&5 $as_echo_n "checking whether sctp_connectx has an associd parameter... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { sctp_assoc_t id; int result = sctp_connectx(0, 0, 0, &id); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_CONNECTX_WITH_ID 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP_DELAYED_SACK with sctp_sack_info is available" >&5 $as_echo_n "checking whether SCTP_DELAYED_SACK with sctp_sack_info is available... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct sctp_sack_info sctpSACKInfo; int opt = SCTP_DELAYED_SACK; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_SCTP_DELAYED_SACK 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext LIBS=$oldLIBS # ====== Check for Valgrind ============================================== # Needed to avoid false positives for sctp_getladdrs()/sctp_getpaddrs() for ac_header in valgrind/valgrind.h do : ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VALGRIND_VALGRIND_H 1 _ACEOF fi done for ac_header in valgrind/memcheck.h do : ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VALGRIND_MEMCHECK_H 1 _ACEOF fi done # ====== Check for SCTP library linker parameter ========================= sctplib_LIBS="" socketapi_LIBS="" sctp_okay=0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_sendmsg in -lsctp" >&5 $as_echo_n "checking for sctp_sendmsg in -lsctp... " >&6; } if ${ac_cv_lib_sctp_sctp_sendmsg+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsctp $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sctp_sendmsg (); int main () { return sctp_sendmsg (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sctp_sctp_sendmsg=yes else ac_cv_lib_sctp_sctp_sendmsg=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sctp_sctp_sendmsg" >&5 $as_echo "$ac_cv_lib_sctp_sctp_sendmsg" >&6; } if test "x$ac_cv_lib_sctp_sctp_sendmsg" = xyes; then : socketapi_LIBS="-lsctp" sctp_okay=1 fi if test $sctp_okay -ne 1 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sctp_sendmsg in -lc" >&5 $as_echo_n "checking for sctp_sendmsg in -lc... " >&6; } if ${ac_cv_lib_c_sctp_sendmsg+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sctp_sendmsg (); int main () { return sctp_sendmsg (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_sctp_sendmsg=yes else ac_cv_lib_c_sctp_sendmsg=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sctp_sendmsg" >&5 $as_echo "$ac_cv_lib_c_sctp_sendmsg" >&6; } if test "x$ac_cv_lib_c_sctp_sendmsg" = xyes; then : socketapi_LIBS="" sctp_okay=1 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether library parameter for SCTP functions" >&5 $as_echo_n "checking whether library parameter for SCTP functions... " >&6; } if test $sctp_okay -ne 1 ; then as_fn_error $? "Do not know where to find SCTP functions! Missing libsctp?" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: appending \"$socketapi_LIBS\"" >&5 $as_echo "appending \"$socketapi_LIBS\"" >&6; } fi glib_LIBS="" CFLAGS="$CFLAGS -DHAVE_KERNEL_SCTP" CXXFLAGS="$CXXFLAGS -DHAVE_KERNEL_SCTP" fi # ###### Check for IEEE-754 complient float-point handling ################## { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floating point type" >&5 $as_echo_n "checking for floating point type... " >&6; } if test "$cross_compiling" = yes; then : IEEEFP=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include union DoubleIntUnion { double Double; unsigned long long Integer; }; /* void hexdump(const void* ptr, const size_t length) { const unsigned char* cptr = (const unsigned char*)ptr; size_t i; for(i = 0;i < length;i++) { printf("%02x ", cptr[i]); } puts(""); } */ int main () { union DoubleIntUnion value; value.Double = 0.0; if(value.Integer != 0ULL) { /* puts("Math is non-IEEE (check 1)!\n"); */ return(1); } value.Double = 1000.5; if(value.Integer != 0x408f440000000000ULL) { /* puts("Math is non-IEEE (check 2)!\n"); */ return(1); } value.Double = -1000.5; if(value.Integer != 0xc08f440000000000ULL) { /* puts("Math is non-IEEE (check 3)!\n"); */ return(1); } /* puts("Math is IEEE\n"); */ return(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : IEEEFP=ok else IEEEFP=broken fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi case $IEEEFP in ok) { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE" >&5 $as_echo "IEEE" >&6; } $as_echo "#define HAVE_IEEE_FP 1" >>confdefs.h ;; cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming IEEE" >&5 $as_echo "cross-compiling, assuming IEEE" >&6; } $as_echo "#define HAVE_IEEE_FP 1" >>confdefs.h ;; *|broken) { $as_echo "$as_me:${as_lineno-$LINENO}: result: non IEEE" >&5 $as_echo "non IEEE" >&6; } ;; esac # ###### Check for Qt, if it is requested ################################### if test x$enable_qt = xyes; then BUILD_QT_PROGRAMS_TRUE= BUILD_QT_PROGRAMS_FALSE='#' else BUILD_QT_PROGRAMS_TRUE='#' BUILD_QT_PROGRAMS_FALSE= fi if test "${enable_qt}" = "yes"; then QT_REQUIRED_COMPONENTS="QtCore QtGui QtXml" QT_DEFAULT_INCLUDE_PATHS="/usr/share/qt4/include /usr/local/include/qt4 /usr/include/qt4 /usr/include" QT_DEFAULT_LIBRARY_PATHS="/usr/lib /usr/local/lib /usr/local/qt4/lib /usr/local/lib/qt4 /usr/share/qt4/lib `cat 2>/dev/null /etc/ld.so.conf.d/*.conf | sed -e "/# /d"` /usr/lib64" QT_DEFAULT_BINARY_PATHS="/usr/bin /usr/local/bin /usr/local/qt4/bin /usr/share/qt4/bin" QTPOSTFIX="-qt4" QTEXTRAINC="" QTEXTRALIB="" QT_LDADD="" QT_CXXFLAGS="" MOC="" # ====== Directory ========================================================== # Check whether --with-qt-dir was given. if test "${with_qt_dir+set}" = set; then : withval=$with_qt_dir; QTDIR="$withval" else QTDIR="" fi if test x$QTDIR != x ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt 4.x directory" >&5 $as_echo_n "checking Qt 4.x directory... " >&6; } if test ! -d $x ; then as_fn_error $? "Bad setting of Qt directory. Check --qt-dir parameter!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 $as_echo "okay" >&6; } fi # ====== Includes =========================================================== { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt 4.x includes directory" >&5 $as_echo_n "checking Qt 4.x includes directory... " >&6; } # Check whether --with-qt-include was given. if test "${with_qt_include+set}" = set; then : withval=$with_qt_include; QT_INCLUDE_PATHS="$withval" else QT_INCLUDE_PATHS="$QT_DEFAULT_INCLUDE_PATHS" fi if test x$QTDIR != x ; then QT_INCLUDE_PATHS="$QTDIR/include" fi QTEXTRAINC="" for x in $QT_INCLUDE_PATHS ; do echo -n "$x? " if test -d $x ; then QTEXTRAINC="$x" break fi done if test x$QTEXTRAINC = x ; then as_fn_error $? "No Qt 4.x include directory found. Try --with-qt-include=." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: --> $QTEXTRAINC" >&5 $as_echo "--> $QTEXTRAINC" >&6; } # ====== Libraries ========================================================== { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt 4.x libraries directory" >&5 $as_echo_n "checking Qt 4.x libraries directory... " >&6; } # Check whether --with-qt-lib was given. if test "${with_qt_lib+set}" = set; then : withval=$with_qt_lib; QT_LIBRARY_PATHS="$withval" else QT_LIBRARY_PATHS="$QT_DEFAULT_LIBRARY_PATHS" fi if test x$QTDIR != x ; then QT_LIBRARY_PATHS="$QTDIR/include" fi QTEXTRALIB="" for x in $QT_LIBRARY_PATHS ; do echo -n "$x? " if test -d $x ; then # The libraries directory must contain libQtCore. Otherwise, # this directory is not the right one! if test -f $x/libQtCore.so -o -f $x/libQtCore.a ; then QTEXTRALIB="$x" break fi fi done if test x$QTEXTRALIB = x ; then as_fn_error $? "No Qt 4.x libraries directory found. Try --with-qt-lib=." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: --> $QTEXTRALIB" >&5 $as_echo "--> $QTEXTRALIB" >&6; } # ====== Components ========================================================= QT_CXXFLAGS="$QT_CXXFLAGS -I$QTEXTRAINC" QT_LDADD="-L$QTEXTRALIB" # OLD: "-Wl,-rpath,$QTEXTRALIB -L$QTEXTRALIB" for x in $QT_REQUIRED_COMPONENTS ; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt 4.x component $x" >&5 $as_echo_n "checking Qt 4.x component $x... " >&6; } if ! test -e $QTEXTRALIB/lib$x.so ; then if ! test -e $QTEXTRALIB/lib$x.a ; then as_fn_error $? "Component $x is not available: no $QTEXTRALIB/lib$x.so or $QTEXTRALIB/lib$x.a found!" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 $as_echo "okay" >&6; } QT_LDADD="$QT_LDADD -l$x" QT_CXXFLAGS="$QT_CXXFLAGS -I$QTEXTRAINC/$x" done QT_LDADD="$QT_LDADD $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lpthread" { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CXXFLAGS" >&5 $as_echo_n "checking QT_CXXFLAGS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CXXFLAGS" >&5 $as_echo "$QT_CXXFLAGS" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LDADD" >&5 $as_echo_n "checking QT_LDADD... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LDADD" >&5 $as_echo "$QT_LDADD" >&6; } # ====== Programs =========================================================== # Check whether --with-qt-bin was given. if test "${with_qt_bin+set}" = set; then : withval=$with_qt_bin; QT_BINARY_PATHS="$withval" else QT_BINARY_PATHS="$QT_DEFAULT_BINARY_PATHS" fi if test x$QTDIR != x ; then QT_BINARY_PATHS="$QTDIR/bin" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt 4.x meta-object compiler moc$QTPOSTFIX" >&5 $as_echo_n "checking Qt 4.x meta-object compiler moc$QTPOSTFIX... " >&6; } for p in $QT_BINARY_PATHS ; do echo -n "$p/moc$QTPOSTFIX? " if test -e $p/moc$QTPOSTFIX ; then MOC="$p/moc$QTPOSTFIX" break fi done if test x$MOC = x ; then as_fn_error $? "moc$QTPOSTFIX not found!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 $as_echo "$MOC" >&6; } # ====== Tests ============================================================== cat > myqt.h << EOF #include class Test : public QObject { Q_OBJECT public: Test() {} ~Test() {} public slots: void receive() {} signals: void send(); }; EOF cat > myqt.cpp << EOF #include "myqt.h" #include int main( int argc, char **argv ) { QApplication app( argc, argv ); Test t; QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) ); } EOF # ------ MOC test ----------------------------------------------------------- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working moc$QTPOSTFIX" >&5 $as_echo_n "checking for working moc$QTPOSTFIX... " >&6; } test_command_1="$MOC myqt.h -o moc_myqt.cpp" { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$test_command_1\""; } >&5 (eval $test_command_1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test x"$ac_status" != x0; then as_fn_error $? "moc$QTPOSTFIX call failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # ------ MOC compile test --------------------------------------------------- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++-compiling the moc$QTPOSTFIX-generated program works" >&5 $as_echo_n "checking whether C++-compiling the moc$QTPOSTFIX-generated program works... " >&6; } test_command_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_myqt.o moc_myqt.cpp" echo CMD=$test_command_2 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$test_command_2\""; } >&5 (eval $test_command_2) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test x"$ac_status" != x0; then as_fn_error $? "moc$QTPOSTFIX-generated test program C++-compilation failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # ------ Compile test ------------------------------------------------------- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++-compiling a test program works" >&5 $as_echo_n "checking whether C++-compiling a test program works... " >&6; } test_command_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o myqt.o myqt.cpp" { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$test_command_3\""; } >&5 (eval $test_command_3) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test x"$ac_status" != x0; then as_fn_error $? "test program C++-compilation failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # ------ Link test ---------------------------------------------------------- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking works" >&5 $as_echo_n "checking whether linking works... " >&6; } nv_try_4="$CXX $QT_LDADD -o myqt myqt.o moc_myqt.o" { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$test_command_4\""; } >&5 (eval $test_command_4) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test x"$ac_status" != x0; then as_fn_error $? "linking failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # ------ Clean up ----------------------------------------------------------- rm -f moc_myqt.cpp myqt.h myqt.cpp myqt.o myqt moc_myqt.o $as_echo "#define ENABLE_QT 1" >>confdefs.h else echo "Skipping checks for QT, since it is not requested." fi # ###### Check for BZip2 library ############################################ oldLIBS=$LIBS LIBS= hasBZ2=yes # Assume "yes"; will be set to "no" when one of the test fails. for ac_header in bzlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" if test "x$ac_cv_header_bzlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_BZLIB_H 1 _ACEOF else hasBZ2=no fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing BZ2_bzReadOpen" >&5 $as_echo_n "checking for library containing BZ2_bzReadOpen... " >&6; } if ${ac_cv_search_BZ2_bzReadOpen+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char BZ2_bzReadOpen (); int main () { return BZ2_bzReadOpen (); ; return 0; } _ACEOF for ac_lib in '' bz2; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_BZ2_bzReadOpen=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_BZ2_bzReadOpen+:} false; then : break fi done if ${ac_cv_search_BZ2_bzReadOpen+:} false; then : else ac_cv_search_BZ2_bzReadOpen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_BZ2_bzReadOpen" >&5 $as_echo "$ac_cv_search_BZ2_bzReadOpen" >&6; } ac_res=$ac_cv_search_BZ2_bzReadOpen if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" else hasBZ2=no fi bz2_LIBS=$LIBS LIBS=$oldLIBS if test "${enable_registrar_statistics}" = "yes"; then if test "${hasBZ2}" = "no"; then as_fn_error $? "No bzlib developer files found, but registrar statistics requested (--enable-registrar-statistics parameter)!" "$LINENO" 5 fi fi # ###### Maintainer mode #################################################### if test "$enable_maintainer_mode" = "yes"; then CFLAGS="$CFLAGS -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" CXXFLAGS="$CXXFLAGS -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" else CFLAGS="$CFLAGS -Wall -g -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" CXXFLAGS="$CXXFLAGS -Wall -g -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" fi # ###### Version information ################################################ RSPLIB_CURRENT=2 RSPLIB_REVISION=8 RSPLIB_AGE=0 # ###### Makefiles ########################################################## ac_config_files="$ac_config_files Makefile rsplib/Makefile rsplib/wireshark/Makefile rsplib/fgpconfig/Makefile docs/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_REGISTRAR_STATISTICS_TRUE}" && test -z "${ENABLE_REGISTRAR_STATISTICS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_REGISTRAR_STATISTICS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_TEST_PROGRAMS_TRUE}" && test -z "${BUILD_TEST_PROGRAMS_FALSE}"; then as_fn_error $? "conditional \"BUILD_TEST_PROGRAMS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${BUILD_QT_PROGRAMS_TRUE}" && test -z "${BUILD_QT_PROGRAMS_FALSE}"; then as_fn_error $? "conditional \"BUILD_QT_PROGRAMS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by rsplib $as_me 3.0.1, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ rsplib config.status 3.0.1 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ reload_flag_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_separator_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec \ reload_cmds_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX \ postlink_cmds_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "rsplib/Makefile") CONFIG_FILES="$CONFIG_FILES rsplib/Makefile" ;; "rsplib/wireshark/Makefile") CONFIG_FILES="$CONFIG_FILES rsplib/wireshark/Makefile" ;; "rsplib/fgpconfig/Makefile") CONFIG_FILES="$CONFIG_FILES rsplib/fgpconfig/Makefile" ;; "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="CXX " # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi # ###### Configuration results ############################################## echo "" echo "The rsplib package has been configured with the following options:" echo "" echo " Build with Maintainer Mode : $enable_maintainer_mode" echo " Build with Batch Test Programs : $enable_test_programs" echo " Build with Kernel SCTP : $enable_kernel_sctp" echo " Build with CSP Support : $enable_csp" echo " Build with Registrar Statistics : $enable_registrar_statistics" echo " Build with Qt-based Examples : $enable_qt" echo " Maximum loglevel : $max_loglevel" echo " Build with HS Mgt. Debugging : $enable_hsmgtverify" echo "" echo " sctplib Libraries : $sctplib_LIBS" echo " socketapi Libraries : $socketapi_LIBS" echo " glib Libraries : $glib_LIBS" echo " Thread Libraries : $thread_LIBS" echo " BZip2 Libraries : $bz2_LIBS" echo "" echo " CFLAGS : $CFLAGS" echo " CXXFLAGS : $CXXFLAGS" echo " LDFLAGS : $LDFLAGS" echo " LIBS : $LIBS" echo " glib_CFLAGS : $glib_CFLAGS" echo "" echo " QTDIR : $QTDIR" echo " MOC : $MOC" echo " QT_CXXFLAGS : $QT_CXXFLAGS" echo " QT_LDFLAGS : $QT_LDADD" rsplib-3.0.1/configure.ac0000664000175000017500000004750712065103124012226 00000000000000# $Id: configure.ac 2739 2012-12-21 15:54:21Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de # ###### Basic setup ######################################################## AC_INIT([rsplib], [3.0.1]) AC_CONFIG_SRCDIR([rsplib/rspbasicmode.c]) AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_HOST AC_PREFIX_DEFAULT(/usr/local) if test "x$prefix" = "xNONE"; then prefix=$ac_default_prefix ac_configure_args="$ac_configure_args --prefix $prefix" fi AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE # ###### Checks for programs ################################################ AC_PROG_CC AC_PROG_CPP AC_PROG_CXX AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_LIBTOOL # ###### colorgcc ########################################################### AC_CHECK_PROG([COLORGCC], [colorgcc], [yes], [no]) if test "$COLORGCC" == "yes" then AC_MSG_NOTICE([Compiling using colorgcc]) CC=colorgcc CXX=colorgcc fi # ###### Options ############################################################ AC_ARG_WITH([max-loglevel], [AS_HELP_STRING([--with-max-loglevel],[Highest supported logging level @<:@9@:>@])], [max_loglevel=${withval}], [max_loglevel=9]) AC_DEFINE_UNQUOTED([MAX_LOGLEVEL], ${max_loglevel}, [Maximum logging level]) AC_ARG_ENABLE([csp], [ --enable-csp enable CSP support ][default=yes]], enable_csp=$enableval, enable_csp=yes) if test "${enable_csp}" = "yes"; then AC_DEFINE(ENABLE_CSP, 1, "Define to 1 if CSP is supported.") fi AC_ARG_ENABLE([hsmgtverify], [ --enable-hsmgtverify enable handlespace management verification [default=no]], enable_hsmgtverify=$enableval, enable_hsmgtverify=no) if test "${enable_hsmgtverify}" = "yes"; then AC_DEFINE(VERIFY, 1, "Define to 1 if handlespace management verification is turned on.") fi AC_ARG_ENABLE([qt], [ --enable-qt enable QT-based examples ][default=no]], enable_qt=$enableval, enable_qt=no) AC_ARG_ENABLE([maintainer-mode], [ --enable-maintainer-mode enable maintainer mode ][default=yes]], enable_maintainer_mode=$enableval, enable_maintainer_mode=yes) AC_ARG_ENABLE([registrar-statistics], [ --enable-registrar-statistics enable registrar statistics logging option (requires libbz2) ][default=yes]], enable_registrar_statistics=$enableval, enable_registrar_statistics=yes) if test "${enable_registrar_statistics}" = "yes"; then AC_DEFINE(ENABLE_REGISTRAR_STATISTICS, 1, "Define to 1 to enable registrar statistics logging option.") fi AM_CONDITIONAL(ENABLE_REGISTRAR_STATISTICS, test x$enable_registrar_statistics = xyes) AC_ARG_ENABLE([test-programs], [ --enable-test-programs build with batch test programs ][default=no]], enable_test_programs=$enableval, enable_test_programs=no) AM_CONDITIONAL(BUILD_TEST_PROGRAMS, test x$enable_test_programs = xyes) # ###### Check for sin6_scope_id of sockaddr_in6 ############################ if test "$cv_ipv6" = yes; then AC_MSG_CHECKING(whether struct sockaddr_in6 has a sin6_scope_id field) AC_TRY_COMPILE([#include #include ], [static struct sockaddr_in6 ac_i;int ac_j = sizeof(ac_i.sin6_scope_id);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SIN6_SCOPE_ID, 1, "Define to 1 if sin6_scope_id is supported.")], AC_MSG_RESULT(no)) fi # ###### Operating system checks ############################################ case $host_os in bsdi*) CFLAGS="$CFLAGS -DBSDI" thread_LIBS="-lpthread" CFLAGS="$CFLAGS `glib-config --cflags`" LDFLAGS="$LDFLAGS `glib-config --libs`" ;; freebsd*) CFLAGS="$CFLAGS -DFreeBSD -D_PTHREADS -pthread -I/usr/local/include -DHAVE_CONNECTX_WITH_ID" CXXFLAGS="$CXXFLAGS -DFreeBSD -D_PTHREADS -pthread -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/v6/lib" thread_LIBS="" ;; hpux*) CFLAGS="$CFLAGS -DSNAKE" test -z "$GCC" && TRY_CFLAGS="$TRY_CFLAGS -Wp,-H600000" thread_LIBS="-lpthread" ;; linux*) CFLAGS="$CFLAGS -DLINUX -D_GNU_SOURCE -D_FORTIFY_SOURCE=2" CXXFLAGS="$CXXFLAGS -DLINUX -D_GNU_SOURCE -std=c++98 -D_FORTIFY_SOURCE=2" LDFLAGS="$LDFLAGS" thread_LIBS="-lpthread" ;; openbsd*) LIBS="$LIBS -lcompat" thread_LIBS="-lpthread" ;; solaris*) CFLAGS="$CFLAGS -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5" CXXFLAGS="$CXXFLAGS -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5" thread_LIBS="-lpthread" LDFLAGS="$LDFLAGS -lsocket -lnsl -lrt -lresolv" ;; sunos4*) CFLAGS="$CFLAGS -DSUN -DSUN4" thread_LIBS="-lpthread" ;; darwin*) CFLAGS="$CFLAGS -DDARWIN -DUSE_SELECT -DHAVE_CONNECTX_WITH_ID" CXXFLAGS="$CXXFLAGS -DDARWIN" thread_LIBS="-lpthread" ;; esac AC_SUBST(thread_LIBS) # ###### Networking declarations ############################################ AC_CHECK_HEADERS(sys/types.h sys/socket.h netinet/in.h) AC_MSG_CHECKING(for socklen_t) AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H #include #endif #include ], [socklen_t x = 1; return 0;], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(int) AC_DEFINE(socklen_t, int, [Define a type for socklen_t.])]) AC_MSG_CHECKING(if stderr is a variable of type FILE* and not a macro) AC_TRY_COMPILE([#include ], [FILE** stdlog = &stderr], [AC_DEFINE(HAVE_STDERR_FILEPTR, 1, "Define to 1 if stderr is a pointer.") AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING([whether 'struct sockaddr' has sa_len]) AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H #include #endif #include ], [static struct sockaddr sa; int i = sizeof(sa.sa_len);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SA_LEN,1,"Define this if you have sa_len in sockaddr struct.")], AC_MSG_RESULT(no)) AC_MSG_CHECKING([whether 'struct sockaddr_in' has sin_len]) AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H #include #endif #include ], [static struct sockaddr_in in; int i = sizeof(in.sin_len);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SIN_LEN,1,"Define this if your IPv4 has sin_len in sockaddr_in struct.")], AC_MSG_RESULT(no)) AC_MSG_CHECKING([whether 'struct sockaddr_in6' has sin6_len]) AC_TRY_COMPILE([#ifdef HAVE_SYS_TYPES_H #include #endif #include ], [static struct sockaddr_in6 in; int i = sizeof(in.sin6_len);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SIN6_LEN,1,"Define this if your IPv6 has sin6_len in sockaddr_in6 struct.")], AC_MSG_RESULT(no)) AC_CHECK_FUNCS(socket, , AC_CHECK_LIB(socket, socket)) # ###### Check if kernel SCTP should be used ################################ AC_ARG_ENABLE([kernel-sctp], [ --enable-kernel-sctp use kernel SCTP instead of sctplib][default=yes]], enable_kernel_sctp=$enableval, enable_kernel_sctp=yes) # ###### Check for SCTP implementation ###################################### if test "x$enable_kernel_sctp" = "xno"; then # ====== sctplib ========================================================= ac_sctplib_includes=no ac_sctplib_libraries=no ac_sctplib_bindir=no sctplib_libraries="" sctplib_includes="" AC_ARG_WITH(sctplib, [ --with-sctplib=DIR where the root of sctplib is installed ], [ ac_sctplib_includes="$withval"/include ac_sctplib_libraries="$withval"/lib ac_sctplib_bindir="$withval"/bin ]) if test "$ac_sctplib_libraries" = "no"; then ac_sctplib_defaultdir="/usr/local" ac_sctplib_includes="$ac_sctplib_defaultdir"/include ac_sctplib_libraries="$ac_sctplib_defaultdir"/lib ac_sctplib_bindir="$ac_sctplib_defaultdir"/bin fi if test ! -e "$ac_sctplib_includes/sctp.h" ; then AC_MSG_ERROR([No sctplib installation found ($ac_sctplib_includes/sctp.h)!]) fi if test ! -e $ac_sctplib_libraries/libsctplib.a ; then AC_MSG_ERROR([No sctplib installation found ($ac_sctplib_libraries/libsctplib.a)!]) fi # ====== socketapi ======================================================= ac_socketapi_includes=no ac_socketapi_libraries=no ac_socketapi_bindir=no socketapi_libraries="" socketapi_includes="" AC_ARG_WITH(socketapi, [ --with-socketapi=DIR where the root of socketapi is installed ], [ ac_socketapi_includes="$withval"/include ac_socketapi_libraries="$withval"/lib ac_socketapi_bindir="$withval"/bin ]) if test "$ac_socketapi_libraries" = "no"; then ac_socketapi_defaultdir="/usr/local" ac_socketapi_includes="$ac_socketapi_defaultdir"/include ac_socketapi_libraries="$ac_socketapi_defaultdir"/lib ac_socketapi_bindir="$ac_socketapi_defaultdir"/bin fi if test ! -e $ac_socketapi_libraries/libsctpsocket.a ; then AC_MSG_ERROR([No socketapi installation found ($ac_socketapi_libraries/libsctpsocket.a)!]) fi # In maintainer mode, use static linking for sctplib/socketapi! if test "$enable_maintainer_mode" = "yes"; then sctplib_LIBS="$ac_sctplib_libraries/libsctplib.a" socketapi_LIBS="$ac_socketapi_libraries/libsctpsocket.a -lstdc++" else sctplib_LIBS="-L$ac_sctplib_libraries -lsctplib" socketapi_LIBS="-L$ac_socketapi_libraries -lsctpsocket -lstdc++" fi AC_DEFINE(HAVE_SPP_FLAGS, 1, [Define this if you support version 10 if the API ID.]) # ====== Check for glib ================================================== AM_PATH_GLIB_2_0(2.4.0, , AC_MSG_ERROR(GLib installation not found.)) CFLAGS="$CFLAGS $GLIB_CFLAGS" CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS" glib_LIBS="$GLIB_LIBS" # ====== Version compatibility test ====================================== oldLIBS=$LIBS LIBS="$LIBS $socketapi_LIBS $sctplib_LIBS $glib_LIBS $thread_LIBS" AC_MSG_CHECKING([socketapi library version]) AC_TRY_RUN([ #include #include "ext_socket.h" int main(int argc, char** argv) { unsigned int version = socketAPIGetVersion(); printf("Version is %u.%04x\n", (version >> 16), version & 0xffff); if(version >= 0x21100) { return(0); } return(1); } ], socketapi_version=good, socketapi_version=bad, socketapi_version=cross) case $socketapi_version in good) ;; bad|*) AC_MSG_ERROR([You need at least version 2.110 of the socketapi library!]) ;; esac AC_DEFINE(HAVE_SCTP_SENDMSG, 1, [Define to 1 if you have the `sctp_sendmsg' function.]) AC_DEFINE(HAVE_SCTP_CONNECTX, 1, [Define to 1 if you have the `sctp_connectx' function.]) AC_DEFINE(HAVE_SCTP_SEND, 1, [Define to 1 if you have the `sctp_send' function.]) AC_DEFINE(HAVE_SCTP_SENDX, 1, [Define to 1 if you have the `sctp_sendx' function.]) AC_DEFINE(HAVE_SPP_FLAGS, 1, [Define this if you support version 10 if the API ID.]) AC_DEFINE(HAVE_CONNECTX_WITH_ID, 1, [Define to 1 if sctp_connectx has associd parameter.]) AC_DEFINE(HAVE_SCTP_DELAYED_SACK, 1, [Define to 1 if SCTP_DELAYED_SACK with sctp_sack_info is available.]) LIBS=$oldLIBS # ======================================================================== else # ====== Kernel SCTP ===================================================== oldLIBS=$LIBS AC_CHECK_FUNCS(sctp_sendmsg, , AC_CHECK_LIB(sctp, sctp_sendmsg)) AC_CHECK_FUNCS(sctp_connectx, , AC_CHECK_LIB(sctp, sctp_connectx)) case $host_os in linux*) AC_MSG_NOTICE([LK-SCTP's sctp_send() is broken. Using wrapper.]) ;; *) AC_CHECK_FUNCS(sctp_send, , AC_CHECK_LIB(sctp, sctp_send)) ;; esac AC_CHECK_FUNCS(sctp_sendx, , AC_CHECK_LIB(sctp, sctp_sendx)) AC_CHECK_MEMBER(struct sctp_paddrparams.spp_flags, AC_DEFINE(HAVE_SPP_FLAGS, 1, [Define this if you support version 10 if the API ID.]),, [#ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_NETINET_SCTP_H #include #endif]) AC_MSG_CHECKING(whether sctp_connectx has an associd parameter) AC_TRY_COMPILE([#include #include ], [sctp_assoc_t id; int result = sctp_connectx(0, 0, 0, &id);], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_CONNECTX_WITH_ID, 1, [Define to 1 if sctp_connectx has associd parameter.])], AC_MSG_RESULT(no)) AC_MSG_CHECKING(whether SCTP_DELAYED_SACK with sctp_sack_info is available) AC_TRY_COMPILE([#include #include ], [struct sctp_sack_info sctpSACKInfo; int opt = SCTP_DELAYED_SACK;], [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_SCTP_DELAYED_SACK, 1, [Define to 1 if SCTP_DELAYED_SACK with sctp_sack_info is available.])], AC_MSG_RESULT(no)) LIBS=$oldLIBS # ====== Check for Valgrind ============================================== # Needed to avoid false positives for sctp_getladdrs()/sctp_getpaddrs() AC_CHECK_HEADERS([valgrind/valgrind.h]) AC_CHECK_HEADERS([valgrind/memcheck.h]) # ====== Check for SCTP library linker parameter ========================= sctplib_LIBS="" socketapi_LIBS="" sctp_okay=0 AC_CHECK_LIB(sctp, sctp_sendmsg, [ socketapi_LIBS="-lsctp" sctp_okay=1]) if test $sctp_okay -ne 1 ; then AC_CHECK_LIB(c, sctp_sendmsg, [ socketapi_LIBS="" sctp_okay=1]) fi AC_MSG_CHECKING([whether library parameter for SCTP functions]) if test $sctp_okay -ne 1 ; then AC_MSG_ERROR([Do not know where to find SCTP functions! Missing libsctp?]) else AC_MSG_RESULT([appending "$socketapi_LIBS"]) fi glib_LIBS="" CFLAGS="$CFLAGS -DHAVE_KERNEL_SCTP" CXXFLAGS="$CXXFLAGS -DHAVE_KERNEL_SCTP" fi AC_SUBST(sctplib_LIBS) AC_SUBST(socketapi_LIBS) AC_SUBST(glib_LIBS) # ###### Check for IEEE-754 complient float-point handling ################## AC_MSG_CHECKING([for floating point type]) AC_TRY_RUN([ #include union DoubleIntUnion { double Double; unsigned long long Integer; }; /* void hexdump(const void* ptr, const size_t length) { const unsigned char* cptr = (const unsigned char*)ptr; size_t i; for(i = 0;i < length;i++) { printf("%02x ", cptr[i]); } puts(""); } */ int main () { union DoubleIntUnion value; value.Double = 0.0; if(value.Integer != 0ULL) { /* puts("Math is non-IEEE (check 1)!\n"); */ return(1); } value.Double = 1000.5; if(value.Integer != 0x408f440000000000ULL) { /* puts("Math is non-IEEE (check 2)!\n"); */ return(1); } value.Double = -1000.5; if(value.Integer != 0xc08f440000000000ULL) { /* puts("Math is non-IEEE (check 3)!\n"); */ return(1); } /* puts("Math is IEEE\n"); */ return(0); } ], IEEEFP=ok, IEEEFP=broken, IEEEFP=cross) case $IEEEFP in ok) AC_MSG_RESULT(IEEE) AC_DEFINE(HAVE_IEEE_FP, 1, [IEEE compliant float-point handling]) ;; cross) AC_MSG_RESULT([cross-compiling, assuming IEEE]) AC_DEFINE(HAVE_IEEE_FP) ;; *|broken) AC_MSG_RESULT([non IEEE]) ;; esac # ###### Check for Qt, if it is requested ################################### AM_CONDITIONAL(BUILD_QT_PROGRAMS, test x$enable_qt = xyes) if test "${enable_qt}" = "yes"; then TD_CHECK_QT4 AC_DEFINE(ENABLE_QT, 1, [QT is usable]) else echo "Skipping checks for QT, since it is not requested." fi # ###### Check for BZip2 library ############################################ oldLIBS=$LIBS LIBS= hasBZ2=yes # Assume "yes"; will be set to "no" when one of the test fails. AC_CHECK_HEADERS([bzlib.h], [], [hasBZ2=no]) AC_SEARCH_LIBS([BZ2_bzReadOpen], [bz2], [], [hasBZ2=no]) bz2_LIBS=$LIBS AC_SUBST(bz2_LIBS) LIBS=$oldLIBS if test "${enable_registrar_statistics}" = "yes"; then if test "${hasBZ2}" = "no"; then AC_MSG_ERROR([No bzlib developer files found, but registrar statistics requested (--enable-registrar-statistics parameter)!]) fi fi # ###### Maintainer mode #################################################### if test "$enable_maintainer_mode" = "yes"; then CFLAGS="$CFLAGS -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" CXXFLAGS="$CXXFLAGS -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" else CFLAGS="$CFLAGS -Wall -g -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" CXXFLAGS="$CXXFLAGS -Wall -g -D_REENTRANT -D_THREAD_SAFE -DINCLUDE_SIMPLEREDBLACKTREE -DUSE_SIMPLEREDBLACKTREE" fi # ###### Version information ################################################ RSPLIB_CURRENT=2 RSPLIB_REVISION=8 RSPLIB_AGE=0 AC_SUBST(RSPLIB_CURRENT) AC_SUBST(RSPLIB_REVISION) AC_SUBST(RSPLIB_AGE) AC_SUBST(RSPLIB_RELEASE) # ###### Makefiles ########################################################## AC_OUTPUT(Makefile rsplib/Makefile rsplib/wireshark/Makefile rsplib/fgpconfig/Makefile docs/Makefile ) # ###### Configuration results ############################################## echo "" echo "The rsplib package has been configured with the following options:" echo "" echo " Build with Maintainer Mode : $enable_maintainer_mode" echo " Build with Batch Test Programs : $enable_test_programs" echo " Build with Kernel SCTP : $enable_kernel_sctp" echo " Build with CSP Support : $enable_csp" echo " Build with Registrar Statistics : $enable_registrar_statistics" echo " Build with Qt-based Examples : $enable_qt" echo " Maximum loglevel : $max_loglevel" echo " Build with HS Mgt. Debugging : $enable_hsmgtverify" echo "" echo " sctplib Libraries : $sctplib_LIBS" echo " socketapi Libraries : $socketapi_LIBS" echo " glib Libraries : $glib_LIBS" echo " Thread Libraries : $thread_LIBS" echo " BZip2 Libraries : $bz2_LIBS" echo "" echo " CFLAGS : $CFLAGS" echo " CXXFLAGS : $CXXFLAGS" echo " LDFLAGS : $LDFLAGS" echo " LIBS : $LIBS" echo " glib_CFLAGS : $glib_CFLAGS" echo "" echo " QTDIR : $QTDIR" echo " MOC : $MOC" echo " QT_CXXFLAGS : $QT_CXXFLAGS" echo " QT_LDFLAGS : $QT_LDADD" rsplib-3.0.1/config.guess0000755000175000017500000012743212065040220012247 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-02-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-gnueabi else echo ${UNAME_MACHINE}-unknown-linux-gnueabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: rsplib-3.0.1/install-sh0000775000175000017500000001273611777021057011755 00000000000000#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: chmodcmd="" else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 rsplib-3.0.1/config.sub0000755000175000017500000010517612065040220011713 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-02-10' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 \ | ns16k | ns32k \ | open8 \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i386-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: rsplib-3.0.1/missing0000775000175000017500000001421311777021057011340 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. # Copyright (C) 1996, 1997 Free Software Foundation, Inc. # Franc,ois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi case "$1" in -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch]" ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing - GNU libit 0.0" ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; aclocal) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acinclude.m4' or \`configure.in'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`acconfig.h' or \`configure.in'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is missing on your system. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` fi touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and you do not seem to have it handy on your system. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequirements for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 rsplib-3.0.1/Makefile.am0000664000175000017500000000257611777021057012006 00000000000000# $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de SUBDIRS = rsplib docs EXTRA_DIST = AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README bootstrap rsplib.lsm ACLOCAL_AMFLAGS = -I m4 rsplib-3.0.1/Makefile.in0000664000175000017500000006142012065103163011776 00000000000000# Makefile.in generated by automake 1.11.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. # 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@ # $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de VPATH = @srcdir@ 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@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ config.guess config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COLORGCC = @COLORGCC@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDADD = @QT_LDADD@ RANLIB = @RANLIB@ RSPLIB_AGE = @RSPLIB_AGE@ RSPLIB_CURRENT = @RSPLIB_CURRENT@ RSPLIB_RELEASE = @RSPLIB_RELEASE@ RSPLIB_REVISION = @RSPLIB_REVISION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ bz2_LIBS = @bz2_LIBS@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ glib_LIBS = @glib_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sctplib_LIBS = @sctplib_LIBS@ sharedstatedir = @sharedstatedir@ socketapi_LIBS = @socketapi_LIBS@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ thread_LIBS = @thread_LIBS@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = rsplib docs EXTRA_DIST = AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README bootstrap rsplib.lsm ACLOCAL_AMFLAGS = -I m4 all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then rm -f stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done 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 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(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; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(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; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @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 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive 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: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \ dist-zip distcheck distclean distclean-generic distclean-hdr \ distclean-libtool distclean-tags distcleancheck distdir \ distuninstallcheck 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 \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-recursive uninstall uninstall-am # 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: rsplib-3.0.1/config.h.in0000664000175000017500000000730712065103176011764 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* "Define to 1 if CSP is supported." */ #undef ENABLE_CSP /* QT is usable */ #undef ENABLE_QT /* "Define to 1 to enable registrar statistics logging option." */ #undef ENABLE_REGISTRAR_STATISTICS /* Define to 1 if you have the header file. */ #undef HAVE_BZLIB_H /* Define to 1 if sctp_connectx has associd parameter. */ #undef HAVE_CONNECTX_WITH_ID /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* IEEE compliant float-point handling */ #undef HAVE_IEEE_FP /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `sctp' library (-lsctp). */ #undef HAVE_LIBSCTP /* Define to 1 if you have the `socket' library (-lsocket). */ #undef HAVE_LIBSOCKET /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* "Define this if you have sa_len in sockaddr struct." */ #undef HAVE_SA_LEN /* Define to 1 if you have the `sctp_connectx' function. */ #undef HAVE_SCTP_CONNECTX /* Define to 1 if SCTP_DELAYED_SACK with sctp_sack_info is available. */ #undef HAVE_SCTP_DELAYED_SACK /* Define to 1 if you have the `sctp_send' function. */ #undef HAVE_SCTP_SEND /* Define to 1 if you have the `sctp_sendmsg' function. */ #undef HAVE_SCTP_SENDMSG /* Define to 1 if you have the `sctp_sendx' function. */ #undef HAVE_SCTP_SENDX /* "Define this if your IPv6 has sin6_len in sockaddr_in6 struct." */ #undef HAVE_SIN6_LEN /* "Define to 1 if sin6_scope_id is supported." */ #undef HAVE_SIN6_SCOPE_ID /* "Define this if your IPv4 has sin_len in sockaddr_in struct." */ #undef HAVE_SIN_LEN /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define this if you support version 10 if the API ID. */ #undef HAVE_SPP_FLAGS /* "Define to 1 if stderr is a pointer." */ #undef HAVE_STDERR_FILEPTR /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_VALGRIND_MEMCHECK_H /* Define to 1 if you have the header file. */ #undef HAVE_VALGRIND_VALGRIND_H /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Maximum logging level */ #undef MAX_LOGLEVEL /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* "Define to 1 if handlespace management verification is turned on." */ #undef VERIFY /* Version number of package */ #undef VERSION /* Define a type for socklen_t. */ #undef socklen_t rsplib-3.0.1/rsplib/0000775000175000017500000000000012065103177011306 500000000000000rsplib-3.0.1/rsplib/rspterminal.10000664000175000017500000001165512004506254013654 00000000000000.\" $Id: rspterminal.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt RspTerminal 1 .Os RSerPool Terminal .\" ###### Name ############################################################# .Sh NAME .Nm rspterminal .Nd RSerPool terminal (PU) for services like Echo, Discard, Daytime, CharGen .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm terminal .Op Fl poolhandle=pool_handle .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm terminal is an simple Reliable Server Pooling (RSerPool) pool user (PU) to use test services like Echo, Discard, Daytime, CharGen. .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It Fl poolhandle=pool_handle Sets the PH to a non-default value; otherwise, the default setting is "EchoPool". .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .\" ====== ASAP Protocol ==================================================== .It ASAP Protocol Parameters: .Bl -tag -width indent .It Fl registrar=address:port Adds a static PR entry into the Registrar Table. It is possible to add multiple entries. .It Fl registrarannouncetimeout=milliseconds Sets the timeout for ASAP announces via multicast. .It Fl registrarconnecttimeout=milliseconds Sets the timeout for ASAP connection establishment. .It Fl registrarconnectmaxtrials=trials Sets the maximum number of ASAP connection establishment trials. .It Fl registrarrequesttimeout=milliseconds Sets the timeout for ASAP requests. .It Fl registrarresponsetimeout=milliseconds Sets the timeout for waiting to receive ASAP responses. .It Fl registrarrequestmaxtrials=trials Sets the maximum number of ASAP request trials. .El .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. By default, the content of the environment variable CSP_INTERVAL is used. If not defined, no CSP status reports will be sent. .It Fl cspserver=address:port Sets the address of a CSP monitor server. By default, the content of the environment variable CSP_SERVER is used. If not defined, no CSP status reports will be sent. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm terminal uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/rspterminal.c0000664000175000017500000001333511777021056013743 00000000000000/* $Id: rspterminal.c 2682 2012-06-08 11:29:28Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "breakdetector.h" #include "randomizer.h" #include "netutilities.h" #ifdef ENABLE_CSP #include "componentstatuspackets.h" #endif #include #include #include #include /* ###### Main program ################################################### */ int main(int argc, char** argv) { struct rsp_info info; struct rsp_sndrcvinfo rinfo; union rserpool_notification* notification; char buffer[65536 + 4]; const char* poolHandle = "EchoPool"; struct pollfd ufds[2]; ssize_t received; ssize_t sent; size_t failovers = 0; int result; int flags; int sd; int i; rsp_initinfo(&info); for(i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } else if(!(strncmp(argv[i], "-poolhandle=" ,12))) { poolHandle = (char*)&argv[i][12]; } else { fprintf(stderr, "ERROR: Bad argument %s\n", argv[i]); exit(1); } } #ifdef ENABLE_CSP if(CID_OBJECT(info.ri_csp_identifier) == 0ULL) { info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, random64()); } #endif puts("RSerPool Terminal - Version 1.0"); puts("===============================\n"); printf("Pool Handle = %s\n\n", poolHandle); if(rsp_initialize(&info) < 0) { fputs("ERROR: Unable to initialize rsplib\n", stderr); exit(1); } sd = rsp_socket(0, SOCK_SEQPACKET, IPPROTO_SCTP); if(sd < 0) { perror("Unable to create RSerPool socket"); exit(1); } if(rsp_connect(sd, (unsigned char*)poolHandle, strlen(poolHandle), 0) < 0) { perror("Unable to connect to pool element"); exit(1); } installBreakDetector(); while(!breakDetected()) { ufds[0].fd = STDIN_FILENO; ufds[0].events = POLLIN; ufds[1].fd = sd; ufds[1].events = POLLIN; result = rsp_poll((struct pollfd*)&ufds, 2, -1); if(result > 0) { if(ufds[0].revents & POLLIN) { received = rsp_read(STDIN_FILENO, (char*)&buffer, sizeof(buffer)); if(received > 0) { sent = rsp_write(sd, (char*)&buffer, received); if(sent < received) { perror("rsp_write() failed"); } } else { break; } } if(ufds[1].revents & POLLIN) { flags = 0; received = rsp_recvmsg(sd, (char*)&buffer, sizeof(buffer), &rinfo, &flags, 0); if(received > 0) { if(flags & MSG_RSERPOOL_NOTIFICATION) { notification = (union rserpool_notification*)&buffer; printf("\x1b[39;47mNotification: "); rsp_print_notification(notification, stdout); puts("\x1b[0m"); if((notification->rn_header.rn_type == RSERPOOL_FAILOVER) && (notification->rn_failover.rf_state == RSERPOOL_FAILOVER_NECESSARY)) { failovers++; printf("FAILOVER #%u ...\n", (unsigned int)failovers); /*static int yyy=0;yyy++; if(yyy>=2) exit(1);*/ /* usleep(200000); */ rsp_forcefailover(sd, FFF_NONE, 0); } } else { /* ====== Replace non-printable characters ============= */ buffer[received] = 0x00; for(i = received;i >= 0;i--) { if(buffer[i] < ' ') { buffer[i] = 0x00; } else { break; } } for( ;i >= 0;i--) { if((unsigned char)buffer[i] < 30) { buffer[i] = '.'; } } printf("\x1b[34mfrom PE $%08x> %s\x1b[0m\n", rinfo.rinfo_pe_id, buffer); fflush(stdout); } } else { perror("rsp_read() failed"); } } } } puts("\nTerminated!"); rsp_close(sd); rsp_cleanup(); rsp_freeinfo(&info); return 0; } rsplib-3.0.1/rsplib/TODO0000664000175000017500000000241511777021056011724 00000000000000Policy/kumulativer Lastwert: Policy-Struktur überarbeiten -> Update()-Funktion für Änderungserfassung vom PE -> kumulativer Lastwert für LU, LUD, ... ====== - Adreßfilter ASAP/ENRP, Scope für sendx/connectx! - Message Parser ====== UserSet: FD/AssocID Set(PH) für registrierte Notifications PoolNode: Rückverlinkung auf User ====== INTERESSANT: Alte Dynamic-Entries werden nicht verworfen wenn MTBF sehr klein: Übertragung per Peer List: toter Eintrag -> PL an Peer -> PL an nächsten Peer -> ... ====== lksctp-Problem bei Kernel 2.6.17: Server <-> Router (nur IP4!) <-> Client Server: Nur IPv4 + IPv6 Link Local sctp_test -l -H :: -P 1203 Client: IPv4 + IPv6 (mit globaler Adresse) sctp_test -s -H :: -h 132.252.152.81 -p 1203 FUNKTIONIERT. Server: IPv4 + IPv6 (mit globaler Adresse) sctp_test -l -H :: -P 1203 Client: Nur IPv4 + IPv6 Link Local sctp_test -s -H :: -h 132.252.151.157 -p 1203 ------ PR: -> OK - PRs mit statischen Peers konfiguriert - stat. Peer wird beendet - CSP sollte diesen Eintrag mit ID 0 anzeigen (ID nicht auf 0 zurückgesetzt) rsplib: -> OK - Zufallsaufwahl eines PRs überprüfen ------ MacOS-Tests: 194.95.73.130 sudo kextload /System/Library/Extensions/SCTP.kext sudo kextunload /System/Library/Extensions/SCTP.kext rsplib-3.0.1/rsplib/fractalpooluser_de_DE.qm0000664000175000017500000000353711777021056016026 00000000000000 FractalCalculationThread Requesting calculation ... Sende Berechnungsanfrage ... Image completed! Berechnung abgeschlossen! Image calculation failed! Bildberechnung fehlgeschlagen! Processed packet # Verarbeite Paket # of PE von PE FractalPU Image completed Berechnung abgeschlossen Welcome to FractalPoolUser! Willkommen zu FractalPoolUser! Starting job distribution ... Starte Verteilung der Berechnung ... Image calculation failed Bildberechnung fehlgeschlagen Waiting for Warte seconds ... s ... Show &Failovers Zeige &Failover Show &Sessions Zeige &Sitzungen Sessions Sitzungen &About &Information &Quit &Beenden About Fractal Pool User Über FractalPoolUser &Next Image &Nächstes Bild Waiting for job completion ... Warte auf Abschluß der Berechnung ... rsplib-3.0.1/rsplib/debug.h0000664000175000017500000000364611777021056012502 00000000000000/* $Id: debug.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef DEBUG_H #define DEBUG_H #include #include /* #define DEBUG */ /* #define VERIFY */ #ifndef CHECK #define CHECK(cond) if(!(cond)) { fprintf(stderr, "INTERNAL ERROR in %s, line %u: condition %s is not satisfied!\n", __FILE__, __LINE__, #cond); abort(); } #endif #if NDEBUG != 0 #define OPP_CHECK(cond) if(!(cond)) { throw new cException("INTERNAL ERROR in %s, line %u: condition %s is not satisfied!\n", __FILE__, __LINE__, #cond); } #else #define OPP_CHECK(cond) if(!(cond)) { fprintf(stderr, "INTERNAL ERROR in %s, line %u: condition %s is not satisfied!\n", __FILE__, __LINE__, #cond); abort(); } #endif #endif rsplib-3.0.1/rsplib/peerlist-template.h0000664000175000017500000001626611777021056015056 00000000000000/* $Id: peerlist-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PeerList) { struct ST_CLASSNAME PeerListIndexStorage; struct ST_CLASSNAME PeerListTimerStorage; RegistrarIdentifierType OwnIdentifier; void* UserData; }; void ST_CLASS(peerListNew)(struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType ownIdentifier); void ST_CLASS(peerListDelete)(struct ST_CLASS(PeerList)* peerList); size_t ST_CLASS(peerListGetPeerListNodes)( const struct ST_CLASS(PeerList)* peerList); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetLastPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetPrevPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetFirstPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetLastPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetNextPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetPrevPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListAddPeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode, unsigned int* errorCode); void ST_CLASS(peerListUpdatePeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode, const struct ST_CLASS(PeerListNode)* source, unsigned int* errorCode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListAddOrUpdatePeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)** peerListNode, unsigned int* errorCode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetRandomPeerListNode)( struct ST_CLASS(PeerList)* peerList); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListFindPeerListNode)( struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListFindNearestPrevPeerListNode)( struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListFindNearestNextPeerListNode)( struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListRemovePeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode); unsigned int ST_CLASS(peerListCheckPeerListNodeCompatibility)( const struct ST_CLASS(PeerList)* peerList, const struct ST_CLASS(PeerListNode)* peerListNode); void ST_CLASS(peerListGetDescription)(struct ST_CLASS(PeerList)* peerList, char* buffer, const size_t bufferSize); void ST_CLASS(peerListVerify)(struct ST_CLASS(PeerList)* peerList); void ST_CLASS(peerListPrint)(struct ST_CLASS(PeerList)* peerList, FILE* fd, const unsigned int fields); void ST_CLASS(peerListClear)(struct ST_CLASS(PeerList)* peerList, void (*peerListNodeDisposer)(void* peerListNode, void* userData), void* userData); void ST_CLASS(peerListActivateTimer)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode, const unsigned int timerCode, const unsigned long long timerTimeStamp); void ST_CLASS(peerListDeactivateTimer)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode); size_t ST_CLASS(peerListPurgeExpiredPeerListNodes)( struct ST_CLASS(PeerList)* peerList, const unsigned long long currentTimeStamp); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/scriptingserviceexample0000775000175000017500000001063411777021056016123 00000000000000#!/bin/bash # $Id: scriptingserviceexample 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de if [ $# -lt 1 ] ; then echo "Usage: ssdistribute [Unique ID] [Environment]" exit 1 fi DIRECTORY="." UNIQUE_ID="$1" ENVIRONMENT="$2" shift ; shift POOLHANDLE="ScriptingPool" SS_TEMPDIR="ssTEMP-$UNIQUE_ID" SS_IN_NAME="ssIN-$UNIQUE_ID.tar.gz" SS_OUT_NAME="ssOUT-$UNIQUE_ID.tar.gz" SS_ENVIRONMENT_BYTES=5000 SS_INPUT_BYTES=2500 SS_OUTPUT_BYTES=2000 # This is the run script. SS_RUNSCRIPT=" \ OUTPUT_ARCHIVE=\$1 ENVIRONMENT_FILE=\$2 echo \"This is the run script!\" && \ echo \" + Output will be written to \\\"\$OUTPUT_ARCHIVE\\\" ...\" && \ echo \" + Input string is \\\"\`cat my-input.data\`\\\"\" && \ if [ \"\$ENVIRONMENT_FILE\" != \"\" ] ; then \ echo \" + Environment file is \\\"\$ENVIRONMENT_FILE\\\" ...\" && \ echo \" SHA1 hash is:\" && \ sha1sum \$ENVIRONMENT_FILE ; \ fi && \ \ echo \" + Simulating some work (your program may do something more useful here!)\" && \ date >my-output.data && \ dd if=/dev/urandom of=my-output.random bs=$SS_OUTPUT_BYTES count=1 && \ sleep 10 && \ \ echo \" + Writing results archive \\\"\$OUTPUT_ARCHIVE\\\" ...\" && \ tar czvf \$OUTPUT_ARCHIVE my-output.data my-output.random && \ \ echo \" + Script processing successfully finished!\" " echo "Preparing input ..." && \ if [ -e "$DIRECTORY/$SS_TEMPDIR" ] ; then rm -rf "$DIRECTORY/$SS_TEMPDIR" fi echo " + Creating directory \"$DIRECTORY/$SS_TEMPDIR\"" && \ mkdir "$DIRECTORY/$SS_TEMPDIR" && \ echo " + Changing to directory \"$DIRECTORY/$SS_TEMPDIR\" ..." && \ cd "$DIRECTORY/$SS_TEMPDIR" && \ \ echo " + Writing input files \"my-input.data\" and \"my-input.random\" ..." && \ echo "This is an example input for ID $UNIQUE_ID" >my-input.data && \ dd if=/dev/urandom of=my-input.random bs=$SS_INPUT_BYTES count=1 && \ \ echo " + Writing runscript \"ssrun\" ..." && \ echo "$SS_RUNSCRIPT" >ssrun && \ \ echo " + Archiving \"ssrun\" and \"my-input.data\" into \"$SS_IN_NAME\" ..." && \ tar chzf ../$SS_IN_NAME ssrun my-input.data my-input.random && \ cd .. || exit 1 if [ "$ENVIRONMENT" != "" ] ; then if [ ! -e "$ENVIRONMENT" ] ; then echo " + Creating environment file \"$ENVIRONMENT\" ..." dd if=/dev/urandom of=$ENVIRONMENT bs=$SS_ENVIRONMENT_BYTES count=1 || exit 1 fi fi echo "Distributing and processing ..." echo " + Input file is \"$SS_IN_NAME\"" echo " + Output will be written into \"$SS_OUT_NAME\"" echo " + Calling scriptingclient ..." echo "" env PATH=$PATH:. scriptingclient -runid="Example ID=$UNIQUE_ID" -environment=$ENVIRONMENT -input=$SS_IN_NAME -output=$SS_OUT_NAME -poolhandle=$POOLHANDLE $@ || exit 1 echo " + scriptingclient has returned" echo "Extracting ..." if [ -s "$SS_OUT_NAME" ] ; then echo " + Unpacking output file \"$SS_OUT_NAME\" ..." ( tar xzvf "$SS_OUT_NAME" | xargs touch ) || exit 1 # This will also update the time stamp! echo " + Results string is \"`cat my-output.data`\"" echo " + Removing temporary files $SS_IN_NAME and $SS_OUT_NAME ..." rm -f $SS_IN_NAME $SS_OUT_NAME echo " + Removing temporary directory $SS_TEMPDIR" rm -rf $SS_TEMPDIR exit 0 else echo "ERROR: No results have been created in directory $DIRECTORY!" exit 1 fi rsplib-3.0.1/rsplib/rootshell.c0000664000175000017500000000462111777021056013414 00000000000000/* $Id: rootshell.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include #include int main(int argc, char** argv) { const char* directory = NULL; int programArg = 1; int i; if(argc < 2) { fprintf(stderr, "Usage: %s {-chdir=Directory} [Program] {Argument} ...\n", argv[0]); exit(1); } for(i = 1; i < argc; i++) { if(argv[i][0] == '-') { programArg = i + 1; if(strncmp(argv[i], "-chdir=", 7) == 0) { directory = (const char*)&argv[i][7]; } else { fprintf(stderr, "ERROR: Bad parameter \"%s\".\n", argv[i]); exit(1); } } else { break; } } if( (setuid(0) == 0) && (setgid(0) == 0) ) { if(directory) { if(chdir(directory) != 0) { perror("Unable to change directory"); exit(1); } } execve(argv[programArg], &argv[programArg], NULL); perror("Unable to start program"); } else { perror("Unable obtain root permissions. Ensure that rootshell is owned by root and has setuid set! Error"); } return(1); } rsplib-3.0.1/rsplib/breakdetector.c0000664000175000017500000000743411777021056014224 00000000000000/* $Id: breakdetector.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2004-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "breakdetector.h" #include "timeutilities.h" #include #include #include /* Kill after timeout: Send kill signal, if Ctrl-C is pressed again after more than KILL_TIMEOUT microseconds */ #define KILL_AFTER_TIMEOUT #define KILL_TIMEOUT 2000000 /* ###### Global variables ############################################### */ static bool DetectedBreak = false; static bool PrintedBreak = false; static int BreakSignal = 0; static bool Quiet = false; static pid_t MainThreadPID = 0; #ifdef KILL_AFTER_TIMEOUT static bool PrintedKill = false; static unsigned long long LastDetection = (unsigned long long)-1; #endif /* ###### Handler for SIGINT ############################################# */ void breakDetector(int signum) { BreakSignal = signum; DetectedBreak = true; #ifdef KILL_AFTER_TIMEOUT if(!PrintedKill) { const unsigned long long now = getMicroTime(); if(LastDetection == (unsigned long long)-1) { LastDetection = now; } else if(now - LastDetection >= 2000000) { PrintedKill = true; fprintf(stderr, "\x1b[0m\n*** Kill ***\n\n"); kill(MainThreadPID, SIGKILL); } } #endif } /* ###### Install break detector ######################################### */ void installBreakDetector() { BreakSignal = 0; DetectedBreak = false; PrintedBreak = false; Quiet = false; MainThreadPID = getpid(); #ifdef KILL_AFTER_TIMEOUT PrintedKill = false; LastDetection = (unsigned long long)-1; #endif signal(SIGINT, &breakDetector); signal(SIGTERM, &breakDetector); } /* ###### Unnstall break detector ######################################## */ void uninstallBreakDetector() { signal(SIGINT, SIG_DFL); signal(SIGTERM, SIG_DFL); #ifdef KILL_AFTER_TIMEOUT PrintedKill = false; LastDetection = (unsigned long long)-1; #endif /* No reset here! DetectedBreak = false; PrintedBreak = false; */ Quiet = false; } /* ###### Check, if break has been detected ############################## */ bool breakDetected() { if((DetectedBreak) && (!PrintedBreak)) { if(!Quiet) { fprintf(stderr, "\x1b[0m\n*** Break *** Signal #%d\n\n", BreakSignal); } PrintedBreak = getMicroTime(); } return(DetectedBreak); } /* ###### Send break to main thread ###################################### */ void sendBreak(const bool quiet) { Quiet = quiet; kill(MainThreadPID, SIGINT); } rsplib-3.0.1/rsplib/breakdetector.h0000664000175000017500000000345711777021056014232 00000000000000/* $Id: breakdetector.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef BREAKDETECTOR_H #define BREAKDETECTOR_H #include "tdtypes.h" #ifdef __cplusplus extern "C" { #endif /** * Install break handler. */ void installBreakDetector(); /** * Uninstall break handler. */ void uninstallBreakDetector(); /** * Check, if break has been detected. */ bool breakDetected(); /** * Send break to main thread. * * @param quiet true to print no break message in breakDetected(), false otherwise (default). */ void sendBreak(const bool quiet); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/rserpool.h0000664000175000017500000006077311777021056013265 00000000000000/* $Id: rserpool.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOL_H #define RSERPOOL_H #include #include #include #include #include #include "rserpool-policytypes.h" #include "rserpool-csp.h" #ifdef __cplusplus extern "C" { #endif #define RSPLIB_VERSION 2 #define RSPLIB_REVISION 3 /* ########################################################################## #### RSerPool DEFINITIONS #### ########################################################################## */ #define ASAP_PORT 3863 #define ENRP_PORT 9901 #define ASAP_ANNOUNCE_MULTICAST_ADDRESS "239.0.0.50:3863" #define ENRP_ANNOUNCE_MULTICAST_ADDRESS "239.0.0.51:9901" /* ########################################################################## #### LIBRARY INITIALIZATION/CLEAN-UP #### ########################################################################## */ struct rsp_registrar_info { struct rsp_registrar_info* rri_next; struct sockaddr* rri_addr; size_t rri_addrs; }; struct rsp_info { unsigned int ri_version; unsigned int ri_revision; const char* ri_build_date; const char* ri_build_time; struct rsp_registrar_info* ri_registrars; int ri_disable_autoconfig; struct sockaddr* ri_registrar_announce; unsigned int ri_registrar_announce_timeout; unsigned int ri_registrar_connect_timeout; unsigned int ri_registrar_connect_max_trials; unsigned int ri_registrar_request_timeout; unsigned int ri_registrar_response_timeout; unsigned int ri_registrar_request_max_trials; uint64_t ri_csp_identifier; struct sockaddr* ri_csp_server; unsigned int ri_csp_interval; }; struct rsp_loadinfo { uint32_t rli_policy; uint32_t rli_weight; uint32_t rli_weight_dpf; uint32_t rli_load; uint32_t rli_load_degradation; uint32_t rli_load_dpf; }; #define REGF_DONTWAIT (1 << 0) /* Do not wait for Registration Response */ #define REGF_CONTROLCHANNEL (1 << 1) /* Pool Element has Control Channel */ #define REGF_DAEMONMODE (1 << 2) /* Daemon mode: don not stop on errors */ #define DEREGF_DONTWAIT (1 << 0) /* Do not wait for Deregistration Response */ /** * Initialize rsp_info structure with defaults. * * @param info rsp_info structure with parameters. */ void rsp_initinfo(struct rsp_info* info); /** * Free rsp_info structure contents allocated upon rsp_initarg * calls. * * @param info rsp_info structure with parameters. * * @see rsp_initarg */ void rsp_freeinfo(struct rsp_info* info); /** * Handle command line argument and put results into rsp_info structure * (if it is an rsplib parameter). * * @param info rsp_info structure with parameters. * @return 1 in case of success, 0 if the parameter is unknown. * * @see rsp_initarg */ int rsp_initarg(struct rsp_info* info, const char* arg); /** * Initialize the RSerPool library. This function must be called before any * other RSerPool library function can be used. * * @param info rsp_info structure with parameters (NULL for defaults). * @param 0 in case of success; -1 in case of an error. */ int rsp_initialize(struct rsp_info* info); /** * Clean-up the RSerPool library. */ void rsp_cleanup(); /* ########################################################################## #### BASIC MODE API #### ########################################################################## */ struct rsp_addrinfo { int ai_family; int ai_socktype; int ai_protocol; size_t ai_addrlen; size_t ai_addrs; struct sockaddr* ai_addr; struct rsp_addrinfo* ai_next; uint32_t ai_pe_id; }; unsigned int rsp_pe_registration(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo* rspAddrInfo, const struct rsp_loadinfo* rspLoadInfo, unsigned int registrationLife, const int flags); unsigned int rsp_pe_deregistration(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier, const int flags); unsigned int rsp_pe_failure(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier); #define RSPGETADDRS_MIN (size_t)1 #define RSPGETADDRS_MAX (size_t)0xffffffff #define RSPGETADDRS_DEFAULT (size_t)0 /** * Perform handle resolution. * * @param poolHandle Pool handle. * @param poolHandleSize Pool handle size. * @param rserpoolAddrInfo Pointer to variable to store pointer to first rsp_addrinfo to. * @param items Desired number of PE entries to obtain. * @param staleCacheValue Stale cache value in milliseconds. * @return Number of PE entries obtained in case of success; error code (negative) in case of an error. * * @see rsp_freeaddrinfo */ int rsp_getaddrinfo(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo** rserpoolAddrInfo, const size_t items, const unsigned int staleCacheValue); /* Error values for rsp_getaddrinfo() function. */ #define REAI_NONAME -1 /* Pool Handle is unknown. */ #define REAI_MEMORY -2 /* Memory allocation failure. */ #define REAI_SYSTEM -3 /* System error returned in `errno'. */ #define REAI_FAMILY -4 /* Address family not supported. */ /** * Free rsp_addrinfo structure. * * @param rserpoolAddrInfo Pointer to rsp_addrinfo to be freed. */ void rsp_freeaddrinfo(struct rsp_addrinfo* rserpoolAddrInfo); /* ########################################################################## #### ENHANCED MODE API #### ########################################################################## */ typedef int rserpool_session_t; #define SESSION_SETSIZE 16384 #define MSG_RSERPOOL_NOTIFICATION (1 << 0) #define MSG_RSERPOOL_COOKIE_ECHO (1 << 1) struct rsp_sndrcvinfo { rserpool_session_t rinfo_session; uint32_t rinfo_ppid; uint32_t rinfo_pe_id; uint32_t rinfo_timetolive; uint16_t rinfo_stream; }; struct rserpool_failover { uint16_t rf_type; uint16_t rf_flags; uint32_t rf_length; unsigned int rf_state; rserpool_session_t rf_session; unsigned char rf_has_cookie; }; #define RSERPOOL_FAILOVER_NECESSARY 1 #define RSERPOOL_FAILOVER_COMPLETE 2 struct rserpool_session_change { uint16_t rsc_type; uint16_t rsc_flags; uint32_t rsc_length; unsigned int rsc_state; rserpool_session_t rsc_session; }; #define RSERPOOL_SESSION_ADD 1 #define RSERPOOL_SESSION_REMOVE 2 struct rserpool_shutdown_event { uint16_t rse_type; uint16_t rse_flags; uint32_t rse_length; rserpool_session_t rse_session; }; union rserpool_notification { struct { uint16_t rn_type; uint16_t rn_flags; uint32_t rn_length; } rn_header; struct rserpool_failover rn_failover; struct rserpool_session_change rn_session_change; struct rserpool_shutdown_event rn_shutdown_event; }; #define RSERPOOL_SESSION_CHANGE 1 #define RSERPOOL_FAILOVER 2 #define RSERPOOL_SHUTDOWN_EVENT 3 struct rserpool_session_parameters { unsigned int sp_rto_initial; unsigned int sp_rto_min; unsigned int sp_rto_max; unsigned int sp_assoc_max_rxt; unsigned int sp_path_max_rxt; unsigned int sp_hbinterval; }; /* ####################################################################### #### RSerPool Socket Functions #### ####################################################################### */ /** * Creation of a RSerPool socket. * * @param domain Socket domain (e.g. AF_INET, AF_INET6, AF_UNSPEC). * @param type Socket type (e.g. SOCK_DGRAM, SOCK_STREAM, SOCK_SEQPACKET). * @param protocol Socket protocol (usually IPPROTO_SCTP). * @return Socket descriptor or -1 in case of an error. */ int rsp_socket(int domain, int type, int protocol); /** * Update session parameters with given rserpool_session_parameters structure. * Values set to 0 remain unchanged. The values actually set are returned in * the structure. * * @param sd Socket descriptor. * @param params rserpool_session_parameters structure. * @return 0 in case of success; -1 in case of an error. */ int rsp_update_session_parameters(int sd, struct rserpool_session_parameters* params); /** * Bind RSerPool socket to address(es). * * @param sd Socket descriptor. * @param addrs Pointer to packed address array. * @param addrcnt Number of addresses in address array. * @return 0 in case of success; -1 in case of an error. */ int rsp_bind(int sd, const struct sockaddr* addrs, int addrcnt); /** * Put RSerPool socket (PE only) into listening mode. * * @param sd Socket descriptor. * @param backlog Backlog. * @return 0 in case of success; -1 in case of an error. */ int rsp_listen(int sd, int backlog); /** * Get PE's pool handle and identifier. * * @param sd Socket descriptor. * @param poolHandle Buffer to store pool handle. * @param poolHandleSize Pointer to variable containing maximum pool handle size. In case of success, the actual pool handle size will be stored there. * @return 0 in case of success; -1 in case of an error. */ int rsp_getsockname(int sd, unsigned char* poolHandle, size_t* poolHandleSize, uint32_t* identifier); /** * Get peer PE's pool handle and identifier. * * @param sd Socket descriptor. * @param poolHandle Buffer to store pool handle. * @param poolHandleSize Pointer to variable containing maximum pool handle size. In case of success, the actual pool handle size will be stored there. * @return 0 in case of success; -1 in case of an error. */ int rsp_getpeername(int sd, unsigned char* poolHandle, size_t* poolHandleSize, uint32_t* identifier); #if 0 /** * * * @param * @param * @return 0 in case of success; -1 in case of an error. */ int rsp_(); #endif /** * Close RSerPool socket. * * @param sd Socket descriptor. * @return 0 in case of success; -1 in case of an error. */ int rsp_close(int sd); /** * Poll function for RSerPool sockets. * * @param ufds Poll array. * @param nfds Number of FDs in poll array. * @param timeout Timeout in milliseconds; -1 for infinite. * @return Number of FDs with events. */ int rsp_poll(struct pollfd* ufds, unsigned int nfds, int timeout); /** * Select function for RSerPool sockets. * * @param n Maximum FD number plus 1. * @param readfds Read FD set. * @param writefds Write FD set. * @param exceptfds Exception FD set. * @param timeout Timeout in form of timeval structure (NULL for infinite). * @return Number of FDs with events. */ int rsp_select(int n, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout); /** * Get RSerPool socket option. * * @param sd RSerPool socket descriptor. * @param level Level number. * @param optname Option number. * @param optval Buffer to store option value to. * @param optlen Pointer to option length. After returning, the value is set to the actual option length. * @return 0 in case of success; -1 in case of an error. */ int rsp_getsockopt(int sd, int level, int optname, void* optval, socklen_t* optlen); /** * Set RSerPool socket option. * * @param sd RSerPool socket descriptor. * @param level Level number. * @param optname Option number. * @param optval Option value. * @param optlen Length of the option value. * @return 0 in case of success; -1 in case of an error. */ int rsp_setsockopt(int sd, int level, int optname, const void* optval, socklen_t optlen); /* ####################################################################### #### Pool Element Functions #### ####################################################################### */ /** * Register a pool element. Upon registration, the RSerPool socket becomes a Pool Element * socket. * * @param sd RSerPool socket descriptor. * @param poolHandle Pool handle. * @param poolHandleSize Size of the pool handle in bytes. * @param loadinfo rsp_loadinfo structure describing the pool policy (NULL for default, i.e. Round Robin). * @param reregistrationInterval Reregistration interval in milliseconds. * @param flags Flags (Set REGF_DONTWAIT in order to avoid blocking until reception of Registration Response). * @return 0 in case of success; -1 in case of an error. */ int rsp_register(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const struct rsp_loadinfo* loadinfo, unsigned int reregistrationInterval, int flags); /** * Deregister a pool element. * * @param sd RSerPool socket descriptor. * @param flags Flags. * @return 0 in case of success; -1 in case of an error. */ int rsp_deregister(int sd, int flags); /** * Accept incoming session on RSerPool Pool Element socket. * * @param sd RSerPool socket descriptor. * @param timeout Timeout in milliseconds; -1 for infinite. * @return RSerPool socket descriptor for the new session in case of success; -1 in case of an error. */ int rsp_accept(int sd, int timeout); /* ####################################################################### #### Pool User Functions #### ####################################################################### */ /** * Connect a RSerPool socket to a pool. Upon connection establishment, the RSerPool Socket becomes * a description for the new session. * * @param sd RSerPool socket descriptor. * @param poolHandle Pool handle. * @param poolHandleSize Size of the pool handle in bytes. * @param staleCacheValue Stale cache value in milliseconds. * @return 0 in case of success; -1 in case of an error. */ int rsp_connect(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const unsigned int staleCacheValue); /** * Check, if a RSerPool socket has received a cookie from its PE. * * @param sd RSerPool socket descriptor. * @return 1, if a cookie has been received; 0 otherwise. */ int rsp_has_cookie(int sd); #define FFF_NONE 0 /* Normal failover, no report */ #define FFF_UNREACHABLE (1 << 0) /* Report unreachable PE */ /** * For a failover to a new Pool Element. * * @param sd RSerPool socket descriptor. * @param flags Flags. * @param staleCacheValue Stale cache value in milliseconds. * @return 0 in case of success; -1 in case of an error. */ int rsp_forcefailover(int sd, const unsigned int flags, const unsigned int staleCacheValue); /* ####################################################################### #### Session Input/Output Functions #### ####################################################################### */ /** * Send data to a RSerPool socket (session). * * @param sd RSerPool socket descriptor. * @param data Data to send. * @param dataLength Length of the data in bytes. * @param msg_flags Message flags. * @param sessionID Session ID (for one-to-many style RSerPool socket only). * @param sctpPPID SCTP payload protocol identifier. * @param sctpStreamID SCTP stream ID. * @param sctpTimeToLive SCTP time to live (ignored, if Pr-SCTP is not available). * @param sctpFlags SCTP flags. * @param timeout Timeout in milliseconds; -1 for infinite. * @return length of the sent data in case of success; -1 in case of an error. */ ssize_t rsp_sendmsg(int sd, const void* data, size_t dataLength, unsigned int msg_flags, rserpool_session_t sessionID, uint32_t sctpPPID, uint16_t sctpStreamID, uint32_t sctpTimeToLive, uint16_t sctpFlags, int timeout); /** * Send cookie via control channel. * * @param sd RSerPool socket descriptor. * @param data Cookie data to send. * @param dataLength Length of the cookie data in bytes. * @param sessionID Session ID (for one-to-many style RSerPool socket only). * @param timeout Timeout in milliseconds; -1 for infinite. * @return length of the sent cookie data in case of success; -1 in case of an error. */ ssize_t rsp_send_cookie(int sd, const unsigned char* cookie, const size_t cookieSize, rserpool_session_t sessionID, int timeout); /** * Receive data from a RSerPool socket (session). This function may return partial * messages, check for MSG_EOR in msg_flags! * * @param sd RSerPool socket descriptor. * @param buffer Buffer to write the received data into. * @param bufferLength Buffer size. * @param rinfo rsp_sndrcvinfo structure containing information about the received data (in particular the session ID for one-to-may style RSerPool sockets). * @param msg_flags Pointer to message flags. In case of RSerPool notification, this function will set MSG_RSERPOOL_NOTIFICATION; for a received cookie echo, MSG_RSERPOOL_COOKIE_ECHO will be set. * @param timeout Timeout in milliseconds; -1 for infinite. * @return length of the sent data in case of success; -1 in case of an error. */ ssize_t rsp_recvmsg(int sd, void* buffer, size_t bufferLength, struct rsp_sndrcvinfo* rinfo, int* msg_flags, int timeout); /** * Receive full message from a RSerPool socket (session), i.e. until MSG_EOR. Note, that * the message may still be partial when the buffer is too small! * * @param sd RSerPool socket descriptor. * @param buffer Buffer to write the received data into. * @param bufferLength Buffer size. * @param rinfo rsp_sndrcvinfo structure containing information about the received data (in particular the session ID for one-to-may style RSerPool sockets). * @param msg_flags Pointer to message flags. In case of RSerPool notification, this function will set MSG_RSERPOOL_NOTIFICATION; for a received cookie echo, MSG_RSERPOOL_COOKIE_ECHO will be set. * @param timeout Timeout in milliseconds; -1 for infinite. * @return length of the sent data in case of success; -1 in case of an error. */ ssize_t rsp_recvfullmsg(int sd, void* buffer, size_t bufferLength, struct rsp_sndrcvinfo* rinfo, int* msg_flags, int timeout); /** * Wrapper for rsp_recvmsg(). * * @param fd RSerPool socket descriptor. * @param buffer Buffer to write the received data into. * @param bufferLength Buffer size. * @return length of the sent data in case of success; -1 in case of an error. * * @see rsp_recvmsg */ ssize_t rsp_read(int fd, void* buffer, size_t bufferLength); /** * Wrapper for rsp_recvmsg(). * * @param sd RSerPool socket descriptor. * @param buffer Buffer to write the received data into. * @param bufferLength Buffer size. * @param flags Message flags. * @return length of the sent data in case of success; -1 in case of an error. * * @see rsp_recvmsg */ ssize_t rsp_recv(int sd, void* buffer, size_t bufferLength, int flags); /** * Wrapper for rsp_sendmsg(). * * @param fd RSerPool socket descriptor. * @param data Data to send. * @param dataLength Length of the data in bytes. * @return length of the sent data in case of success; -1 in case of an error. * * @see rsp_sendmsg */ ssize_t rsp_write(int fd, const char* data, size_t dataLength); /** * Wrapper for rsp_sendmsg(). * * @param sd RSerPool socket descriptor. * @param data Data to send. * @param dataLength Length of the data in bytes. * @param flags Message flags. * @return length of the sent data in case of success; -1 in case of an error. * * @see rsp_sendmsg */ ssize_t rsp_send(int sd, const void* data, size_t dataLength, int flags); /* ####################################################################### #### Miscellaneous Functions #### ####################################################################### */ /** * Map system socket to RSerPool socket. * * @param sd System socket descriptor. * @param toSD Desired RSerPool socket descriptor (-1 for automatic allocation). * @return RSerPool socket descriptor or -1 in case of error. */ int rsp_mapsocket(int sd, int toSD); /** * Unmap system socket from RSerPool socket. * * @param sd System socket descriptor. * @return 0 in case of success; -1 in case of error. */ int rsp_unmapsocket(int sd); /** * Print contents of RSerPool notification. * * @param notification RSerPool notification. * @param fd File descriptor to print notification to (e.g. stdout). */ void rsp_print_notification(const union rserpool_notification* notification, FILE* fd); /** * Translate policy ID into textual representation. * * @param policyType Policy type. * @return Name of the policy or NULL if the type is unknown. */ const char* rsp_getpolicybytype(unsigned int policyType); /** * Translate policy name into ID. * * @param policyName Policy name. * @return ID of the policy or PPT_UNDEFINED in case of unknown policy. */ unsigned int rsp_getpolicybyname(const char* policyName); /** * Set session's application status text for rsp_csp_getcomponentstatus(). * * @param sd SessionDescriptor. * @param statusText Status text. */ int rsp_csp_setstatus(int sd, rserpool_session_t sessionID, const char* statusText); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/rspregistrar-global.c0000664000175000017500000011003411777021056015362 00000000000000/* $Id: rspregistrar-global.c 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" static void poolElementNodeDisposer(struct ST_CLASS(PoolElementNode)* poolElementNode, void* userData); static void peerListNodeDisposer(struct ST_CLASS(PeerListNode)* peerListNode, void* userData); #ifdef ENABLE_REGISTRAR_STATISTICS static void statisticsCallback(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); #endif #ifdef ENABLE_CSP static size_t registrarGetReportFunction( void* userData, uint64_t* identifier, struct ComponentAssociation** caeArray, char* statusText, char* componentLocation, double* workload); #endif /* ###### Constructor #################################################### */ struct Registrar* registrarNew(const RegistrarIdentifierType serverID, int asapUnicastSocket, int asapAnnounceSocket, int enrpUnicastSocket, int enrpMulticastOutputSocket, int enrpMulticastInputSocket, const bool asapSendAnnounces, const union sockaddr_union* asapAnnounceAddress, const bool enrpAnnounceViaMulticast, const union sockaddr_union* enrpMulticastAddress #ifdef ENABLE_REGISTRAR_STATISTICS , FILE* actionLogFile, BZFILE* actionLogBZFile, FILE* statsFile, BZFILE* statsBZFile, const unsigned int statsInterval, const bool needsWeightedStatValues #endif #ifdef ENABLE_CSP , const unsigned int cspReportInterval, const union sockaddr_union* cspReportAddress #endif ) { struct Registrar* registrar; int autoCloseTimeout; int noDelayOn; #ifdef HAVE_SCTP_DELAYED_SACK struct sctp_sack_info sctpSACKInfo; #endif registrar = (struct Registrar*)malloc(sizeof(struct Registrar)); if(registrar != NULL) { registrar->UDPMessageBuffer = messageBufferNew(REGISTRAR_RSERPOOL_MESSAGE_BUFFER_SIZE, false); if(registrar->UDPMessageBuffer == NULL) { free(registrar); return(NULL); } registrar->ASAPMessageBuffer = messageBufferNew(REGISTRAR_RSERPOOL_MESSAGE_BUFFER_SIZE, true); if(registrar->ASAPMessageBuffer == NULL) { messageBufferDelete(registrar->UDPMessageBuffer); free(registrar); return(NULL); } registrar->ENRPUnicastMessageBuffer = messageBufferNew(REGISTRAR_RSERPOOL_MESSAGE_BUFFER_SIZE, true); if(registrar->ENRPUnicastMessageBuffer == NULL) { messageBufferDelete(registrar->ASAPMessageBuffer); messageBufferDelete(registrar->UDPMessageBuffer); free(registrar); return(NULL); } registrar->ServerID = serverID; if(registrar->ServerID == 0) { registrar->ServerID = random32(); } dispatcherNew(®istrar->StateMachine, NULL, NULL, NULL); ST_CLASS(poolHandlespaceManagementNew)(®istrar->Handlespace, registrar->ServerID, NULL, poolElementNodeDisposer, registrar); ST_CLASS(poolUserListNew)(®istrar->PoolUsers); ST_CLASS(peerListManagementNew)(®istrar->Peers, ®istrar->Handlespace, registrar->ServerID, peerListNodeDisposer, registrar); timerNew(®istrar->ASAPAnnounceTimer, ®istrar->StateMachine, registrarHandleASAPAnnounceTimer, (void*)registrar); timerNew(®istrar->ENRPAnnounceTimer, ®istrar->StateMachine, registrarHandleENRPAnnounceTimer, (void*)registrar); timerNew(®istrar->HandlespaceActionTimer, ®istrar->StateMachine, registrarHandlePoolElementEvent, (void*)registrar); timerNew(®istrar->PeerActionTimer, ®istrar->StateMachine, registrarHandlePeerEvent, (void*)registrar); registrar->InStartupPhase = true; registrar->MentorServerID = 0; registrar->ASAPSocket = asapUnicastSocket; registrar->ASAPAnnounceSocket = asapAnnounceSocket; registrar->ASAPSendAnnounces = asapSendAnnounces; registrar->ENRPUnicastSocket = enrpUnicastSocket; registrar->ENRPMulticastInputSocket = enrpMulticastOutputSocket; registrar->ENRPMulticastOutputSocket = enrpMulticastInputSocket; registrar->ENRPAnnounceViaMulticast = enrpAnnounceViaMulticast; registrar->ENRPSupportTakeoverSuggestion = REGISTRAR_DEFAULT_SUPPORT_TAKEOVER_SUGGESTION; registrar->DistanceStep = REGISTRAR_DEFAULT_DISTANCE_STEP; registrar->MaxBadPEReports = REGISTRAR_DEFAULT_MAX_BAD_PE_REPORTS; registrar->ServerAnnounceCycle = REGISTRAR_DEFAULT_SERVER_ANNOUNCE_CYCLE; registrar->EndpointMonitoringHeartbeatInterval = REGISTRAR_DEFAULT_ENDPOINT_MONITORING_HEARTBEAT_INTERVAL; registrar->EndpointKeepAliveTransmissionInterval = REGISTRAR_DEFAULT_ENDPOINT_KEEP_ALIVE_TRANSMISSION_INTERVAL; registrar->EndpointKeepAliveTimeoutInterval = REGISTRAR_DEFAULT_ENDPOINT_KEEP_ALIVE_TIMEOUT_INTERVAL; registrar->MinEndpointAddressScope = REGISTRAR_DEFAULT_MIN_ENDPOINT_ADDRESS_SCOPE; registrar->AutoCloseTimeout = REGISTRAR_DEFAULT_AUTOCLOSE_TIMEOUT; registrar->MaxIncrement = REGISTRAR_DEFAULT_MAX_INCREMENT; registrar->MaxHandleResolutionItems = REGISTRAR_DEFAULT_MAX_HANDLE_RESOLUTION_ITEMS; registrar->MaxElementsPerHTRequest = REGISTRAR_DEFAULT_MAX_ELEMENTS_PER_HANDLE_TABLE_REQUEST; registrar->PeerMaxTimeLastHeard = REGISTRAR_DEFAULT_PEER_MAX_TIME_LAST_HEARD; registrar->PeerMaxTimeNoResponse = REGISTRAR_DEFAULT_PEER_MAX_TIME_NO_RESPONSE; registrar->PeerHeartbeatCycle = REGISTRAR_DEFAULT_PEER_HEARTBEAT_CYCLE; registrar->MentorDiscoveryTimeout = REGISTRAR_DEFAULT_MENTOR_DISCOVERY_TIMEOUT; registrar->TakeoverExpiryInterval = REGISTRAR_DEFAULT_TAKEOVER_EXPIRY_INTERVAL; registrar->AnnounceTTL = REGISTRAR_DEFAULT_ANNOUNCE_TTL; registrar->MaxHRRate = REGISTRAR_DEFAULT_MAX_HR_RATE; registrar->MaxEURate = REGISTRAR_DEFAULT_MAX_EU_RATE; #ifdef ENABLE_REGISTRAR_STATISTICS registrar->ActionLogFile = actionLogFile; registrar->ActionLogBZFile = actionLogBZFile; registrar->StatsFile = statsFile; registrar->StatsBZFile = statsBZFile; registrar->Stats.StatsInterval = statsInterval; registrar->Stats.ActionLogLine = 0; registrar->Stats.ActionLogLastActivity = 0; registrar->Stats.ActionLogStartTime = getMicroTime(); registrar->Stats.StatsStartTime = 0; registrar->Stats.StatsLine = 0; registrar->Stats.RegistrationCount = 0; registrar->Stats.ReregistrationCount = 0; registrar->Stats.DeregistrationCount = 0; registrar->Stats.HandleResolutionCount = 0; registrar->Stats.FailureReportCount = 0; registrar->Stats.SynchronizationCount = 0; registrar->Stats.HandleUpdateCount = 0; registrar->Stats.EndpointKeepAliveCount = 0; registrar->Stats.NeedsWeightedStatValues = needsWeightedStatValues; initWeightedStatValue(®istrar->Stats.PoolsCount, registrar->Stats.ActionLogStartTime); initWeightedStatValue(®istrar->Stats.PoolElementsCount, registrar->Stats.ActionLogStartTime); initWeightedStatValue(®istrar->Stats.OwnedPoolElementsCount, registrar->Stats.ActionLogStartTime); initWeightedStatValue(®istrar->Stats.PeersCount, registrar->Stats.ActionLogStartTime); #endif autoCloseTimeout = (registrar->AutoCloseTimeout / 1000000); if(ext_setsockopt(registrar->ASAPSocket, IPPROTO_SCTP, SCTP_AUTOCLOSE, &autoCloseTimeout, sizeof(autoCloseTimeout)) < 0) { LOG_ERROR logerror("setsockopt() for SCTP_AUTOCLOSE failed"); LOG_END } if(ext_setsockopt(registrar->ENRPUnicastSocket, IPPROTO_SCTP, SCTP_AUTOCLOSE, &autoCloseTimeout, sizeof(autoCloseTimeout)) < 0) { LOG_ERROR logerror("setsockopt() for SCTP_AUTOCLOSE failed"); LOG_END } noDelayOn = 1; if(ext_setsockopt(registrar->ASAPSocket, IPPROTO_SCTP, SCTP_NODELAY, &noDelayOn, sizeof(noDelayOn)) < 0) { LOG_ERROR logerror("setsockopt() for SCTP_NODELAY failed"); LOG_END } if(ext_setsockopt(registrar->ENRPUnicastSocket, IPPROTO_SCTP, SCTP_NODELAY, &noDelayOn, sizeof(noDelayOn)) < 0) { LOG_ERROR logerror("setsockopt() for SCTP_NODELAY failed"); LOG_END } #ifdef HAVE_SCTP_DELAYED_SACK /* ====== Tune SACK handling ======================================= */ /* Without this tuning, the PE would wait 200ms to acknowledge a Endpoint Unreachable. The usually immediately following Handle Resolution transmission would also be delayed ... */ sctpSACKInfo.sack_assoc_id = 0; sctpSACKInfo.sack_delay = 0; sctpSACKInfo.sack_freq = 1; if(ext_setsockopt(registrar->ASAPSocket, IPPROTO_SCTP, SCTP_DELAYED_SACK, &sctpSACKInfo, sizeof(sctpSACKInfo)) < 0) { LOG_WARNING logerror("Unable to set SCTP_DELAYED_SACK"); LOG_END } #else #warning SCTP_DELAYED_SACK/sctp_sack_info is not supported - Unable to tune SACK handling! #endif memcpy(®istrar->ASAPAnnounceAddress, asapAnnounceAddress, sizeof(registrar->ASAPAnnounceAddress)); if(registrar->ASAPAnnounceSocket >= 0) { setNonBlocking(registrar->ASAPAnnounceSocket); } registrar->ASAPAnnounceSocketFamily = getFamily(®istrar->ASAPAnnounceAddress.sa); fdCallbackNew(®istrar->ASAPSocketFDCallback, ®istrar->StateMachine, registrar->ASAPSocket, FDCE_Read|FDCE_Exception, registrarHandleSocketEvent, (void*)registrar); fdCallbackNew(®istrar->ENRPUnicastSocketFDCallback, ®istrar->StateMachine, registrar->ENRPUnicastSocket, FDCE_Read|FDCE_Exception, registrarHandleSocketEvent, (void*)registrar); memcpy(®istrar->ENRPMulticastAddress, enrpMulticastAddress, sizeof(registrar->ENRPMulticastAddress)); if(registrar->ENRPMulticastInputSocket >= 0) { setNonBlocking(registrar->ENRPMulticastInputSocket); fdCallbackNew(®istrar->ENRPMulticastInputSocketFDCallback, ®istrar->StateMachine, registrar->ENRPMulticastInputSocket, FDCE_Read|FDCE_Exception, registrarHandleSocketEvent, (void*)registrar); } registrar->ENRPMulticastOutputSocketFamily = getFamily(®istrar->ENRPMulticastAddress.sa); timerStart(®istrar->ENRPAnnounceTimer, getMicroTime() + registrar->MentorDiscoveryTimeout); if(registrar->ENRPAnnounceViaMulticast) { if(multicastGroupControl(registrar->ENRPMulticastInputSocket, ®istrar->ENRPMulticastAddress, true) == false) { LOG_WARNING fputs("Unable to join multicast group ", stdlog); fputaddress(®istrar->ENRPMulticastAddress.sa, true, stdlog); fputs(". Registrar will probably be unable to detect peers!\n", stdlog); LOG_END } } if(registrar->ENRPMulticastOutputSocket >= 0) { setNonBlocking(registrar->ENRPMulticastOutputSocket); } #ifdef ENABLE_CSP registrar->CSPReportInterval = cspReportInterval; if(registrar->CSPReportInterval > 0) { memcpy(®istrar->CSPReportAddress, cspReportAddress, sizeof(registrar->CSPReportAddress)); cspReporterNew(®istrar->CSPReporter, ®istrar->StateMachine, CID_COMPOUND(CID_GROUP_REGISTRAR, registrar->ServerID), ®istrar->CSPReportAddress.sa, registrar->CSPReportInterval, registrarGetReportFunction, registrar); } #endif #ifdef ENABLE_REGISTRAR_STATISTICS if(registrar->Stats.StatsInterval > 0) { timerNew(®istrar->StatsTimer, ®istrar->StateMachine, statisticsCallback, (void*)registrar); timerStart(®istrar->StatsTimer, 0); } registrarBeginActionLog(registrar); #endif } return(registrar); } /* ###### Destructor ###################################################### */ void registrarDelete(struct Registrar* registrar) { if(registrar) { #ifdef ENABLE_REGISTRAR_STATISTICS if(registrar->StatsFile) { timerDelete(®istrar->StatsTimer); } #endif fdCallbackDelete(®istrar->ENRPUnicastSocketFDCallback); fdCallbackDelete(®istrar->ASAPSocketFDCallback); ST_CLASS(peerListManagementDelete)(®istrar->Peers); ST_CLASS(poolUserListDelete)(®istrar->PoolUsers); ST_CLASS(poolHandlespaceManagementDelete)(®istrar->Handlespace); #ifdef ENABLE_CSP if(registrar->CSPReportInterval > 0) { cspReporterDelete(®istrar->CSPReporter); } #endif timerDelete(®istrar->ASAPAnnounceTimer); timerDelete(®istrar->ENRPAnnounceTimer); timerDelete(®istrar->HandlespaceActionTimer); timerDelete(®istrar->PeerActionTimer); if(registrar->ENRPMulticastOutputSocket >= 0) { ext_close(registrar->ENRPMulticastOutputSocket); registrar->ENRPMulticastOutputSocket = -1; } if(registrar->ENRPMulticastInputSocket >= 0) { fdCallbackDelete(®istrar->ENRPMulticastInputSocketFDCallback); ext_close(registrar->ENRPMulticastInputSocket); registrar->ENRPMulticastInputSocket = -1; } if(registrar->ENRPUnicastSocket >= 0) { ext_close(registrar->ENRPUnicastSocket); registrar->ENRPUnicastSocket = -1; } if(registrar->ASAPAnnounceSocket >= 0) { ext_close(registrar->ASAPAnnounceSocket); registrar->ASAPAnnounceSocket = -1; } if(registrar->ASAPSocket >= 0) { ext_close(registrar->ASAPSocket); registrar->ASAPSocket = -1; } dispatcherDelete(®istrar->StateMachine); messageBufferDelete(registrar->ENRPUnicastMessageBuffer); registrar->ENRPUnicastMessageBuffer = NULL; messageBufferDelete(registrar->ASAPMessageBuffer); registrar->ASAPMessageBuffer = NULL; messageBufferDelete(registrar->UDPMessageBuffer); registrar->UDPMessageBuffer = NULL; free(registrar); } } /* ###### Disposer function for PoolElementNodes ######################### */ static void poolElementNodeDisposer(struct ST_CLASS(PoolElementNode)* poolElementNode, void* userData) { } /* ###### Disposer function for PeerListNodes ############################ */ static void peerListNodeDisposer(struct ST_CLASS(PeerListNode)* peerListNode, void* userData) { /* struct Registrar* registrar = (struct Registrar*)userData; */ if(peerListNode->UserData) { /* A peer handle table request state is still saved. Free its memory. */ free(peerListNode->UserData); peerListNode->UserData = NULL; } } #ifdef ENABLE_REGISTRAR_STATISTICS #ifdef LINUX /* ###### Get system uptime (in microseconds) ############################ */ static unsigned long long getUptime() { double dblUptime; unsigned long long uptime = 0; FILE* fh = fopen("/proc/uptime", "r"); if(fh != NULL) { if(fscanf(fh, "%lf", &dblUptime) == 1) { uptime = (unsigned long long)floor(dblUptime * 1000000.0); } fclose(fh); } return(uptime); } /* ###### Get process times (in microseconds) ############################ */ static bool getProcessTimes(unsigned long long* startupTime, unsigned long long* userTime, unsigned long long* systemTime) { char statusFile[256]; int pid; char tcomm[128]; char state[16]; int ppid; int pgid; int sid; int tty_nr; int tty_pgrp; unsigned long flags; unsigned long min_flt; unsigned long cmin_flt; unsigned long maj_flt; unsigned long cmaj_flt; long priority; long nice; int num_threads; unsigned long long start_time; unsigned long utime; unsigned long stime; long cutime; long cstime; bool success = false; snprintf((char*)&statusFile, sizeof(statusFile), "/proc/%u/stat", getpid()); FILE* fh = fopen(statusFile, "r"); if(fh != NULL) { int result = fscanf(fh, "%d %127s %1s %d %d %d %d %d %lu %lu %lu %lu %lu %lu %lu %ld %ld %ld %ld %d 0 %llu", &pid, (char*)&tcomm, (char*)&state, &ppid, &pgid, &sid, &tty_nr, &tty_pgrp, &flags, &min_flt, &cmin_flt, &maj_flt, &cmaj_flt, &utime, &stime, &cutime, &cstime, &priority, &nice, &num_threads, &start_time); if(result == 21) { *startupTime = start_time * 10000ULL; *userTime = utime * 10000ULL; *systemTime = stime * 10000ULL; success = true; } fclose(fh); } return(success); } #endif /* ###### Statistics dump callback ########################################## */ static void statisticsCallback(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct Registrar* registrar = (struct Registrar*)userData; const unsigned long long now = getMicroTime(); unsigned long long runtime = 0; unsigned long long userTime = 0; unsigned long long systemTime = 0; int bzerror; const char* header; char str[1024]; #ifdef LINUX unsigned long long startupTime = 0; unsigned long long uptime; #endif size_t peers; size_t pools; size_t poolElements; size_t ownedPoolElements; if(registrar->Stats.StatsLine == 0) { header = "AbsTime RelTime Runtime UserTime SystemTime Peers Pools PoolElements OwnedPoolElements Registrations Reregistrations Deregistrations HandleResolutions FailureReports Synchronizations HandleUpdates EndpointKeepAlives\n"; if(registrar->StatsBZFile) { BZ2_bzWrite(&bzerror, registrar->StatsBZFile, (char*)header, strlen(header)); } else { fputs(header, registrar->StatsFile); } registrar->Stats.StatsLine = 1; registrar->Stats.StatsStartTime = now; } #ifdef LINUX if( (getProcessTimes(&startupTime, &userTime, &systemTime)) && ( (uptime = getUptime()) > 0 ) ) { runtime = uptime - startupTime; } else { LOG_WARNING fputs("Unable to obtain process performance data!\n", stdlog); LOG_END } #endif peers = ST_CLASS(peerListManagementGetPeers)(®istrar->Peers); pools = ST_CLASS(poolHandlespaceManagementGetPools)(®istrar->Handlespace); poolElements = ST_CLASS(poolHandlespaceManagementGetPoolElements)(®istrar->Handlespace); ownedPoolElements = ST_CLASS(poolHandlespaceManagementGetOwnedPoolElements)(®istrar->Handlespace); snprintf((char*)&str, sizeof(str), "%06llu %1.6f %1.6f %1.6f %1.6f %1.6f %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu\n", registrar->Stats.StatsLine++, now / 1000000.0, (now - registrar->Stats.StatsStartTime) / 1000000.0, runtime / 1000000.0, userTime / 1000000.0, systemTime / 1000000.0, (unsigned long long)peers, (unsigned long long)pools, (unsigned long long)poolElements, (unsigned long long)ownedPoolElements, registrar->Stats.RegistrationCount, registrar->Stats.ReregistrationCount, registrar->Stats.DeregistrationCount, registrar->Stats.HandleResolutionCount, registrar->Stats.FailureReportCount, registrar->Stats.SynchronizationCount, registrar->Stats.HandleUpdateCount, registrar->Stats.EndpointKeepAliveCount); if(registrar->StatsBZFile) { BZ2_bzWrite(&bzerror, registrar->StatsBZFile, str, strlen(str)); } else { fputs(str, registrar->StatsFile); fflush(registrar->StatsFile); } timerStart(timer, getMicroTime() + (1000ULL * registrar->Stats.StatsInterval)); } /* ###### Print scalar statistics ######################################## */ void registrarPrintScalarStatistics(struct Registrar* registrar, FILE* fh, const char* objectName) { const unsigned long long now = getMicroTime(); fputs("run 1 \"scenario\"\n", fh); fprintf(fh, "scalar \"%s\" \"Registrar Total Registrations\" %8llu\n", objectName, registrar->Stats.RegistrationCount); fprintf(fh, "scalar \"%s\" \"Registrar Total Reregistrations\" %8llu\n", objectName, registrar->Stats.ReregistrationCount); fprintf(fh, "scalar \"%s\" \"Registrar Total Deregistrations\" %8llu\n", objectName, registrar->Stats.DeregistrationCount); fprintf(fh, "scalar \"%s\" \"Registrar Total Handle Resolutions\" %8llu\n", objectName, registrar->Stats.HandleResolutionCount); fprintf(fh, "scalar \"%s\" \"Registrar Total Failure Reports\" %8llu\n", objectName, registrar->Stats.FailureReportCount); fprintf(fh, "scalar \"%s\" \"Registrar Total Synchronizations\" %8llu\n", objectName, registrar->Stats.SynchronizationCount); fprintf(fh, "scalar \"%s\" \"Registrar Total Handle Updates\" %8llu\n", objectName, registrar->Stats.HandleUpdateCount); fprintf(fh, "scalar \"%s\" \"Registrar Total Endpoint Keep Alives\" %8llu\n", objectName, registrar->Stats.EndpointKeepAliveCount); fprintf(fh, "scalar \"%s\" \"Registrar Average Number Of Pools\" %1.6f\n", objectName, averageWeightedStatValue(®istrar->Stats.PoolsCount, now)); fprintf(fh, "scalar \"%s\" \"Registrar Average Number Of Pool Elements\" %1.6f\n", objectName, averageWeightedStatValue(®istrar->Stats.PoolElementsCount, now)); fprintf(fh, "scalar \"%s\" \"Registrar Average Number Of Owned Pool Elements\" %1.6f\n", objectName, averageWeightedStatValue(®istrar->Stats.OwnedPoolElementsCount, now)); fprintf(fh, "scalar \"%s\" \"Registrar Average Number Of Peers\" %1.6f\n", objectName, averageWeightedStatValue(®istrar->Stats.PeersCount, now)); } /* ###### Write action log header line ################################### */ void registrarBeginActionLog(struct Registrar* registrar) { const char* header; int bzerror; if(registrar->ActionLogFile) { header = "AbsTime RelTime Direction Protocol Action Reason Flags Counter Time PoolHandle PoolElementID SenderID ReceiverID TargetID ErrorCode\n"; if(registrar->ActionLogBZFile) { BZ2_bzWrite(&bzerror, registrar->ActionLogBZFile, (char*)header, strlen(header)); } else { fputs(header, registrar->ActionLogFile); fflush(registrar->ActionLogFile); } } } /* ###### Write action log entry ######################################### */ void registrarWriteActionLog(struct Registrar* registrar, const char* direction, const char* protocol, const char* action, const char* reason, const uint32_t flags, const unsigned long long counter, const unsigned long long timeValue, const struct PoolHandle* poolHandle, PoolElementIdentifierType poolElementID, RegistrarIdentifierType senderID, RegistrarIdentifierType receiverID, RegistrarIdentifierType targetID, unsigned int errorCode) { char str1[1024]; char str2[1024]; char str3[256]; int bzerror; if(registrar->ActionLogFile) { registrar->Stats.ActionLogLastActivity = getMicroTime(); registrar->Stats.ActionLogLine++; snprintf((char*)&str1, sizeof(str1), "%06llu %1.6f %1.6f \"%s\" \"%s\" \"%s\" \"%s\" 0x%x %llu %1.6f \"", registrar->Stats.ActionLogLine, registrar->Stats.ActionLogLastActivity / 1000000.0, (registrar->Stats.ActionLogLastActivity - registrar->Stats.ActionLogStartTime) / 1000000.0, direction, protocol, action, reason, flags, counter, timeValue / 1000000.0); if(poolHandle) { poolHandleGetDescription(poolHandle, (char*)&str2, sizeof(str2)); } else { str2[0] = 0x00; } snprintf((char*)&str3, sizeof(str3), "\" 0x%x 0x%x 0x%x 0x%x %x\n", poolElementID, senderID, receiverID, targetID, errorCode); if(registrar->ActionLogBZFile) { BZ2_bzWrite(&bzerror, registrar->ActionLogBZFile, str1, strlen(str1)); BZ2_bzWrite(&bzerror, registrar->ActionLogBZFile, str2, strlen(str2)); BZ2_bzWrite(&bzerror, registrar->ActionLogBZFile, str3, strlen(str3)); } else { fputs(str1, registrar->ActionLogFile); fputs(str2, registrar->ActionLogFile); fputs(str3, registrar->ActionLogFile); fflush(registrar->ActionLogFile); } } } #endif #ifdef ENABLE_CSP /* ###### Get CSP report ################################################# */ static size_t registrarGetReportFunction( void* userData, uint64_t* identifier, struct ComponentAssociation** caeArray, char* statusText, char* componentLocation, double* workload) { struct ST_CLASS(PeerListNode)* peerListNode; struct Registrar* registrar = (struct Registrar*)userData; size_t caeArraySize; size_t peers; size_t pools; size_t poolElements; size_t ownedPoolElements; LOG_VERBOSE4 fputs("Sending a Component Status Protocol report...\n", stdlog); LOG_END peers = ST_CLASS(peerListManagementGetPeers)(®istrar->Peers); pools = ST_CLASS(poolHandlespaceManagementGetPools)(®istrar->Handlespace); poolElements = ST_CLASS(poolHandlespaceManagementGetPoolElements)(®istrar->Handlespace); ownedPoolElements = ST_CLASS(poolHandlespaceManagementGetOwnedPoolElements)(®istrar->Handlespace); snprintf(statusText, CSPR_STATUS_SIZE, "%u[%u] PEs in %u Pool%s, %u Peer%s", (unsigned int)poolElements, (unsigned int)ownedPoolElements, (unsigned int)pools, (pools == 1) ? "" : "s", (unsigned int)peers, (peers == 1) ? "" : "s"); getComponentLocation(componentLocation, registrar->ASAPSocket, 0); *workload = -1.0; *caeArray = createComponentAssociationArray(peers); caeArraySize = 0; if(*caeArray) { peerListNode = ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)(®istrar->Peers); while(peerListNode != NULL) { (*caeArray)[caeArraySize].ReceiverID = CID_COMPOUND(CID_GROUP_REGISTRAR, peerListNode->Identifier); (*caeArray)[caeArraySize].Duration = ~0; (*caeArray)[caeArraySize].Flags = 0; (*caeArray)[caeArraySize].ProtocolID = IPPROTO_SCTP; (*caeArray)[caeArraySize].PPID = PPID_ENRP; caeArraySize++; peerListNode = ST_CLASS(peerListManagementGetNextPeerListNodeFromIndexStorage)( ®istrar->Peers, peerListNode); } } return(caeArraySize); } #endif /* ###### Add static peer ################################################ */ unsigned int registrarAddStaticPeer( struct Registrar* registrar, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock) { struct ST_CLASS(PeerListNode)* peerListNode; int result; char localAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* localAddressBlock = (struct TransportAddressBlock*)&localAddressBlockBuffer; /* ====== Skip own address ============================================ */ if(transportAddressBlockGetAddressesFromSCTPSocket(localAddressBlock, registrar->ENRPUnicastSocket, 0, MAX_PE_TRANSPORTADDRESSES, true) > 0) { if(transportAddressBlockOverlapComparison(localAddressBlock, transportAddressBlock) == 0) { return(RSPERR_OKAY); } } /* ====== Add static peer ============================================= */ result = ST_CLASS(peerListManagementRegisterPeerListNode)( ®istrar->Peers, identifier, PLNF_STATIC, transportAddressBlock, getMicroTime(), &peerListNode); return(result); } /* ###### Randomize heartbeat cycle ###################################### */ unsigned long long registrarRandomizeCycle(const unsigned long long interval) { const double originalInterval = (double)interval; const double variation = 0.250 * originalInterval; const double nextInterval = originalInterval - (variation / 2.0) + variation * ((double)rand() / (double)RAND_MAX); return((unsigned long long)nextInterval); } /* ###### Round distance to nearest step ################################# */ unsigned int registrarRoundDistance(const unsigned int distance, const unsigned int step) { const unsigned int d = (unsigned int)rint((double)distance / step) * step; return(d); } /* ###### Update distance for distance-sensitive policies ################ */ void registrarUpdateDistance(struct Registrar* registrar, int fd, sctp_assoc_t assocID, const struct ST_CLASS(PoolElementNode)* poolElementNode, struct PoolPolicySettings* updatedPolicySettings, bool addDistance, unsigned int* distance) { struct sctp_status assocStatus; socklen_t assocStatusLength; *updatedPolicySettings = poolElementNode->PolicySettings; /* ====== Set distance for distance-sensitive policies ======= */ if((poolElementNode->PolicySettings.PolicyType == PPT_LEASTUSED_DPF) || (poolElementNode->PolicySettings.PolicyType == PPT_LEASTUSED_DEGRADATION_DPF) || (poolElementNode->PolicySettings.PolicyType == PPT_WEIGHTED_RANDOM_DPF)) { if(*distance == 0xffffffff) { assocStatusLength = sizeof(assocStatus); assocStatus.sstat_assoc_id = assocID; if(ext_getsockopt(fd, IPPROTO_SCTP, SCTP_STATUS, (char*)&assocStatus, &assocStatusLength) == 0) { *distance = registrarRoundDistance(assocStatus.sstat_primary.spinfo_srtt / 2, registrar->DistanceStep); LOG_VERBOSE fprintf(stdlog, " FD %d, assoc %u: primary=", fd, (unsigned int)assocID); fputaddress((struct sockaddr*)&assocStatus.sstat_primary.spinfo_address, false, stdlog); fprintf(stdlog, " cwnd=%u srtt=%u rto=%u mtu=%u\n", assocStatus.sstat_primary.spinfo_cwnd, assocStatus.sstat_primary.spinfo_srtt, assocStatus.sstat_primary.spinfo_rto, assocStatus.sstat_primary.spinfo_mtu); LOG_END } else { LOG_WARNING logerror("Unable to obtain SCTP_STATUS"); LOG_END *distance = 0; } } if(addDistance) { updatedPolicySettings->Distance += *distance; } else { updatedPolicySettings->Distance = *distance; } } else { *distance = 0; } } rsplib-3.0.1/rsplib/peerlist-template_impl.h0000664000175000017500000004666711777021056016107 00000000000000/* $Id: peerlist-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* ###### Initialize ##################################################### */ void ST_CLASS(peerListNew)(struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType ownIdentifier) { ST_METHOD(New)(&peerList->PeerListIndexStorage, ST_CLASS(peerListIndexStorageNodePrint), ST_CLASS(peerListIndexStorageNodeComparison)); ST_METHOD(New)(&peerList->PeerListTimerStorage, ST_CLASS(peerListTimerStorageNodePrint), ST_CLASS(peerListTimerStorageNodeComparison)); peerList->OwnIdentifier = ownIdentifier; peerList->UserData = NULL; } /* ###### Invalidate ##################################################### */ void ST_CLASS(peerListDelete)(struct ST_CLASS(PeerList)* peerList) { ST_METHOD(Delete)(&peerList->PeerListIndexStorage); ST_METHOD(Delete)(&peerList->PeerListTimerStorage); peerList->OwnIdentifier = UNDEFINED_REGISTRAR_IDENTIFIER; } /* ###### Get number of pool elements #################################### */ size_t ST_CLASS(peerListGetPeerListNodes)( const struct ST_CLASS(PeerList)* peerList) { return(ST_METHOD(GetElements)(&peerList->PeerListIndexStorage)); } /* ###### Get first PeerListNode from Index ############################## */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&peerList->PeerListIndexStorage); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(node)); } return(NULL); } /* ###### Get last PeerListNode from Index ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetLastPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList) { struct STN_CLASSNAME* node = ST_METHOD(GetLast)(&peerList->PeerListIndexStorage); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(node)); } return(NULL); } /* ###### Get next PeerListNode from Index ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&peerList->PeerListIndexStorage, &peerListNode->PeerListIndexStorageNode); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(node)); } return(NULL); } /* ###### Get previous PeerListNode from Index ########################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetPrevPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode) { struct STN_CLASSNAME* node = ST_METHOD(GetPrev)(&peerList->PeerListIndexStorage, &peerListNode->PeerListIndexStorageNode); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(node)); } return(NULL); } /* ###### Get first PeerListNode from Timer ############################## */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetFirstPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&peerList->PeerListTimerStorage); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)(node)); } return(NULL); } /* ###### Get last PeerListNode from Timer ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetLastPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList) { struct STN_CLASSNAME* node = ST_METHOD(GetLast)(&peerList->PeerListTimerStorage); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)(node)); } return(NULL); } /* ###### Get next PeerListNode from Timer ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetNextPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&peerList->PeerListTimerStorage, &peerListNode->PeerListTimerStorageNode); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)(node)); } return(NULL); } /* ###### Get previous PeerListNode from Timer ########################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetPrevPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode) { struct STN_CLASSNAME* node = ST_METHOD(GetPrev)(&peerList->PeerListTimerStorage, &peerListNode->PeerListTimerStorageNode); if(node) { return(ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)(node)); } return(NULL); } /* ###### Insert PeerListNode into timer storage ######################### */ void ST_CLASS(peerListActivateTimer)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode, const unsigned int timerCode, const unsigned long long timerTimeStamp) { struct STN_CLASSNAME* result; CHECK(!STN_METHOD(IsLinked)(&peerListNode->PeerListTimerStorageNode)); peerListNode->TimerCode = timerCode; peerListNode->TimerTimeStamp = timerTimeStamp; result = ST_METHOD(Insert)(&peerList->PeerListTimerStorage, &peerListNode->PeerListTimerStorageNode); CHECK(result == &peerListNode->PeerListTimerStorageNode); } /* ###### Remove PeerListNode from timer storage ######################### */ void ST_CLASS(peerListDeactivateTimer)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode) { struct STN_CLASSNAME* result; if(STN_METHOD(IsLinked)(&peerListNode->PeerListTimerStorageNode)) { result = ST_METHOD(Remove)(&peerList->PeerListTimerStorage, &peerListNode->PeerListTimerStorageNode); CHECK(result == &peerListNode->PeerListTimerStorageNode); } } /* ###### Get textual description ######################################## */ void ST_CLASS(peerListGetDescription)(struct ST_CLASS(PeerList)* peerList, char* buffer, const size_t bufferSize) { snprintf(buffer, bufferSize, "PeerList of $%08x (%u peers)", peerList->OwnIdentifier, (unsigned int)ST_CLASS(peerListGetPeerListNodes)(peerList)); } /* ###### Verify ######################################################### */ void ST_CLASS(peerListVerify)(struct ST_CLASS(PeerList)* peerList) { ST_METHOD(Verify)(&peerList->PeerListIndexStorage); ST_METHOD(Verify)(&peerList->PeerListTimerStorage); } /* ###### Print ########################################################## */ void ST_CLASS(peerListPrint)(struct ST_CLASS(PeerList)* peerList, FILE* fd, const unsigned int fields) { struct ST_CLASS(PeerListNode)* peerListNode; char peerListDescription[128]; unsigned int i; ST_CLASS(peerListGetDescription)(peerList, (char*)&peerListDescription, sizeof(peerListDescription)); fputs(peerListDescription, fd); fputs("\n", fd); if(fields & PLPO_PEERS_INDEX) { fputs(" +-- Peers by Index:\n", fd); i = 1; peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(peerList); while(peerListNode != NULL) { fprintf(fd, " - idx:#%04u: ", i); ST_CLASS(peerListNodePrint)(peerListNode, fd, fields); fputs("\n", fd); i++; peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)(peerList, peerListNode); } } if(fields & PLPO_PEERS_TIMER) { fputs(" +-- Peers by Timer:\n", fd); i = 1; peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromTimerStorage)(peerList); while(peerListNode != NULL) { fprintf(fd, " - idx:#%04u: ", i); ST_CLASS(peerListNodePrint)(peerListNode, fd, fields); fputs("\n", fd); i++; peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromTimerStorage)(peerList, peerListNode); } } } /* ###### Clear ########################################################## */ void ST_CLASS(peerListClear)(struct ST_CLASS(PeerList)* peerList, void (*peerListNodeDisposer)(void* peerListNode, void* userData), void* userData) { struct ST_CLASS(PeerListNode)* peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(peerList); while(peerListNode != NULL) { ST_CLASS(peerListRemovePeerListNode)(peerList, peerListNode); ST_CLASS(peerListNodeDelete)(peerListNode); peerListNodeDisposer(peerListNode, userData); peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(peerList); } } /* ###### Check, if node may be inserted into pool ####################### */ unsigned int ST_CLASS(peerListCheckPeerListNodeCompatibility)( const struct ST_CLASS(PeerList)* peerList, const struct ST_CLASS(PeerListNode)* peerListNode) { /* It does not make sense to insert its own ID into the peer list! */ if((peerList->OwnIdentifier != UNDEFINED_REGISTRAR_IDENTIFIER) && (peerListNode->Identifier == peerList->OwnIdentifier)) { return(RSPERR_OWN_ID); } return(RSPERR_OKAY); } /* ###### Add PeerListNode ############################################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListAddPeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode, unsigned int* errorCode) { struct STN_CLASSNAME* result; *errorCode = ST_CLASS(peerListCheckPeerListNodeCompatibility)(peerList, peerListNode); if(*errorCode != RSPERR_OKAY) { return(NULL); } /* Allow random selection. It might be useful to add priorities ... */ peerListNode->PeerListIndexStorageNode.Value = 1; result = ST_METHOD(Insert)(&peerList->PeerListIndexStorage, &peerListNode->PeerListIndexStorageNode); if(result == &peerListNode->PeerListIndexStorageNode) { peerListNode->OwnerPeerList = peerList; *errorCode = RSPERR_OKAY; return(peerListNode); } *errorCode = RSPERR_DUPLICATE_ID; return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(result)); } /* ###### Update PeerListNode ############################################ */ void ST_CLASS(peerListUpdatePeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode, const struct ST_CLASS(PeerListNode)* source, unsigned int* errorCode) { struct STN_CLASSNAME* result; *errorCode = ST_CLASS(peerListCheckPeerListNodeCompatibility)(peerList, source); if(*errorCode == RSPERR_OKAY) { /* Update ID */ if(peerListNode->Identifier != source->Identifier) { result = ST_METHOD(Remove)(&peerList->PeerListIndexStorage, &peerListNode->PeerListIndexStorageNode); CHECK(result == &peerListNode->PeerListIndexStorageNode); peerListNode->Identifier = source->Identifier; result = ST_METHOD(Insert)(&peerList->PeerListIndexStorage, &peerListNode->PeerListIndexStorageNode); CHECK(result == &peerListNode->PeerListIndexStorageNode); } ST_CLASS(peerListNodeUpdate)(peerListNode, source); peerListNode->Flags &= ~PLNF_NEW; } } /* ###### Add or Update PeerListNode ##################################### */ /* Allocation behavior: User program places PeerListNode data in new memory area. If the structure is used for insertion into the list, their pointer is set to NULL. So, the user program has to allocate new spaces for the next element. Otherwise, data has been copied into already existing nodes and the memory area can be reused. */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListAddOrUpdatePeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)** peerListNode, unsigned int* errorCode) { struct ST_CLASS(PeerListNode)* newPeerListNode; newPeerListNode = ST_CLASS(peerListAddPeerListNode)(peerList, *peerListNode, errorCode); if(newPeerListNode != NULL) { if(newPeerListNode != *peerListNode) { ST_CLASS(peerListUpdatePeerListNode)(peerList, newPeerListNode, *peerListNode, errorCode); } else { newPeerListNode->Flags |= PLNF_NEW; *peerListNode = NULL; } } return(newPeerListNode); } /* ###### Find PeerListNode ############################################## */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListFindPeerListNode)( struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock) { struct ST_CLASS(PeerListNode)* peerListNode; struct ST_CLASS(PeerListNode) cmpElement; struct STN_CLASSNAME* result; if(identifier != UNDEFINED_REGISTRAR_IDENTIFIER) { cmpElement.Identifier = identifier; cmpElement.AddressBlock = (struct TransportAddressBlock*)transportAddressBlock; result = ST_METHOD(Find)(&peerList->PeerListIndexStorage, &cmpElement.PeerListIndexStorageNode); if(result) { return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(result)); } } else { peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(peerList); while(peerListNode != NULL) { if(transportAddressBlockOverlapComparison(peerListNode->AddressBlock, transportAddressBlock) == 0) { return(peerListNode); } peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)(peerList, peerListNode); } } return(NULL); } /* ###### Find nearest prev PeerListNode ################################# */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListFindNearestPrevPeerListNode)( struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock) { struct ST_CLASS(PeerListNode) cmpElement; struct STN_CLASSNAME* result; cmpElement.Identifier = identifier; cmpElement.AddressBlock = (struct TransportAddressBlock*)transportAddressBlock; result = ST_METHOD(GetNearestPrev)(&peerList->PeerListIndexStorage, &cmpElement.PeerListIndexStorageNode); if(result) { return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(result)); } return(NULL); } /* ###### Find nearest next PeerListNode ################################# */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListFindNearestNextPeerListNode)( struct ST_CLASS(PeerList)* peerList, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock) { struct ST_CLASS(PeerListNode) cmpElement; struct STN_CLASSNAME* result; cmpElement.Identifier = identifier; cmpElement.AddressBlock = (struct TransportAddressBlock*)transportAddressBlock; result = ST_METHOD(GetNearestNext)(&peerList->PeerListIndexStorage, &cmpElement.PeerListIndexStorageNode); if(result) { return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(result)); } return(NULL); } /* ###### Remove PeerListNode ############################################ */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListRemovePeerListNode)( struct ST_CLASS(PeerList)* peerList, struct ST_CLASS(PeerListNode)* peerListNode) { struct STN_CLASSNAME* result; result = ST_METHOD(Remove)(&peerList->PeerListIndexStorage, &peerListNode->PeerListIndexStorageNode); CHECK(result == &peerListNode->PeerListIndexStorageNode); if(STN_METHOD(IsLinked)(&peerListNode->PeerListTimerStorageNode)) { result = ST_METHOD(Remove)(&peerList->PeerListTimerStorage, &peerListNode->PeerListTimerStorageNode); CHECK(result == &peerListNode->PeerListTimerStorageNode); } peerListNode->OwnerPeerList = NULL; return(peerListNode); } /* ###### Get random PeerListNode from Index ############################# */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListGetRandomPeerListNode)( struct ST_CLASS(PeerList)* peerList) { unsigned long long value; const unsigned long long maxValue = ST_METHOD(GetValueSum)( &peerList->PeerListIndexStorage); if(maxValue < 1) { return(NULL); } value = random64() % maxValue; return(ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)( ST_METHOD(GetNodeByValue)(&peerList->PeerListIndexStorage, value))); } rsplib-3.0.1/rsplib/sessionstorage.c0000664000175000017500000002105511777021056014451 00000000000000/* $Id: sessionstorage.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "sessionstorage.h" #include "debug.h" #include /* ###### Get session from assoc ID storage node ######################### */ static struct Session* getSessionFromAssocIDStorageNode(void* node) { return((struct Session*)((long)node - ((long)&((struct Session *)node)->AssocIDNode - (long)node))); } /* ###### Get session from session ID storage node ####################### */ static struct Session* getSessionFromSessionIDStorageNode(void* node) { return((struct Session*)((long)node - ((long)&((struct Session *)node)->SessionIDNode - (long)node))); } /* ###### Print assoc ID storage node #################################### */ static void sessionAssocIDPrint(const void* node, FILE* fd) { const struct Session* session = (const struct Session*)getSessionFromAssocIDStorageNode((void*)node); fprintf(fd, "A%u[S%u] ", (unsigned int)session->AssocID, session->SessionID); } /* ###### Compare assoc ID storage nodes ################################# */ static int sessionAssocIDComparison(const void* node1, const void* node2) { const struct Session* session1 = (const struct Session*)getSessionFromAssocIDStorageNode((void*)node1); const struct Session* session2 = (const struct Session*)getSessionFromAssocIDStorageNode((void*)node2); if(session1->AssocID < session2->AssocID) { return(-1); } else if(session1->AssocID > session2->AssocID) { return(1); } return(0); } /* ###### Print session ID storage node ################################## */ static void sessionSessionIDPrint(const void* node, FILE* fd) { const struct Session* session = (const struct Session*)getSessionFromSessionIDStorageNode((void*)node); fprintf(fd, "%u[A%u] ", session->SessionID, (unsigned int)session->AssocID); } /* ###### Compare session ID storage nodes ############################### */ static int sessionSessionIDComparison(const void* node1, const void* node2) { const struct Session* session1 = (const struct Session*)getSessionFromSessionIDStorageNode((void*)node1); const struct Session* session2 = (const struct Session*)getSessionFromSessionIDStorageNode((void*)node2); if(session1->SessionID < session2->SessionID) { return(-1); } else if(session1->SessionID > session2->SessionID) { return(1); } return(0); } /* ###### Constructor #################################################### */ void sessionStorageNew(struct SessionStorage* sessionStorage) { simpleRedBlackTreeNew(&sessionStorage->AssocIDSet, sessionAssocIDPrint, sessionAssocIDComparison); simpleRedBlackTreeNew(&sessionStorage->SessionIDSet, sessionSessionIDPrint, sessionSessionIDComparison); } /* ###### Destructor ##################################################### */ void sessionStorageDelete(struct SessionStorage* sessionStorage) { CHECK(simpleRedBlackTreeIsEmpty(&sessionStorage->AssocIDSet)); CHECK(simpleRedBlackTreeIsEmpty(&sessionStorage->SessionIDSet)); simpleRedBlackTreeDelete(&sessionStorage->AssocIDSet); simpleRedBlackTreeDelete(&sessionStorage->SessionIDSet); } /* ###### Add session #################################################### */ void sessionStorageAddSession(struct SessionStorage* sessionStorage, struct Session* session) { CHECK(simpleRedBlackTreeInsert(&sessionStorage->SessionIDSet, &session->SessionIDNode) == &session->SessionIDNode); CHECK(simpleRedBlackTreeInsert(&sessionStorage->AssocIDSet, &session->AssocIDNode) == &session->AssocIDNode); } /* ###### Delete session ################################################# */ void sessionStorageDeleteSession(struct SessionStorage* sessionStorage, struct Session* session) { CHECK(simpleRedBlackTreeRemove(&sessionStorage->SessionIDSet, &session->SessionIDNode) == &session->SessionIDNode); CHECK(simpleRedBlackTreeRemove(&sessionStorage->AssocIDSet, &session->AssocIDNode) == &session->AssocIDNode); } /* ###### Update session's assoc ID ###################################### */ void sessionStorageUpdateSession(struct SessionStorage* sessionStorage, struct Session* session, sctp_assoc_t newAssocID) { CHECK(simpleRedBlackTreeRemove(&sessionStorage->AssocIDSet, &session->AssocIDNode) == &session->AssocIDNode); session->AssocID = newAssocID; CHECK(simpleRedBlackTreeInsert(&sessionStorage->AssocIDSet, &session->AssocIDNode) == &session->AssocIDNode); } /* ###### Is session storage empty? ###################################### */ bool sessionStorageIsEmpty(struct SessionStorage* sessionStorage) { return(simpleRedBlackTreeIsEmpty(&sessionStorage->SessionIDSet)); } /* ###### Get number of sessions ######################################### */ size_t sessionStorageGetElements(struct SessionStorage* sessionStorage) { return(simpleRedBlackTreeGetElements(&sessionStorage->SessionIDSet)); } /* ###### Print session storage ########################################## */ void sessionStoragePrint(struct SessionStorage* sessionStorage, FILE* fd) { fputs("SessionStorage:\n", fd); fputs(" by Session ID: ", fd); simpleRedBlackTreePrint(&sessionStorage->SessionIDSet, fd); fputs(" by Assoc ID: ", fd); simpleRedBlackTreePrint(&sessionStorage->AssocIDSet, fd); } /* ###### Find session by session ID ##################################### */ struct Session* sessionStorageFindSessionBySessionID(struct SessionStorage* sessionStorage, rserpool_session_t sessionID) { struct Session cmpNode; struct SimpleRedBlackTreeNode* node; cmpNode.SessionID = sessionID; node = simpleRedBlackTreeFind(&sessionStorage->SessionIDSet, &cmpNode.SessionIDNode); if(node != NULL) { return(getSessionFromSessionIDStorageNode(node)); } return(NULL); } /* ###### Find session by assoc ID ####################################### */ struct Session* sessionStorageFindSessionByAssocID(struct SessionStorage* sessionStorage, sctp_assoc_t assocID) { struct Session cmpNode; struct SimpleRedBlackTreeNode* node; cmpNode.AssocID = assocID; node = simpleRedBlackTreeFind(&sessionStorage->AssocIDSet, &cmpNode.AssocIDNode); if(node != NULL) { return(getSessionFromAssocIDStorageNode(node)); } return(NULL); } /* ###### Get first session ############################################## */ struct Session* sessionStorageGetFirstSession(struct SessionStorage* sessionStorage) { struct SimpleRedBlackTreeNode* node; node = simpleRedBlackTreeGetFirst(&sessionStorage->SessionIDSet); if(node != NULL) { return(getSessionFromSessionIDStorageNode(node)); } return(NULL); } /* ###### Get next session ############################################### */ struct Session* sessionStorageGetNextSession(struct SessionStorage* sessionStorage, struct Session* session) { struct SimpleRedBlackTreeNode* node; node = simpleRedBlackTreeGetNext(&sessionStorage->SessionIDSet, &session->SessionIDNode); if(node != NULL) { return(getSessionFromSessionIDStorageNode(node)); } return(NULL); } rsplib-3.0.1/rsplib/sessionstorage.h0000664000175000017500000000602111777021056014452 00000000000000/* $Id: sessionstorage.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SESSIONSTORAGE_H #define SESSIONSTORAGE_H #include "tdtypes.h" #include "session.h" #include "simpleredblacktree.h" #ifdef __cplusplus extern "C" { #endif struct SessionStorage { struct SimpleRedBlackTree AssocIDSet; struct SimpleRedBlackTree SessionIDSet; }; void sessionStorageNew(struct SessionStorage* sessionStorage); void sessionStorageDelete(struct SessionStorage* sessionStorage); void sessionStorageAddSession(struct SessionStorage* sessionStorage, struct Session* session); void sessionStorageDeleteSession(struct SessionStorage* sessionStorage, struct Session* session); void sessionStorageUpdateSession(struct SessionStorage* sessionStorage, struct Session* session, sctp_assoc_t newAssocID); bool sessionStorageIsEmpty(struct SessionStorage* sessionStorage); size_t sessionStorageGetElements(struct SessionStorage* sessionStorage); void sessionStoragePrint(struct SessionStorage* sessionStorage, FILE* fd); struct Session* sessionStorageFindSessionBySessionID(struct SessionStorage* sessionStorage, rserpool_session_t sessionID); struct Session* sessionStorageFindSessionByAssocID(struct SessionStorage* sessionStorage, sctp_assoc_t assocID); struct Session* sessionStorageGetFirstSession(struct SessionStorage* sessionStorage); struct Session* sessionStorageGetNextSession(struct SessionStorage* sessionStorage, struct Session* session); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/add-dummy-interface0000775000175000017500000000363111777021056015002 00000000000000#!/bin/bash # $Id: add-dummy-interface 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de modprobe dummy # dummy0 abschalten ip addr flush dev dummy0 ip link set dummy0 down # Achtung: Multicast-Flag muß gesetzt werden, sonst wird das # Interface für sendMulticastOverAllInterfaces() nicht genutzt! ip link set dummy0 up multicast on # IPv4-Adresse ip addr add 10.255.255.1/24 dev dummy0 # IPv6-Adresse ip addr add 3ffe:ab:cd:ef:123:45:67:89a/64 dev dummy0 # IPv4-Adresse und Route; Default-Metrik: 0 # ip route add metric 0xffff default via 10.255.255.2 # IPv6-Adresse und Route; Default-Metrik: 1024 # ip route add metric 0xffff default via 3ffe:ab:cd:ef:aabb:ccdd:dead:beef # Zeige Routingtabellen # ip -f link route rsplib-3.0.1/rsplib/interthreadmessageport.c0000664000175000017500000001304011777021056016157 00000000000000/* $Id: interthreadmessageport.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "interthreadmessageport.h" /* ###### Constructor #################################################### */ void interThreadMessagePortNew(struct InterThreadMessagePort* itmPort) { threadSignalNew(&itmPort->Signal); doubleLinkedRingListNew(&itmPort->Queue); } /* ###### Destructor ##################################################### */ void interThreadMessagePortDelete(struct InterThreadMessagePort* itmPort) { CHECK(itmPort->Queue.Node.Next == itmPort->Queue.Head); doubleLinkedRingListDelete(&itmPort->Queue); threadSignalDelete(&itmPort->Signal); } /* ###### Lock ########################################################### */ void interThreadMessagePortLock(struct InterThreadMessagePort* itmPort) { threadSignalLock(&itmPort->Signal); } /* ###### Unlock ######################################################### */ void interThreadMessagePortUnlock(struct InterThreadMessagePort* itmPort) { threadSignalUnlock(&itmPort->Signal); } /* ###### Get first message ############################################## */ bool interThreadMessagePortIsFirstMessage(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message) { bool result; threadSignalLock(&itmPort->Signal); result = (interThreadMessagePortGetFirstMessage(itmPort) == message); threadSignalUnlock(&itmPort->Signal); return(result); } /* ###### Get first message ############################################## */ struct InterThreadMessageNode* interThreadMessagePortGetFirstMessage(struct InterThreadMessagePort* itmPort) { struct DoubleLinkedRingListNode* node; node = itmPort->Queue.Node.Next; if(node != itmPort->Queue.Head) { return((struct InterThreadMessageNode*)node); } return(NULL); } /* ###### Get next message ############################################### */ struct InterThreadMessageNode* interThreadMessagePortGetNextMessage(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message) { struct DoubleLinkedRingListNode* node; node = message->Node.Next; if(node != itmPort->Queue.Head) { return((struct InterThreadMessageNode*)node); } return(NULL); } /* ###### Remove message ################################################# */ void interThreadMessagePortRemoveMessage(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message) { doubleLinkedRingListRemNode(&message->Node); doubleLinkedRingListNodeDelete(&message->Node); } /* ###### Enqueue message ################################################ */ void interThreadMessagePortEnqueue(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message, struct InterThreadMessagePort* replyPort) { doubleLinkedRingListNodeNew(&message->Node); message->ReplyPort = replyPort; threadSignalLock(&itmPort->Signal); doubleLinkedRingListAddTail(&itmPort->Queue, &message->Node); threadSignalFire(&itmPort->Signal); threadSignalUnlock(&itmPort->Signal); } /* ###### Dequeue message ################################################ */ struct InterThreadMessageNode* interThreadMessagePortDequeue(struct InterThreadMessagePort* itmPort) { struct InterThreadMessageNode* message; threadSignalLock(&itmPort->Signal); message = interThreadMessagePortGetFirstMessage(itmPort); if(message) { doubleLinkedRingListRemNode(&message->Node); doubleLinkedRingListNodeDelete(&message->Node); } threadSignalUnlock(&itmPort->Signal); return(message); } /* ###### Wait for message ############################################### */ void interThreadMessagePortWait(struct InterThreadMessagePort* itmPort) { threadSignalLock(&itmPort->Signal); while(interThreadMessagePortGetFirstMessage(itmPort) == NULL) { threadSignalWait(&itmPort->Signal); } threadSignalUnlock(&itmPort->Signal); } /* ###### Reply message ################################################## */ void interThreadMessageReply(struct InterThreadMessageNode* message) { CHECK(message->ReplyPort != NULL); interThreadMessagePortEnqueue(message->ReplyPort, message, NULL); } rsplib-3.0.1/rsplib/interthreadmessageport.h0000664000175000017500000000624411777021056016174 00000000000000/* $Id: interthreadmessageport.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERTHREADMESSAGEPORT_H #define INTERTHREADMESSAGEPORT_H #include "tdtypes.h" #include "threadsignal.h" #include "doublelinkedringlist.h" #ifdef __cplusplus extern "C" { #endif struct InterThreadMessagePort; struct InterThreadMessageNode { struct DoubleLinkedRingListNode Node; struct InterThreadMessagePort* ReplyPort; }; struct InterThreadMessagePort { struct DoubleLinkedRingList Queue; struct ThreadSignal Signal; }; void interThreadMessagePortNew(struct InterThreadMessagePort* itmPort); void interThreadMessagePortDelete(struct InterThreadMessagePort* itmPort); void interThreadMessagePortLock(struct InterThreadMessagePort* itmPort); void interThreadMessagePortUnlock(struct InterThreadMessagePort* itmPort); bool interThreadMessagePortIsFirstMessage(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message); struct InterThreadMessageNode* interThreadMessagePortGetFirstMessage(struct InterThreadMessagePort* itmPort); struct InterThreadMessageNode* interThreadMessagePortGetNextMessage(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message); void interThreadMessagePortRemoveMessage(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message); void interThreadMessagePortEnqueue(struct InterThreadMessagePort* itmPort, struct InterThreadMessageNode* message, struct InterThreadMessagePort* replyPort); struct InterThreadMessageNode* interThreadMessagePortDequeue(struct InterThreadMessagePort* itmPort); void interThreadMessagePortWait(struct InterThreadMessagePort* itmPort); void interThreadMessageReply(struct InterThreadMessageNode* message); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/cspmonitor.10000664000175000017500000001105511777021056013513 00000000000000.\" $Id: cspmonitor.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt CSPMonitor 1 .Os CSP Monitor .\" ###### Name ############################################################# .Sh NAME .Nm cspmonitor .Nd CSP server for monitoring RSerPool components .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm cspmonitor .Op Fl localaddress=address:port .Op Fl updateinterval=milliseconds .Op Fl purgeinterval=milliseconds .Op Fl compact .Op Fl full .Op Fl maxpr=PRs .Op Fl maxpe=PEs .Op Fl maxpu=PUs .Op Fl maxlocationsize=characters .Op Fl logappend=filename .Op Fl logcolor=on|off .Op Fl logfile=filename .Op Fl loglevel=0-9 .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm cspmonitor is a simple simple Component Status Protocol (CSP) monitor server. It receives status messages from components via UDP and prints them on the screen. This program is useful to keep an overview of running RSerPool components. .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It Fl localaddress=address:port Sets the local UDP socket address and port number. By default, it listens on all addresses, port 2960. .It Fl updateinterval=milliseconds Sets the update interval in milliseconds. Default: 1000. .It Fl purgeinterval=milliseconds Sets the purge interval in milliseconds. Default: 30000. .It Fl compact Turns on compact status display mode. .It Fl full Turns on full status display mode (default). .It Fl maxpr=PRs Limits the number of PRs to be displayed to the given number. .It Fl maxpr=PEs Limits the number of PEs to be displayed to the given number. .It Fl maxpr=PUs Limits the number of PUs to be displayed to the given number. .It Fl maxlocationsize=characters Limits the location string size to the given number of characters. .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm cspmonitor uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/cspmonitor.c0000664000175000017500000006274511777021056013611 00000000000000/* $Id: cspmonitor.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "debug.h" #include "timeutilities.h" #include "stringutilities.h" #include "netutilities.h" #include "breakdetector.h" #include "componentstatusreporter.h" #include "simpleredblacktree.h" #include #include #include #include #include #include #include #include /* Exit immediately on Ctrl-C. No clean shutdown. */ /* #define FAST_BREAK */ /* ###### Get description for ID ######################################### */ static void getDescriptionForID(const uint64_t id, char* buffer, const size_t bufferSize) { switch(CID_GROUP(id)) { case CID_GROUP_REGISTRAR: snprintf(buffer, bufferSize, "PR $%08Lx", CID_OBJECT(id)); break; case CID_GROUP_POOLELEMENT: snprintf(buffer, bufferSize, "PE $%08Lx", CID_OBJECT(id)); break; case CID_GROUP_POOLUSER: snprintf(buffer, bufferSize, "PU $%014Lx", CID_OBJECT(id)); break; default: snprintf(buffer, bufferSize, "ID $%14Lx", CID_OBJECT(id)); break; } } /* ###### Get description for protocol ################################### */ static void getDescriptionForProtocol(const uint16_t protocolID, const uint32_t ppid, char* buffer, const size_t bufferSize) { char ppidString[32]; char protocolString[32]; switch(ppid) { case 0x0: safestrcpy((char*)&ppidString, "Data", sizeof(ppidString)); break; case 0xb: safestrcpy((char*)&ppidString, "ASAP", sizeof(ppidString)); break; case 0xc: safestrcpy((char*)&ppidString, "ENRP", sizeof(ppidString)); break; default: snprintf((char*)&ppidString, sizeof(ppidString), "$%08x", ppid); break; } switch(protocolID) { case IPPROTO_SCTP: safestrcpy((char*)&protocolString, "SCTP", sizeof(protocolString)); break; case IPPROTO_TCP: safestrcpy((char*)&protocolString, "TCP", sizeof(protocolString)); break; case IPPROTO_UDP: safestrcpy((char*)&protocolString, "UDP", sizeof(protocolString)); break; default: snprintf((char*)&protocolString, sizeof(protocolString), "$%04x", protocolID); break; } snprintf(buffer, bufferSize, "%s%s%s", ppidString, (ppidString[0] != 0x00) ? "/" : "", protocolString); } struct CSPObject { struct SimpleRedBlackTreeNode StorageNode; struct SimpleRedBlackTreeNode DisplayNode; uint64_t Identifier; uint64_t LastReportTimeStamp; uint64_t ReportInterval; uint64_t SenderTimeStamp; char Description[128]; char Status[128]; char Location[128]; double Workload; size_t Associations; struct ComponentAssociation* AssociationArray; }; static bool useCompactMode = true; static size_t currentObjectLabelSize = 0; static unsigned int totalPRs = 0; static unsigned int totalPEs = 0; static unsigned int totalPUs = 0; static unsigned int currentPRs = 0; static unsigned int currentPEs = 0; static unsigned int currentPUs = 0; static unsigned int maxPRs = 6; static unsigned int maxPEs = 42; static unsigned int maxPUs = 24; static unsigned int maxLocationSize = 72; static size_t maxObjectLabelSize = 0; /* ###### Get CSPObject from given Display Node ########################## */ static const struct CSPObject* getCSPObjectFromDisplayNode(const void* displayNodePtr) { const struct CSPObject* dummy = (const struct CSPObject*)displayNodePtr; long n = (long)displayNodePtr - ((long)&dummy->DisplayNode - (long)dummy); return((const struct CSPObject*)n); } /* ###### CSPObject print function ####################################### */ static void cspObjectDisplayPrint(const void* cspObjectPtr, FILE* fd) { const struct CSPObject* cspObject = getCSPObjectFromDisplayNode(cspObjectPtr); char idString[256]; char protocolString[64]; char workloadString[32]; char locationString[sizeof(cspObject->Location)]; char uptimeString[32]; char objectLabelString[256]; char space[256]; size_t objectLabelSize; unsigned int h, m, s; size_t i; int color; color = 0; /* ====== Check component number limit to display ===================== */ if(CID_GROUP(cspObject->Identifier) == CID_GROUP_REGISTRAR) { color = 31; currentPRs++; if(currentPRs > maxPRs) { if(currentPRs == maxPRs + 1) { fprintf(fd, "\n\x1b[%u;47m(%u further PRs have been hidden)\x1b[0m", color, totalPRs -maxPRs); } return; } } else if(CID_GROUP(cspObject->Identifier) == CID_GROUP_POOLELEMENT) { color = 34; currentPEs++; if(currentPEs > maxPEs) { if(currentPEs == maxPEs + 1) { fprintf(fd, "\n\x1b[%u;47m(%u further PEs have been hidden)\x1b[0m", color, totalPEs -maxPEs); } return; } } else if(CID_GROUP(cspObject->Identifier) == CID_GROUP_POOLUSER) { color = 32; currentPUs++; if(currentPUs > maxPUs) { if(currentPUs == maxPUs + 1) { fprintf(fd, "\n\x1b[%u;47m(%u further PUs have been hidden)\x1b[0m", color, totalPUs -maxPUs); } return; } } /* ====== Get workload string ========================================= */ if(cspObject->Workload >= 0.00) { if(cspObject->Workload < 0.90) { snprintf((char*)&workloadString, sizeof(workloadString), " L=%3u%%", (unsigned int)rint(100.0 * cspObject->Workload)); } else { snprintf((char*)&workloadString, sizeof(workloadString), " L=\x1b[7m%3u%%\x1b[27m", (unsigned int)rint(100.0 * cspObject->Workload)); } } else { workloadString[0] = 0x00; } /* ====== Get uptime string =========================================== */ h = (unsigned int)(cspObject->SenderTimeStamp / (3600ULL * 1000000ULL)); if(h < 100) { m = (unsigned int)((cspObject->SenderTimeStamp / (60ULL * 1000000ULL)) % 60); s = (unsigned int)((cspObject->SenderTimeStamp / 1000000ULL) % 60); snprintf((char*)&uptimeString, sizeof(uptimeString), "%02u:%02u:%02u", h, m, s); } else { if((h / 24) < 15000) { snprintf((char*)&uptimeString, sizeof(uptimeString), "%3ud %02uh", h / 24, h % 24); } else { safestrcpy((char*)&uptimeString, "??:??:??", sizeof(uptimeString)); } } /* ====== Get object label string ===================================== */ maxLocationSize = min(maxLocationSize, sizeof(cspObject->Location) - 1); memcpy((char*)&locationString, cspObject->Location, sizeof(cspObject->Location)); i = strlen(locationString); if(i > maxLocationSize) { if(maxLocationSize >= 3) { locationString[maxLocationSize - 1] = '.'; locationString[maxLocationSize - 2] = '.'; locationString[maxLocationSize - 3] = '.'; } locationString[maxLocationSize] = 0x00; } snprintf((char*)&objectLabelString, sizeof(objectLabelString), "\n%s [%s]", cspObject->Description, locationString); objectLabelSize = strlen(objectLabelString); maxObjectLabelSize = max(maxObjectLabelSize, objectLabelSize); if(currentObjectLabelSize > objectLabelSize) { for(i = 0;i < min(sizeof(space) - 1, currentObjectLabelSize - objectLabelSize); i++) { space[i] = ' '; } space[i] = 0x00; } else { space[0] = 0x00; } fprintf(fd, "\x1b[%u;1m%s\x1b[0m\x1b[%um %s", color, objectLabelString, color, space); fprintf(fd, "U=%s l=%1.1fs A=%u%s \"%s\"\x1b[0K", uptimeString, (double)abs(((int64_t)cspObject->LastReportTimeStamp - (int64_t)getMicroTime()) / 1000) / 1000.0, (unsigned int)cspObject->Associations, workloadString, cspObject->Status); if(!useCompactMode) { for(i = 0;i < cspObject->Associations;i++) { getDescriptionForID(cspObject->AssociationArray[i].ReceiverID, (char*)&idString, sizeof(idString)); getDescriptionForProtocol(cspObject->AssociationArray[i].ProtocolID, cspObject->AssociationArray[i].PPID, (char*)&protocolString, sizeof(protocolString)); fprintf(fd, "\n -> %s %s", idString, protocolString); if(cspObject->AssociationArray[i].Duration != ~0ULL) { h = (unsigned int)(cspObject->AssociationArray[i].Duration / (3600ULL * 1000000ULL)); m = (unsigned int)((cspObject->AssociationArray[i].Duration / (60ULL * 1000000ULL)) % 60); s = (unsigned int)((cspObject->AssociationArray[i].Duration / 1000000ULL) % 60); fprintf(fd, " duration=%u:%02u:%02u", h, m, s); } fputs("\x1b[0K", fd); } } fputs("\x1b[0m\x1b[0K", fd); } /* ###### CSPObject comparision function ################################# */ static int cspObjectDisplayComparison(const void* cspObjectPtr1, const void* cspObjectPtr2) { const struct CSPObject* cspObject1 = getCSPObjectFromDisplayNode(cspObjectPtr1); const struct CSPObject* cspObject2 = getCSPObjectFromDisplayNode(cspObjectPtr2); if(CID_GROUP(cspObject1->Identifier) < CID_GROUP(cspObject2->Identifier)) { return(-1); } else if(CID_GROUP(cspObject1->Identifier) > CID_GROUP(cspObject2->Identifier)) { return(1); } const int result = strcmp((const char*)&cspObject1->Location, (const char*)&cspObject2->Location); if(result != 0) { return(result); } if(cspObject1->Identifier < cspObject2->Identifier) { return(-1); } else if(cspObject1->Identifier > cspObject2->Identifier) { return(1); } return(0); } /* ###### CSPObject comparision function ################################# */ static int cspObjectStorageComparison(const void* cspObjectPtr1, const void* cspObjectPtr2) { const struct CSPObject* cspObject1 = (const struct CSPObject*)cspObjectPtr1; const struct CSPObject* cspObject2 = (const struct CSPObject*)cspObjectPtr2; if(cspObject1->Identifier < cspObject2->Identifier) { return(-1); } else if(cspObject1->Identifier > cspObject2->Identifier) { return(1); } return(0); } /* ###### Find CSPObject in storage ###################################### */ struct CSPObject* findCSPObject(struct SimpleRedBlackTree* objectStorage, const uint64_t id) { struct SimpleRedBlackTreeNode* node; struct CSPObject cmpCSPObject; cmpCSPObject.Identifier = id; node = simpleRedBlackTreeFind(objectStorage, &cmpCSPObject.StorageNode); if(node) { return((struct CSPObject*)node); } return(NULL); } /* ###### Purge out-of-date CSPObject in storage ######################### */ void purgeCSPObjects(struct SimpleRedBlackTree* objectStorage, struct SimpleRedBlackTree* objectDisplay, const unsigned long long purgeInterval) { struct CSPObject* cspObject; struct CSPObject* nextCSPObject; cspObject = (struct CSPObject*)simpleRedBlackTreeGetFirst(objectStorage); while(cspObject != NULL) { nextCSPObject = (struct CSPObject*)simpleRedBlackTreeGetNext(objectStorage, &cspObject->StorageNode); if(cspObject->LastReportTimeStamp + min(purgeInterval, (10 * cspObject->ReportInterval)) < getMicroTime()) { CHECK(simpleRedBlackTreeRemove(objectStorage, &cspObject->StorageNode) == &cspObject->StorageNode); switch(CID_GROUP(cspObject->Identifier)) { case CID_GROUP_REGISTRAR: assert(totalPRs > 0); totalPRs--; break; case CID_GROUP_POOLELEMENT: assert(totalPEs > 0); totalPEs--; break; case CID_GROUP_POOLUSER: assert(totalPUs > 0); totalPUs--; break; } simpleRedBlackTreeVerify(objectStorage); CHECK(simpleRedBlackTreeRemove(objectDisplay, &cspObject->DisplayNode) == &cspObject->DisplayNode); simpleRedBlackTreeVerify(objectDisplay); simpleRedBlackTreeNodeDelete(&cspObject->StorageNode); simpleRedBlackTreeNodeDelete(&cspObject->DisplayNode); free(cspObject->AssociationArray); free(cspObject); } cspObject = nextCSPObject; } } /* ###### Handle incoming CSP message #################################### */ static void handleMessage(int sd, struct SimpleRedBlackTree* objectStorage, struct SimpleRedBlackTree* objectDisplay) { struct ComponentStatusReport* cspReport; struct CSPObject* cspObject; char buffer[65536]; ssize_t received; size_t i; received = ext_recv(sd, (char*)&buffer, sizeof(buffer), 0); if(received) { cspReport = (struct ComponentStatusReport*)&buffer; if( (received >= (ssize_t)sizeof(struct ComponentStatusReport)) && (cspReport->Header.Type == CSPT_REPORT) && (ntohl(cspReport->Header.Version) == CSP_VERSION) ) { cspReport->Header.Version = ntohl(cspReport->Header.Version); cspReport->Header.Length = ntohs(cspReport->Header.Length); cspReport->Header.SenderID = ntoh64(cspReport->Header.SenderID); cspReport->Header.SenderTimeStamp = ntoh64(cspReport->Header.SenderTimeStamp); cspReport->ReportInterval = ntohl(cspReport->ReportInterval); cspReport->Workload = ntohs(cspReport->Workload); cspReport->Associations = ntohs(cspReport->Associations); if(sizeof(struct ComponentStatusReport) + (cspReport->Associations * sizeof(struct ComponentAssociation)) == (size_t)received) { for(i = 0;i < cspReport->Associations;i++) { cspReport->AssociationArray[i].ReceiverID = ntoh64(cspReport->AssociationArray[i].ReceiverID); cspReport->AssociationArray[i].Duration = ntoh64(cspReport->AssociationArray[i].Duration); cspReport->AssociationArray[i].Flags = ntohs(cspReport->AssociationArray[i].Flags); cspReport->AssociationArray[i].ProtocolID = ntohs(cspReport->AssociationArray[i].ProtocolID); cspReport->AssociationArray[i].PPID = ntohl(cspReport->AssociationArray[i].PPID); } cspObject = findCSPObject(objectStorage, cspReport->Header.SenderID); if(cspObject == NULL) { cspObject = (struct CSPObject*)malloc(sizeof(struct CSPObject)); if(cspObject) { simpleRedBlackTreeNodeNew(&cspObject->StorageNode); simpleRedBlackTreeNodeNew(&cspObject->DisplayNode); cspObject->Identifier = cspReport->Header.SenderID; cspObject->AssociationArray = NULL; switch(CID_GROUP(cspObject->Identifier)) { case CID_GROUP_REGISTRAR: totalPRs++; break; case CID_GROUP_POOLELEMENT: totalPEs++; break; case CID_GROUP_POOLUSER: totalPUs++; break; } } } if(cspObject) { if(simpleRedBlackTreeNodeIsLinked(&cspObject->DisplayNode)) { /* The position within the objectDisplay storage may change, due to updated locationArray! */ CHECK(simpleRedBlackTreeRemove(objectDisplay, &cspObject->DisplayNode) == &cspObject->DisplayNode); simpleRedBlackTreeVerify(objectDisplay); } if(cspReport->Header.Flags != 0x00) { cspObject->LastReportTimeStamp = 0; } else { cspObject->LastReportTimeStamp = getMicroTime(); cspObject->SenderTimeStamp = cspReport->Header.SenderTimeStamp; cspObject->ReportInterval = cspReport->ReportInterval; cspObject->Workload = CSR_GET_WORKLOAD(cspReport->Workload); getDescriptionForID(cspObject->Identifier, (char*)&cspObject->Description, sizeof(cspObject->Description)); memcpy(&cspObject->Status, &cspReport->Status, sizeof(cspObject->Status)); cspObject->Status[sizeof(cspObject->Status) - 1] = 0x00; memcpy(&cspObject->Location, &cspReport->Location, sizeof(cspObject->Location)); /* DisplayNode MUST be re-inserted, since the location may change and the location is part of the sorting key! */ /* for(int i=0;i < 6;i++) { cspObject->Location[i] = 'A' + (random() % 26); } */ cspObject->Location[sizeof(cspObject->Location) - 1] = 0x00; } if(cspObject->AssociationArray) { deleteComponentAssociationArray(cspObject->AssociationArray); } cspObject->AssociationArray = createComponentAssociationArray(cspReport->Associations); CHECK(cspObject->AssociationArray); memcpy(cspObject->AssociationArray, &cspReport->AssociationArray, cspReport->Associations * sizeof(struct ComponentAssociation)); cspObject->Associations = cspReport->Associations; CHECK(simpleRedBlackTreeInsert(objectStorage, &cspObject->StorageNode) == &cspObject->StorageNode); simpleRedBlackTreeVerify(objectStorage); CHECK(simpleRedBlackTreeInsert(objectDisplay, &cspObject->DisplayNode) == &cspObject->DisplayNode); simpleRedBlackTreeVerify(objectDisplay); } } } } } /* ###### Main program ################################################### */ int main(int argc, char** argv) { union sockaddr_union localAddress; struct pollfd ufds; struct SimpleRedBlackTree objectStorage; struct SimpleRedBlackTree objectDisplay; struct SimpleRedBlackTreeNode* node; unsigned long long now; unsigned long long updateInterval = 1000000; unsigned long long purgeInterval = 30000000; unsigned long long lastUpdate = 0; size_t lastElements = ~0; size_t elements; int result; int reuse; int sd; int n; if(checkIPv6()) { string2address("[::]:0", &localAddress); setPort(&localAddress.sa, 2960); } else { string2address("0.0.0.0:0", &localAddress); setPort(&localAddress.sa, 2960); } for(n = 1;n < argc;n++) { if(!(strncmp(argv[n], "-localaddress=", 14))) { if(string2address((char*)&argv[n][14], &localAddress) == false) { fprintf(stderr, "ERROR: Bad local address <%s>\n", (char*)&argv[n][14]); exit(1); } } else if(!(strncmp(argv[n], "-updateinterval=", 16))) { updateInterval = 1000 * atol((char*)&argv[n][16]); if(updateInterval < 100000) { updateInterval = 100000; } } else if(!(strncmp(argv[n], "-purgeinterval=", 15))) { purgeInterval = 1000 * atol((const char*)&argv[n][15]); if(purgeInterval < 1000000) { purgeInterval = 1000000; } } else if(!(strncmp(argv[n], "-maxpr=", 7))) { maxPRs = atoi((const char*)&argv[n][7]); } else if(!(strncmp(argv[n], "-maxpe=", 7))) { maxPEs = atoi((const char*)&argv[n][7]); } else if(!(strncmp(argv[n], "-maxpu=", 7))) { maxPUs = atoi((const char*)&argv[n][7]); } else if(!(strncmp(argv[n], "-maxlocationsize=", 17))) { maxLocationSize = atoi((const char*)&argv[n][17]); } else if(!(strcmp(argv[n], "-compact"))) { useCompactMode = true; } else if(!(strcmp(argv[n], "-full"))) { useCompactMode = false; } else { printf("Bad argument \"%s\"!\n" ,argv[n]); fprintf(stderr, "Usage: %s {-localaddress=address:port} {-updateinterval=milliseconds} {-purgeinterval=milliseconds} {-compact|-full} {-maxpr=PRs} {-maxpe=PEs} {-maxpu=PUs} {-maxlocationsize=characters}\n", argv[0]); exit(1); } } sd = ext_socket(localAddress.sa.sa_family, SOCK_DGRAM, IPPROTO_UDP); if(sd < 0) { perror("Unable to create socket"); exit(1); } reuse = 1; if(ext_setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse)) < 0) { perror("setsockopt() with SO_REUSEADDR failed"); } if(bindplus(sd, &localAddress, 1) == false) { fputs("ERROR: Unable to bind socket to local address\n", stderr); exit(1); } simpleRedBlackTreeNew(&objectStorage, NULL, cspObjectStorageComparison); simpleRedBlackTreeNew(&objectDisplay, cspObjectDisplayPrint, cspObjectDisplayComparison); puts("Component Status Monitor - Version 1.0"); puts("======================================\n"); installBreakDetector(); printf("\x1b[;H\x1b[2J"); /* The first update should be in 1 second ... */ lastUpdate = getMicroTime() + 1000000 - updateInterval; while(!breakDetected()) { ufds.fd = sd; ufds.events = POLLIN; now = getMicroTime(); while(now - lastUpdate < updateInterval) { now = getMicroTime(); result = ext_poll(&ufds, 1, ((lastUpdate + updateInterval) > now) ? (int)((lastUpdate + updateInterval - now) / 1000) : 0); if((result > 0) && (ufds.revents & POLLIN)) { handleMessage(sd, &objectStorage, &objectDisplay); } else if((result < 0) && (errno == EINTR)) { goto finished; } } purgeCSPObjects(&objectStorage, &objectDisplay, purgeInterval); elements = simpleRedBlackTreeGetElements(&objectStorage); if( (elements != lastElements) || (elements > 0) ) { printf("\x1b[;H"); printTimeStamp(stdout); printf("Current Component Status -- \x1b[31;1m%u PRs\x1b[0m, \x1b[34;1m%u PEs\x1b[0m, \x1b[32;1m%u PUs\x1b[0m\x1b[0K\n\x1b[0K\n\x1b[0K\x1b[;H\n", totalPRs, totalPEs, totalPUs); maxObjectLabelSize = 0; currentPRs = 0; currentPEs = 0; currentPUs = 0; node = simpleRedBlackTreeGetFirst(&objectDisplay); while(node != NULL) { cspObjectDisplayPrint(node, stdout); node = simpleRedBlackTreeGetNext(&objectDisplay, node); } currentObjectLabelSize = maxObjectLabelSize; printf("\x1b[0J"); fflush(stdout); } lastElements = elements; lastUpdate = now; } finished: ext_close(sd); simpleRedBlackTreeDelete(&objectStorage); puts("\nTerminated!"); return(0); } rsplib-3.0.1/rsplib/rserpool-policytypes.h0000664000175000017500000000657711777021056015651 00000000000000/* $Id: rserpool-policytypes.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOL_POLICYTYPES_H #define RSERPOOL_POLICYTYPES_H #define PPT_UNDEFINED 0x00000000 #define PPT_ROUNDROBIN 0x00000001 #define PPT_WEIGHTED_ROUNDROBIN 0x00000002 #define PPT_RANDOM 0x00000003 #define PPT_WEIGHTED_RANDOM 0x00000004 #define PPT_PRIORITY 0x00000005 #define PPT_LEASTUSED 0x40000001 #define PPT_LEASTUSED_DEGRADATION 0x40000002 #define PPT_PRIORITY_LEASTUSED 0x40000003 #define PPT_RANDOMIZED_LEASTUSED 0x40000004 #define PPT_RANDOMIZED_PRIORITY_LEASTUSED 0xb0001001 #define PPT_RANDOMIZED_LEASTUSED_DEGRADATION 0xb0001002 #define PPT_PRIORITY_LEASTUSED_DEGRADATION 0xb0001003 #define PPT_RANDOMIZED_PRIORITY_LEASTUSED_DEGRADATION 0xb0001004 #define PPT_WEIGHTED_RANDOM_DPF 0xb0002001 #define PPT_LEASTUSED_DPF 0xb0002002 #define PPT_LEASTUSED_DEGRADATION_DPF 0xb0002003 #define PPT_IS_ADAPTIVE(p) \ ( ((p) == PPT_LEASTUSED) || \ ((p) == PPT_LEASTUSED_DPF) || \ ((p) == PPT_LEASTUSED_DEGRADATION) || \ ((p) == PPT_LEASTUSED_DEGRADATION_DPF) || \ ((p) == PPT_PRIORITY_LEASTUSED) || \ ((p) == PPT_PRIORITY_LEASTUSED_DEGRADATION) || \ ((p) == PPT_RANDOMIZED_LEASTUSED) || \ ((p) == PPT_RANDOMIZED_LEASTUSED_DEGRADATION) || \ ((p) == PPT_RANDOMIZED_PRIORITY_LEASTUSED) || \ ((p) == PPT_RANDOMIZED_PRIORITY_LEASTUSED_DEGRADATION) ) #define PPV_MIN_WEIGHT 0 #define PPV_MAX_WEIGHT 0xffffffff #define PPV_MIN_LOAD 0 #define PPV_MAX_LOAD 0xffffffff #define PPV_MIN_LOAD_DEGRADATION 0 #define PPV_MAX_LOAD_DEGRADATION 0xffffffff #define PPV_MIN_LOADDPF 0 #define PPV_MAX_LOADDPF 0xffffffff #define PPV_MIN_WEIGHTDPF 0 #define PPV_MAX_WEIGHTDPF 0xffffffff #endif rsplib-3.0.1/rsplib/fractalgeneratorservice.cc0000664000175000017500000004252712065050750016451 00000000000000/* $Id: fractalgeneratorservice.cc 2732 2012-12-21 12:10:42Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "fractalgeneratorservice.h" #include "netutilities.h" #include "timeutilities.h" #include "stringutilities.h" #include #include #if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303) #define likely(x) (__builtin_expect(!!(x), 1)) #define unlikely(x) (__builtin_expect(!!(x), 0)) #else #define likely(x) (x) #define unlikely(x) (x) #endif // ###### Constructor ####################################################### FractalGeneratorServer::FractalGeneratorServer( int rserpoolSocketDescriptor, FractalGeneratorServer::FractalGeneratorServerSettings* settings) : TCPLikeServer(rserpoolSocketDescriptor) { Settings = *settings; LastSendTimeStamp = 0; LastCookieTimeStamp = 0; DataPacketsAfterLastCookie = 0; } // ###### Destructor ######################################################## FractalGeneratorServer::~FractalGeneratorServer() { } // ###### Create a FractalGenerator thread ################################## TCPLikeServer* FractalGeneratorServer::fractalGeneratorServerFactory(int sd, void* userData, const uint32_t peIdentifier) { return(new FractalGeneratorServer(sd, (FractalGeneratorServerSettings*)userData)); } // ###### Print parameters ################################################## void FractalGeneratorServer::fractalGeneratorPrintParameters(const void* userData) { const FractalGeneratorServerSettings* settings = (const FractalGeneratorServerSettings*)userData; puts("Fractal Generator Parameters:"); printf(" Transmit Timeout = %ums\n", (unsigned int)settings->TransmitTimeout); printf(" Data Max Time = %ums\n", (unsigned int)(settings->DataMaxTime / 1000ULL)); printf(" Cookie Max Time = %ums\n", (unsigned int)(settings->CookieMaxTime / 1000ULL)); printf(" Cookie Max Packets = %u Packets\n", (unsigned int)settings->CookieMaxPackets); printf(" Failure After = %u Packets\n", (unsigned int)settings->FailureAfter); printf(" Test Mode = %s\n", (settings->TestMode == true) ? "on" : "off"); } // ###### Handle parameter message ########################################## bool FractalGeneratorServer::handleParameter(const FGPParameter* parameter, const size_t size, const bool insideCookie) { if(size < sizeof(struct FGPParameter)) { printTimeStamp(stdout); printf("Received too short message on RSerPool socket %u\n", RSerPoolSocketDescriptor); return(false); } if(parameter->Header.Type != FGPT_PARAMETER) { printTimeStamp(stdout); printf("Received unknown message type %u on RSerPool socket %u\n", parameter->Header.Type, RSerPoolSocketDescriptor); return(false); } Status.Parameter.Width = ntohl(parameter->Width); Status.Parameter.Height = ntohl(parameter->Height); Status.Parameter.C1Real = parameter->C1Real; Status.Parameter.C2Real = parameter->C2Real; Status.Parameter.C1Imag = parameter->C1Imag; Status.Parameter.C2Imag = parameter->C2Imag; Status.Parameter.N = parameter->N; Status.Parameter.MaxIterations = ntohl(parameter->MaxIterations); Status.Parameter.AlgorithmID = ntohl(parameter->AlgorithmID); Status.CurrentX = 0; Status.CurrentY = 0; if(!insideCookie) { printTimeStamp(stdout); printf("Got Parameter on RSerPool socket %u:\nw=%u h=%u c1=(%lf,%lf) c2=(%lf,%lf), n=%f, maxIterations=%u, algorithmID=%u\n", RSerPoolSocketDescriptor, Status.Parameter.Width, Status.Parameter.Height, networkToDouble(Status.Parameter.C1Real), networkToDouble(Status.Parameter.C1Imag), networkToDouble(Status.Parameter.C2Real), networkToDouble(Status.Parameter.C2Imag), networkToDouble(Status.Parameter.N), Status.Parameter.MaxIterations, Status.Parameter.AlgorithmID); } if((Status.Parameter.Width > 65536) || (Status.Parameter.Height > 65536) || (Status.Parameter.MaxIterations > 1000000)) { puts("Bad parameters!"); return(false); } return(true); } // ###### Handle cookie echo ################################################ EventHandlingResult FractalGeneratorServer::handleCookieEcho(const char* buffer, size_t bufferSize) { const struct FGPCookie* cookie = (const struct FGPCookie*)buffer; if(bufferSize != sizeof(struct FGPCookie)) { printTimeStamp(stdout); printf("Invalid size of cookie on RSerPool socket %u\n", RSerPoolSocketDescriptor); return(EHR_Abort); } if(strncmp(cookie->ID, FGP_COOKIE_ID, sizeof(cookie->ID))) { printTimeStamp(stdout); printf("Invalid cookie ID on RSerPool socket %u\n", RSerPoolSocketDescriptor); return(EHR_Abort); } if(!handleParameter(&cookie->Parameter, sizeof(cookie->Parameter), true)) { return(EHR_Abort); } Status.CurrentX = ntohl(cookie->CurrentX); Status.CurrentY = ntohl(cookie->CurrentY); printTimeStamp(stdout); printf("Got CookieEcho on RSerPool socket %u:\nx=%u y=%u\n", RSerPoolSocketDescriptor, Status.CurrentX, Status.CurrentY); return(calculateImage()); } // ###### Handle message #################################################### EventHandlingResult FractalGeneratorServer::handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { if(!handleParameter((const FGPParameter*)buffer, bufferSize)) { return(EHR_Abort); } return(calculateImage()); } // ###### Send cookie ####################################################### bool FractalGeneratorServer::sendCookie(const unsigned long long now) { FGPCookie cookie; ssize_t sent; strncpy((char*)&cookie.ID, FGP_COOKIE_ID, sizeof(cookie.ID)); cookie.Parameter.Header.Type = FGPT_PARAMETER; cookie.Parameter.Header.Flags = 0x00; cookie.Parameter.Header.Length = htons(sizeof(cookie.Parameter.Header)); cookie.Parameter.Width = htonl(Status.Parameter.Width); cookie.Parameter.Height = htonl(Status.Parameter.Height); cookie.Parameter.MaxIterations = htonl(Status.Parameter.MaxIterations); cookie.Parameter.AlgorithmID = htonl(Status.Parameter.AlgorithmID); cookie.Parameter.C1Real = Status.Parameter.C1Real; cookie.Parameter.C2Real = Status.Parameter.C2Real; cookie.Parameter.C1Imag = Status.Parameter.C1Imag; cookie.Parameter.C2Imag = Status.Parameter.C2Imag; cookie.Parameter.N = Status.Parameter.N; cookie.CurrentX = htonl(Status.CurrentX); cookie.CurrentY = htonl(Status.CurrentY); sent = rsp_send_cookie(RSerPoolSocketDescriptor, (unsigned char*)&cookie, sizeof(cookie), 0, Settings.TransmitTimeout); LastCookieTimeStamp = now; DataPacketsAfterLastCookie = 0; if(unlikely(sent != sizeof(cookie))) { printTimeStamp(stdout); printf("Sending cookie on RSerPool socket %u failed!\n", RSerPoolSocketDescriptor); return(false); } return(true); } // ###### Send data ######################################################### bool FractalGeneratorServer::sendData(const unsigned long long now) { const size_t dataSize = getFGPDataSize(Data.Points); ssize_t sent; Data.Header.Type = FGPT_DATA; Data.Header.Flags = 0x00; Data.Header.Length = htons(dataSize); Data.Points = htonl(Data.Points); Data.StartX = htonl(Data.StartX); Data.StartY = htonl(Data.StartY); sent = rsp_sendmsg(RSerPoolSocketDescriptor, &Data, dataSize, 0, 0, htonl(PPID_FGP), 0, 0, 0, Settings.TransmitTimeout); DataPackets++; DataPacketsAfterLastCookie++; Data.Points = 0; Data.StartX = 0; Data.StartY = 0; LastSendTimeStamp = now; if(unlikely(sent != (ssize_t)dataSize)) { printTimeStamp(stdout); printf("Sending Data on RSerPool socket %u failed!\n", RSerPoolSocketDescriptor); return(false); } return(true); } // ###### Set point and advance x position ################################## EventHandlingResult FractalGeneratorServer::advanceX(const unsigned int color) { if(Data.Points == 0) { Data.StartX = Status.CurrentX; Data.StartY = Status.CurrentY; } Data.Buffer[Data.Points] = htonl(color); Data.Points++; // ====== Send Data ====================================================== if(unlikely(Data.Points >= FGD_MAX_POINTS)) { const unsigned long long now = getMicroTime(); if(unlikely(!sendData(now))) { return(EHR_Abort); } // ====== Failure more ================================================ if(unlikely((Settings.FailureAfter > 0) && (DataPackets >= Settings.FailureAfter))) { sendCookie(now); printTimeStamp(stdout); printf("Failure Tester on RSerPool socket %u -> Disconnecting after %u packets!\n", RSerPoolSocketDescriptor, (unsigned int)DataPackets); return(EHR_Shutdown); } // ====== Schedule cookie/data timer ================================== scheduleTimer(); } // ====== Send Data/Cookie due to expired timer ========================== lock(); const bool alerted = Alert; Alert = false; unlock(); if(unlikely(alerted)) { const unsigned long long now = getMicroTime(); // ====== Send Data =================================================== if(unlikely(LastSendTimeStamp + 1000000 < now)) { if(unlikely(!sendData(now))) { return(EHR_Abort); } } // ====== Send cookie ================================================= if( (DataPacketsAfterLastCookie >= Settings.CookieMaxPackets) || (LastCookieTimeStamp + Settings.CookieMaxTime < now) ) { if(unlikely(!sendCookie(now))) { return(EHR_Abort); } } // ====== Schedule cookie/data timer ================================== scheduleTimer(); } // ====== Shutdown ==================================================== if(unlikely(isShuttingDown())) { printf("Aborting session on RSerPool socket %u due to server shutdown!\n", RSerPoolSocketDescriptor); const unsigned long long now = getMicroTime(); if(sendData(now)) { sendCookie(now); } return(EHR_Abort); } Status.CurrentX++; return(EHR_Okay); } // ###### Advance y position ################################################ void FractalGeneratorServer::advanceY() { Status.CurrentY++; Status.CurrentX = 0; } // ###### Schedule timer #################################################### void FractalGeneratorServer::scheduleTimer() { const unsigned long long nextTimerTimeStamp = std::min(LastCookieTimeStamp + Settings.CookieMaxTime, LastSendTimeStamp + Settings.DataMaxTime); setAsyncTimer(nextTimerTimeStamp); } // ###### Handle cookie/transmission timer ################################## void FractalGeneratorServer::asyncTimerEvent(const unsigned long long now) { lock(); Alert = true; unlock(); } // ###### Calculate image ################################################### EventHandlingResult FractalGeneratorServer::calculateImage() { // ====== Update load ==================================================== setLoad(1.0 / ServerList->getMaxThreads()); // ====== Initialize ===================================================== EventHandlingResult result = EHR_Okay; double stepX; double stepY; std::complex z; size_t i; const unsigned int algorithm = (Settings.TestMode) ? 0 : Status.Parameter.AlgorithmID; lock(); Alert = false; unlock(); DataPackets = 0; Data.Points = 0; const double c1real = networkToDouble(Status.Parameter.C1Real); const double c1imag = networkToDouble(Status.Parameter.C1Imag); const double c2real = networkToDouble(Status.Parameter.C2Real); const double c2imag = networkToDouble(Status.Parameter.C2Imag); const double n = networkToDouble(Status.Parameter.N); stepX = (c2real - c1real) / Status.Parameter.Width; stepY = (c2imag - c1imag) / Status.Parameter.Height; LastCookieTimeStamp = LastSendTimeStamp = getMicroTime(); if(!sendCookie(LastCookieTimeStamp)) { printTimeStamp(stdout); printf("Sending cookie (start) on RSerPool socket %u failed!\n", RSerPoolSocketDescriptor); return(EHR_Abort); } scheduleTimer(); // ====== Algorithms ===================================================== switch(algorithm) { // ====== Mandelbrot ================================================== case FGPA_MANDELBROT: while(Status.CurrentY < Status.Parameter.Height) { while(Status.CurrentX < Status.Parameter.Width) { // ====== Calculate pixel ==================================== const std::complex c = std::complex(c1real + ((double)Status.CurrentX * stepX), c1imag + ((double)Status.CurrentY * stepY)); z = std::complex(0.0, 0.0); for(i = 0;i < Status.Parameter.MaxIterations;i++) { z = z*z - c; if(unlikely( (z.real() * z.real() + z.imag() * z.imag()) >= 2.0) ) { break; } } result = advanceX(i); if(unlikely(result != EHR_Okay)) { goto finished; } } advanceY(); } break; // ====== MandelbrotN ================================================= case FGPA_MANDELBROTN: while(Status.CurrentY < Status.Parameter.Height) { while(Status.CurrentX < Status.Parameter.Width) { // ====== Calculate pixel ==================================== const std::complex c = std::complex(c1real + ((double)Status.CurrentX * stepX), c1imag + ((double)Status.CurrentY * stepY)); z = std::complex(0.0, 0.0); for(i = 0;i < Status.Parameter.MaxIterations;i++) { z = pow(z, std::complex(n)) - c; if(unlikely( (z.real() * z.real() + z.imag() * z.imag()) >= 2.0) ) { break; } } result = advanceX(i); if(unlikely(result != EHR_Okay)) { goto finished; } } advanceY(); } break; // ====== Test Mode =================================================== default: while(Status.CurrentY < Status.Parameter.Height) { while(Status.CurrentX < Status.Parameter.Width) { result = advanceX((Status.CurrentX * Status.CurrentY) % 256); if(unlikely(result != EHR_Okay)) { goto finished; } } advanceY(); } break; } // ====== Send last Data packet ========================================== if(result == EHR_Okay) { const unsigned long long now = getMicroTime(); if(Data.Points > 0) { if(unlikely(!sendData(now))) { return(EHR_Abort); } } Data.StartX = 0xffffffff; Data.StartY = 0xffffffff; if(unlikely(!sendData(now))) { return(EHR_Abort); } } finished: setLoad(0.0); return(result); } rsplib-3.0.1/rsplib/hrestest.c0000664000175000017500000001612112053110273013224 00000000000000/* $Id: hrestest.c 2723 2012-11-13 13:05:20Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "breakdetector.h" #include "timeutilities.h" #include "randomizer.h" #include #include #include /* ###### Main program ################################################### */ int main(int argc, char** argv) { struct rsp_info info; struct rsp_addrinfo* rspAddrInfo; struct rsp_addrinfo* r; const char* poolHandle = "EchoPool"; unsigned int pause = 0; double reportUnreachableProbability = 0.0; int i; int result; FILE* statsFile = stdout; unsigned int statsInterval = 1000; unsigned long long statsLine = 1; unsigned long long startTimeStamp; unsigned long long updateTimeStamp; unsigned long long responseTimeStamp; unsigned long long successCount = 0; unsigned long long failureCount = 0; unsigned long long runs = 0; unsigned long long maxRuns = 0; bool quiet = false; bool printResults = false; size_t items = 0; rsp_initinfo(&info); for(i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } else if(!(strncmp(argv[i], "-poolhandle=" , 12))) { poolHandle = (char*)&argv[i][12]; } else if(!(strncmp(argv[i], "-pause=" , 7))) { pause = atol((char*)&argv[i][7]); } else if(!(strncmp(argv[i], "-items=" , 7))) { items = atol((char*)&argv[i][7]); } else if(!(strncmp(argv[i], "-maxruns=" , 9))) { maxRuns = atol((char*)&argv[i][9]); } else if(!(strncmp(argv[i], "-reportunreachableprobability=" , 30))) { reportUnreachableProbability = atof((char*)&argv[i][30]); if(reportUnreachableProbability > 1.0) { reportUnreachableProbability = 1.0; } else if(reportUnreachableProbability < 0.0) { reportUnreachableProbability = 0.0; } } else if(!(strcmp(argv[i], "-quiet"))) { quiet = true; } else if(!(strcmp(argv[i], "-printresults"))) { printResults = true; } else if(!(strncmp(argv[i], "-statsfile=", 11))) { if(statsFile != stdout) { fclose(statsFile); } statsFile = fopen((const char*)&argv[i][11], "w"); if(statsFile == NULL) { fprintf(stderr, "ERROR: Unable to create statistics file \"%s\"!\n", (char*)&argv[i][11]); } } else if(!(strncmp(argv[i], "-statsinterval=", 15))) { statsInterval = atol((const char*)&argv[i][15]); if(statsInterval < 10) { statsInterval = 10; } else if(statsInterval > 3600000) { statsInterval = 36000000; } } else { fprintf(stderr, "Usage: %s {-poolhandle=pool handle} {-items=Items} {-printresults} {-pause=microseconds} {-reportunreachableprobability=probability=probability} {-maxruns=Runs} {-statsfile=file} {-statsinterval=millisecs}\n", argv[0]); exit(1); } } if(!quiet) { puts("RSerPool Handle Resolution Tester - Version 1.0"); puts("===============================================\n"); printf("Pool Handle = %s\n", poolHandle); printf("Items = %u\n", (unsigned int)items); printf("Pause = %ums\n", pause); printf("Max Runs = %llu\n", maxRuns); printf("Report Unreachable Probability = %1.2lf%%\n", reportUnreachableProbability * 100.0); printf("Statistics Interval = %ums\n", statsInterval); puts(""); } if(rsp_initialize(&info) < 0) { fputs("ERROR: Unable to initialize rsplib\n", stderr); exit(1); } fputs("AbsTime RelTime Success Failure\n", statsFile); installBreakDetector(); startTimeStamp = getMicroTime(); updateTimeStamp = 0; while(!breakDetected()) { result = rsp_getaddrinfo((const unsigned char*)poolHandle, strlen(poolHandle), &rspAddrInfo, items, 0); responseTimeStamp = getMicroTime(); runs++; if(result > 0) { successCount += (size_t)result; if(printResults) { printf("#%llu: Selected %d items\n", runs, result); r = rspAddrInfo; while(r != NULL) { printf(" ID $%08x\n", r->ai_pe_id); r = r->ai_next; } } if(reportUnreachableProbability > 0.0) { r = rspAddrInfo; while(r != NULL) { if(randomDouble() <= reportUnreachableProbability) { rsp_pe_failure((const unsigned char*)poolHandle, strlen(poolHandle), r->ai_pe_id); if(printResults) { printf(" => Endpoint Unreachable for ID $%08x\n", r->ai_pe_id); } } r = r->ai_next; } } rsp_freeaddrinfo(rspAddrInfo); } else { failureCount++; } if(responseTimeStamp - updateTimeStamp >= 1000ULL * statsInterval) { fprintf(statsFile, "%06llu %1.6f %1.6f %llu %llu\n", statsLine++, responseTimeStamp / 1000000.0, (responseTimeStamp - startTimeStamp) / 1000000.0, successCount, failureCount); fflush(statsFile); updateTimeStamp = responseTimeStamp; } if((maxRuns > 0) && (runs >= maxRuns)) { break; } if(pause > 0) { usleep(1000 * pause); } } puts("\nTerminated!"); rsp_freeinfo(&info); if(statsFile != stdout) { fclose(statsFile); } return 0; } rsplib-3.0.1/rsplib/messagebuffer.c0000664000175000017500000001176611777021056014227 00000000000000/* $Id: messagebuffer.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "messagebuffer.h" #include "timeutilities.h" #include "netutilities.h" #include "loglevel.h" #include /* ###### Constructor #################################################### */ struct MessageBuffer* messageBufferNew(size_t bufferSize, const bool useEOR) { struct MessageBuffer* messageBuffer = (struct MessageBuffer*)malloc(sizeof(struct MessageBuffer)); if(messageBuffer) { messageBuffer->Buffer = (char*)malloc(bufferSize); if(messageBuffer->Buffer == NULL) { free(messageBuffer); return(NULL); } messageBuffer->BufferSize = bufferSize; messageBuffer->BufferPos = 0; messageBuffer->UseEOR = useEOR; } return(messageBuffer); } /* ###### Destructor ##################################################### */ void messageBufferDelete(struct MessageBuffer* messageBuffer) { if(messageBuffer->Buffer) { free(messageBuffer->Buffer); messageBuffer->Buffer = NULL; } messageBuffer->BufferSize = 0; messageBuffer->BufferPos = 0; free(messageBuffer); } /* ###### Read message ################################################### */ ssize_t messageBufferRead(struct MessageBuffer* messageBuffer, int sockfd, int* flags, struct sockaddr* from, socklen_t* fromlen, uint32_t* ppid, sctp_assoc_t* assocID, uint16_t* streamID, const unsigned long long timeout) { ssize_t result; LOG_VERBOSE4 fprintf(stdlog, "Reading into message buffer from socket %d: offset=%u, max=%u\n", sockfd, (unsigned int)messageBuffer->BufferPos, (unsigned int)messageBuffer->BufferSize); LOG_END result = recvfromplus(sockfd, (char*)&messageBuffer->Buffer[messageBuffer->BufferPos], messageBuffer->BufferSize - messageBuffer->BufferPos, flags, from, fromlen, ppid, assocID, streamID, timeout); LOG_VERBOSE4 fprintf(stdlog, "Read result for socket %d is %d, EOR=%s, NOTIFICATION=%s, useEOR=%s\n", sockfd, (int)result, (*flags & MSG_EOR) ? "yes" : "no", (*flags & MSG_NOTIFICATION) ? "yes" : "no", (messageBuffer->UseEOR == true) ? "yes" : "no"); LOG_END if(result > 0) { messageBuffer->BufferPos += (size_t)result; if( (messageBuffer->UseEOR) && (!(*flags & MSG_EOR)) ) { LOG_VERBOSE4 fprintf(stdlog, "Partially read %d bytes on socket %d\n", (int)result, sockfd); LOG_END result = MBRead_Partial; } else { LOG_VERBOSE4 fprintf(stdlog, "Partially read %d bytes on socket %d, message of %u bytes completed\n", (int)result, sockfd, (int)messageBuffer->BufferPos); LOG_END /* LOG_VERBOSE5 for(i = 0;i < result;i++) { printf("%02x ", ((unsigned char*)messageBuffer->Buffer)[i]); } puts(""); LOG_END */ result = messageBuffer->BufferPos; messageBuffer->BufferPos = 0; } } else if(result < 0) { result = MBRead_Error; } return(result); } /* ###### Reset message buffer ########################################### */ void messageBufferReset(struct MessageBuffer* messageBuffer) { messageBuffer->BufferPos = 0; } /* ###### Does message buffer contain a fragment? ######################## */ bool messageBufferHasPartial(struct MessageBuffer* messageBuffer) { return(messageBuffer->BufferPos > 0); } rsplib-3.0.1/rsplib/messagebuffer.h0000664000175000017500000000731511777021056014227 00000000000000/* $Id: messagebuffer.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef MESSAGEBUFFER_H #define MESSAGEBUFFER_H #include "tdtypes.h" #include #ifdef __cplusplus extern "C" { #endif struct MessageBuffer { char* Buffer; size_t BufferSize; size_t BufferPos; bool UseEOR; }; #define MBRead_Error -1 #define MBRead_Partial -2 /** * Constructor. * * @param bufferSize Size of buffer to be allocated. * @param useEOR true to use MSG_EOR (SCTP), false otherwise (TCP, UDP). * @return MessageBuffer object or NULL in case of error. */ struct MessageBuffer* messageBufferNew(size_t bufferSize, const bool useEOR); /** * Destructor. * * @param messageBuffer MessageBuffer. */ void messageBufferDelete(struct MessageBuffer* messageBuffer); /** * Read message. * * @param messageBuffer MessageBuffer. * @param sockfd Socket descriptor. * @param flags Reference to store recvmsg() flags. * @param from Reference to store source address to or NULL if not necessary. * @param fromlen Reference to store source address length to or NULL if not necessary. * @param ppid Reference to store SCTP Payload Protocol Identifier to. * @param assocID Reference to store SCTP Association ID to. * @param streamID Reference to store SCTP Stream ID to. * @param timeToLive Reference to store SCTP Time To Live to. * @param timeout Timeout for receiving data. * @param Bytes read or MBRead_Error in case of error or MBRead_Partial in case of partial read (ppid, assocID and streamID will be valid)! */ ssize_t messageBufferRead(struct MessageBuffer* messageBuffer, int sockfd, int* flags, struct sockaddr* from, socklen_t* fromlen, uint32_t* ppid, sctp_assoc_t* assocID, uint16_t* streamID, const unsigned long long timeout); /** * Reset message buffer (set offset to 0). * * @param messageBuffer MessageBuffer. */ void messageBufferReset(struct MessageBuffer* messageBuffer); /** * Check whether message buffer contains a message fragment. * * @param messageBuffer MessageBuffer. * @return true, if there is a fragment; false otherwise. */ bool messageBufferHasPartial(struct MessageBuffer* messageBuffer); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/redblacktree.h0000664000175000017500000001512011777021056014031 00000000000000/* $Id: redblacktree.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #undef RB_DEFINITION #undef RB_FUNCTION #ifdef USE_LEAFLINKED #include "doublelinkedringlist.h" #define RB_DEFINITION(x) LeafLinked##x #define RB_FUNCTION(x) leafLinked##x #else #define RB_DEFINITION(x) Simple##x #define RB_FUNCTION(x) simple##x #endif #if (!defined(LEAFLINKED_REDBLACKTREE_H) && defined(USE_LEAFLINKED)) || (!defined(REGULAR_REDBLACKTREE_H) && !defined(USE_LEAFLINKED)) #ifdef USE_LEAFLINKED #define LEAFLINKED_REDBLACKTREE_H #else #define REGULAR_REDBLACKTREE_H #endif #ifdef __cplusplus extern "C" { #endif #ifndef REDBLACKTREE_H_CONSTANTS #define REDBLACKTREE_H_CONSTANTS typedef unsigned long long RedBlackTreeNodeValueType; enum RedBlackTreeNodeColorType { Red = 1, Black = 2 }; #endif struct RB_DEFINITION(RedBlackTreeNode) { #ifdef USE_LEAFLINKED struct DoubleLinkedRingListNode ListNode; #endif struct RB_DEFINITION(RedBlackTreeNode)* Parent; struct RB_DEFINITION(RedBlackTreeNode)* LeftSubtree; struct RB_DEFINITION(RedBlackTreeNode)* RightSubtree; enum RedBlackTreeNodeColorType Color; RedBlackTreeNodeValueType Value; RedBlackTreeNodeValueType ValueSum; /* ValueSum := LeftSubtree->Value + Value + RightSubtree->Value */ }; struct RB_DEFINITION(RedBlackTree) { struct RB_DEFINITION(RedBlackTreeNode) NullNode; #ifdef USE_LEAFLINKED struct DoubleLinkedRingList List; #endif size_t Elements; void (*PrintFunction)(const void* node, FILE* fd); int (*ComparisonFunction)(const void* node1, const void* node2); }; void RB_FUNCTION(RedBlackTreeNodeNew)(struct RB_DEFINITION(RedBlackTreeNode)* node); void RB_FUNCTION(RedBlackTreeNodeDelete)(struct RB_DEFINITION(RedBlackTreeNode)* node); int RB_FUNCTION(RedBlackTreeNodeIsLinked)(const struct RB_DEFINITION(RedBlackTreeNode)* node); void RB_FUNCTION(RedBlackTreeNew)(struct RB_DEFINITION(RedBlackTree)* rbt, void (*printFunction)(const void* node, FILE* fd), int (*comparisonFunction)(const void* node1, const void* node2)); void RB_FUNCTION(RedBlackTreeDelete)(struct RB_DEFINITION(RedBlackTree)* rbt); void RB_FUNCTION(RedBlackTreeVerify)(struct RB_DEFINITION(RedBlackTree)* rbt); void RB_FUNCTION(RedBlackTreePrint)(const struct RB_DEFINITION(RedBlackTree)* rbt, FILE* fd); int RB_FUNCTION(RedBlackTreeIsEmpty)(const struct RB_DEFINITION(RedBlackTree)* rbt); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetFirst)( const struct RB_DEFINITION(RedBlackTree)* rbt); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetLast)( const struct RB_DEFINITION(RedBlackTree)* rbt); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetPrev)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* node); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNext)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* node); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNearestPrev)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNearestNext)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode); size_t RB_FUNCTION(RedBlackTreeGetElements)(const struct RB_DEFINITION(RedBlackTree)* rbt); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeInsert)( struct RB_DEFINITION(RedBlackTree)* rbt, struct RB_DEFINITION(RedBlackTreeNode)* node); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeRemove)( struct RB_DEFINITION(RedBlackTree)* rbt, struct RB_DEFINITION(RedBlackTreeNode)* node); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeFind)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode); RedBlackTreeNodeValueType RB_FUNCTION(RedBlackTreeGetValueSum)( const struct RB_DEFINITION(RedBlackTree)* rbt); struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNodeByValue)( const struct RB_DEFINITION(RedBlackTree)* rbt, RedBlackTreeNodeValueType value); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolhandlespacemanagement-template_impl.h0000664000175000017500000012242511777021056021441 00000000000000/* $Id: poolhandlespacemanagement-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* #define PRINT_SELECTION_RESULT */ /* #define PRINT_GETNAMETABLE_RESULT */ /* ###### Helper function for update notification ######################## */ static void ST_CLASS(poolNodeUpdateNotification)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, enum PoolNodeUpdateAction updateAction, HandlespaceChecksumAccumulatorType preUpdateChecksum, RegistrarIdentifierType preUpdateHomeRegistrar, void* userData) { struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement = (struct ST_CLASS(PoolHandlespaceManagement)*)userData; if(poolHandlespaceManagement->PoolNodeUpdateNotification) { poolHandlespaceManagement->PoolNodeUpdateNotification(poolHandlespaceManagement, poolElementNode, updateAction, preUpdateChecksum, preUpdateHomeRegistrar, poolHandlespaceManagement->NotificationUserData); } } /* ###### Initialize ##################################################### */ void ST_CLASS(poolHandlespaceManagementNew)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType homeRegistrarIdentifier, void (*poolNodeUserDataDisposer)(struct ST_CLASS(PoolNode)* poolElementNode, void* userData), void (*poolElementNodeUserDataDisposer)(struct ST_CLASS(PoolElementNode)* poolElementNode, void* userData), void* disposerUserData) { ST_CLASS(poolHandlespaceNodeNew)(&poolHandlespaceManagement->Handlespace, homeRegistrarIdentifier, ST_CLASS(poolNodeUpdateNotification), (void*)poolHandlespaceManagement); poolHandlespaceManagement->NewPoolNode = NULL; poolHandlespaceManagement->NewPoolElementNode = NULL; poolHandlespaceManagement->PoolNodeUserDataDisposer = poolNodeUserDataDisposer; poolHandlespaceManagement->PoolElementNodeUserDataDisposer = poolElementNodeUserDataDisposer; poolHandlespaceManagement->DisposerUserData = disposerUserData; poolHandlespaceManagement->PoolNodeUpdateNotification = NULL; poolHandlespaceManagement->NotificationUserData = NULL; } /* ###### PoolElementNode deallocation helper ############################ */ static void ST_CLASS(poolHandlespaceManagementPoolElementNodeDisposer)(void* arg1, void* arg2) { struct ST_CLASS(PoolElementNode)* poolElementNode = (struct ST_CLASS(PoolElementNode)*)arg1; struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement = (struct ST_CLASS(PoolHandlespaceManagement)*)arg2; if((poolElementNode->UserData) && (poolHandlespaceManagement->PoolElementNodeUserDataDisposer)) { poolHandlespaceManagement->PoolElementNodeUserDataDisposer(poolElementNode, poolHandlespaceManagement->DisposerUserData); poolElementNode->UserData = NULL; } transportAddressBlockDelete(poolElementNode->UserTransport); free(poolElementNode->UserTransport); poolElementNode->UserTransport = NULL; if(poolElementNode->RegistratorTransport) { transportAddressBlockDelete(poolElementNode->RegistratorTransport); free(poolElementNode->RegistratorTransport); poolElementNode->RegistratorTransport = NULL; } free(poolElementNode); } /* ###### PoolNode deallocation helper ################################### */ static void ST_CLASS(poolHandlespaceManagementPoolNodeDisposer)(void* arg1, void* arg2) { struct ST_CLASS(PoolNode)* poolNode = (struct ST_CLASS(PoolNode)*)arg1; struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement = (struct ST_CLASS(PoolHandlespaceManagement)*)arg2; if((poolNode->UserData) && (poolHandlespaceManagement->PoolNodeUserDataDisposer)) { poolHandlespaceManagement->PoolNodeUserDataDisposer(poolNode, poolHandlespaceManagement->DisposerUserData); poolNode->UserData = NULL; } free(poolNode); } /* ###### Invalidate ##################################################### */ void ST_CLASS(poolHandlespaceManagementDelete)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { ST_CLASS(poolHandlespaceManagementClear)(poolHandlespaceManagement); ST_CLASS(poolHandlespaceNodeDelete)(&poolHandlespaceManagement->Handlespace); if(poolHandlespaceManagement->NewPoolNode) { free(poolHandlespaceManagement->NewPoolNode); poolHandlespaceManagement->NewPoolNode = NULL; } if(poolHandlespaceManagement->NewPoolElementNode) { free(poolHandlespaceManagement->NewPoolElementNode); poolHandlespaceManagement->NewPoolElementNode = NULL; } } /* ###### Clear handlespace ################################################ */ void ST_CLASS(poolHandlespaceManagementClear)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { ST_CLASS(poolHandlespaceNodeClear)(&poolHandlespaceManagement->Handlespace, ST_CLASS(poolHandlespaceManagementPoolNodeDisposer), ST_CLASS(poolHandlespaceManagementPoolElementNodeDisposer), (void*)poolHandlespaceManagement); } /* ###### Get handlespace checksum ####################################### */ HandlespaceChecksumType ST_CLASS(poolHandlespaceManagementGetHandlespaceChecksum)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(handlespaceChecksumFinish(ST_CLASS(poolHandlespaceNodeGetHandlespaceChecksum)(&poolHandlespaceManagement->Handlespace))); } /* ###### Get ownership checksum ######################################### */ HandlespaceChecksumType ST_CLASS(poolHandlespaceManagementGetOwnershipChecksum)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(handlespaceChecksumFinish(ST_CLASS(poolHandlespaceNodeGetOwnershipChecksum)(&poolHandlespaceManagement->Handlespace))); } /* ###### Registration ################################################### */ unsigned int ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const RegistrarIdentifierType homeRegistrarIdentifier, const PoolElementIdentifierType poolElementIdentifier, const unsigned int registrationLife, const struct PoolPolicySettings* poolPolicySettings, const struct TransportAddressBlock* userTransport, const struct TransportAddressBlock* registratorTransport, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID, const unsigned long long currentTimeStamp, struct ST_CLASS(PoolElementNode)** poolElementNode) { const struct ST_CLASS(PoolPolicy)* poolPolicy; struct TransportAddressBlock* userTransportCopy; struct TransportAddressBlock* registratorTransportCopy; unsigned int errorCode; *poolElementNode = 0; if((poolHandle->Size < 1) || (poolHandle->Size > MAX_POOLHANDLESIZE)) { return(RSPERR_INVALID_POOL_HANDLE); } poolPolicy = ST_CLASS(poolPolicyGetPoolPolicyByType)(poolPolicySettings->PolicyType); if(poolPolicy == NULL) { return(RSPERR_INVALID_POOL_POLICY); } if(poolHandlespaceManagement->NewPoolNode == NULL) { poolHandlespaceManagement->NewPoolNode = (struct ST_CLASS(PoolNode)*)malloc(sizeof(struct ST_CLASS(PoolNode))); if(poolHandlespaceManagement->NewPoolNode == NULL) { return(RSPERR_OUT_OF_MEMORY); } } ST_CLASS(poolNodeNew)(poolHandlespaceManagement->NewPoolNode, poolHandle, poolPolicy, userTransport->Protocol, (userTransport->Flags & TABF_CONTROLCHANNEL) ? PNF_CONTROLCHANNEL : 0); if(poolHandlespaceManagement->NewPoolElementNode == NULL) { poolHandlespaceManagement->NewPoolElementNode = (struct ST_CLASS(PoolElementNode)*)malloc(sizeof(struct ST_CLASS(PoolElementNode))); if(poolHandlespaceManagement->NewPoolElementNode == NULL) { return(RSPERR_OUT_OF_MEMORY); } } /* Attention: userTransport is given as TransportAddressBlock here, since poolHandlespaceNodeAddOrUpdatePoolElementNode must be able to check it for compatibility to the pool. If the node is inserted as new pool element node, the AddressBlock field *must* be updated with a duplicate of userTransport's data! The same is necessary for registratorTransport. */ ST_CLASS(poolElementNodeNew)(poolHandlespaceManagement->NewPoolElementNode, poolElementIdentifier, homeRegistrarIdentifier, registrationLife, poolPolicySettings, (struct TransportAddressBlock*)userTransport, (struct TransportAddressBlock*)registratorTransport, connectionSocketDescriptor, connectionAssocID); *poolElementNode = ST_CLASS(poolHandlespaceNodeAddOrUpdatePoolElementNode)(&poolHandlespaceManagement->Handlespace, &poolHandlespaceManagement->NewPoolNode, &poolHandlespaceManagement->NewPoolElementNode, &errorCode); if(errorCode == RSPERR_OKAY) { (*poolElementNode)->LastUpdateTimeStamp = currentTimeStamp; userTransportCopy = transportAddressBlockDuplicate(userTransport); registratorTransportCopy = transportAddressBlockDuplicate(registratorTransport); if((userTransportCopy != NULL) && ((registratorTransportCopy != NULL) || (registratorTransport == NULL))) { if((*poolElementNode)->UserTransport != userTransport) { /* see comment above! */ transportAddressBlockDelete((*poolElementNode)->UserTransport); free((*poolElementNode)->UserTransport); } (*poolElementNode)->UserTransport = userTransportCopy; if(((*poolElementNode)->RegistratorTransport != registratorTransport) && ((*poolElementNode)->RegistratorTransport != NULL)) { /* see comment above! */ transportAddressBlockDelete((*poolElementNode)->RegistratorTransport); free((*poolElementNode)->RegistratorTransport); } (*poolElementNode)->RegistratorTransport = registratorTransportCopy; } else { if(userTransportCopy) { transportAddressBlockDelete(userTransportCopy); free(userTransportCopy); } if(registratorTransportCopy) { transportAddressBlockDelete(registratorTransportCopy); free(registratorTransportCopy); } ST_CLASS(poolHandlespaceManagementDeregisterPoolElement)( poolHandlespaceManagement, poolHandle, poolElementIdentifier); *poolElementNode = NULL; errorCode = RSPERR_OUT_OF_MEMORY; } } #ifdef VERIFY #warning VERIFY is on! The Handlespace Management will be very slow! ST_CLASS(poolHandlespaceNodeVerify)(&poolHandlespaceManagement->Handlespace); #endif return(errorCode); } /* ###### Get textual description ######################################## */ void ST_CLASS(poolHandlespaceManagementGetDescription)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, char* buffer, const size_t bufferSize) { ST_CLASS(poolHandlespaceNodeGetDescription)(&poolHandlespaceManagement->Handlespace, buffer, bufferSize); } /* ###### Print handlespace content ###################################### */ void ST_CLASS(poolHandlespaceManagementPrint)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, FILE* fd, const unsigned int fields) { ST_CLASS(poolHandlespaceNodePrint)(&poolHandlespaceManagement->Handlespace, fd, fields); } /* ###### Verify structures ############################################## */ void ST_CLASS(poolHandlespaceManagementVerify)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { ST_CLASS(poolHandlespaceNodeVerify)(&poolHandlespaceManagement->Handlespace); } /* ###### Find pool element ############################################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementFindPoolElement)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier) { return(ST_CLASS(poolHandlespaceNodeFindPoolElementNode)( &poolHandlespaceManagement->Handlespace, poolHandle, poolElementIdentifier)); } /* ###### Deregistration ################################################# */ unsigned int ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct ST_CLASS(PoolNode)* poolNode = poolElementNode->OwnerPoolNode; ST_CLASS(poolHandlespaceNodeRemovePoolElementNode)(&poolHandlespaceManagement->Handlespace, poolElementNode); ST_CLASS(poolElementNodeDelete)(poolElementNode); ST_CLASS(poolHandlespaceManagementPoolElementNodeDisposer)(poolElementNode, poolHandlespaceManagement); if(ST_CLASS(poolNodeGetPoolElementNodes)(poolNode) == 0) { ST_CLASS(poolHandlespaceNodeRemovePoolNode)( &poolHandlespaceManagement->Handlespace, poolNode); ST_CLASS(poolNodeDelete)(poolNode); ST_CLASS(poolHandlespaceManagementPoolNodeDisposer)(poolNode, poolHandlespaceManagement); } #ifdef VERIFY #warning VERIFY is on! The Handlespace Management will be very slow! ST_CLASS(poolHandlespaceNodeVerify)(&poolHandlespaceManagement->Handlespace); #endif return(RSPERR_OKAY); } /* ###### Registration ################################################### */ unsigned int ST_CLASS(poolHandlespaceManagementRegisterPoolElementByPtr)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const struct ST_CLASS(PoolElementNode)* originalPoolElementNode, const unsigned long long currentTimeStamp, struct ST_CLASS(PoolElementNode)** poolElementNode) { return(ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( poolHandlespaceManagement, poolHandle, originalPoolElementNode->HomeRegistrarIdentifier, originalPoolElementNode->Identifier, originalPoolElementNode->RegistrationLife, &originalPoolElementNode->PolicySettings, originalPoolElementNode->UserTransport, originalPoolElementNode->RegistratorTransport, originalPoolElementNode->ConnectionSocketDescriptor, originalPoolElementNode->ConnectionAssocID, currentTimeStamp, poolElementNode)); } /* ###### Deregistration ################################################# */ unsigned int ST_CLASS(poolHandlespaceManagementDeregisterPoolElement)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier) { struct ST_CLASS(PoolElementNode)* poolElementNode = ST_CLASS(poolHandlespaceNodeFindPoolElementNode)( &poolHandlespaceManagement->Handlespace, poolHandle, poolElementIdentifier); if(poolElementNode) { return(ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( poolHandlespaceManagement, poolElementNode)); } return(RSPERR_NOT_FOUND); } /* ###### Update PoolElementNode's ownership ############################# */ void ST_CLASS(poolHandlespaceManagementUpdateOwnershipOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, const RegistrarIdentifierType newHomeRegistrarIdentifier) { return(ST_CLASS(poolHandlespaceNodeUpdateOwnershipOfPoolElementNode)( &poolHandlespaceManagement->Handlespace, poolElementNode, newHomeRegistrarIdentifier)); } /* ###### Update PoolElementNode's connection ############################ */ void ST_CLASS(poolHandlespaceManagementUpdateConnectionOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID) { return(ST_CLASS(poolHandlespaceNodeUpdateConnectionOfPoolElementNode)( &poolHandlespaceManagement->Handlespace, poolElementNode, connectionSocketDescriptor, connectionAssocID)); } /* ###### Handle Resolution ############################################## */ unsigned int ST_CLASS(poolHandlespaceManagementHandleResolution)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, size_t* poolElementNodes, const size_t maxHandleResolutionItems, const size_t maxIncrement) { unsigned int errorCode; *poolElementNodes = ST_CLASS(poolHandlespaceNodeSelectPoolElementNodesByPolicy)( &poolHandlespaceManagement->Handlespace, poolHandle, poolElementNodeArray, maxHandleResolutionItems, maxIncrement, &errorCode); #ifdef VERIFY #warning VERIFY is on! The Handlespace Management will be very slow! ST_CLASS(poolHandlespaceNodeVerify)(&poolHandlespaceManagement->Handlespace); #endif #ifdef PRINT_SELECTION_RESULT size_t i; puts("--- Selection -------------------------------------------------------"); printf("Pool \""); poolHandlePrint(poolHandle, stdout); puts("\":"); for(i = 0;i < *poolElementNodes;i++) { printf("#%02u -> ", i); ST_CLASS(poolElementNodePrint)(poolElementNodeArray[i], PENPO_ONLY_POLICY); puts(""); } puts("---------------------------------------------------------------------"); #endif return(errorCode); } /* ###### Get name table from handlespace ################################## */ static int ST_CLASS(getOwnershipHandleTable)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(HandleTableExtract)* handleTableExtract, const RegistrarIdentifierType homeRegistrarIdentifier, const unsigned int flags, size_t maxElements) { struct ST_CLASS(PoolElementNode)* poolElementNode; #ifdef PRINT_GETNAMETABLE_RESULT size_t i; #endif maxElements = min(NTE_MAX_POOL_ELEMENT_NODES, maxElements); if(maxElements < 1) { return(0); } if(flags & HTEF_START) { poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( &poolHandlespaceManagement->Handlespace, homeRegistrarIdentifier); } else { poolElementNode = ST_CLASS(poolHandlespaceNodeFindNearestNextPoolElementOwnershipNode)( &poolHandlespaceManagement->Handlespace, homeRegistrarIdentifier, &handleTableExtract->LastPoolHandle, handleTableExtract->LastPoolElementIdentifier); } handleTableExtract->PoolElementNodes = 0; while(poolElementNode != NULL) { handleTableExtract->PoolElementNodeArray[handleTableExtract->PoolElementNodes++] = poolElementNode; if(handleTableExtract->PoolElementNodes >= maxElements) { break; } poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( &poolHandlespaceManagement->Handlespace, poolElementNode); } if(handleTableExtract->PoolElementNodes > 0) { struct ST_CLASS(PoolElementNode)* lastPoolElementNode = handleTableExtract->PoolElementNodeArray[handleTableExtract->PoolElementNodes - 1]; struct ST_CLASS(PoolNode)* lastPoolNode = lastPoolElementNode->OwnerPoolNode; handleTableExtract->LastPoolHandle = lastPoolNode->Handle; handleTableExtract->LastPoolElementIdentifier = lastPoolElementNode->Identifier; } #ifdef PRINT_GETNAMETABLE_RESULT printf("GetOwnershipHandleTable result: %u items\n", (unsigned int)handleTableExtract->PoolElementNodes); for(i = 0;i < handleTableExtract->PoolElementNodes;i++) { poolElementNode = handleTableExtract->PoolElementNodeArray[i]; printf("#%3d: \"", (int)i); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdout); printf("\"/%d, $%08x", (int)poolElementNode->OwnerPoolNode->Handle.Size, poolElementNode->Identifier); puts(""); } #endif return(handleTableExtract->PoolElementNodes > 0); } /* ###### Get name table from handlespace ################################## */ static int ST_CLASS(getGlobalHandleTable)(struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(HandleTableExtract)* handleTableExtract, const unsigned int flags, size_t maxElements) { struct ST_CLASS(PoolNode)* poolNode; struct ST_CLASS(PoolElementNode)* poolElementNode; #ifdef PRINT_GETNAMETABLE_RESULT size_t i; #endif maxElements = min(NTE_MAX_POOL_ELEMENT_NODES, maxElements); if(maxElements < 1) { return(0); } handleTableExtract->PoolElementNodes = 0; if(flags & HTEF_START) { handleTableExtract->LastPoolElementIdentifier = 0; handleTableExtract->LastPoolHandle.Size = 0; poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)(&poolHandlespaceManagement->Handlespace); if(poolNode == NULL) { return(0); } poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)(poolNode); } else { poolNode = ST_CLASS(poolHandlespaceNodeFindPoolNode)( &poolHandlespaceManagement->Handlespace, &handleTableExtract->LastPoolHandle); if(poolNode == NULL) { poolNode = ST_CLASS(poolHandlespaceNodeFindNearestNextPoolNode)( &poolHandlespaceManagement->Handlespace, &handleTableExtract->LastPoolHandle); } if(poolNode == NULL) { return(0); } if(poolHandleComparison(&handleTableExtract->LastPoolHandle, &poolNode->Handle) == 0) { poolElementNode = ST_CLASS(poolNodeFindNearestNextPoolElementNode)(poolNode, handleTableExtract->LastPoolElementIdentifier); } else { poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)(poolNode); } } for(;;) { while(poolElementNode != NULL) { handleTableExtract->PoolElementNodeArray[handleTableExtract->PoolElementNodes++] = poolElementNode; if(handleTableExtract->PoolElementNodes >= maxElements) { goto finish; } poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromIndex)(poolNode, poolElementNode); } poolNode = ST_CLASS(poolHandlespaceNodeGetNextPoolNode)( &poolHandlespaceManagement->Handlespace, poolNode); if(poolNode) { poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)(poolNode); } else { break; } } finish: if(handleTableExtract->PoolElementNodes > 0) { struct ST_CLASS(PoolElementNode)* lastPoolElementNode = handleTableExtract->PoolElementNodeArray[handleTableExtract->PoolElementNodes - 1]; struct ST_CLASS(PoolNode)* lastPoolNode = lastPoolElementNode->OwnerPoolNode; handleTableExtract->LastPoolHandle = lastPoolNode->Handle; handleTableExtract->LastPoolElementIdentifier = lastPoolElementNode->Identifier; } #ifdef PRINT_GETNAMETABLE_RESULT printf("GetGlobalHandleTable result: %u items\n", (unsigned int)handleTableExtract->PoolElementNodes); for(i = 0;i < handleTableExtract->PoolElementNodes;i++) { poolElementNode = handleTableExtract->PoolElementNodeArray[i]; printf("#%3d: \"", (int)i); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdout); printf("\"/%d, $%08x", (int)poolElementNode->OwnerPoolNode->Handle.Size, poolElementNode->Identifier); puts(""); } #endif return(handleTableExtract->PoolElementNodes > 0); } /* ###### Get name table from handlespace ################################## */ int ST_CLASS(poolHandlespaceManagementGetHandleTable)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType homeRegistrarIdentifier, struct ST_CLASS(HandleTableExtract)* handleTableExtract, const unsigned int flags, size_t maxElements) { if(flags & HTEF_OWNCHILDSONLY) { return(ST_CLASS(getOwnershipHandleTable)( poolHandlespaceManagement, handleTableExtract, homeRegistrarIdentifier, flags, maxElements)); } return(ST_CLASS(getGlobalHandleTable)( poolHandlespaceManagement, handleTableExtract, flags, maxElements)); } /* ###### Restart PE expiry timer to last update TS + expiry timeout ##### */ void ST_CLASS(poolHandlespaceManagementRestartPoolElementExpiryTimer)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, const unsigned long long expiryTimeout) { ST_CLASS(poolHandlespaceNodeDeactivateTimer)(&poolHandlespaceManagement->Handlespace, poolElementNode); ST_CLASS(poolHandlespaceNodeActivateTimer)(&poolHandlespaceManagement->Handlespace, poolElementNode, PENT_EXPIRY, poolElementNode->LastUpdateTimeStamp + expiryTimeout); } /* ###### Purge handlespace from expired PE entries ######################## */ size_t ST_CLASS(poolHandlespaceManagementPurgeExpiredPoolElements)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const unsigned long long currentTimeStamp) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* nextPoolElementNode; size_t purgedPoolElements = 0; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)(&poolHandlespaceManagement->Handlespace); while(poolElementNode != NULL) { nextPoolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementTimerNode)(&poolHandlespaceManagement->Handlespace, poolElementNode); CHECK(poolElementNode->TimerCode == PENT_EXPIRY); CHECK(STN_METHOD(IsLinked)(&poolElementNode->PoolElementTimerStorageNode)); if(poolElementNode->TimerTimeStamp <= currentTimeStamp) { ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( poolHandlespaceManagement, poolElementNode); purgedPoolElements++; } else { /* No more relevant entries, since time list is sorted! */ break; } poolElementNode = nextPoolElementNode; } return(purgedPoolElements); } /* ###### Mark pool element nodes owned by given PR ###################### */ void ST_CLASS(poolHandlespaceManagementMarkPoolElementNodes)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType ownerID) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* nextPoolElementNode; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( &poolHandlespaceManagement->Handlespace, ownerID); while(poolElementNode) { nextPoolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( &poolHandlespaceManagement->Handlespace, poolElementNode); poolElementNode->Flags |= PENF_MARKED; poolElementNode = nextPoolElementNode; } } /* ###### Purge marked pool element nodes owned by given PR ############## */ size_t ST_CLASS(poolHandlespaceManagementPurgeMarkedPoolElementNodes)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType ownerID) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* nextPoolElementNode; size_t count = 0; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( &poolHandlespaceManagement->Handlespace, ownerID); while(poolElementNode) { nextPoolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( &poolHandlespaceManagement->Handlespace, poolElementNode); if(poolElementNode->Flags & PENF_MARKED) { CHECK(ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( poolHandlespaceManagement, poolElementNode) == RSPERR_OKAY); count++; } poolElementNode = nextPoolElementNode; } return(count); } /* ###### Get number of pools ############################################ */ size_t ST_CLASS(poolHandlespaceManagementGetPools)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(ST_CLASS(poolHandlespaceNodeGetPoolNodes)(&poolHandlespaceManagement->Handlespace)); } /* ###### Get number of pool elements #################################### */ size_t ST_CLASS(poolHandlespaceManagementGetPoolElements)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(ST_CLASS(poolHandlespaceNodeGetPoolElementNodes)(&poolHandlespaceManagement->Handlespace)); } /* ###### Get number of owned pool elements ############################## */ size_t ST_CLASS(poolHandlespaceManagementGetOwnedPoolElements)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(ST_CLASS(poolHandlespaceNodeGetOwnedPoolElementNodes)(&poolHandlespaceManagement->Handlespace)); } /* ###### Get number of pool elements of given pool ###################### */ size_t ST_CLASS(poolHandlespaceManagementGetPoolElementsOfPool)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle) { return(ST_CLASS(poolHandlespaceNodeGetPoolElementNodesOfPool)( &poolHandlespaceManagement->Handlespace, poolHandle)); } /* ###### Get number of pool elements of given connection ################ */ size_t ST_CLASS(poolHandlespaceManagementGetPoolElementsOfConnection)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const int socketDescriptor, const sctp_assoc_t assocID) { return(ST_CLASS(poolHandlespaceNodeGetConnectionNodesForConnection)( &poolHandlespaceManagement->Handlespace, socketDescriptor, assocID)); } /* ###### Get first PoolNode ############################################# */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)(&poolHandlespaceManagement->Handlespace)); } /* ###### Get next PoolNode ############################################## */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolNode)* poolNode) { return(ST_CLASS(poolHandlespaceNodeGetNextPoolNode)(&poolHandlespaceManagement->Handlespace, poolNode)); } /* ###### Get first timer ################################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)(&poolHandlespaceManagement->Handlespace)); } /* ###### Get previous timer ############################################# */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode) { return(ST_CLASS(poolHandlespaceNodeGetNextPoolElementTimerNode)(&poolHandlespaceManagement->Handlespace, poolElementNode)); } /* ###### Get next timer time stamp ###################################### */ unsigned long long ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { const struct ST_CLASS(PoolElementNode)* nextTimer = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)( &poolHandlespaceManagement->Handlespace); if(nextTimer != NULL) { return(nextTimer->TimerTimeStamp); } return(~0); } /* ###### Get first connection ############################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNode)(&poolHandlespaceManagement->Handlespace)); } /* ###### Get previous connection ######################################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode) { return(ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNode)(&poolHandlespaceManagement->Handlespace, poolElementNode)); } /* ###### Get first ownership node of given home PR identifier ########### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolElementOwnershipNodeForIdentifier)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType homeRegistrarIdentifier) { return(ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)(&poolHandlespaceManagement->Handlespace, homeRegistrarIdentifier)); } /* ###### Get next connection of same home PR identifier ################# */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementConnectionNodeForSameConnection)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode) { return(ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNodeForSameConnection)(&poolHandlespaceManagement->Handlespace, poolElementNode)); } /* ###### Get first ownership ############################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { return(ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNode)(&poolHandlespaceManagement->Handlespace)); } /* ###### Get previous ownership ######################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode) { return(ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNode)(&poolHandlespaceManagement->Handlespace, poolElementNode)); } /* ###### Get next ownership of same home PR identifier ################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementOwnershipNodeForSameIdentifier)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode) { return(ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)(&poolHandlespaceManagement->Handlespace, poolElementNode)); } rsplib-3.0.1/rsplib/timeutilities.c0000664000175000017500000000647211777021056014301 00000000000000/* $Id: timeutilities.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "timeutilities.h" #include #include /* ###### Get current timer ############################################## */ unsigned long long getMicroTime() { struct timeval tv; gettimeofday(&tv,NULL); return(((unsigned long long)tv.tv_sec * (unsigned long long)1000000) + (unsigned long long)tv.tv_usec); } /* ###### Print time stamp ############################################### */ void printTimeStamp(FILE* fd) { char str[64]; const unsigned long long microTime = getMicroTime(); const time_t timeStamp = microTime / 1000000; const struct tm* timeptr = localtime(&timeStamp); strftime((char*)&str, sizeof(str), "%d-%b-%Y %H:%M:%S", timeptr); fputs(str, fd); fprintf(fd, ".%04d: ", (unsigned int)(microTime % 1000000) / 100); } /* ###### Initialize weighted statistics value ########################### */ void initWeightedStatValue(struct WeightedStatValue* value, const unsigned long long now) { value->Value = 0.0; value->Cumulation = 0.0; value->StartTimeStamp = now; value->UpdateTimeStamp = now; } /* ###### Update weighted statistics value ############################### */ void updateWeightedStatValue(struct WeightedStatValue* value, const unsigned long long now, const double v) { const unsigned long long elapsedSinceLastUpdate = now - value->UpdateTimeStamp; value->Cumulation += value->Value * (elapsedSinceLastUpdate / 1000000.0); value->Value = v; value->UpdateTimeStamp = now; } /* ###### Get weighted statistics value ################################## */ double averageWeightedStatValue(struct WeightedStatValue* value, const unsigned long long now) { const unsigned long long elapsedSinceStart = now - value->StartTimeStamp; updateWeightedStatValue(value, now, value->Value); return(value->Cumulation / (elapsedSinceStart / 1000000.0)); } rsplib-3.0.1/rsplib/timeutilities.h0000664000175000017500000000530211777021056014275 00000000000000/* $Id: timeutilities.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TIMEUTILITIES_H #define TIMEUTILITIES_H #include #ifdef __cplusplus extern "C" { #endif /** * Get current time: Microseconds since 01 January, 1970. * * @return Current time. */ unsigned long long getMicroTime(); /** * Print time stamp. * * @param fd File to print timestamp to (e.g. stdout, stderr, ...). */ void printTimeStamp(FILE* fd); struct WeightedStatValue { double Value; double Cumulation; unsigned long long StartTimeStamp; unsigned long long UpdateTimeStamp; }; /** * Initialize WeightedStatValue object. * * @param value WeightedStatValue. * @param now Current time stamp. */ void initWeightedStatValue(struct WeightedStatValue* value, const unsigned long long now); /** * Update WeightedStatValue object by new value. * * @param value WeightedStatValue. * @param now Current time stamp. * @param v New value. */ void updateWeightedStatValue(struct WeightedStatValue* value, const unsigned long long now, const double v); /** * Compute average from WeightedStatValue. * * @param value WeightedStatValue. * @param now Current time stamp. */ double averageWeightedStatValue(struct WeightedStatValue* value, const unsigned long long now); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolhandlespacenode-template_impl.h0000664000175000017500000015666011777021056020262 00000000000000/* $Id: poolhandlespacenode-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* ###### Initialize ##################################################### */ void ST_CLASS(poolHandlespaceNodeNew)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier, void (*poolNodeUpdateNotification)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, enum PoolNodeUpdateAction updateAction, HandlespaceChecksumAccumulatorType preUpdateChecksum, RegistrarIdentifierType preUpdateHomeRegistrar, void* userData), void* notificationUserData) { ST_METHOD(New)(&poolHandlespaceNode->PoolIndexStorage, ST_CLASS(poolIndexStorageNodePrint), ST_CLASS(poolIndexStorageNodeComparison)); ST_METHOD(New)(&poolHandlespaceNode->PoolElementTimerStorage, ST_CLASS(poolElementTimerStorageNodePrint), ST_CLASS(poolElementTimerStorageNodeComparison)); ST_METHOD(New)(&poolHandlespaceNode->PoolElementOwnershipStorage, ST_CLASS(poolElementOwnershipStorageNodePrint), ST_CLASS(poolElementOwnershipStorageNodeComparison)); ST_METHOD(New)(&poolHandlespaceNode->PoolElementConnectionStorage, ST_CLASS(poolElementConnectionStorageNodePrint), ST_CLASS(poolElementConnectionStorageNodeComparison)); poolHandlespaceNode->HomeRegistrarIdentifier = homeRegistrarIdentifier; poolHandlespaceNode->HandlespaceChecksum = INITIAL_HANDLESPACE_CHECKSUM; poolHandlespaceNode->OwnershipChecksum = INITIAL_HANDLESPACE_CHECKSUM; poolHandlespaceNode->PoolElements = 0; poolHandlespaceNode->OwnedPoolElements = 0; poolHandlespaceNode->PoolNodeUpdateNotification = poolNodeUpdateNotification; poolHandlespaceNode->NotificationUserData = notificationUserData; } /* ###### Invalidate ##################################################### */ void ST_CLASS(poolHandlespaceNodeDelete)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { CHECK(ST_METHOD(IsEmpty)(&poolHandlespaceNode->PoolIndexStorage)); CHECK(ST_METHOD(IsEmpty)(&poolHandlespaceNode->PoolElementTimerStorage)); CHECK(ST_METHOD(IsEmpty)(&poolHandlespaceNode->PoolElementOwnershipStorage)); CHECK(ST_METHOD(IsEmpty)(&poolHandlespaceNode->PoolElementConnectionStorage)); ST_METHOD(Delete)(&poolHandlespaceNode->PoolIndexStorage); ST_METHOD(Delete)(&poolHandlespaceNode->PoolElementTimerStorage); ST_METHOD(Delete)(&poolHandlespaceNode->PoolElementOwnershipStorage); ST_METHOD(Delete)(&poolHandlespaceNode->PoolElementConnectionStorage); poolHandlespaceNode->HandlespaceChecksum = 0; poolHandlespaceNode->OwnershipChecksum = 0; poolHandlespaceNode->PoolElements = 0; poolHandlespaceNode->OwnedPoolElements = 0; } /* ###### Get handlespace checksum ####################################### */ HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeGetHandlespaceChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return(poolHandlespaceNode->HandlespaceChecksum); } /* ###### Get ownership checksum ######################################### */ HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeGetOwnershipChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return(poolHandlespaceNode->OwnershipChecksum); } /* ###### Compute handlespace checksum ################################### */ HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeComputeHandlespaceChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolNode)* poolNode; HandlespaceChecksumAccumulatorType sum = 0; poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode); while(poolNode != NULL) { poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)(poolNode); while(poolElementNode != NULL) { sum = handlespaceChecksumAdd(sum, ST_CLASS(poolElementNodeComputeChecksum)(poolElementNode)); poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromIndex)(poolNode, poolElementNode); } poolNode = ST_CLASS(poolHandlespaceNodeGetNextPoolNode)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, poolNode); } return(sum); } /* ###### Compute own nodes checksum ##################################### */ HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeComputeOwnershipChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType registrarIdentifier) { struct ST_CLASS(PoolElementNode)* poolElementNode; HandlespaceChecksumAccumulatorType sum = 0; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, registrarIdentifier); while(poolElementNode != NULL) { sum = handlespaceChecksumAdd(sum, ST_CLASS(poolElementNodeComputeChecksum)(poolElementNode)); poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, poolElementNode); } return(sum); } /* ###### Get number of timers ########################################### */ size_t ST_CLASS(poolHandlespaceNodeGetTimerNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return(ST_METHOD(GetElements)(&poolHandlespaceNode->PoolElementTimerStorage)); } /* ###### Get first timer ################################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&poolHandlespaceNode->PoolElementTimerStorage); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromTimerStorageNode)(node)); } return(NULL); } /* ###### Get previous timer ############################################# */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolHandlespaceNode->PoolElementTimerStorage, &poolElementNode->PoolElementTimerStorageNode); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromTimerStorageNode)(node)); } return(NULL); } /* ###### Get first ownership ############################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&poolHandlespaceNode->PoolElementOwnershipStorage); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)(node)); } return(NULL); } /* ###### Get next ownership ############################################## */ static struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetPrevPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetPrev)(&poolHandlespaceNode->PoolElementOwnershipStorage, &poolElementNode->PoolElementOwnershipStorageNode); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)(node)); } return(NULL); } /* ###### Get previous ownership ######################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolHandlespaceNode->PoolElementOwnershipStorage, &poolElementNode->PoolElementOwnershipStorageNode); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)(node)); } return(NULL); } /* ###### Get next ownership of same home PR identifier ################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct ST_CLASS(PoolElementNode)* nextPoolElementNode; struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolHandlespaceNode->PoolElementOwnershipStorage, &poolElementNode->PoolElementOwnershipStorageNode); if(node != NULL) { nextPoolElementNode = ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)(node); if(nextPoolElementNode->HomeRegistrarIdentifier == poolElementNode->HomeRegistrarIdentifier) { return(nextPoolElementNode); } } return(NULL); } /* ###### Get number of connection nodes ################################## */ size_t ST_CLASS(poolHandlespaceNodeGetConnectionNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return(ST_METHOD(GetElements)(&poolHandlespaceNode->PoolElementConnectionStorage)); } /* ###### Get first connection ############################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&poolHandlespaceNode->PoolElementConnectionStorage); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromConnectionStorageNode)(node)); } return(NULL); } /* ###### Get next connection ############################################## */ static struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetPrevPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetPrev)(&poolHandlespaceNode->PoolElementConnectionStorage, &poolElementNode->PoolElementConnectionStorageNode); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromConnectionStorageNode)(node)); } return(NULL); } /* ###### Get previous connection ######################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolHandlespaceNode->PoolElementConnectionStorage, &poolElementNode->PoolElementConnectionStorageNode); if(node != NULL) { return(ST_CLASS(getPoolElementNodeFromConnectionStorageNode)(node)); } return(NULL); } /* ###### Get next connection of same home PR identifier ################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNodeForSameConnection)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct ST_CLASS(PoolElementNode)* nextPoolElementNode; struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolHandlespaceNode->PoolElementConnectionStorage, &poolElementNode->PoolElementConnectionStorageNode); if(node != NULL) { nextPoolElementNode = ST_CLASS(getPoolElementNodeFromConnectionStorageNode)(node); if((nextPoolElementNode->ConnectionSocketDescriptor == poolElementNode->ConnectionSocketDescriptor) && (nextPoolElementNode->ConnectionAssocID == poolElementNode->ConnectionAssocID)) { return(nextPoolElementNode); } } return(NULL); } /* ###### Get number of pool elements #################################### */ size_t ST_CLASS(poolHandlespaceNodeGetPoolElementNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return(poolHandlespaceNode->PoolElements); } /* ###### Get number of owned pool elements ############################## */ size_t ST_CLASS(poolHandlespaceNodeGetOwnedPoolElementNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return(poolHandlespaceNode->OwnedPoolElements); } /* ###### Get number of pools ############################################ */ size_t ST_CLASS(poolHandlespaceNodeGetPoolNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return(ST_METHOD(GetElements)(&poolHandlespaceNode->PoolIndexStorage)); } /* ###### Get first PoolNode ############################################# */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { return((struct ST_CLASS(PoolNode)*)ST_METHOD(GetFirst)(&poolHandlespaceNode->PoolIndexStorage)); } /* ###### Get next PoolNode ############################################## */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode) { return((struct ST_CLASS(PoolNode)*)ST_METHOD(GetNext)(&poolHandlespaceNode->PoolIndexStorage, &poolNode->PoolIndexStorageNode)); } /* ###### Find PoolElementNode ########################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeFindPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier) { struct ST_CLASS(PoolNode)* poolNode = ST_CLASS(poolHandlespaceNodeFindPoolNode)( poolHandlespaceNode, poolHandle); if(poolNode != NULL) { return(ST_CLASS(poolNodeFindPoolElementNode)(poolNode, poolElementIdentifier)); } return(NULL); } /* ###### Check, if PoolElementNode has an active timer ################## */ int ST_CLASS(poolHandlespaceNodeHasActiveTimer)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct ST_CLASS(PoolElementNode)* poolElementNode) { return(STN_METHOD(IsLinked)(&poolElementNode->PoolElementTimerStorageNode)); } /* ###### Insert PoolElementNode into timer storage ###################### */ void ST_CLASS(poolHandlespaceNodeActivateTimer)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const unsigned int timerCode, const unsigned long long timerTimeStamp) { struct STN_CLASSNAME* result; CHECK(!STN_METHOD(IsLinked)(&poolElementNode->PoolElementTimerStorageNode)); poolElementNode->TimerCode = timerCode; poolElementNode->TimerTimeStamp = timerTimeStamp; result = ST_METHOD(Insert)(&poolHandlespaceNode->PoolElementTimerStorage, &poolElementNode->PoolElementTimerStorageNode); CHECK(result == &poolElementNode->PoolElementTimerStorageNode); } /* ###### Remove PoolElementNode from timer storage ###################### */ void ST_CLASS(poolHandlespaceNodeDeactivateTimer)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* result; if(STN_METHOD(IsLinked)(&poolElementNode->PoolElementTimerStorageNode)) { result = ST_METHOD(Remove)(&poolHandlespaceNode->PoolElementTimerStorage, &poolElementNode->PoolElementTimerStorageNode); CHECK(result == &poolElementNode->PoolElementTimerStorageNode); } } /* ###### Select PoolElementNodes by Pool Policy ######################### */ size_t ST_CLASS(poolHandlespaceNodeSelectPoolElementNodesByPolicy)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, const size_t maxPoolElementNodes, const size_t maxIncrement, unsigned int* errorCode) { struct ST_CLASS(PoolNode)* poolNode = ST_CLASS(poolHandlespaceNodeFindPoolNode)(poolHandlespaceNode, poolHandle); size_t count = 0; if(poolNode != NULL) { *errorCode = RSPERR_OKAY; count = poolNode->Policy->SelectionFunction(poolNode, poolElementNodeArray, maxPoolElementNodes, maxIncrement); #ifdef VERIFY ST_CLASS(poolHandlespaceNodeVerify)(poolHandlespaceNode); #endif } else { *errorCode = RSPERR_NOT_FOUND; } return(count); } /* ###### Add PoolNode ################################################### */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeAddPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode) { struct STN_CLASSNAME* result = ST_METHOD(Insert)(&poolHandlespaceNode->PoolIndexStorage, &poolNode->PoolIndexStorageNode); if(result == &poolNode->PoolIndexStorageNode) { poolNode->OwnerPoolHandlespaceNode = poolHandlespaceNode; } return((struct ST_CLASS(PoolNode)*)result); } /* ###### Get number of pool elements of certain pool #################### */ size_t ST_CLASS(poolHandlespaceNodeGetPoolElementNodesOfPool)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle) { struct ST_CLASS(PoolNode)* poolNode = ST_CLASS(poolHandlespaceNodeFindPoolNode)( poolHandlespaceNode, poolHandle); if(poolNode) { return(ST_CLASS(poolNodeGetPoolElementNodes)(poolNode)); } return(0); } /* ###### Find PoolNode ################################################## */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeFindPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle) { struct ST_CLASS(PoolNode)* poolNode; struct ST_CLASS(PoolNode) cmpPoolNode; poolHandleNew(&cmpPoolNode.Handle, poolHandle->Handle, poolHandle->Size); poolNode = (struct ST_CLASS(PoolNode)*)ST_METHOD(Find)(&poolHandlespaceNode->PoolIndexStorage, &cmpPoolNode.PoolIndexStorageNode); return(poolNode); } /* ###### Find PoolNode ################################################## */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeFindNearestNextPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle) { struct ST_CLASS(PoolNode)* poolNode; struct ST_CLASS(PoolNode) cmpPoolNode; poolHandleNew(&cmpPoolNode.Handle, poolHandle->Handle, poolHandle->Size); poolNode = (struct ST_CLASS(PoolNode)*)ST_METHOD(GetNearestNext)(&poolHandlespaceNode->PoolIndexStorage, &cmpPoolNode.PoolIndexStorageNode); return(poolNode); } /* ###### Find nearest next ownership #################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeFindNearestNextPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier) { struct ST_CLASS(PoolNode) cmpPoolNode; struct ST_CLASS(PoolElementNode) cmpPoolElementNode; struct STN_CLASSNAME* ownershipNode; poolHandleNew(&cmpPoolNode.Handle, poolHandle->Handle, poolHandle->Size); cmpPoolElementNode.OwnerPoolNode = &cmpPoolNode; cmpPoolElementNode.Identifier = poolElementIdentifier; cmpPoolElementNode.HomeRegistrarIdentifier = homeRegistrarIdentifier; ownershipNode = ST_METHOD(GetNearestNext)(&poolHandlespaceNode->PoolElementOwnershipStorage, &cmpPoolElementNode.PoolElementOwnershipStorageNode); if(ownershipNode) { return(ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)(ownershipNode)); } return(NULL); } /* ###### Find nearest next connection ################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeFindNearestNextPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const int connectionSocketDescriptor, const sctp_assoc_t assocID, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier) { struct ST_CLASS(PoolNode) cmpPoolNode; struct ST_CLASS(PoolElementNode) cmpPoolElementNode; struct STN_CLASSNAME* connectionNode; poolHandleNew(&cmpPoolNode.Handle, poolHandle->Handle, poolHandle->Size); cmpPoolElementNode.OwnerPoolNode = &cmpPoolNode; cmpPoolElementNode.ConnectionSocketDescriptor = connectionSocketDescriptor; cmpPoolElementNode.ConnectionAssocID = assocID; cmpPoolElementNode.Identifier = poolElementIdentifier; connectionNode = ST_METHOD(GetNearestNext)(&poolHandlespaceNode->PoolElementConnectionStorage, &cmpPoolElementNode.PoolElementConnectionStorageNode); if(connectionNode) { return(ST_CLASS(getPoolElementNodeFromConnectionStorageNode)(connectionNode)); } return(NULL); } /* ###### Remove PoolNode ################################################ */ struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeRemovePoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode) { const struct STN_CLASSNAME* result = ST_METHOD(Remove)(&poolHandlespaceNode->PoolIndexStorage, &poolNode->PoolIndexStorageNode); CHECK(result == &poolNode->PoolIndexStorageNode); poolNode->OwnerPoolHandlespaceNode = NULL; return(poolNode); } /* ###### Add PoolElementNode ############################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeAddPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode, unsigned int* errorCode) { struct ST_CLASS(PoolElementNode)* result; struct STN_CLASSNAME* result2; result = ST_CLASS(poolNodeAddPoolElementNode)(poolNode, poolElementNode, errorCode); if(result == poolElementNode) { CHECK(*errorCode == RSPERR_OKAY); poolHandlespaceNode->PoolElements++; if(poolElementNode->HomeRegistrarIdentifier != 0) { result2 = ST_METHOD(Insert)(&poolHandlespaceNode->PoolElementOwnershipStorage, &poolElementNode->PoolElementOwnershipStorageNode); CHECK(result2 == &poolElementNode->PoolElementOwnershipStorageNode); } if(poolElementNode->ConnectionSocketDescriptor > 0) { result2 = ST_METHOD(Insert)(&poolHandlespaceNode->PoolElementConnectionStorage, &poolElementNode->PoolElementConnectionStorageNode); CHECK(result2 == &poolElementNode->PoolElementConnectionStorageNode); } } return(result); } /* ###### Update PoolElementNode's ownership ############################# */ void ST_CLASS(poolHandlespaceNodeUpdateOwnershipOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const RegistrarIdentifierType newHomeRegistrarIdentifier) { struct STN_CLASSNAME* result; HandlespaceChecksumAccumulatorType preUpdateChecksum; RegistrarIdentifierType preUpdateHomeRegistrar; /* ====== Store old checksum and registrar for notification =========== */ preUpdateChecksum = poolElementNode->Checksum; preUpdateHomeRegistrar = poolElementNode->HomeRegistrarIdentifier; /* ====== Change ownership ============================================ */ if(newHomeRegistrarIdentifier != poolElementNode->HomeRegistrarIdentifier) { if(STN_METHOD(IsLinked)(&poolElementNode->PoolElementOwnershipStorageNode)) { result = ST_METHOD(Remove)(&poolHandlespaceNode->PoolElementOwnershipStorage, &poolElementNode->PoolElementOwnershipStorageNode); CHECK(result == &poolElementNode->PoolElementOwnershipStorageNode); } poolElementNode->Flags |= PENF_UPDATED; poolElementNode->HomeRegistrarIdentifier = newHomeRegistrarIdentifier; result = ST_METHOD(Insert)(&poolHandlespaceNode->PoolElementOwnershipStorage, &poolElementNode->PoolElementOwnershipStorageNode); CHECK(result == &poolElementNode->PoolElementOwnershipStorageNode); } else { poolElementNode->Flags &= ~PENF_UPDATED; } /* ====== Update handlespace checksum ================================= */ poolHandlespaceNode->HandlespaceChecksum = handlespaceChecksumSub( poolHandlespaceNode->HandlespaceChecksum, poolElementNode->Checksum); if(preUpdateHomeRegistrar == poolHandlespaceNode->HomeRegistrarIdentifier) { CHECK(poolHandlespaceNode->OwnedPoolElements > 0); poolHandlespaceNode->OwnedPoolElements--; poolHandlespaceNode->OwnershipChecksum = handlespaceChecksumSub( poolHandlespaceNode->OwnershipChecksum, poolElementNode->Checksum); } poolElementNode->Checksum = ST_CLASS(poolElementNodeComputeChecksum)(poolElementNode); poolHandlespaceNode->HandlespaceChecksum = handlespaceChecksumAdd( poolHandlespaceNode->HandlespaceChecksum, poolElementNode->Checksum); if(poolElementNode->HomeRegistrarIdentifier == poolHandlespaceNode->HomeRegistrarIdentifier) { poolHandlespaceNode->OwnedPoolElements++; poolHandlespaceNode->OwnershipChecksum = handlespaceChecksumAdd( poolHandlespaceNode->OwnershipChecksum, poolElementNode->Checksum); } if(poolHandlespaceNode->PoolNodeUpdateNotification) { poolHandlespaceNode->PoolNodeUpdateNotification(poolHandlespaceNode, poolElementNode, PNUA_Update, preUpdateChecksum, preUpdateHomeRegistrar, poolHandlespaceNode->NotificationUserData); } } /* ###### Update PoolElementNode's connection ############################ */ void ST_CLASS(poolHandlespaceNodeUpdateConnectionOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID) { struct STN_CLASSNAME* result; if((connectionSocketDescriptor != poolElementNode->ConnectionSocketDescriptor) || (connectionAssocID != poolElementNode->ConnectionAssocID)) { if(STN_METHOD(IsLinked)(&poolElementNode->PoolElementConnectionStorageNode)) { result = ST_METHOD(Remove)(&poolHandlespaceNode->PoolElementConnectionStorage, &poolElementNode->PoolElementConnectionStorageNode); CHECK(result == &poolElementNode->PoolElementConnectionStorageNode); } poolElementNode->ConnectionSocketDescriptor = connectionSocketDescriptor; poolElementNode->ConnectionAssocID = connectionAssocID; if(poolElementNode->ConnectionSocketDescriptor > 0) { result = ST_METHOD(Insert)(&poolHandlespaceNode->PoolElementConnectionStorage, &poolElementNode->PoolElementConnectionStorageNode); CHECK(result == &poolElementNode->PoolElementConnectionStorageNode); } } } /* ###### Update PoolElementNode ######################################### */ void ST_CLASS(poolHandlespaceNodeUpdatePoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const struct ST_CLASS(PoolElementNode)* source, unsigned int* errorCode) { ST_CLASS(poolNodeUpdatePoolElementNode)(poolElementNode->OwnerPoolNode, poolElementNode, source, errorCode); if(*errorCode == RSPERR_OKAY) { /* ====== Change connection ======================================== */ ST_CLASS(poolHandlespaceNodeUpdateConnectionOfPoolElementNode)( poolHandlespaceNode, poolElementNode, source->ConnectionSocketDescriptor, source->ConnectionAssocID); /* ====== Change ownership ========================================= */ /* Important: This function also takes care for updating Handlespace Checksum and Ownership Checksum! */ ST_CLASS(poolHandlespaceNodeUpdateOwnershipOfPoolElementNode)( poolHandlespaceNode, poolElementNode, source->HomeRegistrarIdentifier); poolElementNode->Flags &= ~PENF_NEW; } #ifdef VERIFY ST_CLASS(poolHandlespaceNodeVerify)(poolHandlespaceNode); #endif } /* ###### Add or Update PoolElementNode ##################################### */ /* Allocation behavior: User program places PoolNode and PoolElementNode data in new memory areas. If the PoolNode or PoolElementNode structure is used for insertion into the handlespace, their pointer is set to NULL. So, the user program has to allocate new spaces for the next element. Otherwise, data has been copied into already existing nodes and the memory areas can be reused. */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeAddOrUpdatePoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)** poolNode, struct ST_CLASS(PoolElementNode)** poolElementNode, unsigned int* errorCode) { struct ST_CLASS(PoolNode)* newPoolNode; struct ST_CLASS(PoolElementNode)* newPoolElementNode; newPoolNode = ST_CLASS(poolHandlespaceNodeAddPoolNode)(poolHandlespaceNode, *poolNode); newPoolElementNode = ST_CLASS(poolHandlespaceNodeAddPoolElementNode)(poolHandlespaceNode, newPoolNode, *poolElementNode, errorCode); if(newPoolElementNode != NULL) { if(newPoolElementNode != *poolElementNode) { /* ====== PE entry update ======================================= */ ST_CLASS(poolHandlespaceNodeUpdatePoolElementNode)(poolHandlespaceNode, newPoolElementNode, *poolElementNode, errorCode); } else { /* ====== New PE entry ========================================== */ *poolElementNode = NULL; /* ====== Update handlespace checksum =========================== */ newPoolElementNode->Checksum = ST_CLASS(poolElementNodeComputeChecksum)(newPoolElementNode); poolHandlespaceNode->HandlespaceChecksum = handlespaceChecksumAdd( poolHandlespaceNode->HandlespaceChecksum, newPoolElementNode->Checksum); if(newPoolElementNode->HomeRegistrarIdentifier == poolHandlespaceNode->HomeRegistrarIdentifier) { poolHandlespaceNode->OwnedPoolElements++; poolHandlespaceNode->OwnershipChecksum = handlespaceChecksumAdd( poolHandlespaceNode->OwnershipChecksum, newPoolElementNode->Checksum); } if(poolHandlespaceNode->PoolNodeUpdateNotification) { poolHandlespaceNode->PoolNodeUpdateNotification(poolHandlespaceNode, newPoolElementNode, PNUA_Create, INITIAL_HANDLESPACE_CHECKSUM, UNDEFINED_REGISTRAR_IDENTIFIER, poolHandlespaceNode->NotificationUserData); } newPoolElementNode->Flags |= PENF_NEW; } } if(newPoolNode == *poolNode) { /* A new pool has been created. */ if(newPoolElementNode != NULL) { /* Keep the new pool, since the new PE is its first element. */ *poolNode = NULL; } else { /* A new pool has been created but a PE not been registered. Remove the empty pool now! */ CHECK(ST_CLASS(poolHandlespaceNodeRemovePoolNode)(poolHandlespaceNode, *poolNode) == *poolNode); } } return(newPoolElementNode); } /* ###### Remove PoolElementNode ######################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeRemovePoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* result; struct ST_CLASS(PoolElementNode)* result2; /* ====== Unlink PE entry ============================================= */ if(STN_METHOD(IsLinked)(&poolElementNode->PoolElementTimerStorageNode)) { result = ST_METHOD(Remove)(&poolHandlespaceNode->PoolElementTimerStorage, &poolElementNode->PoolElementTimerStorageNode); CHECK(result == &poolElementNode->PoolElementTimerStorageNode); } if(STN_METHOD(IsLinked)(&poolElementNode->PoolElementOwnershipStorageNode)) { result = ST_METHOD(Remove)(&poolHandlespaceNode->PoolElementOwnershipStorage, &poolElementNode->PoolElementOwnershipStorageNode); CHECK(result == &poolElementNode->PoolElementOwnershipStorageNode); } if(STN_METHOD(IsLinked)(&poolElementNode->PoolElementConnectionStorageNode)) { result = ST_METHOD(Remove)(&poolHandlespaceNode->PoolElementConnectionStorage, &poolElementNode->PoolElementConnectionStorageNode); CHECK(result == &poolElementNode->PoolElementConnectionStorageNode); } result2 = ST_CLASS(poolNodeRemovePoolElementNode)(poolElementNode->OwnerPoolNode, poolElementNode); CHECK(result2 == poolElementNode); CHECK(poolHandlespaceNode->PoolElements > 0); poolHandlespaceNode->PoolElements--; /* ====== Update handlespace checksum ================================= */ poolHandlespaceNode->HandlespaceChecksum = handlespaceChecksumSub( poolHandlespaceNode->HandlespaceChecksum, poolElementNode->Checksum); if(poolElementNode->HomeRegistrarIdentifier == poolHandlespaceNode->HomeRegistrarIdentifier) { CHECK(poolHandlespaceNode->OwnedPoolElements > 0); poolHandlespaceNode->OwnedPoolElements--; poolHandlespaceNode->OwnershipChecksum = handlespaceChecksumSub( poolHandlespaceNode->OwnershipChecksum, poolElementNode->Checksum); } if(poolHandlespaceNode->PoolNodeUpdateNotification) { poolHandlespaceNode->PoolNodeUpdateNotification(poolHandlespaceNode, poolElementNode, PNUA_Delete, poolElementNode->Checksum, poolElementNode->HomeRegistrarIdentifier, poolHandlespaceNode->NotificationUserData); } return(poolElementNode); } /* ###### Get textual description ######################################## */ void ST_CLASS(poolHandlespaceNodeGetDescription)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, char* buffer, const size_t bufferSize) { snprintf(buffer, bufferSize, "Handlespace[home=$%08x]: (%u Pools, %u PoolElements, %u Owned)", poolHandlespaceNode->HomeRegistrarIdentifier, (unsigned int)ST_CLASS(poolHandlespaceNodeGetPoolNodes)(poolHandlespaceNode), (unsigned int)ST_CLASS(poolHandlespaceNodeGetPoolElementNodes)(poolHandlespaceNode), (unsigned int)ST_CLASS(poolHandlespaceNodeGetOwnedPoolElementNodes)(poolHandlespaceNode)); } /* ###### Print ########################################################## */ void ST_CLASS(poolHandlespaceNodePrint)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, FILE* fd, const unsigned int fields) { const struct ST_CLASS(PoolElementNode)* poolElementNode; const struct ST_CLASS(PoolNode)* poolNode; char poolHandlespaceNodeDescription[256]; ST_CLASS(poolHandlespaceNodeGetDescription)(poolHandlespaceNode, (char*)&poolHandlespaceNodeDescription, sizeof(poolHandlespaceNodeDescription)); fputs(poolHandlespaceNodeDescription, fd); fputs("\n", fd); fprintf(fd, "-- Checksums: Handlespace=$%08x, Ownership=$%08x\n", (unsigned int)handlespaceChecksumFinish(poolHandlespaceNode->HandlespaceChecksum), (unsigned int)handlespaceChecksumFinish(poolHandlespaceNode->OwnershipChecksum)); if(fields & PNNPO_POOLS_INDEX) { fputs("*-- Index:\n", fd); poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode); while(poolNode != NULL) { fprintf(fd, " +-- "); ST_CLASS(poolNodePrint)(poolNode, fd, (fields | PNPO_INDEX) & (~PNPO_SELECTION)); poolNode = ST_CLASS(poolHandlespaceNodeGetNextPoolNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, (struct ST_CLASS(PoolNode)*)poolNode); } } if(fields & PNNPO_POOLS_SELECTION) { fputs("*-- Selection:\n", fd); poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode); while(poolNode != NULL) { fprintf(fd, " +-- "); ST_CLASS(poolNodePrint)(poolNode, fd, (fields | PNPO_SELECTION) & (~PNPO_INDEX)); poolNode = ST_CLASS(poolHandlespaceNodeGetNextPoolNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, (struct ST_CLASS(PoolNode)*)poolNode); } } if(fields & PNNPO_POOLS_OWNERSHIP) { fputs("*-- Ownership:\n", fd); poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode); while(poolElementNode != NULL) { fprintf(fd, " - $%08x -> \"", poolElementNode->HomeRegistrarIdentifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, fd); fprintf(fd, "\" / "); ST_CLASS(poolElementNodePrint)(poolElementNode, fd, PENPO_ONLY_ID); if(poolElementNode->HomeRegistrarIdentifier == poolHandlespaceNode->HomeRegistrarIdentifier) { fputs(" (property of local handlespace)", fd); } fputs("\n", fd); poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, (struct ST_CLASS(PoolElementNode)*)poolElementNode); } } if(fields & PNNPO_POOLS_CONNECTION) { fprintf(fd, "*-- Connection: (%u nodes)\n", (unsigned int)ST_CLASS(poolHandlespaceNodeGetConnectionNodes)(poolHandlespaceNode)); poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode); while(poolElementNode != NULL) { fputs(" - \"", fd); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, fd); fprintf(fd, "\" / "); ST_CLASS(poolElementNodePrint)(poolElementNode, fd, PENPO_CONNECTION); fputs("\n", fd); poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, (struct ST_CLASS(PoolElementNode)*)poolElementNode); } } if(fields & PNNPO_POOLS_TIMER) { fprintf(fd, "*-- Timer: (%u nodes)\n", (unsigned int)ST_CLASS(poolHandlespaceNodeGetTimerNodes)(poolHandlespaceNode)); poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode); while(poolElementNode != NULL) { fprintf(fd, " - \""); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, fd); fprintf(fd, "\" / "); ST_CLASS(poolElementNodePrint)(poolElementNode, fd, PENPO_ONLY_ID); fprintf(fd, " code=%u ts=%llu\n", poolElementNode->TimerCode, poolElementNode->TimerTimeStamp); poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementTimerNode)((struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, (struct ST_CLASS(PoolElementNode)*)poolElementNode); } } } /* ###### Verify ######################################################### */ void ST_CLASS(poolHandlespaceNodeVerify)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode) { struct ST_CLASS(PoolNode)* poolNode; struct ST_CLASS(PoolElementNode)* poolElementNode; size_t i, j; size_t ownedPEs; const size_t pools = ST_CLASS(poolHandlespaceNodeGetPoolNodes)(poolHandlespaceNode); const size_t poolElements = ST_CLASS(poolHandlespaceNodeGetPoolElementNodes)(poolHandlespaceNode); const size_t timers = ST_CLASS(poolHandlespaceNodeGetTimerNodes)(poolHandlespaceNode); const size_t ownerships = ST_METHOD(GetElements)(&poolHandlespaceNode->PoolElementOwnershipStorage); /* puts("------------- VERIFY -------------------"); ST_CLASS(poolHandlespaceNodePrint)(poolHandlespaceNode, stdout, ~0); puts("----------------------------------------"); */ ST_METHOD(Verify)(&poolHandlespaceNode->PoolIndexStorage); ST_METHOD(Verify)(&poolHandlespaceNode->PoolElementTimerStorage); ST_METHOD(Verify)(&poolHandlespaceNode->PoolElementOwnershipStorage); i = 0; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)(poolHandlespaceNode); while(poolElementNode != NULL) { poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementTimerNode)(poolHandlespaceNode, poolElementNode); i++; } CHECK(i == timers); ownedPEs = 0; i = 0; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNode)(poolHandlespaceNode); while(poolElementNode != NULL) { if(poolElementNode->HomeRegistrarIdentifier == poolHandlespaceNode->HomeRegistrarIdentifier) { ownedPEs++; } poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNode)(poolHandlespaceNode, poolElementNode); i++; } CHECK(i == ownerships); CHECK((poolHandlespaceNode->HomeRegistrarIdentifier == UNDEFINED_REGISTRAR_IDENTIFIER) || (poolHandlespaceNode->OwnedPoolElements == ownedPEs)); i = 0; j = 0; poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)(poolHandlespaceNode); while(poolNode != NULL) { ST_METHOD(Verify)(&poolNode->PoolElementIndexStorage); ST_METHOD(Verify)(&poolNode->PoolElementSelectionStorage); CHECK(ST_METHOD(GetElements)(&poolNode->PoolElementSelectionStorage) == ST_METHOD(GetElements)(&poolNode->PoolElementIndexStorage)); CHECK(ST_CLASS(poolNodeGetPoolElementNodes)(poolNode) > 0); j += ST_CLASS(poolNodeGetPoolElementNodes)(poolNode); poolNode = ST_CLASS(poolHandlespaceNodeGetNextPoolNode)(poolHandlespaceNode, poolNode); i++; } CHECK(i == pools); CHECK(j == poolElements); CHECK(ownerships <= poolElements); CHECK(ST_CLASS(poolHandlespaceNodeGetHandlespaceChecksum)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode) == ST_CLASS(poolHandlespaceNodeComputeHandlespaceChecksum)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode)); if(poolHandlespaceNode->HomeRegistrarIdentifier != UNDEFINED_REGISTRAR_IDENTIFIER) { CHECK(ST_CLASS(poolHandlespaceNodeGetOwnershipChecksum)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode) == ST_CLASS(poolHandlespaceNodeComputeOwnershipChecksum)( (struct ST_CLASS(PoolHandlespaceNode)*)poolHandlespaceNode, poolHandlespaceNode->HomeRegistrarIdentifier)); } } /* ###### Clear ########################################################## */ void ST_CLASS(poolHandlespaceNodeClear)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, void (*poolNodeDisposer)(void* poolNode, void* userData), void (*poolElementNodeDisposer)(void* poolElementNode, void* userData), void* userData) { struct ST_CLASS(PoolNode)* poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)(poolHandlespaceNode); while(poolNode != NULL) { ST_CLASS(poolNodeClear)(poolNode, poolElementNodeDisposer, userData); ST_CLASS(poolHandlespaceNodeRemovePoolNode)(poolHandlespaceNode, poolNode); ST_CLASS(poolNodeDelete)(poolNode); poolNodeDisposer(poolNode, userData); poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)(poolHandlespaceNode); } } /* ###### Get first ownership node of given home PR identifier ########### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* prevPoolElementNode; struct PoolHandle lastPoolHandle; poolHandleNew(&lastPoolHandle, (unsigned char*)"\x00", 1); poolElementNode = ST_CLASS(poolHandlespaceNodeFindNearestNextPoolElementOwnershipNode)( poolHandlespaceNode, homeRegistrarIdentifier, &lastPoolHandle, 0); if(poolElementNode) { prevPoolElementNode = ST_CLASS(poolHandlespaceNodeGetPrevPoolElementOwnershipNode)( poolHandlespaceNode, poolElementNode); while(prevPoolElementNode) { if(prevPoolElementNode->HomeRegistrarIdentifier == homeRegistrarIdentifier) { poolElementNode = prevPoolElementNode; } else { break; } prevPoolElementNode = ST_CLASS(poolHandlespaceNodeGetPrevPoolElementOwnershipNode)( poolHandlespaceNode, prevPoolElementNode); } } if((poolElementNode != NULL) && (poolElementNode->HomeRegistrarIdentifier == homeRegistrarIdentifier)) { return(poolElementNode); } return(NULL); } /* ###### Get number of ownership nodes ################################## */ size_t ST_CLASS(poolHandlespaceNodeGetOwnershipNodesForIdentifier)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier) { struct ST_CLASS(PoolElementNode)* poolElementNode; size_t nodes = 0; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( poolHandlespaceNode, homeRegistrarIdentifier); while(poolElementNode != NULL) { nodes++; poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( poolHandlespaceNode, poolElementNode); } return(nodes); } /* ###### Get first connection node of given connection ################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNodeForConnection)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const int connectionSocketDescriptor, const sctp_assoc_t assocID) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* prevPoolElementNode; struct PoolHandle lastPoolHandle; poolHandleNew(&lastPoolHandle, (unsigned char*)"\x00", 1); poolElementNode = ST_CLASS(poolHandlespaceNodeFindNearestNextPoolElementConnectionNode)( poolHandlespaceNode, connectionSocketDescriptor, assocID, &lastPoolHandle, 0); if(poolElementNode) { prevPoolElementNode = ST_CLASS(poolHandlespaceNodeGetPrevPoolElementConnectionNode)( poolHandlespaceNode, poolElementNode); while(prevPoolElementNode) { if((prevPoolElementNode->ConnectionSocketDescriptor == connectionSocketDescriptor) && (prevPoolElementNode->ConnectionAssocID == assocID)) { poolElementNode = prevPoolElementNode; } else { break; } prevPoolElementNode = ST_CLASS(poolHandlespaceNodeGetPrevPoolElementConnectionNode)( poolHandlespaceNode, prevPoolElementNode); } } if((poolElementNode != NULL) && (poolElementNode->ConnectionSocketDescriptor == connectionSocketDescriptor) && (poolElementNode->ConnectionAssocID == assocID)) { return(poolElementNode); } return(NULL); } /* ###### Get number of connection nodes ################################# */ size_t ST_CLASS(poolHandlespaceNodeGetConnectionNodesForConnection)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const int connectionSocketDescriptor, const sctp_assoc_t assocID) { struct ST_CLASS(PoolElementNode)* poolElementNode; size_t nodes = 0; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNodeForConnection)( poolHandlespaceNode, connectionSocketDescriptor, assocID); while(poolElementNode != NULL) { nodes++; poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNodeForSameConnection)( poolHandlespaceNode, poolElementNode); } return(nodes); } rsplib-3.0.1/rsplib/environmentcache.cc0000664000175000017500000003442511777021056015101 00000000000000/* $Id: environmentcache.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "environmentcache.h" #include "scriptingservice.h" #include "randomizer.h" #include "netutilities.h" #include "timeutilities.h" #include "stringutilities.h" #include #include #include #include #include #include #include // ###### Constructor ####################################################### EnvironmentCache::EnvironmentCache() { CacheDirectory = ""; ClearCacheDirectory = false; TotalSize = 0; } // ###### Destructor ######################################################## EnvironmentCache::~EnvironmentCache() { cleanUp(); } // ###### Initialize cache directory ######################################## bool EnvironmentCache::initializeCache(const char* directory, const unsigned long long maxSize, const unsigned int maxEntries, FILE* logFile) { CacheDirectory = directory; LogFile = logFile; MaxSize = maxSize; MaxEntries = maxEntries; // ====== Create temporary cache ========================================= if(CacheDirectory == "") { char tempName[256]; const char* tempDirectory = getenv("TMPDIR"); if(tempDirectory == NULL) { safestrcpy((char*)&tempName, "/tmp", sizeof(tempName)); } else { safestrcpy((char*)&tempName, tempDirectory, sizeof(tempName)); } safestrcat((char*)&tempName, "/rspSS-EnvironmentCache-XXXXXX", sizeof(tempName)); if(mkdtemp((char*)&tempName) == NULL) { return(false); } CacheDirectory = tempName; ClearCacheDirectory = true; if(logFile) { printTimeStamp(logFile); fprintf(logFile, "Initialized temporary cache in %s\n", tempName); } } // ====== Initialize cache from permanent cache directory ================ else { if( (mkdir(CacheDirectory.c_str(), S_IRWXU) != 0) && (errno != EEXIST) ) { return(false); } DIR* directory = opendir(CacheDirectory.c_str()); if(directory != NULL) { dirent* dentry = readdir(directory); while(dentry != NULL) { const size_t length = strlen(dentry->d_name); if( (length == (2 * SE_HASH_SIZE) + 5) && (dentry->d_name[(2 * SE_HASH_SIZE) + 0] == '.') && (dentry->d_name[(2 * SE_HASH_SIZE) + 1] == 'd') && (dentry->d_name[(2 * SE_HASH_SIZE) + 2] == 'a') && (dentry->d_name[(2 * SE_HASH_SIZE) + 3] == 't') && (dentry->d_name[(2 * SE_HASH_SIZE) + 4] == 'a') ) { CacheEntry* entry = new CacheEntry; assert(entry != NULL); // Not the optimal solution, but should work ... entry->LastTimeUsed = random64() % getMicroTime(); entry->FileName = CacheDirectory + "/" + dentry->d_name; entry->Size = sha1_computeHashOfFile(entry->FileName.c_str(), (uint8_t*)&entry->Hash); if(entry->Size > 0) { Cache.insert(entry); TotalSize += entry->Size; } } dentry = readdir(directory); } closedir(directory); } if(logFile) { printTimeStamp(logFile); fprintf(logFile, "Initialized permanent cache in %s\n", CacheDirectory.c_str()); print(logFile); } } const unsigned long long bytesToBeFreed = (TotalSize > MaxSize) ? TotalSize - MaxSize : 0; const unsigned int entriesToBeFreed = (Cache.size() > MaxEntries) ? Cache.size() - MaxEntries : 0; purge(bytesToBeFreed, entriesToBeFreed); return(true); } // ###### Clean up ########################################################## void EnvironmentCache::cleanUp() { // ====== Clear cache ==================================================== std::set::iterator iterator = Cache.begin(); while(iterator != Cache.end()) { delete *iterator; Cache.erase(iterator); iterator = Cache.begin(); } TotalSize = 0; // ====== Remove cache directory ========================================= if(ClearCacheDirectory) { DIR* directory = opendir(CacheDirectory.c_str()); if(directory != NULL) { char* cwd = getcwd(NULL, 0); if(chdir(CacheDirectory.c_str()) == 0) { dirent* dentry = readdir(directory); while(dentry != NULL) { unlink(dentry->d_name); dentry = readdir(directory); } closedir(directory); if(chdir(cwd) != 0) { // Something went wrong ... } } if(cwd) { free(cwd); } } } } // ###### Purge out-of-date entries ######################################### bool EnvironmentCache::purge(unsigned long long bytesToBeFreed, unsigned int entriesToBeFreed) { std::map lru; for(std::set::iterator iterator = Cache.begin(); iterator != Cache.end(); iterator++) { CacheEntry* entry = *iterator; lru.insert(std::pair(entry->LastTimeUsed, entry)); } for(std::map::iterator iterator = lru.begin(); iterator != lru.end(); iterator++) { CacheEntry* entry = iterator->second; if( (bytesToBeFreed == 0) && (entriesToBeFreed == 0) ) { return(true); } unlink(entry->FileName.c_str()); TotalSize -= entry->Size; bytesToBeFreed -= std::min(bytesToBeFreed, entry->Size); entriesToBeFreed -= std::min(entriesToBeFreed, (unsigned int)1); if(LogFile) { printTimeStamp(LogFile); fputs("Purging environment ", LogFile); printHash(LogFile, (const uint8_t*)&entry->Hash); fprintf(LogFile, " (%llu KiB) => %llu KiB in %u entries\n", entry->Size / 1024, TotalSize / 1024, (unsigned int)Cache.size() - 1); } Cache.erase(entry); delete entry; } if( (bytesToBeFreed == 0) && (entriesToBeFreed == 0) ) { return(true); } return(false); } void EnvironmentCache::printHash(FILE* fh, const uint8_t* hash) { for(size_t i = 0; i < SE_HASH_SIZE; i++) { fprintf(fh, "%02x", (unsigned int)hash[i]); } } // ###### Copy file and calculate hash ###################################### unsigned long long EnvironmentCache::copyFile(const char* source, const char* destination, uint8_t* hash) { unsigned long long size = 0; sha1_ctx context; if(hash) { sha1_init(&context); } FILE* input = fopen(source, "r"); if(input != NULL) { FILE* output = fopen(destination, "w"); if(output != NULL) { char buffer[65536]; while(!feof(input)) { const size_t count = fread(&buffer, 1, sizeof(buffer), input); if(count > 0) { if(fwrite(&buffer, 1, count, output) != count) { size = 0; break; } if(hash) { sha1_update(&context, (uint8_t*)&buffer, count); } size += (unsigned long long)count; } } if(hash) { sha1_final(&context, hash); } if(fclose(output) != 0) { size = 0; } } fclose(input); } return(size); } // ###### Print cache contents ############################################## void EnvironmentCache::print(FILE* fh) { fprintf(fh, "Cache contents [%llu KiB in %u entries]:\n", TotalSize / 1024, (unsigned int)Cache.size()); unsigned int i = 1; for(std::set::const_iterator iterator = Cache.begin(); iterator != Cache.end(); iterator++) { const CacheEntry* entry = *iterator; fprintf(fh, "#%02u: ", i); printHash(fh, (uint8_t*)&entry->Hash); fprintf(fh, "\t%s\t%llu\t%llu\n", entry->FileName.c_str(), entry->Size, entry->LastTimeUsed); i++; } } // ###### Look for entry in cache ########################################### bool EnvironmentCache::isInCache(const uint8_t* hash) { bool found = false; lock(); for(std::set::const_iterator iterator = Cache.begin(); iterator != Cache.end(); iterator++) { if(memcmp(hash, &(*iterator)->Hash, sizeof((*iterator)->Hash)) == 0) { found = true; break; } } unlock(); return(found); } // ###### Store environment into cache ###################################### bool EnvironmentCache::storeInCache(const uint8_t* hash, const char* fileName, const unsigned long long size) { bool success = true; lock(); if(!isInCache(hash)) { // ====== Purge old contents ========================================== if( ((Cache.size() + 1) > MaxEntries) || (TotalSize + size > MaxSize) ) { purge((TotalSize + size > MaxSize) ? TotalSize + size - MaxSize : 0, (Cache.size() + 1 > MaxEntries) ? Cache.size() + 1 - MaxEntries : 0); } // ====== Create CacheEntry =========================================== CacheEntry* entry = new CacheEntry; assert(entry != NULL); memcpy(&entry->Hash, hash, sizeof(entry->Hash)); entry->LastTimeUsed = getMicroTime(); entry->FileName = CacheDirectory; entry->FileName += "/"; for(size_t i = 0; i < SE_HASH_SIZE; i++) { char hex[8]; snprintf((char*)&hex, sizeof(hex), "%02x", (unsigned int)hash[i]); entry->FileName += hex; } entry->FileName += ".data"; // ====== Copy file =================================================== entry->Size = copyFile(fileName, entry->FileName.c_str(), NULL); if(entry->Size > 0) { if(entry->Size != size) { if(LogFile) { printTimeStamp(LogFile); fprintf(LogFile, "CACHE WARNING: Expected size %llu != actual size %llu!\n", size, entry->Size); } } Cache.insert(entry); TotalSize += entry->Size; if(LogFile) { printTimeStamp(LogFile); fputs("Caching environment ", LogFile); printHash(LogFile, (const uint8_t*)&entry->Hash); fprintf(LogFile, " (%llu KiB) => %llu KiB in %u entries\n", entry->Size / 1024, TotalSize / 1024, (unsigned int)Cache.size()); } } else { delete entry; success = false; } } unlock(); return(success); } // ###### Get environment from cache ######################################## bool EnvironmentCache::copyFromCache(const uint8_t* hash, const char* fileName) { bool success = false; lock(); for(std::set::iterator iterator = Cache.begin(); iterator != Cache.end(); iterator++) { CacheEntry* entry = *iterator; if(memcmp(hash, &(*iterator)->Hash, sizeof((*iterator)->Hash)) == 0) { uint8_t* newHash[SE_HASH_SIZE]; if(copyFile(entry->FileName.c_str(), fileName, (uint8_t*)&newHash) > 0) { if(memcmp(hash, &newHash, SE_HASH_SIZE) == 0) { if(LogFile) { printTimeStamp(LogFile); fputs("Retrieving environment ", LogFile); printHash(LogFile, (const uint8_t*)&entry->Hash); fprintf(LogFile, " (%llu KiB) => %llu KiB in %u entries\n", entry->Size / 1024, TotalSize / 1024, (unsigned int)Cache.size()); } success = true; entry->LastTimeUsed = getMicroTime(); } else { if(LogFile) { printTimeStamp(LogFile); fputs("CACHE ERROR: Expected hash ", LogFile); printHash(LogFile, (uint8_t*)hash); fputs(", but computed hash is ", LogFile); printHash(LogFile, (uint8_t*)&newHash); fputs("!\n", LogFile); } } } if(!success) { TotalSize -= entry->Size; if(LogFile) { printTimeStamp(LogFile); fputs("Removing damaged environment ", LogFile); printHash(LogFile, (const uint8_t*)&entry->Hash); fprintf(LogFile, " (%llu KiB) => %llu KiB in %u entries\n", entry->Size / 1024, TotalSize / 1024, (unsigned int)Cache.size() - 1); } Cache.erase(iterator); unlink(entry->FileName.c_str()); delete entry; } break; } } unlock(); return(success); } rsplib-3.0.1/rsplib/takeoverprocess.c0000664000175000017500000000740611777021056014624 00000000000000/* $Id: takeoverprocess.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "takeoverprocess.h" /* ###### Constructor #################################################### */ struct TakeoverProcess* takeoverProcessNew( const RegistrarIdentifierType targetID, struct ST_CLASS(PeerListManagement)* peerList) { struct TakeoverProcess* takeoverProcess; struct ST_CLASS(PeerListNode)* peerListNode; const size_t peers = ST_CLASS(peerListManagementGetPeers)(peerList); CHECK(targetID != 0); CHECK(targetID != peerList->List.OwnIdentifier); takeoverProcess = (struct TakeoverProcess*)malloc(sizeof(struct TakeoverProcess) + sizeof(RegistrarIdentifierType) * peers); if(takeoverProcess != NULL) { takeoverProcess->OutstandingAcks = 0; peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(&peerList->List); while(peerListNode != NULL) { if((peerListNode->Identifier != targetID) && (peerListNode->Identifier != peerList->List.OwnIdentifier) && (peerListNode->Identifier != 0)) { takeoverProcess->PeerIDArray[takeoverProcess->OutstandingAcks++] = peerListNode->Identifier; } peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)(&peerList->List, peerListNode); } } return(takeoverProcess); } /* ###### Destructor ##################################################### */ void takeoverProcessDelete(struct TakeoverProcess* takeoverProcess) { free(takeoverProcess); } /* ###### Get number of outstanding acknowledgements ##################### */ size_t takeoverProcessGetOutstandingAcks(const struct TakeoverProcess* takeoverProcess) { return(takeoverProcess->OutstandingAcks); } /* ###### Acknowledge takeover process ################################### */ size_t takeoverProcessAcknowledge(struct TakeoverProcess* takeoverProcess, const RegistrarIdentifierType targetID, const RegistrarIdentifierType acknowledgerID) { size_t i; for(i = 0;i < takeoverProcess->OutstandingAcks;i++) { if(takeoverProcess->PeerIDArray[i] == acknowledgerID) { for( ;i < takeoverProcess->OutstandingAcks - 1;i++) { takeoverProcess->PeerIDArray[i] = takeoverProcess->PeerIDArray[i + 1]; } takeoverProcess->OutstandingAcks--; } } return(takeoverProcess->OutstandingAcks); } rsplib-3.0.1/rsplib/takeoverprocess.h0000664000175000017500000000422311777021056014623 00000000000000/* $Id: takeoverprocess.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TAKEOVERPROCESS_H #define TAKEOVERPROCESS_H #include "poolhandlespacemanagement.h" #ifdef __cplusplus extern "C" { #endif struct TakeoverProcess { size_t OutstandingAcks; RegistrarIdentifierType PeerIDArray[0]; }; struct TakeoverProcess* takeoverProcessNew( const RegistrarIdentifierType targetID, struct ST_CLASS(PeerListManagement)* peerList); void takeoverProcessDelete(struct TakeoverProcess* takeoverProcess); size_t takeoverProcessGetOutstandingAcks(const struct TakeoverProcess* takeoverProcess); size_t takeoverProcessAcknowledge(struct TakeoverProcess* takeoverProcess, const RegistrarIdentifierType targetID, const RegistrarIdentifierType acknowledgerID); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/exectime.cc0000664000175000017500000001162211777021056013346 00000000000000/* $Id: exectime.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include #include #include #include #include #include #include "timeutilities.h" using namespace std; class ExecThread : public TDThread { public: ExecThread(); virtual ~ExecThread(); void initialize(const size_t id, const char* command, const char* arg); static int compareExecThreads(const void* et1, const void* et2); protected: virtual void run(); public: size_t ID; const char* Command; const char* Argument; char CmdLine[1024]; int Result; int ErrorCode; unsigned long long Runtime; }; // ###### Constructor ####################################################### ExecThread::ExecThread() { Command = NULL; Argument = NULL; Runtime = ~0ULL; Result = -1; ErrorCode = EINVAL; ID = 0; } // ###### Destructor ######################################################## ExecThread::~ExecThread() { } // ###### Initialize thread ################################################# void ExecThread::initialize(const size_t id, const char* command, const char* arg) { Command = command; Argument = arg; ID = id; snprintf((char*)&CmdLine, sizeof(CmdLine), "%s %s", Command, Argument); cerr << CmdLine << endl; } // ###### Thread implementation ############################################# void ExecThread::run() { const unsigned long long startTimeStamp = getMicroTime(); Result = system(CmdLine); ErrorCode = errno; const unsigned long long endTimeStamp = getMicroTime(); if((ErrorCode == 0) && (Result == 0)) { Runtime = endTimeStamp - startTimeStamp; } } int ExecThread::compareExecThreads(const void* ptr1, const void* ptr2) { const ExecThread* et1 = *((const ExecThread**)ptr1); const ExecThread* et2 = *((const ExecThread**)ptr2); if(et1->Runtime < et2->Runtime) { return(-1); } else if(et1->Runtime > et2->Runtime) { return(1); } return(0); } // ###### Main program ###################################################### int main(int argc, char** argv) { if(argc < 3) { cerr << "Usage: " << argv[0] << " [Command] [Parameter1] {Parameter2} ..." << endl; exit(1); } cerr << "Starting ..." << endl; ExecThread threadSet[argc - 2]; ExecThread* threadPtrSet[argc - 2]; size_t threads = 0; for(int i = 2;i < argc;i++) { cerr << " - Thread " << threads + 1 << ": "; threadPtrSet[threads] = &threadSet[threads]; threadSet[threads].initialize(threads + 1, argv[1], argv[i]); threadSet[threads].start(); threads++; } cerr << endl << "Waiting for the threads to finish ..." << endl; for(size_t i = 0;i < threads;i++) { threadSet[i].waitForFinish(); } cerr << endl << "Results:" << endl; qsort(&threadPtrSet, threads, sizeof(ExecThread*), ExecThread::compareExecThreads); for(size_t i = 0;i < threads;i++) { char str[1024]; if(threadPtrSet[i]->Runtime != ~0ULL) { snprintf((char*)&str, sizeof(str), " - %6Lums - Thread %2u: %s", threadPtrSet[i]->Runtime / 1000, (unsigned int)threadPtrSet[i]->ID, threadPtrSet[i]->CmdLine); cout << threadPtrSet[i]->Argument << endl; } else { snprintf((char*)&str, sizeof(str), " - Result %d - Thread %2u: %s", threadPtrSet[i]->Result, (unsigned int)threadPtrSet[i]->ID, threadPtrSet[i]->CmdLine); } cerr << str << endl; } cerr << endl << "Done!" << endl; return(0); } rsplib-3.0.1/rsplib/poolpolicy-template.h0000664000175000017500000000533411777021056015412 00000000000000/* $Id: poolpolicy-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PoolElementNode); struct ST_CLASS(PoolNode); struct ST_CLASS(PoolPolicy) { unsigned int Type; const char* Name; size_t DefaultMaxIncrement; int (*ComparisonFunction)(const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2); size_t (*SelectionFunction)(struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, const size_t maxPoolElementNodes, size_t maxIncrement); void (*InitializePoolElementNodeFunction)(struct ST_CLASS(PoolElementNode)* poolElementNode); void (*UpdatePoolElementNodeFunction)(struct ST_CLASS(PoolElementNode)* poolElementNode); void (*PrepareSelectionFunction)(struct ST_CLASS(PoolNode)* poolNode); }; extern const struct ST_CLASS(PoolPolicy) ST_CLASS(PoolPolicyArray)[]; extern const size_t ST_CLASS(PoolPolicies); const struct ST_CLASS(PoolPolicy)* ST_CLASS(poolPolicyGetPoolPolicyByName)(const char* policyName); const struct ST_CLASS(PoolPolicy)* ST_CLASS(poolPolicyGetPoolPolicyByType)(const unsigned int policyType); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/attacker.cc0000664000175000017500000003412711777021056013346 00000000000000/* $Id: attacker.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "breakdetector.h" #include "timeutilities.h" #include "randomizer.h" #include "netutilities.h" #include "loglevel.h" #include #include #include #include /* ###### Main program ################################################### */ int main(int argc, char** argv) { struct rsp_info info; struct rsp_loadinfo loadInfo; uint16_t port = 0; uint32_t identifier = 0; const char* attackType = "registration"; unsigned long long attackInterval = 1000000; const char* poolHandle = "EchoPool"; bool dontwait = false; double degradation; double reportUnreachableProbability = 0.0; rsp_initinfo(&info); memset((char*)&loadInfo, 0, sizeof(loadInfo)); loadInfo.rli_policy = PPT_ROUNDROBIN; for(int i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } else if(!(strncmp(argv[i],"-log",4))) { if(initLogging(argv[i]) == false) { exit(1); } } else if(!(strncmp(argv[i], "-type=", 6))) { attackType = (char*)&argv[i][6]; } else if(!(strncmp(argv[i], "-interval=", 10))) { attackInterval = (unsigned long long)rint(atof((char*)&argv[i][10]) * 1000000.0); } else if(!(strncmp(argv[i], "-loaddegoverride=", 17))) { loadInfo.rli_load_degradation = (unsigned int)rint(atof((const char*)&argv[i][17]) * (double)PPV_MAX_LOAD_DEGRADATION); } else if(!(strncmp(argv[i], "-poolhandle=" , 12))) { poolHandle = (char*)&argv[i][12]; } else if(!(strncmp(argv[i], "-port=" , 6))) { port = atol((const char*)&argv[i][6]); } else if(!(strcmp(argv[i], "-dontwait"))) { dontwait = true; } else if(!(strncmp(argv[i], "-identifier=", 12))) { if(sscanf((const char*)&argv[i][12], "0x%x", &identifier) == 0) { if(sscanf((const char*)&argv[i][12], "%u", &identifier) == 0) { fputs("ERROR: Bad registrar ID given!\n", stderr); exit(1); } } } else if(!(strncmp(argv[i], "-reportunreachableprobability=" , 30))) { reportUnreachableProbability = atof((char*)&argv[i][30]); if(reportUnreachableProbability > 1.0) { reportUnreachableProbability = 1.0; } else if(reportUnreachableProbability < 0.0) { reportUnreachableProbability = 0.0; } } else if(!(strncmp(argv[i], "-policy=" ,8))) { double dpf; if(!(strcmp((const char*)&argv[i][8], "RoundRobin"))) { loadInfo.rli_policy = PPT_ROUNDROBIN; } else if(!(strcmp((const char*)&argv[i][8], "Random"))) { loadInfo.rli_policy = PPT_RANDOM; } else if(!(strcmp((const char*)&argv[i][8], "LeastUsed"))) { loadInfo.rli_policy = PPT_LEASTUSED; } else if(!(strcmp((const char*)&argv[i][8], "RandomizedLeastUsed"))) { loadInfo.rli_policy = PPT_RANDOMIZED_LEASTUSED; } else if(sscanf((const char*)&argv[i][8], "LeastUsedDegradation:%lf", °radation) == 1) { loadInfo.rli_load_degradation = (unsigned int)rint(degradation * (double)PPV_MAX_LOAD_DEGRADATION); if(loadInfo.rli_load_degradation < 0) { fputs("ERROR: Bad LUD degradation value!\n", stderr); exit(1); } else if(loadInfo.rli_load_degradation > PPV_MAX_LOAD_DEGRADATION) { fputs("ERROR: Bad LUD degradation value!\n", stderr); exit(1); } loadInfo.rli_policy = PPT_LEASTUSED_DEGRADATION; } else if(sscanf((const char*)&argv[i][8], "PriorityLeastUsed:%lf", °radation) == 1) { loadInfo.rli_load_degradation = (unsigned int)rint(degradation * (double)PPV_MAX_LOAD_DEGRADATION); if(loadInfo.rli_load_degradation < 0) { fputs("ERROR: Bad PLU degradation value!\n", stderr); exit(1); } else if(loadInfo.rli_load_degradation > PPV_MAX_LOAD_DEGRADATION) { fputs("ERROR: Bad PLU degradation value!\n", stderr); exit(1); } loadInfo.rli_policy = PPT_PRIORITY_LEASTUSED; } else if(!(strcmp((const char*)&argv[i][8], "RandomizedPriorityLeastUsed"))) { loadInfo.rli_policy = PPT_RANDOMIZED_PRIORITY_LEASTUSED; } else if(sscanf((const char*)&argv[i][8], "LeastUsedDPF:%lf", &dpf) == 1) { if((dpf < 0.0) || (dpf > 1.0)) { fputs("ERROR: Bad LU-DPF DPF value!\n", stderr); exit(1); } loadInfo.rli_load_dpf = (unsigned int)rint(dpf * (double)PPV_MAX_LOADDPF); loadInfo.rli_policy = PPT_LEASTUSED_DPF; } else if(sscanf((const char*)&argv[i][8], "LeastUsedDegradationDPF:%lf:%lf", °radation, &dpf) == 2) { if((dpf < 0.0) || (dpf > 1.0)) { fputs("ERROR: Bad LU-DPF DPF value!\n", stderr); exit(1); } loadInfo.rli_load_dpf = (unsigned int)rint(dpf * (double)PPV_MAX_LOADDPF); loadInfo.rli_load_degradation = (unsigned int)rint(degradation * (double)PPV_MAX_LOAD_DEGRADATION); if(loadInfo.rli_load_degradation < 0) { fputs("ERROR: Bad LU-DPF degradation value!\n", stderr); exit(1); } else if(loadInfo.rli_load_degradation > PPV_MAX_LOAD_DEGRADATION) { fputs("ERROR: Bad LU-DPF degradation value!\n", stderr); exit(1); } loadInfo.rli_policy = PPT_LEASTUSED_DEGRADATION_DPF; } else if(sscanf((const char*)&argv[i][8], "WeightedRoundRobin:%u", &loadInfo.rli_weight) == 1) { loadInfo.rli_policy = PPT_WEIGHTED_ROUNDROBIN; } else if(sscanf((const char*)&argv[i][8], "Priority:%u", &loadInfo.rli_weight) == 1) { loadInfo.rli_policy = PPT_PRIORITY; } else if(sscanf((const char*)&argv[i][8], "WeightedRandom:%u", &loadInfo.rli_weight) == 1) { loadInfo.rli_policy = PPT_WEIGHTED_RANDOM; } else if(sscanf((const char*)&argv[i][8], "WeightedRandomDPF:%u:%lf", &loadInfo.rli_weight, &dpf) == 2) { if((dpf < 0.0) || (dpf > 1.0)) { fputs("ERROR: Bad WRAND-DPF DPF value!\n", stderr); exit(1); } loadInfo.rli_weight_dpf = (unsigned int)rint(dpf * (double)PPV_MAX_WEIGHTDPF); loadInfo.rli_policy = PPT_WEIGHTED_RANDOM_DPF; } else { fprintf(stderr, "ERROR: Bad policy setting <%s>!\n", argv[i]); exit(1); } } else { fprintf(stderr, "ERROR: Bad parameter <%s>!\n", argv[i]); fprintf(stderr, "Usage: %s {-type=registration|handleresolution} {-interval=Seconds} {-port=Port} {-identifier=Identifier} {-policy=Policy} {-loaddegoverride=Load Degradation} {-reportunreachableprobability=Probability}\n", argv[0]); exit(1); } } puts("RSerPool Attack Tester - Version 1.0"); puts("====================================\n"); printf("Attack Type = %s\n", attackType); printf("Attack Interval = %lluus\n", attackInterval); printf("Pool Handle = %s\n", poolHandle); printf("Port = %u\n", port); printf("Identifier = $%08x\n", identifier); printf("Load Degradation = $%08x\n", loadInfo.rli_load_degradation); printf("Do not wait for result = %s\n", (dontwait == true) ? "yes" : "no"); printf("Report Unreachable Pr. = %1.2lf%%\n\n", reportUnreachableProbability * 100.0); if(rsp_initialize(&info) < 0) { fputs("Unable to initialize rsplib\n", stderr); exit(1); } installBreakDetector(); if(!strcmp(attackType, "registration")) { struct rsp_addrinfo rspAddrInfo; size_t sctpLocalAddresses; union sockaddr_union* sctpLocalAddressArray = NULL; struct sockaddr* packedAddressArray = NULL; /* ====== Prepare rspAddrInfo structure ========================= */ rspAddrInfo.ai_family = checkIPv6() ? AF_INET6 : AF_INET; rspAddrInfo.ai_socktype = SOCK_SEQPACKET; rspAddrInfo.ai_protocol = IPPROTO_SCTP; rspAddrInfo.ai_next = NULL; rspAddrInfo.ai_addr = NULL; rspAddrInfo.ai_addrs = 0; rspAddrInfo.ai_addrlen = sizeof(union sockaddr_union); /* ====== Get local addresses by sctp_getladds() ================ */ rspAddrInfo.ai_addrs = 0; int sd = ext_socket(rspAddrInfo.ai_family, rspAddrInfo.ai_socktype, rspAddrInfo.ai_protocol); if(sd < 1) { perror("socket() failed"); exit(1); } union sockaddr_union anyAddress; string2address(checkIPv6() ? "[::]" : "0.0.0.0", &anyAddress); setPort(&anyAddress.sa, port); if(ext_bind(sd, (sockaddr*)&anyAddress, sizeof(anyAddress)) < 0) { perror("bind() failed"); exit(1); } setNonBlocking(sd); if(ext_listen(sd, 100) < 0) { perror("listen() failed"); exit(1); } sctpLocalAddresses = getladdrsplus(sd, 0, &sctpLocalAddressArray); if(sctpLocalAddresses <= 0) { perror("sctp_getladdrs() failed!"); exit(1); } else { /* --- Check for buggy SCTP implementation ----- */ if( (getPort(&sctpLocalAddressArray[0].sa) == 0) || ( ((sctpLocalAddressArray[0].sa.sa_family == AF_INET) && (sctpLocalAddressArray[0].in.sin_addr.s_addr == 0)) || ( ((sctpLocalAddressArray[0].sa.sa_family == AF_INET6) && (IN6_IS_ADDR_UNSPECIFIED(&sctpLocalAddressArray[0].in6.sin6_addr)))) ) ) { fputs("getladdrsplus() replied INADDR_ANY or port 0\n", stderr); exit(1); } /* --------------------------------------------- */ packedAddressArray = pack_sockaddr_union(sctpLocalAddressArray, sctpLocalAddresses); if(packedAddressArray != NULL) { rspAddrInfo.ai_addr = packedAddressArray; rspAddrInfo.ai_addrs = sctpLocalAddresses; } else { fputs("Address problems\n", stderr); exit(1); } } /* ====== Registration loop ======================================== */ while(!breakDetected()) { rspAddrInfo.ai_pe_id = identifier; /* ====== Do registration ======================================= */ int result = rsp_pe_registration( (unsigned char*)poolHandle, strlen(poolHandle), &rspAddrInfo, &loadInfo, 72000000, dontwait ? REGF_DONTWAIT|REGF_CONTROLCHANNEL : REGF_CONTROLCHANNEL); printTimeStamp(stdout); if(result == 0) { printf("(Re-)Registration successful, ID is $%08x\n", rspAddrInfo.ai_pe_id); } else { printf("(Re-)Registration failed\n"); } usleep(attackInterval); char buffer[65536]; int received; while( (received = ext_recv(sd, (char*)&buffer, sizeof(buffer), 0)) > 0 ) { printTimeStamp(stdout); printf("Discard message of %d bytes.\n", received); } } /* ====== Clean up ============================================== */ if(sctpLocalAddressArray) { free(sctpLocalAddressArray); } if(packedAddressArray) { free(packedAddressArray); } close(sd); } else if(!strcmp(attackType, "handleresolution")) { while(!breakDetected()) { struct rsp_addrinfo* rspAddrInfo; int result = rsp_getaddrinfo((const unsigned char*)poolHandle, strlen(poolHandle), &rspAddrInfo, 1, 0); printTimeStamp(stdout); printf("Selected %d items\n", result); if(result > 0) { if(reportUnreachableProbability > 0.0) { struct rsp_addrinfo* r = rspAddrInfo; while(r != NULL) { if(randomDouble() <= reportUnreachableProbability) { rsp_pe_failure((const unsigned char*)poolHandle, strlen(poolHandle), r->ai_pe_id); printf(" => Endpoint Unreachable for ID $%08x\n", r->ai_pe_id); } r = r->ai_next; } } rsp_freeaddrinfo(rspAddrInfo); } usleep(attackInterval); } } else { fprintf(stderr, "ERROR: Invalid attack type %s!\n", attackType); exit(1); } rsp_cleanup(); rsp_freeinfo(&info); puts("\nTerminated!"); return 0; } rsplib-3.0.1/rsplib/identifierbitmap.c0000664000175000017500000001001211777021056014707 00000000000000/* $Id: identifierbitmap.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "identifierbitmap.h" #include "debug.h" #include /* ###### Constructor #################################################### */ struct IdentifierBitmap* identifierBitmapNew(const size_t entries) { const size_t slots = (entries + (IdentifierBitmapSlotsize - (entries % IdentifierBitmapSlotsize))) / IdentifierBitmapSlotsize; struct IdentifierBitmap* identifierBitmap = (struct IdentifierBitmap*)malloc(sizeof(struct IdentifierBitmap) + (slots + 1) * sizeof(size_t)); if(identifierBitmap) { memset(&identifierBitmap->Bitmap, 0, (slots + 1) * sizeof(size_t)); identifierBitmap->Entries = entries; identifierBitmap->Available = entries; identifierBitmap->Slots = slots; } return(identifierBitmap); } /* ###### Destructor ##################################################### */ void identifierBitmapDelete(struct IdentifierBitmap* identifierBitmap) { identifierBitmap->Entries = 0; free(identifierBitmap); } /* ###### Allocate ID #################################################### */ int identifierBitmapAllocateID(struct IdentifierBitmap* identifierBitmap) { unsigned int i, j; int id = -1; if(identifierBitmap->Available > 0) { i = 0; while(identifierBitmap->Bitmap[i] == ~((size_t)0)) { i++; } id = i * IdentifierBitmapSlotsize; j = 0; while((j < IdentifierBitmapSlotsize) && (id < (int)identifierBitmap->Entries) && (identifierBitmap->Bitmap[i] & (1UL << j))) { j++; id++; } CHECK(id < (int)identifierBitmap->Entries); identifierBitmap->Bitmap[i] |= (1UL << j); identifierBitmap->Available--; } return(id); } /* ###### Allocate specific ID ########################################### */ int identifierBitmapAllocateSpecificID(struct IdentifierBitmap* identifierBitmap, const int id) { unsigned int i, j; CHECK((id >= 0) && (id < (int)identifierBitmap->Entries)); i = id / IdentifierBitmapSlotsize; j = id % IdentifierBitmapSlotsize; if(identifierBitmap->Bitmap[i] & (1UL << j)) { return(-1); } identifierBitmap->Bitmap[i] |= (1UL << j); identifierBitmap->Available--; return(id); } /* ###### Free ID ######################################################## */ void identifierBitmapFreeID(struct IdentifierBitmap* identifierBitmap, const int id) { unsigned int i, j; CHECK((id >= 0) && (id < (int)identifierBitmap->Entries)); i = id / IdentifierBitmapSlotsize; j = id % IdentifierBitmapSlotsize; CHECK(identifierBitmap->Bitmap[i] & (1UL << j)); identifierBitmap->Bitmap[i] &= ~(1UL << j); identifierBitmap->Available++; } rsplib-3.0.1/rsplib/identifierbitmap.h0000664000175000017500000000410511777021056014722 00000000000000/* $Id: identifierbitmap.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef IDENTIFIERBITMAP_H #define IDENTIFIERBITMAP_H #include "tdtypes.h" #ifdef __cplusplus extern "C" { #endif struct IdentifierBitmap { size_t Entries; size_t Available; size_t Slots; unsigned long Bitmap[0]; }; #define IdentifierBitmapSlotsize (sizeof(unsigned long) * 8) struct IdentifierBitmap* identifierBitmapNew(const size_t entries); void identifierBitmapDelete(struct IdentifierBitmap* identifierBitmap); int identifierBitmapAllocateID(struct IdentifierBitmap* identifierBitmap); int identifierBitmapAllocateSpecificID(struct IdentifierBitmap* identifierBitmap, const int id); void identifierBitmapFreeID(struct IdentifierBitmap* identifierBitmap, const int id); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/netutilities.c0000664000175000017500000021432012057060367014122 00000000000000/* $Id: netutilities.c 2725 2012-11-29 19:19:54Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "netutilities.h" #include "stringutilities.h" #include "randomizer.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef SOLARIS #include #ifndef CMSG_SPACE #define CMSG_SPACE(len) (_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)) + _CMSG_DATA_ALIGN(len)) #endif #ifndef CMSG_LEN #define CMSG_LEN(len) (_CMSG_HDR_ALIGN(sizeof(struct cmsghdr)) + (len)) #endif #endif #ifdef HAVE_VALGRIND_MEMCHECK_H #include #endif #define MAX_AUTOSELECT_TRIALS 50000 #define MIN_AUTOSELECT_PORT 32768 #define MAX_AUTOSELECT_PORT 60000 #ifdef HAVE_KERNEL_SCTP #ifndef HAVE_SCTP_CONNECTX #warning No sctp_connectx() available - Using only the first address! int sctp_connectx(int sockfd, const struct sockaddr* addrs, int addrcnt) { const struct sockaddr* bestScopedAddress = getBestScopedAddress(addrs, addrcnt); return(ext_connect(sockfd, bestScopedAddress, getSocklen(bestScopedAddress))); } #endif #ifndef HAVE_SCTP_SEND #warning No sctp_send() available - Using wrapper! ssize_t sctp_send_wrapper(int sd, const void* data, size_t len, const struct sctp_sndrcvinfo* sinfo, int flags) { struct sctp_sndrcvinfo* sri; struct iovec iov = { (char*)data, len }; struct cmsghdr* cmsg; size_t cmsglen = CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); char cbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; struct msghdr msg = { NULL, 0, &iov, 1, cbuf, cmsglen, flags }; cmsg = (struct cmsghdr*)CMSG_FIRSTHDR(&msg); cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); cmsg->cmsg_level = IPPROTO_SCTP; cmsg->cmsg_type = SCTP_SNDRCV; sri = (struct sctp_sndrcvinfo*)CMSG_DATA(cmsg); memcpy(sri, sinfo, sizeof(struct sctp_sndrcvinfo)); return(ext_sendmsg(sd, &msg, msg.msg_flags)); } #endif #ifndef HAVE_SCTP_SENDX #warning No sctp_sendx() available - Using only the first address! ssize_t sctp_sendx(int sd, const void* data, size_t len, const struct sockaddr* addrs, int addrcnt, const struct sctp_sndrcvinfo* sinfo, int flags) { struct sctp_sndrcvinfo* sri; struct iovec iov = { (char*)data, len }; struct cmsghdr* cmsg; size_t cmsglen = CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); char cbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; struct msghdr msg = { NULL, 0, &iov, 1, cbuf, cmsglen, flags }; const struct sockaddr* bestScopedAddress = getBestScopedAddress(addrs, addrcnt); msg.msg_name = (struct sockaddr*)bestScopedAddress; msg.msg_namelen = getSocklen(bestScopedAddress); cmsg = (struct cmsghdr*)CMSG_FIRSTHDR(&msg); cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); cmsg->cmsg_level = IPPROTO_SCTP; cmsg->cmsg_type = SCTP_SNDRCV; sri = (struct sctp_sndrcvinfo*)CMSG_DATA(cmsg); memcpy(sri, sinfo, sizeof(struct sctp_sndrcvinfo)); return(ext_sendmsg(sd, &msg, msg.msg_flags)); } #endif #endif #ifdef USE_SELECT #warning Using poll() to select() wrapper. This is inefficient! #include int ext_poll(struct pollfd* fdlist, long unsigned int count, int time) { // ====== Prepare timeout setting ======================================== struct timeval timeout; struct timeval* to; int fdcount = 0; int n; int result; unsigned int i; if(time < 0) to = NULL; else { to = &timeout; timeout.tv_sec = time / 1000; timeout.tv_usec = (time % 1000) * 1000; } // ====== Prepare FD settings ============================================ fd_set readfdset; fd_set writefdset; fd_set exceptfdset; FD_ZERO(&readfdset); FD_ZERO(&writefdset); FD_ZERO(&exceptfdset); n = 0; for(i = 0; i < count; i++) { if(fdlist[i].fd < 0) { continue; } if(fdlist[i].events & POLLIN) { FD_SET(fdlist[i].fd, &readfdset); } if(fdlist[i].events & POLLOUT) { FD_SET(fdlist[i].fd, &writefdset); } FD_SET(fdlist[i].fd, &exceptfdset); n = max(n, fdlist[i].fd); fdcount++; } for(i = 0;i < count;i++) { fdlist[i].revents = 0; } // ====== Do ext_select() ================================================ result = ext_select(n + 1, &readfdset, &writefdset ,&exceptfdset, to); if(result < 0) { return(result); } // ====== Set result flags =============================================== for(i = 0;i < count;i++) { if(FD_ISSET(fdlist[i].fd,&readfdset) && (fdlist[i].events & POLLIN)) { fdlist[i].revents |= POLLIN; } if(FD_ISSET(fdlist[i].fd,&writefdset) && (fdlist[i].events & POLLOUT)) { fdlist[i].revents |= POLLOUT; } if(FD_ISSET(fdlist[i].fd,&exceptfdset)) { fdlist[i].revents |= POLLERR; } } return(result); } #endif #ifdef LINUX #define LINUX_PROC_IPV6_FILE "/proc/net/if_inet6" #ifdef HAVE_KERNEL_SCTP #include #include #include #include #include enum AddressScopingFlags { ASF_HideLoopback = (1 << 0), ASF_HideLinkLocal = (1 << 1), ASF_HideSiteLocal = (1 << 2), ASF_HideLocal = ASF_HideLoopback|ASF_HideLinkLocal|ASF_HideSiteLocal, ASF_HideAnycast = (1 << 3), ASF_HideMulticast = (1 << 4), ASF_HideBroadcast = (1 << 5), ASF_HideReserved = (1 << 6), ASF_Default = ASF_HideBroadcast|ASF_HideMulticast|ASF_HideAnycast|ASF_HideReserved, ASF_HideAllExceptLoopback = (1 << 7), ASF_HideAllExceptLinkLocal = (1 << 8), ASF_HideAllExceptSiteLocal = (1 << 9) }; /* ###### Filter address ################################################# */ static bool filterAddress(union sockaddr_union* address, unsigned int flags) { switch (address->sa.sa_family) { case AF_INET : if((IN_MULTICAST(ntohl(address->in.sin_addr.s_addr)) && (flags & ASF_HideMulticast)) || (IN_EXPERIMENTAL(ntohl(address->in.sin_addr.s_addr)) && (flags & ASF_HideReserved)) || (IN_BADCLASS(ntohl(address->in.sin_addr.s_addr)) && (flags & ASF_HideReserved)) || ((INADDR_BROADCAST == ntohl(address->in.sin_addr.s_addr)) && (flags & ASF_HideBroadcast)) || ((INADDR_LOOPBACK == ntohl(address->in.sin_addr.s_addr)) && (flags & ASF_HideLoopback)) || ((INADDR_LOOPBACK != ntohl(address->in.sin_addr.s_addr)) && (flags & ASF_HideAllExceptLoopback))) { return(false); } break; case AF_INET6 : if((!IN6_IS_ADDR_LOOPBACK(&(address->in6.sin6_addr)) && (flags & ASF_HideAllExceptLoopback)) || (IN6_IS_ADDR_LOOPBACK(&(address->in6.sin6_addr)) && (flags & ASF_HideLoopback)) || (!IN6_IS_ADDR_LINKLOCAL(&(address->in6.sin6_addr)) && (flags & ASF_HideAllExceptLinkLocal)) || (!IN6_IS_ADDR_SITELOCAL(&(address->in6.sin6_addr)) && (flags & ASF_HideAllExceptSiteLocal)) || (IN6_IS_ADDR_LINKLOCAL(&(address->in6.sin6_addr)) && (flags & ASF_HideLinkLocal)) || (IN6_IS_ADDR_SITELOCAL(&(address->in6.sin6_addr)) && (flags & ASF_HideSiteLocal)) || (IN6_IS_ADDR_MULTICAST(&(address->in6.sin6_addr)) && (flags & ASF_HideMulticast)) || (IN6_IS_ADDR_UNSPECIFIED(&(address->in6.sin6_addr)))) { return(false); } break; default: return(false); break; } return(true); } /* ###### Gather local addresses ######################################### */ static bool obtainLocalAddresses(union sockaddr_union** addressArray, size_t* addresses, const unsigned int flags) { union sockaddr_union* localAddresses = NULL; struct sockaddr* toUse; struct ifreq local; struct ifreq* ifrequest; struct ifreq* nextif; struct ifconf cf; char buffer[8192]; int addedNets; char addrBuffer[256]; char addrBuffer2[64]; FILE* v6list; size_t pos = 0; size_t copySize = 0; size_t numAllocAddrs = 0; size_t numIfAddrs = 0; size_t i; size_t j; size_t dup; int fd; *addresses = 0; fd = socket(AF_INET,SOCK_DGRAM,0); if(fd < 0) { return(false); } /* Now gather the master address information */ cf.ifc_buf = buffer; cf.ifc_len = sizeof(buffer); if(ioctl(fd, SIOCGIFCONF, (char *)&cf) == -1) { return(false); } numAllocAddrs = cf.ifc_len / sizeof(struct ifreq); ifrequest = cf.ifc_req; numIfAddrs = numAllocAddrs; addedNets = 0; v6list = fopen(LINUX_PROC_IPV6_FILE,"r"); if (v6list != NULL) { while(fgets(addrBuffer,sizeof(addrBuffer),v6list) != NULL) { addedNets++; } fclose(v6list); } numAllocAddrs += addedNets; /* now allocate the appropriate memory */ localAddresses = (union sockaddr_union*)calloc(numAllocAddrs,sizeof(union sockaddr_union)); if(localAddresses == NULL) { close(fd); return(false); } pos = 0; /* Now we go through and pull each one */ v6list = fopen(LINUX_PROC_IPV6_FILE,"r"); if(v6list != NULL) { struct sockaddr_in6 sin6; memset((char *)&sin6,0,sizeof(sin6)); sin6.sin6_family = AF_INET6; while(fgets(addrBuffer,sizeof(addrBuffer),v6list) != NULL) { memset(addrBuffer2,0,sizeof(addrBuffer2)); strncpy(addrBuffer2,addrBuffer,4); addrBuffer2[4] = ':'; strncpy(&addrBuffer2[5],&addrBuffer[4],4); addrBuffer2[9] = ':'; strncpy(&addrBuffer2[10],&addrBuffer[8],4); addrBuffer2[14] = ':'; strncpy(&addrBuffer2[15],&addrBuffer[12],4); addrBuffer2[19] = ':'; strncpy(&addrBuffer2[20],&addrBuffer[16],4); addrBuffer2[24] = ':'; strncpy(&addrBuffer2[25],&addrBuffer[20],4); addrBuffer2[29] = ':'; strncpy(&addrBuffer2[30],&addrBuffer[24],4); addrBuffer2[34] = ':'; strncpy(&addrBuffer2[35],&addrBuffer[28],4); if(inet_pton(AF_INET6,addrBuffer2,(void *)&sin6.sin6_addr)) { if(filterAddress((union sockaddr_union*)&sin6,flags) == true) { memcpy(&((localAddresses)[*addresses]),&sin6,sizeof(sin6)); (*addresses)++; } } } fclose(v6list); } /* set to the start, i.e. buffer[0] */ ifrequest = (struct ifreq *)&buffer[pos]; for(i = 0;i < numIfAddrs;i++,ifrequest = nextif) { nextif = ifrequest + 1; toUse = &ifrequest->ifr_addr; memset(&local, 0, sizeof(local)); memcpy(local.ifr_name, ifrequest->ifr_name, IFNAMSIZ); if(filterAddress((union sockaddr_union*)toUse, flags) == false) { continue; } if(ioctl(fd,SIOCGIFFLAGS,(char*)&local) < 0) { continue; } if(!(local.ifr_flags & IFF_UP)) { /* Device is down. */ continue; } if(toUse->sa_family == AF_INET) { copySize = sizeof(struct sockaddr_in); } else if (toUse->sa_family == AF_INET6) { copySize = sizeof(struct sockaddr_in6); } else { continue; } /* Check for duplicates */ if(*addresses) { dup = 0; /* scan for the dup */ for(j = 0; j < *addresses; j++) { /* family's must match */ if(((struct sockaddr*)&(localAddresses[j]))->sa_family != toUse->sa_family) { continue; } if(((struct sockaddr*)&(localAddresses[j]))->sa_family == AF_INET) { if(((struct sockaddr_in *)(toUse))->sin_addr.s_addr == ((struct sockaddr_in*)&(localAddresses[j]))->sin_addr.s_addr) { /* set the flag and break, it is a dup */ dup = 1; break; } } else { if(IN6_ARE_ADDR_EQUAL(&(((struct sockaddr_in6*)(toUse))->sin6_addr), &(((struct sockaddr_in6*)&(localAddresses[j]))->sin6_addr))) { /* set the flag and break, it is a dup */ dup = 1; break; } } } if(dup) { /* skip the duplicate name/address we already have it*/ continue; } } /* copy address and family */ memcpy(&localAddresses[*addresses],(char *)toUse,copySize); ((struct sockaddr*)&(localAddresses[*addresses]))->sa_family = toUse->sa_family; (*addresses)++; } *addressArray = localAddresses; close(fd); return(true); } #endif #endif /* ###### Unpack sockaddr blocks to sockaddr_union array ################## */ union sockaddr_union* unpack_sockaddr(const struct sockaddr* addrArray, const size_t addrs) { union sockaddr_union* newArray; size_t i; newArray = (union sockaddr_union*)malloc(sizeof(union sockaddr_union) * addrs); if(newArray) { for(i = 0;i < addrs;i++) { switch(addrArray->sa_family) { case AF_INET: memcpy((void*)&newArray[i], addrArray, sizeof(struct sockaddr_in)); addrArray = (struct sockaddr*)((long)addrArray + (long)sizeof(struct sockaddr_in)); break; case AF_INET6: memcpy((void*)&newArray[i], addrArray, sizeof(struct sockaddr_in6)); addrArray = (struct sockaddr*)((long)addrArray + (long)sizeof(struct sockaddr_in6)); break; default: LOG_ERROR fprintf(stderr, "ERROR: unpack_sockaddr() - Unknown address type #%d\n", addrArray->sa_family); LOG_END_FATAL break; } } } return(newArray); } /* ###### Pack sockaddr_union array to sockaddr blocks #################### */ struct sockaddr* pack_sockaddr_union(const union sockaddr_union* addrArray, const size_t addrs) { size_t required = 0; size_t i; struct sockaddr* a, *newArray; for(i = 0;i < addrs;i++) { switch(((struct sockaddr*)&addrArray[i])->sa_family) { case AF_INET: required += sizeof(struct sockaddr_in); break; case AF_INET6: required += sizeof(struct sockaddr_in6); break; default: LOG_ERROR fprintf(stderr, "ERROR: pack_sockaddr_union() - Unknown address type #%d\n", ((struct sockaddr*)&addrArray[i])->sa_family); LOG_END_FATAL break; } } newArray = NULL; if(required > 0) { newArray = (struct sockaddr*)malloc(required); if(newArray == NULL) { return(NULL); } a = newArray; for(i = 0;i < addrs;i++) { switch(((struct sockaddr*)&addrArray[i])->sa_family) { case AF_INET: memcpy((void*)a, (void*)&addrArray[i], sizeof(struct sockaddr_in)); a = (struct sockaddr*)((long)a + (long)sizeof(struct sockaddr_in)); break; case AF_INET6: memcpy((void*)a, (void*)&addrArray[i], sizeof(struct sockaddr_in6)); a = (struct sockaddr*)((long)a + (long)sizeof(struct sockaddr_in6)); break; } } } return(newArray); } /* ###### Get local addresses from socket ################################ */ size_t getAddressesFromSocket(int sockfd, union sockaddr_union** addressArray) { union sockaddr_union address; socklen_t addressLength; ssize_t addresses; ssize_t result; ssize_t i; LOG_VERBOSE4 fputs("Getting transport addresses from socket...\n",stdlog); LOG_END addresses = getladdrsplus(sockfd, 0, addressArray); if(addresses < 1) { LOG_VERBOSE4 logerror("getladdrsplus() failed, trying getsockname()"); LOG_END addresses = 0; *addressArray = NULL; addressLength = sizeof(address); result = ext_getsockname(sockfd,(struct sockaddr*)&address, &addressLength); if(result == 0) { LOG_VERBOSE4 fputs("Successfully obtained address by getsockname()\n",stdlog); LOG_END *addressArray = duplicateAddressArray((const union sockaddr_union*)&address, 1); if(*addressArray != NULL) { addresses = 1; } } else { LOG_VERBOSE4 logerror("getsockname() failed"); LOG_END } } else { LOG_VERBOSE4 fprintf(stdlog, "Obtained %d address(es)\n",(int)addresses); LOG_END } LOG_VERBOSE4 fprintf(stdlog, "Obtained addresses: %u\n", (unsigned int)addresses); for(i = 0;i < addresses;i++) { fputaddress(&(*addressArray)[i].sa, true, stdlog); fputs("\n", stdlog); } LOG_END return((size_t)addresses); } /* ###### Gather local addresses ######################################### */ size_t gatherLocalAddresses(union sockaddr_union** addressArray) { union sockaddr_union anyAddress; size_t addresses = 0; int sd; string2address(checkIPv6() ? "[::]" : "0.0.0.0", &anyAddress); sd = ext_socket(checkIPv6() ? AF_INET6 : AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); if(sd >= 0) { if(ext_bind(sd, (struct sockaddr*)&anyAddress, getSocklen(&anyAddress.sa)) == 0) { addresses = getAddressesFromSocket(sd, addressArray); } ext_close(sd); } return(addresses); } /* ###### Delete address array ########################################### */ void deleteAddressArray(union sockaddr_union* addressArray) { if(addressArray != NULL) { free(addressArray); } } /* ###### Filter address array by scope ################################## */ size_t filterAddressesByScope(union sockaddr_union* addressArray, const size_t inputAddresses, const unsigned int minScope) { size_t outputAddresses = 0; size_t i; for(i = 0;i < inputAddresses;i++) { if(getScope(&addressArray[i].sa) >= minScope) { if(outputAddresses != i) { memcpy((void*)&addressArray[outputAddresses], (void*)&addressArray[i], sizeof(union sockaddr_union)); } outputAddresses++; } } return(outputAddresses); } /* ###### Duplicate address array ######################################## */ union sockaddr_union* duplicateAddressArray(const union sockaddr_union* addressArray, const size_t addresses) { const size_t size = sizeof(union sockaddr_union) * addresses; union sockaddr_union* copy = (union sockaddr_union*)malloc(size); if(copy != NULL) { memcpy(copy,addressArray,size); } return(copy); } /* ###### Convert address to string ###################################### */ bool address2string(const struct sockaddr* address, char* buffer, const size_t length, const bool port) { const struct sockaddr_in* ipv4address; const struct sockaddr_in6* ipv6address; char str[128]; char scope[IFNAMSIZ + 16]; char ifnamebuffer[IFNAMSIZ]; const char* ifname; switch(address->sa_family) { case AF_INET: ipv4address = (const struct sockaddr_in*)address; if(port) { snprintf(buffer, length, "%s:%d", inet_ntoa(ipv4address->sin_addr), ntohs(ipv4address->sin_port)); } else { snprintf(buffer, length, "%s", inet_ntoa(ipv4address->sin_addr)); } return(true); break; case AF_INET6: ipv6address = (const struct sockaddr_in6*)address; if( IN6_IS_ADDR_LINKLOCAL(&ipv6address->sin6_addr) || IN6_IS_ADDR_MC_LINKLOCAL(&ipv6address->sin6_addr) ) { ifname = if_indextoname(ipv6address->sin6_scope_id, (char*)&ifnamebuffer); if(ifname == NULL) { safestrcpy((char*)&ifnamebuffer, "(BAD!)", sizeof(ifnamebuffer)); ifname = (const char*)&ifnamebuffer; LOG_ERROR fputs("Missing scope ID for IPv6 link-local address!\n", stdlog); LOG_END } snprintf((char*)&scope, sizeof(scope), "%%%s", ifname); } else { scope[0] = 0x00; } if(inet_ntop(AF_INET6, &ipv6address->sin6_addr, str, sizeof(str)) != NULL) { if(port) { snprintf(buffer, length, "[%s%s]:%d", str, scope, ntohs(ipv6address->sin6_port)); } else { snprintf(buffer, length, "%s%s", str, scope); } return(true); } break; case AF_UNSPEC: safestrcpy(buffer, "(unspecified)",length); return(true); break; } LOG_ERROR fprintf(stdlog, "Unsupported address family #%d\n", ((struct sockaddr*)address)->sa_family); LOG_END_FATAL return(false); } /* ###### Convert string to address ###################################### */ bool string2address(const char* string, union sockaddr_union* address) { char host[128]; char port[128]; struct sockaddr_in* ipv4address = (struct sockaddr_in*)address; struct sockaddr_in6* ipv6address = (struct sockaddr_in6*)address; int portNumber = 0; char* p1; struct addrinfo hints; struct addrinfo* res; bool isNumeric; bool isIPv6; size_t hostLength; size_t i; if(strlen(string) > sizeof(host)) { LOG_ERROR fputs("String too long!\n",stdlog); LOG_END return(false); } strcpy((char*)&host,string); strcpy((char*)&port, "0"); /* ====== Handle RFC2732-compliant addresses ========================== */ if(string[0] == '[') { p1 = strindex(host,']'); if(p1 != NULL) { if((p1[1] == ':') || (p1[1] == '!')) { strcpy((char*)&port, &p1[2]); } memmove((char*)&host, (char*)&host[1], (long)p1 - (long)host - 1); host[(long)p1 - (long)host - 1] = 0x00; } } /* ====== Handle standard address:port ================================ */ else { p1 = strrindex(host,':'); if(p1 == NULL) { p1 = strrindex(host,'!'); } if(p1 != NULL) { p1[0] = 0x00; strcpy((char*)&port, &p1[1]); } } /* ====== Check port number =========================================== */ portNumber=~0; if((sscanf(port, "%d", &portNumber) != 1) || (portNumber < 0) || (portNumber > 65535)) { return(false); } /* ====== Create address structure ==================================== */ /* ====== Get information for host ==================================== */ res = NULL; isNumeric = true; isIPv6 = false; hostLength = strlen(host); memset((char*)&hints,0,sizeof(hints)); hints.ai_socktype = SOCK_DGRAM; hints.ai_family = AF_UNSPEC; for(i = 0;i < hostLength;i++) { if(host[i] == ':') { isIPv6 = true; break; } } if(!isIPv6) { for(i = 0;i < hostLength;i++) { if(!(isdigit(host[i]) || (host[i] == '.'))) { isNumeric = false; break; } } } if(isNumeric) { hints.ai_flags = AI_NUMERICHOST; } if(getaddrinfo(host, NULL, &hints, &res) != 0) { return(false); } memset((char*)address,0,sizeof(union sockaddr_union)); memcpy((char*)address,res->ai_addr,res->ai_addrlen); switch(ipv4address->sin_family) { case AF_INET: ipv4address->sin_port = htons(portNumber); #ifdef HAVE_SIN_LEN ipv4address->sin_len = sizeof(struct sockaddr_in); #endif break; case AF_INET6: ipv6address->sin6_port = htons(portNumber); #ifdef HAVE_SIN6_LEN ipv6address->sin6_len = sizeof(struct sockaddr_in6); #endif break; default: LOG_ERROR fprintf(stdlog, "Unsupported address family #%d\n", ((struct sockaddr*)address)->sa_family); LOG_END_FATAL break; } freeaddrinfo(res); return(true); } /* ###### Print address ################################################## */ void fputaddress(const struct sockaddr* address, const bool port, FILE* fd) { char str[128]; address2string(address, (char*)&str, sizeof(str), port); fputs(str, fd); } /* ###### Get IPv4 address scope ######################################### */ static unsigned int getScopeIPv4(const uint32_t* address) { uint32_t a; uint8_t b1; uint8_t b2; /* Unspecified */ if(*address == 0x00000000) { return(0); } /* Loopback */ a = ntohl(*address); if((a & 0x7f000000) == 0x7f000000) { return(2); } /* Class A private */ b1 = (uint8_t)(a >> 24); if(b1 == 10) { return(AS_UNICAST_SITELOCAL); } /* Class B private */ b2 = (uint8_t)((a >> 16) & 0x00ff); if((b1 == 172) && (b2 >= 16) && (b2 <= 31)) { return(AS_UNICAST_SITELOCAL); } /* 169.254.0.0/16 link-local [RFC 3927] */ if((b1 == 169) && (b2 == 254)) { return(AS_UNICAST_LINKLOCAL); } /* Class C private */ if((b1 == 192) && (b2 == 168)) { return(AS_UNICAST_SITELOCAL); } if(IN_MULTICAST(ntohl(*address))) { return(AS_MULTICAST_GLOBAL); } return(AS_UNICAST_GLOBAL); } /* ###### Get IPv6 address scope ######################################### */ static unsigned int getScopeIPv6(const struct in6_addr* address) { if(IN6_IS_ADDR_V4MAPPED(address)) { #if defined SOLARIS return(getScopeIPv4(&address->_S6_un._S6_u32[3])); #elif defined LINUX return(getScopeIPv4(&address->s6_addr32[3])); #else return(getScopeIPv4(&address->__u6_addr.__u6_addr32[3])); #endif } if(IN6_IS_ADDR_UNSPECIFIED(address)) { return(AS_UNSPECIFIED); } else if(IN6_IS_ADDR_MC_NODELOCAL(address)) { return(AS_MULTICAST_NODELOCAL); } else if(IN6_IS_ADDR_LOOPBACK(address)) { return(AS_LOOPBACK); } else if(IN6_IS_ADDR_MC_LINKLOCAL(address)) { return(AS_MULTICAST_LINKLOCAL); } else if(IN6_IS_ADDR_LINKLOCAL(address)) { return(AS_UNICAST_LINKLOCAL); } else if(IN6_IS_ADDR_MC_SITELOCAL(address)) { return(AS_MULTICAST_SITELOCAL); } else if(IN6_IS_ADDR_SITELOCAL(address)) { return(AS_UNICAST_SITELOCAL); } else if(IN6_IS_ADDR_MC_ORGLOCAL(address)) { return(AS_MULTICAST_ORGLOCAL); } else if(IN6_IS_ADDR_MC_GLOBAL(address)) { return(AS_MULTICAST_GLOBAL); } return(AS_UNICAST_GLOBAL); } /* ###### Get address scope ############################################## */ unsigned int getScope(const struct sockaddr* address) { if(address->sa_family == AF_INET) { return(getScopeIPv4((uint32_t*)&((struct sockaddr_in*)address)->sin_addr)); } else if(address->sa_family == AF_INET6) { return(getScopeIPv6(&((struct sockaddr_in6*)address)->sin6_addr)); } else { LOG_ERROR fprintf(stdlog, "Unsupported address family #%d\n", address->sa_family); LOG_END_FATAL } return(0); } /* ###### Get one address of highest scope from address array ############ */ const struct sockaddr* getBestScopedAddress(const struct sockaddr* addrs, int addrcnt) { const struct sockaddr* bestScopedAddress = addrs; unsigned int bestScope = getScope(addrs); unsigned int newScope; const struct sockaddr* a; int i; LOG_VERBOSE4 fputs("Finding best scope out of address set:\n", stdlog); a = addrs; for(i = 0;i < addrcnt;i++) { fputs(" - ", stdlog); fputaddress(a, true, stdlog); fprintf(stdlog, ", scope=%u\n", getScope(a)); a = (const struct sockaddr*)((long)a + (long)getSocklen(a)); } LOG_END a = addrs; for(i = 1;i < addrcnt;i++) { a = (const struct sockaddr*)((long)a + (long)getSocklen(a)); newScope = getScope(a); if(newScope > bestScope) { bestScopedAddress = a; bestScope = newScope; } } LOG_VERBOSE4 fputs("Using address ", stdlog); fputaddress(bestScopedAddress, true, stdlog); fprintf(stdlog, ", scope=%u\n", bestScope); LOG_END return(bestScopedAddress); } /* ###### Compare addresses ############################################## */ int addresscmp(const struct sockaddr* a1, const struct sockaddr* a2, const bool port) { uint16_t p1, p2; unsigned int s1, s2; uint32_t x1[4]; uint32_t x2[4]; int result; LOG_VERBOSE5 fputs("Comparing ",stdlog); fputaddress(a1,port,stdlog); fputs(" and ",stdlog); fputaddress(a2,port,stdlog); fputs("\n",stdlog); LOG_END if( ((a1->sa_family == AF_INET) || (a1->sa_family == AF_INET6)) && ((a2->sa_family == AF_INET) || (a2->sa_family == AF_INET6)) ) { s1 = 1000000 - getScope((struct sockaddr*)a1); s2 = 1000000 - getScope((struct sockaddr*)a2); if(s1 < s2) { LOG_VERBOSE5 fprintf(stdlog, "Result: less-than, s1=%d s2=%d\n",s1,s2); LOG_END return(-1); } else if(s1 > s2) { LOG_VERBOSE5 fprintf(stdlog, "Result: greater-than, s1=%d s2=%d\n",s1,s2); LOG_END return(1); } if(a1->sa_family == AF_INET6) { memcpy((void*)&x1, (void*)&((struct sockaddr_in6*)a1)->sin6_addr, 16); } else { x1[0] = 0; x1[1] = 0; x1[2] = htonl(0xffff); x1[3] = *((uint32_t*)&((struct sockaddr_in*)a1)->sin_addr); } if(a2->sa_family == AF_INET6) { memcpy((void*)&x2, (void*)&((struct sockaddr_in6*)a2)->sin6_addr, 16); } else { x2[0] = 0; x2[1] = 0; x2[2] = htonl(0xffff); x2[3] = *((uint32_t*)&((struct sockaddr_in*)a2)->sin_addr); } result = memcmp((void*)&x1,(void*)&x2,16); if(result != 0) { LOG_VERBOSE5 if(result < 0) { fputs("Result: less-than\n",stdlog); } else { fputs("Result: greater-than\n",stdlog); } LOG_END return(result); } if(port) { p1 = getPort((struct sockaddr*)a1); p2 = getPort((struct sockaddr*)a2); if(p1 < p2) { LOG_VERBOSE5 fputs("Result: less-than\n",stdlog); LOG_END return(-1); } else if(p1 > p2) { LOG_VERBOSE5 fputs("Result: greater-than\n",stdlog); LOG_END return(1); } } LOG_VERBOSE5 fputs("Result: equal\n",stdlog); LOG_END return(0); } LOG_ERROR fprintf(stdlog, "Unsupported address family comparision #%d / #%d\n",a1->sa_family,a2->sa_family); LOG_END_FATAL return(0); } /* ###### Get port ####################################################### */ uint16_t getPort(const struct sockaddr* address) { if(address != NULL) { switch(address->sa_family) { case AF_INET: return(ntohs(((struct sockaddr_in*)address)->sin_port)); break; case AF_INET6: return(ntohs(((struct sockaddr_in6*)address)->sin6_port)); break; default: LOG_ERROR fprintf(stdlog, "Unsupported address family #%d\n", address->sa_family); LOG_END_FATAL break; } } return(0); } /* ###### Set port ####################################################### */ bool setPort(struct sockaddr* address, uint16_t port) { if(address != NULL) { switch(address->sa_family) { case AF_INET: ((struct sockaddr_in*)address)->sin_port = htons(port); return(true); break; case AF_INET6: ((struct sockaddr_in6*)address)->sin6_port = htons(port); return(true); break; default: LOG_ERROR fprintf(stdlog, "Unsupported address family #%d\n", address->sa_family); LOG_END_FATAL break; } } return(false); } /* ###### Get address family ############################################# */ int getFamily(const struct sockaddr* address) { if(address != NULL) { return(address->sa_family); } return(AF_UNSPEC); } /* ###### Set non-blocking mode ########################################## */ bool setBlocking(int fd) { int flags = ext_fcntl(fd,F_GETFL,0); if(flags != -1) { flags &= ~O_NONBLOCK; if(ext_fcntl(fd,F_SETFL, flags) == 0) { return(true); } } return(false); } /* ###### Set blocking mode ############################################## */ bool setNonBlocking(int fd) { int flags = ext_fcntl(fd,F_GETFL,0); if(flags != -1) { flags |= O_NONBLOCK; if(ext_fcntl(fd,F_SETFL, flags) == 0) { return(true); } } return(false); } /* ###### Get padding #################################################### */ size_t getPadding(const size_t size, const size_t alignment) { size_t padding = alignment - (size % alignment); if(padding == alignment) { padding = 0; } return(padding); } /* ###### Check for support of IPv6 ###################################### */ bool checkIPv6() { int sd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); if(sd >= 0) { close(sd); return(true); } return(false); } /* ###### bind()/bindx() wrapper ######################################### */ bool bindplus(int sockfd, union sockaddr_union* addressArray, const size_t addresses) { struct sockaddr* packedAddresses; union sockaddr_union anyAddress; bool autoSelect; unsigned short port; unsigned int i; unsigned int j; int result; if(checkIPv6()) { string2address("[::]:0", &anyAddress); } else { string2address("0.0.0.0:0", &anyAddress); } if((addresses > 0) && (getPort((struct sockaddr*)&addressArray[0]) == 0)) { autoSelect = true; } else { autoSelect = false; } LOG_VERBOSE4 fprintf(stdlog, "Binding socket %d to addresses {", sockfd); for(i = 0;i < addresses;i++) { fputaddress((struct sockaddr*)&addressArray[i], false, stdlog); if(i + 1 < addresses) { fputs(" ", stdlog); } } fprintf(stdlog, "}, port %u ...\n", getPort((struct sockaddr*)&addressArray[0])); LOG_END for(i = 0;i < MAX_AUTOSELECT_TRIALS;i++) { if(addresses == 0) { port = MIN_AUTOSELECT_PORT + (random16() % (MAX_AUTOSELECT_PORT - MIN_AUTOSELECT_PORT)); setPort((struct sockaddr*)&anyAddress,port); LOG_VERBOSE4 fprintf(stdlog, "Trying port %d for \"any\" address...\n",port); LOG_END result = ext_bind(sockfd,(struct sockaddr*)&anyAddress, getSocklen((struct sockaddr*)&anyAddress)); if(result == 0) { LOG_VERBOSE4 fputs("Successfully bound\n",stdlog); LOG_END return(true); } else if(errno == EPROTONOSUPPORT) { LOG_VERBOSE4 logerror("bind() failed"); LOG_END return(false); } } else { if(autoSelect) { port = MIN_AUTOSELECT_PORT + (random16() % (MAX_AUTOSELECT_PORT - MIN_AUTOSELECT_PORT)); for(j = 0;j < addresses;j++) { setPort((struct sockaddr*)&addressArray[j],port); } LOG_VERBOSE5 fprintf(stdlog, "Trying port %d...\n",port); LOG_END } if(addresses == 1) { result = ext_bind(sockfd, (struct sockaddr*)&addressArray[0], getSocklen((struct sockaddr*)&addressArray[0])); } else { packedAddresses = pack_sockaddr_union(addressArray, addresses); if(packedAddresses) { result = sctp_bindx(sockfd, packedAddresses, addresses, SCTP_BINDX_ADD_ADDR); free(packedAddresses); } else { result = -1; errno = ENOMEM; } } if(result == 0) { LOG_VERBOSE4 fputs("Successfully bound\n",stdlog); LOG_END return(true); } else if(errno == EPROTONOSUPPORT) { LOG_VERBOSE4 logerror("bind() failed"); LOG_END return(false); } if(!autoSelect) { return(false); } } } return(false); } /* ###### sendmsg() wrapper ############################################## */ #define MAX_TRANSPORTADDRESSES 32 int sendtoplus(int sockfd, const void* buffer, const size_t length, const int flags, union sockaddr_union* toaddrs, const size_t toaddrcnt, const uint32_t ppid, const sctp_assoc_t assocID, const uint16_t streamID, const uint32_t timeToLive, const uint16_t sctpFlags, const unsigned long long timeout) { union sockaddr_union addressArray[MAX_TRANSPORTADDRESSES]; size_t addresses = 0; struct sctp_sndrcvinfo sri; struct pollfd pfd; size_t i; int result; char* p; unsigned long long startTime; unsigned long long now; unsigned long long remainingTimeout; LOG_VERBOSE4 fprintf(stdlog, "sendmsg(%d/A%u, %u bytes) PPID=$%08x streamID=%u flags=$%x sctpFlags=$%x toaddrs=%p toaddrcnt=%u...\n", sockfd, (unsigned int)assocID, (unsigned int)length, ppid, streamID, flags, sctpFlags, toaddrs, (unsigned int)toaddrcnt); LOG_END setNonBlocking(sockfd); if((assocID != 0) || (ppid != 0) || (streamID != 0) || (timeToLive != 0) || (sctpFlags != 0)) { memset(&sri, 0, sizeof(sri)); sri.sinfo_assoc_id = assocID; sri.sinfo_stream = streamID; sri.sinfo_ppid = htonl(ppid); sri.sinfo_flags = sctpFlags; /* --- Already resetted to 0 --- sri.sinfo_ssn = 0; sri.sinfo_tsn = 0; sri.sinfo_context = 0; */ sri.sinfo_timetolive = timeToLive; if(toaddrs) { p = (char*)&addressArray[0]; addresses = min(toaddrcnt, MAX_TRANSPORTADDRESSES); for(i = 0;i < addresses;i++) { LOG_VERBOSE5 fprintf(stdlog, "Address #%u is ", (unsigned int)i + 1); fputaddress(&toaddrs[i].sa, true, stdlog); fputs("\n", stdlog); LOG_END switch(toaddrs[i].sa.sa_family) { case AF_INET: memcpy(p, &toaddrs[i].in, sizeof(struct sockaddr_in)); p = (char*)((long)p + sizeof(struct sockaddr_in)); break; case AF_INET6: memcpy(p, &toaddrs[i].in6, sizeof(struct sockaddr_in6)); p = (char*)((long)p + sizeof(struct sockaddr_in6)); break; default: LOG_ERROR fputs("Bad address family\n", stdlog); LOG_END_FATAL break; } } LOG_VERBOSE5 fputs("Calling sctp_sendx() with addresses...\n", stdlog); LOG_END result = sctp_sendx(sockfd, buffer, length, (struct sockaddr*)&addressArray, addresses, &sri, flags); } else { LOG_VERBOSE5 fputs("Calling sctp_send() with AssocID...\n", stdlog); LOG_END result = sctp_send(sockfd, buffer, length, &sri, flags); } } else { LOG_VERBOSE5 fputs("Calling sendto()...\n", stdlog); LOG_END result = ext_sendto(sockfd, buffer, length, flags, (struct sockaddr*)toaddrs, (toaddrs != NULL) ? getSocklen((struct sockaddr*)toaddrs) : 0); } #ifdef LINUX #warning Using lksctp SCTP_EOF/SCTP_ABORT shutdown work-around for TCP-like sockets! /* LK-SCTP refuses SCTP_EOF and SCTP_ABORT on TCP-like socket. => using ext_shutdown() instead! */ if( (result < 0) && (assocID == 0) && /* TCP-like socket */ ((sctpFlags & SCTP_EOF) || (sctpFlags & SCTP_ABORT)) ) { ext_shutdown(sockfd, 2); } #endif if((timeout > 0) && ((result < 0) && (errno == EWOULDBLOCK))) { remainingTimeout = timeout; startTime = getMicroTime(); for(;;) { LOG_VERBOSE4 fprintf(stdlog, "sendmsg(%d/A%u) would block, waiting with timeout %lld [us]...\n", sockfd, (unsigned int)assocID, remainingTimeout); LOG_END pfd.fd = sockfd; pfd.events = POLLOUT; pfd.revents = 0; result = ext_poll((struct pollfd*)&pfd, 1, (int)ceil((double)remainingTimeout / 1000.0)); if( (result > 0) && (pfd.revents & POLLOUT) ) { LOG_VERBOSE4 fprintf(stdlog, "retrying sendmsg(%d/A%u, %u bytes)...\n", sockfd, (unsigned int)assocID, (unsigned int)length); LOG_END if((assocID != 0) || (ppid != 0) || (streamID != 0)) { if(toaddrs) { LOG_VERBOSE5 fputs("Calling sctp_sendx() with addresses...\n", stdlog); LOG_END result = sctp_sendx(sockfd, buffer, length, (struct sockaddr*)&addressArray, addresses, &sri, flags); } else { LOG_VERBOSE5 fputs("Calling sctp_send() with AssocID...\n", stdlog); LOG_END result = sctp_send(sockfd, buffer, length, &sri, flags); } } else { LOG_VERBOSE5 fputs("Calling sctp_sendto()...\n", stdlog); LOG_END result = ext_sendto(sockfd, buffer, length, flags, (struct sockaddr*)toaddrs, (toaddrs != NULL) ? getSocklen((struct sockaddr*)toaddrs) : 0); } } if( (result >= 0) || (errno != EWOULDBLOCK) ) { break; } /* For some reason, lksctp reports POLLOUT, but then returns EWOULDBLOCK again upon transmission - even for small message sizes. Is there a better way of waiting until SCTP is ready? sched_yield() at least ensures some scheduling fairness ... */ now = getMicroTime(); if(now - startTime >= timeout) { break; } remainingTimeout = timeout - (now - startTime); sched_yield(); } } LOG_VERBOSE4 fprintf(stdlog, "sendmsg(%d/A%u) result=%d; %s\n", sockfd, (unsigned int)assocID, result, strerror(errno)); LOG_END return(result); } /* ###### recvmsg() wrapper ############################################## */ int recvfromplus(int sockfd, void* buffer, size_t length, int* flags, struct sockaddr* from, socklen_t* fromlen, uint32_t* ppid, sctp_assoc_t* assocID, uint16_t* streamID, const unsigned long long timeout) { struct sctp_sndrcvinfo* sri; struct iovec iov = { (char*)buffer, length }; struct cmsghdr* cmsg; size_t cmsglen = CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); char cbuf[CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))]; struct pollfd pfd; int result; int cc; struct msghdr msg = { #ifdef __APPLE__ (char*)from, #else from, #endif (fromlen != NULL) ? *fromlen : 0, &iov, 1, cbuf, cmsglen, *flags }; if(ppid != NULL) *ppid = 0; if(streamID != NULL) *streamID = 0; if(assocID != NULL) *assocID = 0; LOG_VERBOSE5 fprintf(stdlog, "recvmsg(%d, %u bytes)...\n", sockfd, (unsigned int)iov.iov_len); LOG_END setNonBlocking(sockfd); cc = ext_recvmsg(sockfd, &msg, *flags); if((cc < 0) && (errno == EWOULDBLOCK) && (timeout > 0)) { LOG_VERBOSE5 fprintf(stdlog, "recvmsg(%d) would block, waiting with timeout %lld [us]...\n", sockfd, timeout); LOG_END pfd.fd = sockfd; pfd.events = POLLIN; pfd.revents = 0; result = ext_poll((struct pollfd*)&pfd, 1, (int)ceil((double)timeout / 1000.0)); if( (result > 0) && (pfd.revents & POLLIN) ) { LOG_VERBOSE5 fprintf(stdlog, "retrying recvmsg(%d, %u bytes)...\n", sockfd, (unsigned int)iov.iov_len); LOG_END #ifdef __APPLE__ msg.msg_name = (char*)from; #else msg.msg_name = from; #endif msg.msg_namelen = (fromlen != NULL) ? *fromlen : 0; iov.iov_base = (char*)buffer; iov.iov_len = length; msg.msg_iov = &iov; msg.msg_iovlen = 1; msg.msg_control = cbuf; msg.msg_controllen = cmsglen; msg.msg_flags = *flags; cc = ext_recvmsg(sockfd, &msg, *flags); } else if(result == 0) { /* Timeout */ LOG_VERBOSE5 fprintf(stdlog, "recvmsg(%d) timed out\n", sockfd); LOG_END cc = -1; errno = EWOULDBLOCK; } else { /* Error */ if(errno != EINTR) { LOG_ERROR fprintf(stdlog, "poll(%d) failed: %s\n", sockfd, strerror(errno)); LOG_END } cc = -1; } } LOG_VERBOSE4 fprintf(stdlog, "recvmsg(%d) result=%d data=%u/%u control=%u; %s\n", sockfd, cc, (unsigned int)iov.iov_len, (unsigned int)length, (unsigned int)msg.msg_controllen, (cc < 0) ? strerror(errno) : ""); LOG_END if(cc < 0) { return(cc); } if((msg.msg_control != NULL) && (msg.msg_controllen > 0)) { cmsg = (struct cmsghdr*)CMSG_FIRSTHDR(&msg); if((cmsg != NULL) && (cmsg->cmsg_len == CMSG_LEN(sizeof(struct sctp_sndrcvinfo))) && (cmsg->cmsg_level == IPPROTO_SCTP) && (cmsg->cmsg_type == SCTP_SNDRCV)) { sri = (struct sctp_sndrcvinfo*)CMSG_DATA(cmsg); if(ppid != NULL) *ppid = ntohl(sri->sinfo_ppid); if(streamID != NULL) *streamID = sri->sinfo_stream; if(assocID != NULL) *assocID = sri->sinfo_assoc_id; LOG_VERBOSE4 fprintf(stdlog, "SCTP_SNDRCV: ppid=$%08x streamID=%u assocID=%u\n", sri->sinfo_ppid, sri->sinfo_stream, (unsigned int)sri->sinfo_assoc_id); LOG_END } } if(fromlen != NULL) { *fromlen = msg.msg_namelen; } *flags = msg.msg_flags; return(cc); } /* ###### Get socklen for given address ################################## */ size_t getSocklen(const struct sockaddr* address) { switch(address->sa_family) { case AF_INET: return(sizeof(struct sockaddr_in)); break; case AF_INET6: return(sizeof(struct sockaddr_in6)); break; default: LOG_ERROR fprintf(stdlog, "Unsupported address family #%d\n", address->sa_family); LOG_END_FATAL return(sizeof(struct sockaddr)); break; } } /* ###### Multicast group management ##################################### */ static bool multicastGroupControlIF(int sockfd, struct sockaddr* address, const char* interface, const bool add) { struct ip_mreq mreq; struct ifreq ifr; struct ipv6_mreq mreq6; int result; if(address->sa_family == AF_INET) { mreq.imr_multiaddr = ((struct sockaddr_in*)address)->sin_addr; strcpy(ifr.ifr_name, interface); if(ext_ioctl(sockfd, SIOCGIFADDR, &ifr) != 0) { return(false); } mreq.imr_interface = ((struct sockaddr_in*)&ifr.ifr_addr)->sin_addr; /* BSD sets errno to EADDRINUSE if socket has already been joined to the multicast group. This is no real error. */ result = ext_setsockopt(sockfd,IPPROTO_IP, add ? IP_ADD_MEMBERSHIP : IP_DROP_MEMBERSHIP, &mreq, sizeof(mreq)); return((result == 0) || (errno == EADDRINUSE)); } else if(address->sa_family == AF_INET6) { memcpy((char*)&mreq6.ipv6mr_multiaddr, (char*)&((struct sockaddr_in6*)address)->sin6_addr, sizeof(((struct sockaddr_in6*)address)->sin6_addr)); mreq6.ipv6mr_interface = if_nametoindex(interface); result = ext_setsockopt(sockfd,IPPROTO_IPV6, add ? IPV6_JOIN_GROUP : IPV6_LEAVE_GROUP, &mreq6, sizeof(mreq6)); /* BSD sets errno to EADDRINUSE if socket has already been joined to the multicast group. This is no real error. */ return((result == 0) || (errno == EADDRINUSE)); } CHECK(false); return(false); } /* ###### Join or leave multicast group ################################## */ bool multicastGroupControl(int sd, const union sockaddr_union* groupAddress, const bool add) { struct if_nameindex* ifindex; size_t successes = 0; size_t i; LOG_VERBOSE3 fprintf(stdlog, "Trying multicast group %s for ", add ? "join" : "leave"); fputaddress(&groupAddress->sa, true, stdlog); fputs(" ...\n", stdlog); LOG_END ifindex = if_nameindex(); if(ifindex) { i = 0; while(ifindex[i].if_index != 0) { LOG_VERBOSE4 fprintf(stdlog, "Trying multicast group %s on %s for ", add ? "join" : "leave", ifindex[i].if_name); fputaddress(&groupAddress->sa, true, stdlog); fputs(" ...\n", stdlog); LOG_END if(multicastGroupControlIF(sd, (struct sockaddr*)groupAddress, ifindex[i].if_name, add)) { LOG_VERBOSE4 fputs("Succeeded\n", stdlog); LOG_END successes++; } else { LOG_VERBOSE4 fputs("Failed\n", stdlog); LOG_END } i++; } if_freenameindex(ifindex); } LOG_VERBOSE3 fprintf(stdlog, "Multicast group %s for ", add ? "join" : "leave"); fputaddress(&groupAddress->sa, true, stdlog); fprintf(stdlog, " has succeeded on %u interfaces\n", (unsigned int)successes); LOG_END return(successes); } /* ###### Send multicast message over each possible interface ############ */ size_t sendmulticast(int sd, int family, const void* buffer, const size_t length, const int flags, const struct sockaddr* to, socklen_t tolen, int ttl) { struct if_nameindex* ifindex; size_t i; struct ifreq ifr; struct in_addr inaddr; unsigned int outif; bool ready; size_t successes = 0; ifindex = if_nameindex(); if(ifindex) { i = 0; while(ifindex[i].if_index != 0) { strcpy((char*)&ifr.ifr_name, (const char*)ifindex[i].if_name); if(ext_ioctl(sd, SIOCGIFFLAGS, (char*)&ifr) >= 0) { if( (ifr.ifr_flags & IFF_UP) && (ifr.ifr_flags & IFF_MULTICAST) ) { /* ====== This interface is usable ===================== */ LOG_VERBOSE4 fprintf(stdlog, "Trying to send multicast via interface %s...\n", ifr.ifr_name); LOG_END /* ====== Set the interface for multicast output ======= */ ready = false; if(family == AF_INET) { if(ext_ioctl(sd, SIOCGIFADDR, (char*)&ifr) >= 0) { memcpy(&inaddr, &((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr, sizeof(struct in_addr)); if( (ext_setsockopt(sd, IPPROTO_IP, IP_MULTICAST_IF, &inaddr, sizeof(inaddr)) == 0) && (ext_setsockopt(sd, IPPROTO_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)) == 0) ) { ready = true; } else { LOG_ERROR logerror("Cannot set interface using IP_MULTICAST_IF"); LOG_END } } } else if(family == AF_INET6) { outif = ifindex[i].if_index; if( (ext_setsockopt(sd, IPPROTO_IPV6, IPV6_MULTICAST_IF, &outif, sizeof(outif)) == 0) && (ext_setsockopt(sd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl, sizeof(outif)) == 0) ) { ready = true; } } /* ====== Actually send the multicast message ========== */ if(ready) { if(ext_sendto(sd, buffer, length, flags, to, tolen) > 0) { LOG_VERBOSE5 fprintf(stdlog, "Successfully sent multicast via interface %s\n", ifr.ifr_name); LOG_END successes++; } } } } i++; } if_freenameindex(ifindex); } else { LOG_ERROR logerror("ioctl SIOCGIFCONF failed - unable to obtain network interfaces"); LOG_END } return(successes); } /* ###### Set SO_REUSEADDR and SO_REUSEPORT (if supported) ############### */ bool setReusable(int sd, int on) { if(ext_setsockopt(sd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) != 0) { return(false); } #if !defined (LINUX) && !defined (SOLARIS) if(ext_setsockopt(sd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on)) != 0) { return(false); } #endif return(true); } /* ###### Establish connection ########################################### */ int connectplus(int sockfd, union sockaddr_union* addressArray, const size_t addresses) { struct sockaddr* packedAddresses; int result; packedAddresses = pack_sockaddr_union(addressArray, addresses); if(packedAddresses) { #ifdef HAVE_CONNECTX_WITH_ID result = sctp_connectx(sockfd, packedAddresses, addresses, NULL); #else result = sctp_connectx(sockfd, packedAddresses, addresses); #endif free(packedAddresses); } else { result = -ENOMEM; } return(result); } #ifdef LINUX #ifdef HAVE_KERNEL_SCTP #warning Using lksctp sctp_getladdrs()/sctp_getpaddrs() bugfix (at least libsctp<=1.0.7)! /* * Common getsockopt() layer * If the NEW getsockopt() API fails this function will fall back to using * the old API */ static int sctp_getaddrs(int sd, sctp_assoc_t id, int optname_new, int optname_num_old, int optname_old, struct sockaddr **addrs) { int cnt, err; socklen_t len; char *new_buf; size_t bufsize = 4096; /*enough for most cases*/ struct sctp_getaddrs *getaddrs = (struct sctp_getaddrs*)malloc(bufsize); if(!getaddrs) return -1; for(;;) { len = bufsize; getaddrs->assoc_id = id; err = getsockopt(sd, SOL_SCTP, optname_new, getaddrs, &len); if (err == 0) { /*got it*/ break; } if (errno == ENOPROTOOPT) { /*Kernel does not support new API*/ free(getaddrs); /* return sctp_getaddrs_old(sd, id, optname_num_old, optname_old, addrs); */ return -1; } if (errno != ENOMEM ) { /*unknown error*/ free(getaddrs); return -1; } /*expand buffer*/ if (bufsize > 128*1024) { /*this is getting ridiculous*/ free(getaddrs); errno = ENOBUFS; return -1; } new_buf = (char*)realloc(getaddrs, bufsize+4096); if (!new_buf) { free(getaddrs); return -1; } bufsize += 4096; getaddrs = (struct sctp_getaddrs*)new_buf; } /* we skip traversing the list, allocating a new buffer etc. and enjoy * a simple hack*/ cnt = getaddrs->addr_num; memmove(getaddrs, getaddrs + 1, len); // TD: corrent length value! #ifdef HAVE_VALGRIND_MEMCHECK_H VALGRIND_MAKE_MEM_DEFINED(getaddrs, len); #endif *addrs = (struct sockaddr*)getaddrs; return cnt; } /* sctp_getaddrs() */ /* Get all peer address on a socket. This is a new SCTP API * described in the section 8.3 of the Sockets API Extensions for SCTP. * This is implemented using the getsockopt() interface. */ int sctp_getpaddrs(int sd, sctp_assoc_t id, struct sockaddr **addrs) { return sctp_getaddrs(sd, id, SCTP_GET_PEER_ADDRS, SCTP_GET_PEER_ADDRS_NUM_OLD, SCTP_GET_PEER_ADDRS_OLD, addrs); } /* sctp_getpaddrs() */ /* Get all locally bound address on a socket. This is a new SCTP API * described in the section 8.5 of the Sockets API Extensions for SCTP. * This is implemented using the getsockopt() interface. */ int sctp_getladdrs(int sd, sctp_assoc_t id, struct sockaddr **addrs) { return sctp_getaddrs(sd, id, SCTP_GET_LOCAL_ADDRS, SCTP_GET_LOCAL_ADDRS_NUM_OLD, SCTP_GET_LOCAL_ADDRS_OLD, addrs); } /* sctp_getladdrs() */ #endif #endif /* ###### Get local addresses ############################################### */ size_t getladdrsplus(const int fd, const sctp_assoc_t assocID, union sockaddr_union** addressArray) { struct sockaddr* packedAddresses = NULL; #ifdef SOLARIS int addrs = sctp_getladdrs(fd, assocID, (void**)&packedAddresses); #else int addrs = sctp_getladdrs(fd, assocID, &packedAddresses); #endif #ifdef LINUX #ifdef HAVE_KERNEL_SCTP union sockaddr_union socketName; socklen_t socketNameLen; uint16_t port; size_t addrs2; size_t j; #endif #endif int i; if(addrs > 0) { #ifdef LINUX #ifdef HAVE_KERNEL_SCTP #warning Using sctp_getladdrs() INADDR_ANY bugfix for lksctp! if((addrs == 1) && ( ( (((struct sockaddr*)packedAddresses)->sa_family == AF_INET) && (((struct sockaddr_in*)packedAddresses)->sin_addr.s_addr == 0) ) || ( (((struct sockaddr*)packedAddresses)->sa_family == AF_INET6) && ( (IN6_IS_ADDR_UNSPECIFIED(&((struct sockaddr_in6*)packedAddresses)->sin6_addr)) || ( ((IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6*)packedAddresses)->sin6_addr) || (IN6_IS_ADDR_V4COMPAT(&((struct sockaddr_in6*)packedAddresses)->sin6_addr))) && (((struct sockaddr_in6*)packedAddresses)->sin6_addr.s6_addr32[3] == 0))))))) { port = getPort((struct sockaddr*)packedAddresses); sctp_freeladdrs(packedAddresses); if(obtainLocalAddresses(addressArray, &addrs2, ASF_HideMulticast) == true) { for(j = 0;j < addrs2;j++) { setPort(&((*addressArray)[j].sa), port); } return(addrs2); } return(0); } #endif #endif *addressArray = unpack_sockaddr(packedAddresses, addrs); sctp_freeladdrs(packedAddresses); #ifdef LINUX #ifdef HAVE_KERNEL_SCTP #warning Using sctp_getladdrs() port 0 bugfix for lksctp! if(getPort(&(*addressArray)[0].sa) == 0) { socketNameLen = sizeof(socketName); if(ext_getsockname(fd, (struct sockaddr*)&socketName, &socketNameLen) == 0) { port = getPort(&socketName.sa); for(i = 0;i < addrs;i++) { setPort(&(*addressArray)[i].sa, port); } } } #endif #endif LOG_VERBOSE5 fprintf(stdlog, "getladdrsplus() - Number of addresses: %u\n", (unsigned int)addrs); for(i = 0;i < addrs;i++) { fprintf(stdlog, " - #%u: ", (unsigned int)i); fputaddress(&(*addressArray)[i].sa, true, stdlog); fputs("\n", stdlog); } LOG_END return((size_t)addrs); } else { if(packedAddresses) { /* LK-SCTP may allocate memory even when the number of addresses is 0. => free it here if packedAddresses is set. */ sctp_freeladdrs(packedAddresses); } } return(0); } /* ###### Get peer addresses ############################################# */ size_t getpaddrsplus(const int fd, const sctp_assoc_t assocID, union sockaddr_union** addressArray) { struct sockaddr* packedAddresses = NULL; #ifdef SOLARIS int addrs = sctp_getpaddrs(fd, assocID, (void **)&packedAddresses); #else int addrs = sctp_getpaddrs(fd, assocID, &packedAddresses); #endif if(addrs > 0) { *addressArray = unpack_sockaddr(packedAddresses, addrs); sctp_freepaddrs(packedAddresses); return((size_t)addrs); } return(0); } /* ###### Send SCTP ABORT ################################################ */ int sendabort(int sockfd, sctp_assoc_t assocID) { #ifdef SOLARIS /* The Solaris API has no SCTP_ABORT. Instead, it is a regular flag. */ return(sendtoplus(sockfd, NULL, 0, MSG_ABORT, NULL, 0, 0, assocID, 0, 0, 0, 0)); #else return(sendtoplus(sockfd, NULL, 0, #ifdef MSG_NOSIGNAL MSG_NOSIGNAL, #else 0, #endif NULL, 0, 0, assocID, 0, 0, SCTP_ABORT, 0)); #endif } /* ###### Send SCTP SHUTDOWN ############################################# */ int sendshutdown(int sockfd, sctp_assoc_t assocID) { if(assocID == 0) { /* FreeBSD seems to ignore SCTP_EOF on TCP-like socket! */ return(ext_shutdown(sockfd, 2)); } #ifdef SOLARIS /* The Solaris API has no SCTP_ABORT. Instead, it is a regular flag. */ return(sendtoplus(sockfd, NULL, 0, MSG_EOF, NULL, 0, 0, assocID, 0, 0, 0, 0)); #else return(sendtoplus(sockfd, NULL, 0, #ifdef MSG_NOSIGNAL MSG_NOSIGNAL, #else 0, #endif NULL, 0, 0, assocID, 0, 0, SCTP_EOF, 0)); #endif } /* ###### Convert byte order of 64 bit value ############################# */ static uint64_t byteswap64(const uint64_t value) { #if BYTE_ORDER == LITTLE_ENDIAN const uint32_t a = (uint32_t)(value >> 32); const uint32_t b = (uint32_t)(value & 0xffffffff); return( (int64_t)((a << 24) | ((a & 0x0000ff00) << 8) | ((a & 0x00ff0000) >> 8) | (a >> 24)) | ((int64_t)((b << 24) | ((b & 0x0000ff00) << 8) | ((b & 0x00ff0000) >> 8) | (b >> 24)) << 32) ); #elif BYTE_ORDER == BIG_ENDIAN return(value); #else #error Byte order undefined! #endif } /* ###### Convert byte order of 64 bit value ############################# */ uint64_t hton64(const uint64_t value) { return(byteswap64(value)); } /* ###### Convert byte order of 64 bit value ############################# */ uint64_t ntoh64(const uint64_t value) { return(byteswap64(value)); } /* ###### Tune SCTP parameters ############################################ */ bool tuneSCTP(const int sockfd, sctp_assoc_t assocID, struct TuneSCTPParameters* parameters) { struct sctp_rtoinfo rtoinfo; struct sctp_paddrparams peerParams; struct sctp_assocparams assocParams; socklen_t size; bool result = true; LOG_VERBOSE3 fprintf(stdlog, "Tuning SCTP parameters of assoc %u:\n", sockfd); LOG_END size = (socklen_t)sizeof(rtoinfo); rtoinfo.srto_assoc_id = assocID; if(ext_getsockopt(sockfd, IPPROTO_SCTP, SCTP_RTOINFO, &rtoinfo, &size) < 0) { LOG_WARNING logerror("getsockopt SCTP_RTOINFO failed -> skipping assoc configuration"); LOG_END return(false); } size = (socklen_t)sizeof(peerParams); peerParams.spp_assoc_id = assocID; memset(&peerParams.spp_address, 0, sizeof(peerParams.spp_address)); // ANY address peerParams.spp_address.ss_family = AF_INET6; if(ext_getsockopt(sockfd, IPPROTO_SCTP, SCTP_PEER_ADDR_PARAMS, &peerParams, &size) < 0) { peerParams.spp_address.ss_family = AF_INET; if(ext_getsockopt(sockfd, IPPROTO_SCTP, SCTP_PEER_ADDR_PARAMS, &peerParams, &size) < 0) { LOG_WARNING logerror("getsockopt SCTP_PEER_ADDR_PARAMS failed -> skipping assoc configuration"); LOG_END return(false); } } size = (socklen_t)sizeof(assocParams); assocParams.sasoc_assoc_id = assocID; if(ext_getsockopt(sockfd, IPPROTO_SCTP, SCTP_ASSOCINFO, &assocParams, &size) < 0) { LOG_WARNING logerror("getsockopt SCTP_ASSOCINFO failed -> skipping assoc configuration"); LOG_END return(false); } LOG_VERBOSE3 fputs("Old configuration:\n", stdlog); fprintf(stdlog, " - Initial RTO: %u ms\n", rtoinfo.srto_initial); fprintf(stdlog, " - Min RTO: %u ms\n", rtoinfo.srto_min); fprintf(stdlog, " - Max RTO: %u ms\n", rtoinfo.srto_max); fprintf(stdlog, " - HeartbeatInterval: %u ms\n", peerParams.spp_hbinterval); fprintf(stdlog, " - PathMaxRXT: %u\n", peerParams.spp_pathmaxrxt); fprintf(stdlog, " - AssocMaxRXT: %u\n", assocParams.sasoc_asocmaxrxt); LOG_END if(parameters->InitialRTO != 0) { rtoinfo.srto_initial = parameters->InitialRTO; } if(parameters->MinRTO != 0) { rtoinfo.srto_min = parameters->MinRTO; } if(parameters->MaxRTO != 0) { rtoinfo.srto_max = parameters->MaxRTO; } peerParams.spp_hbinterval = parameters->HeartbeatInterval; peerParams.spp_flags = 0; if(parameters->HeartbeatInterval != 0) { peerParams.spp_flags |= SPP_HB_ENABLE; } if(parameters->PathMaxRxt != 0) { peerParams.spp_pathmaxrxt = parameters->PathMaxRxt; } if(parameters->AssocMaxRxt != 0) { assocParams.sasoc_asocmaxrxt = parameters->AssocMaxRxt; } if(ext_setsockopt(sockfd, IPPROTO_SCTP, SCTP_ASSOCINFO, &assocParams, (socklen_t)sizeof(assocParams)) < 0) { LOG_WARNING logerror("setsockopt SCTP_ASSOCINFO failed"); LOG_END result = false; } if(ext_setsockopt(sockfd, IPPROTO_SCTP, SCTP_RTOINFO, &rtoinfo, (socklen_t)sizeof(rtoinfo)) < 0) { LOG_WARNING logerror("setsockopt SCTP_RTOINFO failed"); LOG_END result = false; } if(ext_setsockopt(sockfd, IPPROTO_SCTP, SCTP_PEER_ADDR_PARAMS, &peerParams, sizeof(peerParams)) < 0) { LOG_WARNING logerror("setsockopt SCTP_PEER_ADDR_PARAMS failed"); LOG_END result = false; } if(result) { LOG_VERBOSE3 fputs("New configuration:\n", stdlog); fprintf(stdlog, " - Initial RTO: %u ms\n", rtoinfo.srto_initial); fprintf(stdlog, " - Min RTO: %u ms\n", rtoinfo.srto_min); fprintf(stdlog, " - Max RTO: %u ms\n", rtoinfo.srto_max); fprintf(stdlog, " - HeartbeatInterval: %u ms\n", peerParams.spp_hbinterval); fprintf(stdlog, " - PathMaxRXT: %u\n", peerParams.spp_pathmaxrxt); fprintf(stdlog, " - AssocMaxRXT: %u\n", assocParams.sasoc_asocmaxrxt); LOG_END } return(result); } rsplib-3.0.1/rsplib/netutilities.h0000664000175000017500000004052112057060367014127 00000000000000/* $Id: netutilities.h 2725 2012-11-29 19:19:54Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef NETUTILITIES_H #define NETUTILITIES_H #include "tdtypes.h" #include "sockaddrunion.h" #include "ext_socket.h" #include #include #include #include #ifdef __cplusplus extern "C" { #endif #ifndef IPV6_JOIN_GROUP #define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP #endif #ifndef IPV6_LEAVE_GROUP #define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP #endif #ifdef HAVE_KERNEL_SCTP #ifndef HAVE_SCTP_CONNECTX int sctp_connectx(int sockfd, const struct sockaddr* addrs, int addrcnt); #endif #ifndef HAVE_SCTP_SEND #define sctp_send(a,b,c,d,e) sctp_send_wrapper(a,b,c,d,e) ssize_t sctp_send_wrapper(int sd, const void* data, size_t len, const struct sctp_sndrcvinfo* sinfo, int flags); #endif #ifndef HAVE_SCTP_SENDX ssize_t sctp_sendx(int sd, const void* data, size_t len, const struct sockaddr* addrs, int addrcnt, const struct sctp_sndrcvinfo* sinfo, int flags); #endif #endif /** * Convert 64-bit value to network byte order. * * @param value Value in host byte order. * @return Value in network byte order. */ uint64_t hton64(const uint64_t value); /** * Convert 64-bit value to host byte order. * * @param value Value in network byte order. * @return Value in host byte order. */ uint64_t ntoh64(const uint64_t value); /** * Get local addresses from socket. The obtained address array has * to be freed using deleteAddressArray(). * * @param sockfd Socket descriptor. * @param addressArray Reference to store obtained address array to. * @return Number of addresses. * * @see deleteAddressArray */ size_t getAddressesFromSocket(int sockfd, union sockaddr_union** addressArray); /** * Gather local addresses. The obtained address array will be stored * to the variable addressArray. It has to be freed using free(). * * @param addressArray Reference to store address array to. * @return Number of obtained addresses or 0 in case of error. */ size_t gatherLocalAddresses(union sockaddr_union** addressArray); /** * Delete address array. * * @param addressArray Address array. */ void deleteAddressArray(union sockaddr_union* addressArray); /** * Duplicate address array. * * @param addressArray Address array. * @param addresses Number of addresses. * @return Address array or NULL in case of error. */ union sockaddr_union* duplicateAddressArray(const union sockaddr_union* addressArray, const size_t addresses); /** * Convert address to string. * * @param address Address. * @param buffer Buffer to store string to. * @param length Length of buffer. * @param port true to include port number; false otherwise. * @return true for success; false otherwise. */ bool address2string(const struct sockaddr* address, char* buffer, const size_t length, const bool port); /** * Scan address from string. * * @param string String. * @param address Reference to store address to. * @return true for success; false otherwise. */ bool string2address(const char* string, union sockaddr_union* address); /** * Print address. * * @param address Address. * @param port true to include port number; false otherwise. * @param fd File to write address to (e.g. stdout, stderr, ...). */ void fputaddress(const struct sockaddr* address, const bool port, FILE* fd); /** * Address comparision function. * * @param a1 Address 1. * @param a2 Address 2. * @param port true to include port number in comparision; false otherwise. * @return Comparision result. */ int addresscmp(const struct sockaddr* a1, const struct sockaddr* a2, const bool port); /** * Get port from sockaddr structure. * * @param address sockaddr structure. * @return Port or 0 in case of error. */ uint16_t getPort(const struct sockaddr* address); /** * Set port in sockaddr structure. * * @param address sockaddr structure. * @param port Port. * @return true for success; false otherwise. */ bool setPort(struct sockaddr* address, const uint16_t port); /** * Get address family from sockaddr structure. * * @param address sockaddr structure. * @return Address family */ int getFamily(const struct sockaddr* address); #define AS_UNSPECIFIED 0 #define AS_MULTICAST_NODELOCAL 1 #define AS_LOOPBACK 2 #define AS_MULTICAST_LINKLOCAL 3 #define AS_UNICAST_LINKLOCAL 4 #define AS_MULTICAST_SITELOCAL 5 #define AS_UNICAST_SITELOCAL 6 #define AS_MULTICAST_ORGLOCAL 7 #define AS_MULTICAST_GLOBAL 8 #define AS_UNICAST_GLOBAL 10 /** * Get relative scope of address. This function supports IPv4 and IPv6 * addresses. The higher the returned value, the higher the address scope. * * @param address sockaddr structure. * @return Scope. */ unsigned int getScope(const struct sockaddr* address); /** * Get one address of highest scope from address array. * * @param addrs Address array. * @param addrcnt Address count. * @return Selected address. */ const struct sockaddr* getBestScopedAddress(const struct sockaddr* addrs, int addrcnt); /** * Filter out addresses lower than a given scope. * * @param addressArray Address array. * @param inputAddresses Number of input addresses. * @param minScope Minimum scope. * @return Number of output addresses. */ size_t filterAddressesByScope(union sockaddr_union* addressArray, const size_t inputAddresses, const unsigned int minScope); /** * Get padding for given data size and alignment. * * @param size Data size. * @param alignment Alignment. * @return Number of padding bytes necessary. */ size_t getPadding(const size_t size, const size_t alignment); /** * Check, if IPv6 is available. * * @return true if IPv6 is available; false otherwise. */ bool checkIPv6(); /** * Set file descriptor to blocking mode. * * @param fd File descriptor. * @return true for success; false otherwise. */ bool setBlocking(int fd); /** * Set file descriptor to non-blocking mode. * * @param fd File descriptor. * @return true for success; false otherwise. */ bool setNonBlocking(int fd); /** * Get length of sockaddr_* structure for given addres.. * * @param address Address. * @return Length of structure. */ size_t getSocklen(const struct sockaddr* address); /** * Wrapper for bind() and bindx(). This function automatically selects a * random port if the given port number is 0. If the number of addresses is * 1, bind() will be used; otherwise, bindx() is will be used. * * @param sockfd Socket descriptor. * @param addressArray Address array. * @param addresses Number of addresses. * @return true for success; false otherwise. */ bool bindplus(int sockfd, union sockaddr_union* addressArray, const size_t addresses); /** * Establish a connection. * * @param sockfd Socket descriptor. * @param addressArray Destination address or NULL for connection-oriented socket. * @param addresses Length of destination address or 0 if not given. * @return 0 in case of success; error code <0 otherwise. */ int connectplus(int sockfd, union sockaddr_union* addressArray, const size_t addresses); /** * Wrapper for sendmsg() with timeout and support for SCTP parameters. * * @param sockfd Socket descriptor. * @param buffer Data to send. * @param length Length of data to send. * @param flags sendmsg() flags. * @param toaddrs Destination addresses or NULL for connection-oriented socket. * @param toaddrcnt Number of destination addresses. * @param ppid SCTP Payload Protocol Identifier. * @param assocID SCTP Association ID or 0 for connection-oriented socket. * @param streamID SCTP Stream ID. * @param timeToLive SCTP Time To Live. * @param sctpFlags SCTP Flags. * @param timeout Timeout for sending data. * @param Bytes sent or -1 in case of error. */ int sendtoplus(int sockfd, const void* buffer, const size_t length, const int flags, union sockaddr_union* toaddrs, const size_t toaddrcnt, const uint32_t ppid, const sctp_assoc_t assocID, const uint16_t streamID, const uint32_t timeToLive, const uint16_t sctpFlags, const unsigned long long timeout); /** * Wrapper for recvmsg() with timeout and support for SCTP parameters. * * @param sockfd Socket descriptor. * @param buffer Buffer to store read data to. * @param length Length of buffer. * @param flags Reference to store recvmsg() flags. * @param from Reference to store source address to or NULL if not necessary. * @param fromlen Reference to store source address length to or NULL if not necessary. * @param ppid Reference to store SCTP Payload Protocol Identifier to. * @param assocID Reference to store SCTP Association ID to. * @param streamID Reference to store SCTP Stream ID to. * @param timeToLive Reference to store SCTP Time To Live to. * @param timeout Timeout for receiving data. * @param Bytes read or -1 in case of error. */ int recvfromplus(int sockfd, void* buffer, size_t length, int* flags, struct sockaddr* from, socklen_t* fromlen, uint32_t* ppid, sctp_assoc_t* assocID, uint16_t* streamID, const unsigned long long timeout); /** * Abort SCTP association. * * @param sockfd Socket descriptor. * @param assocID Association ID. * @return 0 in case of success, -1 otherwise. */ int sendabort(int sockfd, sctp_assoc_t assocID); /** * Shutdown SCTP association. * * @param sockfd Socket descriptor. * @param assocID Association ID. * @return 0 in case of success, -1 otherwise. */ int sendshutdown(int sockfd, sctp_assoc_t assocID); /** * Join or leave a multicast group. * * @param sockfd Socket descriptor. * @param address Address of multicast group to join/leave. * @param add true to join/false to leave multicast group. */ bool multicastGroupControl(int sd, const union sockaddr_union* groupAddress, const bool add); /** * Send multicast message over each possible interface. * * @param sockfd Socket descriptor. * @param family Socket family (AF_INET or AF_INET6). * @param buffer Data to send. * @param length Length of data to send. * @param flags sendmsg() flags. * @param to Destination address or NULL for connection-oriented socket. * @param tolen Length of destination address or 0 if not given. * @param ttl TTL for the multicast packet. */ size_t sendmulticast(int sockfd, int family, const void* buffer, const size_t length, const int flags, const struct sockaddr* to, socklen_t tolen, int ttl); /** * Set address and port reuse on socket on or off. * * @param sd Socket descriptor. * @param on 1 to set reuse on, 0 for off. * @return true for success; false otherwise. */ bool setReusable(int sd, int on); /** * Translate a sockaddr_union array into a block of sockaddrs. * The memory is dynamically allocated using malloc() and has to be * freed using free(). * * @param addrArray sockaddr_union array. * @param addrs Number of addresses. * @return Point to block of sockaddrs. */ struct sockaddr* pack_sockaddr_union(const union sockaddr_union* addrArray, const size_t addrs); /** * Translate block of sockaddrs into sockaddr_union array. * The memory is dynamically allocated using malloc() and has to be * freed using free(). * * @param addrArray Block of sockaddrs. * @param addrs Number of addresses. * @return Point sockaddr_union array. */ union sockaddr_union* unpack_sockaddr(const struct sockaddr* addrArray, const size_t addrs); /** * Wrapper to sctp_getladdrs() using sockaddr_union array instead of * packed sockaddr blocks. * * @param fd Socket FD. * @param assocID Association ID. * @param addressArray Pointer to store pointer to created address array to. * @return Number of addresses stored. */ size_t getladdrsplus(const int fd, const sctp_assoc_t assocID, union sockaddr_union** addressArray); /** * Wrapper to sctp_getpaddrs() using sockaddr_union array instead of * packed sockaddr blocks. * * @param fd Socket FD. * @param assocID Association ID. * @param addressArray Pointer to store pointer to created address array to. * @return Number of addresses stored. */ size_t getpaddrsplus(const int fd, const sctp_assoc_t assocID, union sockaddr_union** addressArray); #ifdef USE_SELECT int ext_poll(struct pollfd* fdlist, long unsigned int count, int time); #endif struct TuneSCTPParameters { unsigned int InitialRTO; unsigned int MinRTO; unsigned int MaxRTO; unsigned int AssocMaxRxt; unsigned int PathMaxRxt; unsigned int HeartbeatInterval; }; /** * Tune parameters of an SCTP association. * * @param fd Socket FD. * @param assocID Association ID. * @param parameters Pointer to TuneSCTPParameters structure with corresponding parameters. * @return true in case of success. */ bool tuneSCTP(const int sockfd, sctp_assoc_t assocID, struct TuneSCTPParameters* parameters); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/scriptingservice.cc0000664000175000017500000006451011777021056015132 00000000000000/* $Id: scriptingservice.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "scriptingservice.h" #include "netutilities.h" #include "timeutilities.h" #include "stringutilities.h" #include "loglevel.h" #include #include #include #include #include #include #include #include #include #define ENVIRONMENT_NAME "environment.data" #define INPUT_NAME "input.data" #define OUTPUT_NAME "output.data" #define STATUS_NAME "status.txt" EnvironmentCache ScriptingServer::Cache; // ###### Constructor ####################################################### ScriptingServer::ScriptingServer( int rserpoolSocketDescriptor, ScriptingServer::ScriptingServerSettings* settings) : TCPLikeServer(rserpoolSocketDescriptor) { Settings = *settings; State = SS_Upload; UploadFile = NULL; ChildProcess = 0; Directory[0] = 0x00; LastKeepAliveTimeStamp = 0; WaitingForKeepAliveAck = false; WaitingForEnvironment = false; NeedsEnvironment = false; GotEnvironment = false; UploadSize = 0; DownloadSize = 0; UploadStarted = 0; ProcessingStarted = 0; DownloadStarted = 0; } // ###### Destructor ######################################################## ScriptingServer::~ScriptingServer() { if(UploadFile) { fclose(UploadFile); UploadFile = NULL; } } // ###### Overloaded start() method ######################################### bool ScriptingServer::start() { // As soon as possible tell registrar the new load! setLoad(1.0 / ServerList->getMaxThreads()); return(TDThread::start()); } // ###### Create a Scripting thread ######################################### TCPLikeServer* ScriptingServer::scriptingServerFactory( int sd, void* userData, const uint32_t peIdentifier) { return(new ScriptingServer(sd, (ScriptingServerSettings*)userData)); } // ###### Initialize service ################################################ bool ScriptingServer::initializeService(void* userData) { const ScriptingServerSettings* settings = (const ScriptingServerSettings*)userData; if(Cache.initializeCache(settings->CacheDirectory.c_str(), settings->CacheMaxSize, settings->CacheMaxEntries, stdlog) == false) { fputs("ERROR: Unable to initialize environment cache!\n", stderr); return(false); } return(true); } // ###### Finish service #################################################### void ScriptingServer::finishService(void* userData) { // const ScriptingServerSettings* settings = (const ScriptingServerSettings*)userData; Cache.cleanUp(); } // ###### Print parameters ################################################## void ScriptingServer::scriptingPrintParameters(const void* userData) { const ScriptingServerSettings* settings = (const ScriptingServerSettings*)userData; puts("Scripting Parameters:"); printf(" Keep Temp Dirs = %s\n", (settings->KeepTempDirs == true) ? "yes" : "no"); printf(" Verbose Mode = %s\n", (settings->VerboseMode == true) ? "yes" : "no"); printf(" Transmit Timeout = %u [ms]\n", settings->TransmitTimeout); printf(" Keep-Alive Interval = %u [ms]\n", settings->KeepAliveInterval); printf(" Keep-Alive Timeout = %u [ms]\n", settings->KeepAliveTimeout); printf(" Cache Max Size = %llu [KiB]\n", settings->CacheMaxSize / 1024); printf(" Cache Max Entries = %u\n", settings->CacheMaxEntries); printf(" Cache Directory = %s\n", settings->CacheDirectory.c_str()); } // ###### Reject new session when server is fully loaded #################### void ScriptingServer::rejectNewSession(int sd) { char buffer[sizeof(NotReady)]; struct utsname systemInfo; if(uname(&systemInfo) != 0) { systemInfo.nodename[0] = 0x00; } NotReady* notReady = (NotReady*)&buffer; memset((char*)¬Ready->Info, 0x00, sizeof(notReady->Info)); snprintf((char*)¬Ready->Info, sizeof(notReady->Info), "%s", systemInfo.nodename); const ssize_t notReadyLength = sizeof(NotReady) + strlen(notReady->Info) - SR_MAX_INFOSIZE; notReady->Header.Type = SPT_NOTREADY; notReady->Header.Flags = 0x00; notReady->Header.Length = htons(notReadyLength); notReady->Reason = htonl(SSNR_FULLY_LOADED); rsp_sendmsg(sd, (const char*)notReady, notReadyLength, 0, 0, htonl(PPID_SP), 0, 0, 0, 0); } // ###### Initialize session ################################################ EventHandlingResult ScriptingServer::initializeSession() { // ====== Create directory and get file names ============================ const char* tempDirectory = getenv("TMPDIR"); if(tempDirectory == NULL) { safestrcpy((char*)&Directory, "/tmp", sizeof(Directory)); } else { safestrcpy((char*)&Directory, tempDirectory, sizeof(Directory)); } safestrcat((char*)&Directory, "/rspSS-Session-XXXXXX", sizeof(Directory)); if(mkdtemp((char*)&Directory) == NULL) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Unable to generate temporary directory!\n", RSerPoolSocketDescriptor); return(EHR_Abort); } snprintf((char*)&EnvironmentName, sizeof(EnvironmentName), "%s/%s", Directory, ENVIRONMENT_NAME); snprintf((char*)&InputName, sizeof(InputName), "%s/%s", Directory, INPUT_NAME); snprintf((char*)&OutputName, sizeof(OutputName), "%s/%s", Directory, OUTPUT_NAME); snprintf((char*)&StatusName, sizeof(StatusName), "%s/%s", Directory, STATUS_NAME); // ====== Send Ready message ============================================= char buffer[sizeof(Ready)]; struct utsname systemInfo; if(uname(&systemInfo) != 0) { systemInfo.nodename[0] = 0x00; } Ready* ready = (Ready*)&buffer; memset((char*)&ready->Info, 0x00, sizeof(ready->Info)); snprintf((char*)&ready->Info, sizeof(ready->Info), "%s", systemInfo.nodename); const ssize_t readyLength = sizeof(Ready) + strlen(ready->Info) - SR_MAX_INFOSIZE; ready->Header.Type = SPT_READY; ready->Header.Flags = 0x00; ready->Header.Length = htons(readyLength); setSyncTimer(getMicroTime() + (1000ULL * Settings.TransmitTimeout)); // Timeout for first upload message const ssize_t sent = rsp_sendmsg(RSerPoolSocketDescriptor, (const char*)ready, readyLength, 0, 0, htonl(PPID_SP), 0, 0, 0, Settings.TransmitTimeout); return((sent == readyLength) ? EHR_Okay : EHR_Abort); } // ###### Clean up session ################################################## void ScriptingServer::finishSession(EventHandlingResult result) { if(Directory[0] != 0x00) { // If there is no upload, there is no directory to clean up // ====== Redirect output into logfile ================================ const int stdlogFD = fileno(stdlog); dup2(stdlogFD, STDOUT_FILENO); dup2(stdlogFD, STDERR_FILENO); // ====== Run script ================================================== char sscmd[128]; char callcmd[384]; int success; snprintf((char*)&sscmd, sizeof(sscmd), "scriptingcontrol cleanup %s %d %s", Directory, (int)ChildProcess, (Settings.KeepTempDirs == true) ? "keeptempdirs" : ""); snprintf((char*)&callcmd, sizeof(callcmd), "if [ -e ./scriptingcontrol ] ; then ./%s ; else %s ; fi", sscmd, sscmd); success = system(callcmd); if(success != 0) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: ERROR: Unable to clean up directory \"%s\": %s!\n", RSerPoolSocketDescriptor, Directory, strerror(errno)); } if(ChildProcess) { kill(ChildProcess, SIGKILL); // Just to be really sure ... waitpid(ChildProcess, NULL, 0); ChildProcess = 0; } } } // ###### Handle Upload message ############################################# EventHandlingResult ScriptingServer::handleUploadMessage(const Upload* upload) { // ====== Create input file ============================================== if(UploadFile == NULL) { if(WaitingForEnvironment == true) { sha1_init(&EnvironmentHashContext); UploadFile = fopen(EnvironmentName, "w"); } else { UploadFile = fopen(InputName, "w"); } if(UploadFile == NULL) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Unable to create input file \"%s\" in directory \"%s\": %s!\n", RSerPoolSocketDescriptor, (WaitingForEnvironment == true) ? EnvironmentName : InputName, Directory, strerror(errno)); return(EHR_Abort); } printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Starting upload of %s into directory \"%s\" ...\n", RSerPoolSocketDescriptor, (WaitingForEnvironment == true) ? "environment" : "work package", Directory); UploadSize = 0; UploadStarted = getMicroTime(); } // ====== Write data to input file ======================================= const size_t length = ntohs(upload->Header.Length) - sizeof(upload->Header); if(length > 0) { if(Settings.VerboseMode) { fputs(".", stdlog); fflush(stdlog); } if(fwrite(&upload->Data, length, 1, UploadFile) != 1) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Write error for input file in directory \"%s\": %s!\n", RSerPoolSocketDescriptor, Directory, strerror(errno)); return(EHR_Abort); } if(WaitingForEnvironment == true) { sha1_update(&EnvironmentHashContext, (uint8_t*)&upload->Data, length); } UploadSize += (unsigned long long)length; setSyncTimer(getMicroTime() + (1000ULL * Settings.TransmitTimeout)); // Timeout for next upload message return(EHR_Okay); } // ====== Upload finished ================================================ else { if(Settings.VerboseMode) { fputs("\n", stdlog); } if(fclose(UploadFile) != 0) { fprintf(stdlog, "S%04d: Close error for input file in directory \"%s\": %s!\n", RSerPoolSocketDescriptor, Directory, strerror(errno)); return(EHR_Abort); } UploadFile = NULL; ProcessingStarted = getMicroTime(); printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Upload completed (%s: %1.0lf KiB in %1.1lf s; %1.1lf KiB/s) => starting work in directory \"%s\" ...\n", RSerPoolSocketDescriptor, (WaitingForEnvironment == true) ? EnvironmentName : InputName, ceil((double)UploadSize / 1024.0), (ProcessingStarted - UploadStarted) / 1000000.0, (double)((double)UploadSize / 1024.0) / ((ProcessingStarted - UploadStarted) / 1000000.0), Directory); // ====== Continue upload with environment file ======================= if((NeedsEnvironment == true) && (WaitingForEnvironment == false)) { WaitingForEnvironment = true; // Now, get the environment return(EHR_Okay); } // ====== Upload of work package and environment completed ============ else { if(WaitingForEnvironment == true) { GotEnvironment = true; sha1_final(&EnvironmentHashContext, (uint8_t*)&EnvironmentHash); printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Got environment ", RSerPoolSocketDescriptor); for(size_t i = 0; i < sizeof(EnvironmentHash); i++) { fprintf(stdlog, "%02x", (unsigned int)EnvironmentHash[i]); } fputs("\n", stdlog); Cache.storeInCache((const uint8_t*)&EnvironmentHash, EnvironmentName, UploadSize); } // ====== Start to do actual work ================================== EventHandlingResult result = sendStatus(0); if(result == 0) { return(startWorking()); } return(result); } } } // ###### Handle Upload message ############################################# EventHandlingResult ScriptingServer::handleEnvironmentMessage( const Environment* environmentQuery) { // ====== Check Environment query message ================================ if(ntohs(environmentQuery->Header.Length) < sizeof(Environment)) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Received invalid Environment message\n", RSerPoolSocketDescriptor); return(EHR_Abort); } printTimeStamp(stdlog); fprintf(stdlog, "S%04d: User requests environment ", RSerPoolSocketDescriptor); for(size_t i = 0; i < sizeof(environmentQuery->Hash); i++) { fprintf(stdlog, "%02x", (unsigned int)environmentQuery->Hash[i]); } fputs("\n", stdlog); // ====== Look for environment in cache ================================== if(Cache.copyFromCache((const uint8_t*)&environmentQuery->Hash, EnvironmentName) == false) { NeedsEnvironment = true; } else { GotEnvironment = true; } // ====== Tell user the result =========================================== Environment environmentResponse; environmentResponse.Header.Type = SPT_ENVIRONMENT; environmentResponse.Header.Flags = (NeedsEnvironment == true) ? SEF_UPLOAD_NEEDED : 0; environmentResponse.Header.Length = htons(sizeof(environmentResponse)); memcpy(&environmentResponse.Hash, &environmentQuery->Hash, sizeof(environmentResponse.Hash)); ssize_t sent = rsp_sendmsg(RSerPoolSocketDescriptor, (const char*)&environmentResponse, sizeof(environmentResponse), 0, 0, htonl(PPID_SP), 0, 0, 0, Settings.TransmitTimeout); if(sent != (ssize_t)sizeof(environmentResponse)) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Environment transmission error: %s\n", RSerPoolSocketDescriptor, strerror(errno)); return(EHR_Abort); } return(EHR_Okay); } // ###### Send status report ################################################ EventHandlingResult ScriptingServer::sendStatus(const int exitStatus) { Status status; status.Header.Type = SPT_STATUS; status.Header.Flags = 0x00; status.Header.Length = htons(sizeof(status)); status.Status = htonl((uint32_t)exitStatus); const ssize_t sent = rsp_sendmsg(RSerPoolSocketDescriptor, (const char*)&status, sizeof(status), 0, 0, htonl(PPID_SP), 0, 0, 0, Settings.TransmitTimeout); if(sent != sizeof(status)) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Status transmission error: %s\n", RSerPoolSocketDescriptor, strerror(errno)); return(EHR_Abort); } return(EHR_Okay); } // ###### Perform work package download ##################################### EventHandlingResult ScriptingServer::performDownload() { Download download; size_t dataLength; ssize_t sent; FILE* fh = fopen(OutputName, "r"); if(fh != NULL) { DownloadStarted = getMicroTime(); printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Processing completed (%1.1lf s) => starting download of results in directory \"%s\" ...\n", RSerPoolSocketDescriptor, (DownloadStarted - ProcessingStarted) / 1000000.0, Directory); for(;;) { dataLength = fread((char*)&download.Data, 1, sizeof(download.Data), fh); if(dataLength >= 0) { download.Header.Type = SPT_DOWNLOAD; download.Header.Flags = 0x00; download.Header.Length = htons(dataLength + sizeof(struct ScriptingCommonHeader)); if(Settings.VerboseMode) { fputs(".", stdlog); fflush(stdlog); } sent = rsp_sendmsg(RSerPoolSocketDescriptor, (const char*)&download, dataLength + sizeof(struct ScriptingCommonHeader), 0, 0, htonl(PPID_SP), 0, 0, 0, Settings.TransmitTimeout); if(sent != (ssize_t)(dataLength + sizeof(struct ScriptingCommonHeader))) { fclose(fh); printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Download data transmission error: %s\n", RSerPoolSocketDescriptor, strerror(errno)); return(EHR_Abort); } DownloadSize += (unsigned long long)dataLength; } if(dataLength <= 0) { const unsigned long long downloadFinished = getMicroTime(); printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Download completed (%1.0lf KiB in %1.1lf s; %1.1lf KiB/s) => finished work in directory \"%s\".\n", RSerPoolSocketDescriptor, ceil((double)DownloadSize / 1024.0), (downloadFinished - DownloadStarted) / 1000000.0, (double)((double)DownloadSize / 1024.0) / ((downloadFinished - DownloadStarted) / 1000000.0), Directory); break; } } if(Settings.VerboseMode) { fputs("\n", stdlog); } fclose(fh); } else { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: There are no results in directory \"%s\"!\n", RSerPoolSocketDescriptor, Directory); return(EHR_Abort); } return(EHR_Shutdown); } // ###### Start working script ############################################## EventHandlingResult ScriptingServer::startWorking() { assert(ChildProcess == 0); printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Starting work in directory \"%s\" ...\n", RSerPoolSocketDescriptor, Directory); ChildProcess = fork(); if(ChildProcess == 0) { // ====== Redirect output into logfile ================================ const int stdlogFD = fileno(stdlog); dup2(stdlogFD, STDOUT_FILENO); dup2(stdlogFD, STDERR_FILENO); // ====== Run script ================================================== execlp("./scriptingcontrol", "scriptingcontrol", "run", Directory, INPUT_NAME, OUTPUT_NAME, STATUS_NAME, (GotEnvironment == true) ? ENVIRONMENT_NAME : NULL, (char*)NULL); // Try standard location ... execlp("scriptingcontrol", "scriptingcontrol", "run", Directory, INPUT_NAME, OUTPUT_NAME, STATUS_NAME, (GotEnvironment == true) ? ENVIRONMENT_NAME : NULL, (char*)NULL); perror("Failed to start scriptingcontrol"); exit(1); } State = SS_Working; setSyncTimer(1); return(EHR_Okay); } // ###### Check if child process has finished ############################### bool ScriptingServer::hasFinishedWork(int& exitStatus) { int status; assert(ChildProcess != 0); pid_t childFinished = waitpid(ChildProcess, &status, WNOHANG); if(childFinished == ChildProcess) { ChildProcess = 0; if(WIFEXITED(status) || WIFSIGNALED(status)) { exitStatus = WEXITSTATUS(status); return(true); } } exitStatus = 0; return(false); } // ###### Handle timer events ############################################### EventHandlingResult ScriptingServer::syncTimerEvent(const unsigned long long now) { EventHandlingResult result = EHR_Okay; switch(State) { case SS_Upload: printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Reception timeout during upload to directory \"%s\" ...\n", RSerPoolSocketDescriptor, Directory); result = EHR_Abort; break; case SS_Working: // ====== Check whether work is complete ============================ int exitStatus; if(hasFinishedWork(exitStatus)) { result = sendStatus(exitStatus); if(result == EHR_Okay) { result = performDownload(); } } // ====== Keep-Alive handling ======================================= else { // ------ Send KeepAlive ----------------------------------------- if(WaitingForKeepAliveAck == false) { if(now >= LastKeepAliveTimeStamp + (1000ULL * Settings.KeepAliveInterval)) { LastKeepAliveTimeStamp = now; WaitingForKeepAliveAck = true; result = sendKeepAliveMessage(); } } // ====== Handle KeepAlive timeout ------------------------------- else { if(now >= LastKeepAliveTimeStamp + (1000ULL * Settings.KeepAliveTimeout)) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Keep-alive timeout during processing in directory \"%s\" ...\n", RSerPoolSocketDescriptor, Directory); result = EHR_Abort; } } } break; default: break; } setSyncTimer(now + 1000000); return(result); } // ###### Send KeppAlive message ############################################ EventHandlingResult ScriptingServer::sendKeepAliveMessage() { KeepAlive keepAlive; keepAlive.Header.Type = SPT_KEEPALIVE; keepAlive.Header.Flags = 0x00; keepAlive.Header.Length = htons(sizeof(keepAlive)); const ssize_t sent = rsp_sendmsg(RSerPoolSocketDescriptor, (const char*)&keepAlive, sizeof(keepAlive), 0, 0, htonl(PPID_SP), 0, 0, 0, 0); return( (sent == sizeof(keepAlive)) ? EHR_Okay : EHR_Abort ); } // ###### Handle KeppAliveAck message ####################################### EventHandlingResult ScriptingServer::handleKeepAliveAckMessage() { if(LastKeepAliveTimeStamp == 0) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Received unexpected KeepAliveAck message!\n", RSerPoolSocketDescriptor); return(EHR_Abort); } WaitingForKeepAliveAck = false; return(EHR_Okay); } // ###### Handle KeppAlive message ########################################## EventHandlingResult ScriptingServer::handleKeepAliveMessage() { KeepAliveAck keepAliveAck; keepAliveAck.Header.Type = SPT_KEEPALIVE_ACK; keepAliveAck.Header.Flags = 0x00; keepAliveAck.Header.Length = htons(sizeof(keepAliveAck)); keepAliveAck.Status = htonl(0); const ssize_t sent = rsp_sendmsg(RSerPoolSocketDescriptor, (const char*)&keepAliveAck, sizeof(keepAliveAck), 0, 0, htonl(PPID_SP), 0, 0, 0, Settings.TransmitTimeout); return( (sent == sizeof(keepAliveAck)) ? EHR_Okay : EHR_Abort ); } // ###### Handle message #################################################### EventHandlingResult ScriptingServer::handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { /* ====== Check message header ======================================== */ /* if(ntohl(ppid) != PPID_SP) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Received message has wrong PPID $%08x!\n", RSerPoolSocketDescriptor, ntohl(ppid)); return(EHR_Abort); } */ if(bufferSize < sizeof(struct ScriptingCommonHeader)) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Received message of %u bytes does not even contain header!\n", RSerPoolSocketDescriptor, (unsigned int)bufferSize); return(EHR_Abort); } const ScriptingCommonHeader* header = (const ScriptingCommonHeader*)buffer; if(bufferSize < ntohs(header->Length)) { printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Received message has %u bytes but %u bytes are expected!\n", RSerPoolSocketDescriptor, (unsigned int)bufferSize, ntohs(header->Length)); return(EHR_Abort); } // ====== Handle message ================================================= switch(State) { case SS_Upload: if(header->Type == SPT_UPLOAD) { return(handleUploadMessage((const Upload*)buffer)); } else if(header->Type == SPT_ENVIRONMENT) { return(handleEnvironmentMessage((const Environment*)buffer)); } break; case SS_Working: if(header->Type == SPT_KEEPALIVE) { return(handleKeepAliveMessage()); } else if(header->Type == SPT_KEEPALIVE_ACK) { return(handleKeepAliveAckMessage()); } break; default: // All messages here are unexpected! break; } // ====== Print unexpected message ======================================= printTimeStamp(stdlog); fprintf(stdlog, "S%04d: Received unexpected message $%02x in state #%u!\n", RSerPoolSocketDescriptor, header->Type, State); fputs("Dump: ", stdlog); unsigned char* ptr = (unsigned char*)buffer; for(size_t i = 0;i < bufferSize;i++) { fprintf(stdlog, "%02x ", ptr[i]); } fputs("\n", stdlog); return(EHR_Abort); } rsplib-3.0.1/rsplib/fdcallback.c0000664000175000017500000001110111777021056013436 00000000000000/* $Id: fdcallback.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "fdcallback.h" /* ###### Constructor #################################################### */ void fdCallbackNew(struct FDCallback* fdCallback, struct Dispatcher* dispatcher, const int fd, const unsigned int eventMask, void (*callback)(struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData), void* userData) { struct SimpleRedBlackTreeNode* result; CHECK((fd >= 0) && (fd < (int)FD_SETSIZE)); simpleRedBlackTreeNodeNew(&fdCallback->Node); fdCallback->Master = dispatcher; fdCallback->FD = fd; fdCallback->EventMask = eventMask; fdCallback->Callback = callback; fdCallback->UserData = userData; fdCallback->SelectTimeStamp = getMicroTime(); dispatcherLock(fdCallback->Master); result = simpleRedBlackTreeInsert(&fdCallback->Master->FDCallbackStorage, &fdCallback->Node); CHECK(result == &fdCallback->Node); fdCallback->Master->AddRemove = true; dispatcherUnlock(fdCallback->Master); } /* ###### Destructor ##################################################### */ void fdCallbackDelete(struct FDCallback* fdCallback) { struct SimpleRedBlackTreeNode* result; CHECK(simpleRedBlackTreeNodeIsLinked(&fdCallback->Node)); dispatcherLock(fdCallback->Master); result = simpleRedBlackTreeRemove(&fdCallback->Master->FDCallbackStorage, &fdCallback->Node); CHECK(result == &fdCallback->Node); fdCallback->Master->AddRemove = true; dispatcherUnlock(fdCallback->Master); simpleRedBlackTreeNodeDelete(&fdCallback->Node); fdCallback->Master = NULL; fdCallback->FD = -1; fdCallback->EventMask = 0; fdCallback->Callback = NULL; fdCallback->UserData = NULL; fdCallback->SelectTimeStamp = 0; } /* ###### Update event mask ############################################## */ void fdCallbackUpdate(struct FDCallback* fdCallback, const unsigned int eventMask) { dispatcherLock(fdCallback->Master); fdCallback->EventMask = eventMask; dispatcherUnlock(fdCallback->Master); } /* ###### FDCallback comparision function ################################ */ int fdCallbackComparison(const void* fdCallbackPtr1, const void* fdCallbackPtr2) { const struct FDCallback* fdCallback1 = (const struct FDCallback*)fdCallbackPtr1; const struct FDCallback* fdCallback2 = (const struct FDCallback*)fdCallbackPtr2; if(fdCallback1->FD < fdCallback2->FD) { return(-1); } else if(fdCallback1->FD > fdCallback2->FD) { return(1); } return(0); } rsplib-3.0.1/rsplib/fdcallback.h0000664000175000017500000000755711777021056013467 00000000000000/* $Id: fdcallback.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef FDCALLBACK_H #define FDCALLBACK_H #include "tdtypes.h" #include "dispatcher.h" #include "simpleredblacktree.h" #include #ifdef __cplusplus extern "C" { #endif enum FDCallbackEvents { FDCE_Read = POLLIN, FDCE_Write = POLLOUT, FDCE_Exception = POLLPRI|POLLHUP }; struct FDCallback { struct SimpleRedBlackTreeNode Node; struct Dispatcher* Master; int FD; unsigned int EventMask; void (*Callback)(struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData); unsigned long long SelectTimeStamp; void* UserData; }; /** * Constructor. * * @param fdCallback FDCallback. * @param dispatcher Dispatcher. * @param fd File descriptor. * @param eventMask Event mask. * @param callback Callback. * @param userData User data for callback. */ void fdCallbackNew(struct FDCallback* fdCallback, struct Dispatcher* dispatcher, const int fd, const unsigned int eventMask, void (*callback)(struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData), void* userData); /** * Destructor. * * @param fdCallback FDCallback. */ void fdCallbackDelete(struct FDCallback* fdCallback); /** * Update event mask. * * @param fdCallback FDCallback. * @param */ void fdCallbackUpdate(struct FDCallback* fdCallback, const unsigned int eventMask); /** * FDCallback comparision function. * * @param fdCallbackPtr1 Pointer to FDCallback 1. * @param fdCallbackPtr2 Pointer to FDCallback 2. * @return Comparision result. */ int fdCallbackComparison(const void* fdCallbackPtr1, const void* fdCallbackPtr2); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolusernode-template.h0000664000175000017500000000766511777021056015750 00000000000000/* $Id: poolusernode-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolUsermanagement.h #endif #include "timestamphashtable.h" #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PoolUserNode) { struct STN_CLASSNAME PoolUserListStorageNode; int ConnectionSocketDescriptor; sctp_assoc_t ConnectionAssocID; unsigned long long LastUpdateTimeStamp; struct TimeStampHashTable* HandleResolutionHash; struct TimeStampHashTable* EndpointUnreachableHash; }; void ST_CLASS(poolUserStorageNodePrint)(const void* nodePtr, FILE* fd); int ST_CLASS(poolUserStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2); struct ST_CLASS(PoolUserNode)* ST_CLASS(getPoolUserNodeFromPoolUserListStorageNode)(void* node); void ST_CLASS(poolUserNodeNew)(struct ST_CLASS(PoolUserNode)* poolUserNode, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID); void ST_CLASS(poolUserNodeDelete)(struct ST_CLASS(PoolUserNode)* poolUserNode); void ST_CLASS(poolUserNodeGetDescription)( const struct ST_CLASS(PoolUserNode)* poolUserNode, char* buffer, const size_t bufferSize, const unsigned int fields); void ST_CLASS(poolUserNodePrint)(const struct ST_CLASS(PoolUserNode)* poolUserNode, FILE* fd, const unsigned int fields); double ST_CLASS(poolUserNodeNoteHandleResolution)(struct ST_CLASS(PoolUserNode)* poolUserNode, const struct PoolHandle* poolHandle, const unsigned long long now, const size_t buckets, const size_t maxEntries); double ST_CLASS(poolUserNodeNoteEndpointUnreachable)(struct ST_CLASS(PoolUserNode)* poolUserNode, const struct PoolHandle* poolHandle, const PoolElementIdentifierType peIdentifier, const unsigned long long now, const size_t buckets, const size_t maxEntries); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/pooluserlist-template.h0000664000175000017500000000751311777021056015766 00000000000000/* $Id: pooluserlist-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PoolUserList) { struct ST_CLASSNAME PoolUserListStorage; }; void ST_CLASS(poolUserListNew)(struct ST_CLASS(PoolUserList)* poolUserList); void ST_CLASS(poolUserListDelete)(struct ST_CLASS(PoolUserList)* poolUserList); size_t ST_CLASS(poolUserListGetPoolUserNodes)( const struct ST_CLASS(PoolUserList)* poolUserList); struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListGetFirstPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList); struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListGetNextPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)* poolUserListNode); void ST_CLASS(poolUserListGetDescription)(struct ST_CLASS(PoolUserList)* poolUserList, char* buffer, const size_t bufferSize); void ST_CLASS(poolUserListVerify)(struct ST_CLASS(PoolUserList)* poolUserList); void ST_CLASS(poolUserListPrint)(struct ST_CLASS(PoolUserList)* poolUserList, FILE* fd, const unsigned int fields); void ST_CLASS(poolUserListClear)(struct ST_CLASS(PoolUserList)* poolUserList); struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListAddPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)* poolUserListNode); struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListAddOrUpdatePoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)** poolUserNode); struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListFindPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID); struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListRemovePoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)* poolUserListNode); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/fractalpooluser.10000664000175000017500000001552411777021056014530 00000000000000.\" $Id: fractalpooluser.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt FractalPoolUser 1 .Os FractalGenerator Pool User .\" ###### Name ############################################################# .Sh NAME .Nm fractalpooluser .Nd RSerPool Client (PU) for the Fractal Generator service .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm fractalpooluser .Op Fl identifier=PU_identifier .Op Fl poolhandle=pool_handle .Op Fl configdir=directory .Op Fl caption=window_title .Op Fl width=pixels .Op Fl height=pixels .Op Fl threads=threads .Op Fl sendtimeout=milliseconds .Op Fl recvtimeout=milliseconds .Op Fl interimagetime=seconds .Op Fl imagestorageprefix=file_name_prefix .Op Fl colormarks .Op Fl nocolormarks .Op Fl sessions .Op Fl nosessions .Op Fl cspinterval=milliseconds .Op Fl cspserver=address:port .Op Fl logappend=filename .Op Fl logcolor=on|off .Op Fl logfile=filename .Op Fl loglevel=0-9 .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm fractalpooluser is a Reliable Server Pooling (RSerPool) pool user (PU) for the FractalGenerator service. It uses a Qt-based X11 GUI. .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It Fl identifier=PU_identifier Sets a fixed PU identifier. Handle with care! .It Fl poolhandle=pool_handle Sets the PH to a non-default value; otherwise, the default setting is "FractalGeneratorPool". .\" ====== Service parameters =============================================== .It Service Parameters: .Bl -tag -width indent .It Fl configdir=directory Sets a directory to look for FGP config files. From all FGP files (pattern: *.fgp) in this directory, random files are selected for the calculation of requests. .It Fl caption=window_title Sets the output window title. .It Fl width=pixels Sets the width of the window and the images to be calculated. .It Fl height=pixels Sets the height of the window and the images to be calculated. .It Fl threads=threads Sets the number of parallel sessions to use for processing of each image. .It Fl sendtimeout=milliseconds Sets the transmission timeout. .It Fl recvtimeout=milliseconds Sets the receive timeout. .It Fl interimagetime=seconds Sets the pause time between two image calculations in seconds. .It Fl imagestorageprefix=file_name_prefix Sets a file name prefix for saving the calculated images. If set, each successfully calculated image is stored to the given location as PNG file, with a 6-digit file number added. .It Fl colormarks Turns on color change on session failover. .It Fl nocolormarks Turns off color change on session failover. .It Fl sessions Turns on color change between different sessions. .It Fl nosessions Turns off color change between different sessions. .El .\" ====== ASAP Protocol ==================================================== .It ASAP Protocol Parameters: .Bl -tag -width indent .It Fl registrar=address:port Adds a static PR entry into the Registrar Table. It is possible to add multiple entries. .It Fl registrarannouncetimeout=milliseconds Sets the timeout for ASAP announces via multicast. .It Fl registrarconnecttimeout=milliseconds Sets the timeout for ASAP connection establishment. .It Fl registrarconnectmaxtrials=trials Sets the maximum number of ASAP connection establishment trials. .It Fl registrarrequesttimeout=milliseconds Sets the timeout for ASAP requests. .It Fl registrarresponsetimeout=milliseconds Sets the timeout for waiting to receive ASAP responses. .It Fl registrarrequestmaxtrials=trials Sets the maximum number of ASAP request trials. .El .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspserver=address:port Sets the address of a CSP monitor server. By default, the content of the environment variable CSP_SERVER is used. If not defined, no CSP status reports will be sent. .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. By default, the content of the environment variable CSP_INTERVAL is used. If not defined, no CSP status reports will be sent. .El .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm fractalpooluser uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/fractalpooluser.h0000664000175000017500000002077711777021056014625 00000000000000/* $Id: fractalpooluser.h 2696 2012-07-03 20:56:06Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef FRACTALPOOLUSER_H #define FRACTALPOOLUSER_H // #define FRACTALPOOLUSER_USE_KDE #ifdef FRACTALPOOLUSER_USE_KDE #include #include #endif #include #include #include #include #include #include "tdtypes.h" #include "rserpool.h" #include "fractalgeneratorpackets.h" class FractalPU; class ImageDisplay : public QWidget { Q_OBJECT // ====== Public methods ================================================= public: ImageDisplay(QWidget* parent = NULL); ~ImageDisplay(); void initialize(const size_t width, const size_t height); void destroy(); inline unsigned int getPixel(const size_t x, const size_t y) { return(Image->pixel(x, y)); } inline void setPixel(const size_t x, const size_t y, const unsigned int color) { if( (y < (size_t)Image->height()) && (x < (size_t)Image->width()) ) { Image->setPixel(x, y, color); } } inline void fillRect(const size_t x, const size_t y, const size_t width, const size_t height, const unsigned int color) { if(Image) { for(size_t j = y;j < min(y + height, (size_t)Image->height());j++) { for(size_t i = x;i < min(x + width, (size_t)Image->width());i++) { Image->setPixel(i, j, color); } } } } inline void lock() { ImageMutex.lock(); } inline void unlock() { ImageMutex.unlock(); } inline QImage* getImage() { return(Image); } // ====== Protected methods ============================================== protected: void paintEvent(QPaintEvent* paintEvent); // ====== Private data =================================================== private: QImage* Image; QMutex ImageMutex; }; class FractalCalculationThread : public QThread { Q_OBJECT // ====== Public methods ================================================= public: FractalCalculationThread(FractalPU* fractalPU, const unsigned int threadID, const size_t viewX, const size_t viewY, const size_t viewWidth, const size_t viewHeight, const bool showStatus); virtual void run(); inline bool getSuccess() const { return(Success); } // ====== Signals ======================================================== signals: void updateImage(int start, int end); void updateStatus(QString statusText); // ====== Private methods and data ======================================= private: enum DataStatus { Okay = 0, Finalizer = 1, Invalid = 2 }; bool sendParameterMessage(); DataStatus handleDataMessage(const FGPData* data, const size_t size); unsigned int ThreadID; FractalPU* Master; size_t ViewX; size_t ViewY; size_t ViewWidth; size_t ViewHeight; bool ShowStatus; bool Success; int Session; size_t PoolElementUsages; }; class FractalPU #ifdef FRACTALPOOLUSER_USE_KDE : public KMainWindow #else : public QMainWindow #endif { Q_OBJECT // ====== Definitions ==================================================== public: enum FractalGeneratorStatus { FPU_Shutdown = 0, FPU_CalcAborted = 1, FPU_CalcInProgress = 2, FPU_Completed = 3 }; struct FractalParameter { unsigned int Width; unsigned int Height; unsigned int MaxIterations; unsigned int AlgorithmID; double C1Real; double C1Imag; double C2Real; double C2Imag; double N; }; // ====== Public methods ================================================= public: FractalPU(const size_t width, const size_t height, const char* poolHandle, const char* configDirName, const unsigned int sendTimeout, const unsigned int recvTimeout, const unsigned int interImageTime, const char* imageStoragePrefix, const bool showFailoverMarks, const bool showSessions, const size_t threads, QWidget* parent = NULL); ~FractalPU(); inline const FractalParameter& getParameters() const { return(Parameter); } inline void setStatus(const FractalGeneratorStatus status) { StatusMutex.lock(); Status = status; StatusMutex.unlock(); } inline const FractalGeneratorStatus getStatus() { StatusMutex.lock(); const FractalGeneratorStatus status = Status; StatusMutex.unlock(); return(status); } inline ImageDisplay* getDisplay() { return(Display); } inline bool getShowFailoverMarks() const { return(ShowFailoverMarks); } inline bool getShowSessions() const { return(ShowSessions); } inline size_t getRun() const { return(Run); } inline const unsigned char* getPoolHandle() const { return(PoolHandle); } inline size_t getPoolHandleSize() const { return(PoolHandleSize); } inline unsigned int getSendTimeout() const { return(SendTimeout); } inline unsigned int getRecvTimeout() const { return(RecvTimeout); } // ====== Protected methods ============================================== protected: void closeEvent(QCloseEvent* closeEvent); void resizeEvent(QResizeEvent* resizeEvent); void contextMenuEvent(QContextMenuEvent* event); // ====== Slots ========================================================== public slots: void countDown(); void startNextJob(); void handleCompletedSession(); void redrawImage(int start, int end); void changeStatus(QString statusText); void changeShowFailoverMarks(bool checked); void changeShowSessions(bool checked); void changeThreads(QAction* action); void restart(); void about(); void quit(); // ====== Private methods and data ======================================= private: void getNextParameters(); FractalCalculationThread** CalculationThreadArray; FractalParameter Parameter; FractalGeneratorStatus Status; QMutex StatusMutex; ImageDisplay* Display; unsigned int Run; const unsigned char* PoolHandle; size_t PoolHandleSize; unsigned int SendTimeout; unsigned int RecvTimeout; unsigned int InterImageTime; bool ShowFailoverMarks; bool ShowSessions; unsigned int ConfiguredThreads; unsigned int CurrentThreads; unsigned int RunningThreads; QStringList ConfigList; QDir ConfigDirectory; QString ImageStoragePrefix; unsigned int FileNumber; unsigned int CountDown; bool Success; }; #endif rsplib-3.0.1/rsplib/rspbasicmode.c0000664000175000017500000006246311777021056014064 00000000000000/* $Id: rspbasicmode.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "rserpool-internals.h" #include "rserpoolsocket.h" #include "dispatcher.h" #include "identifierbitmap.h" #include "netutilities.h" #include "threadsafety.h" #include "rserpoolmessage.h" #include "asapinstance.h" #include "leaflinkedredblacktree.h" #include "loglevel.h" #include "debug.h" #ifdef ENABLE_CSP #include "componentstatusreporter.h" #endif #include struct ASAPInstance* gAsapInstance = NULL; struct Dispatcher gDispatcher; static struct ThreadSafety gThreadSafety; #ifdef ENABLE_CSP struct CSPReporter* gCSPReporter = NULL; #endif struct SimpleRedBlackTree gRSerPoolSocketSet; struct ThreadSafety gRSerPoolSocketSetMutex; struct IdentifierBitmap* gRSerPoolSocketAllocationBitmap; static void lock(struct Dispatcher* dispatcher, void* userData); static void unlock(struct Dispatcher* dispatcher, void* userData); static bool addStaticRegistrars(struct RegistrarTable* registrarTable, struct rsp_info* info); #ifdef ENABLE_CSP static size_t getComponentStatus(void* userData, uint64_t* identifier, struct ComponentAssociation** caeArray, char* statusText, char* componentAddress, double* workload); extern size_t getSessionStatus(struct ComponentAssociation** caeArray, uint64_t* identifier, char* statusText, char* componentAddress, double* workload, const int registrarSocket, const RegistrarIdentifierType registrarID, const unsigned long long registrarConnectionTimeStamp); #endif /* ###### Initialize RSerPool API Library ################################ */ int rsp_initialize(struct rsp_info* info) { static const char* buildDate = __DATE__; static const char* buildTime = __TIME__; struct rsp_info emptyinfo; struct TagItem tagList[16]; size_t i; beginLogging(); if(info == NULL) { memset(&emptyinfo, 0, sizeof(emptyinfo)); info = &emptyinfo; } /* ====== Check for problems ========================================== */ if(gAsapInstance != NULL) { LOG_WARNING fputs("rsplib is already initialized\n", stdlog); LOG_END return(0); } /* ====== Handle tuning parameters ==================================== */ i = 0; if(info->ri_registrar_announce_timeout > 0) { tagList[i].Tag = TAG_RspLib_RegistrarAnnounceTimeout; tagList[i].Data = (tagdata_t)1000 * (tagdata_t)info->ri_registrar_announce_timeout; i++; } if(info->ri_registrar_connect_timeout > 0) { tagList[i].Tag = TAG_RspLib_RegistrarConnectTimeout; tagList[i].Data = (tagdata_t)1000 * (tagdata_t)info->ri_registrar_connect_timeout; i++; } if(info->ri_registrar_connect_max_trials > 0) { tagList[i].Tag = TAG_RspLib_RegistrarConnectMaxTrials; tagList[i].Data = (tagdata_t)info->ri_registrar_connect_max_trials; i++; } if(info->ri_registrar_request_timeout > 0) { tagList[i].Tag = TAG_RspLib_RegistrarRequestTimeout; tagList[i].Data = (tagdata_t)1000 * (tagdata_t)info->ri_registrar_request_timeout; i++; } if(info->ri_registrar_response_timeout > 0) { tagList[i].Tag = TAG_RspLib_RegistrarResponseTimeout; tagList[i].Data = (tagdata_t)1000 * (tagdata_t)info->ri_registrar_response_timeout; i++; } if(info->ri_registrar_request_max_trials > 0) { tagList[i].Tag = TAG_RspLib_RegistrarRequestMaxTrials; tagList[i].Data = (tagdata_t)info->ri_registrar_request_max_trials; i++; } tagList[i].Tag = TAG_DONE; /* ====== Initialize ASAP instance ==================================== */ threadSafetyNew(&gThreadSafety, "RsplibInstance"); threadSafetyNew(&gRSerPoolSocketSetMutex, "gRSerPoolSocketSet"); dispatcherNew(&gDispatcher, lock, unlock, NULL); gAsapInstance = asapInstanceNew(&gDispatcher, (info->ri_disable_autoconfig == 0), (union sockaddr_union*)info->ri_registrar_announce, (struct TagItem*)&tagList); if(gAsapInstance) { if(info) { info->ri_version = RSPLIB_VERSION; info->ri_revision = RSPLIB_REVISION; info->ri_build_date = buildDate; info->ri_build_time = buildTime; } /* ====== Initialize session storage =============================== */ simpleRedBlackTreeNew(&gRSerPoolSocketSet, rserpoolSocketPrint, rserpoolSocketComparison); /* ====== Initialize RSerPool Socket descriptor storage ============ */ simpleRedBlackTreeNew(&gRSerPoolSocketSet, rserpoolSocketPrint, rserpoolSocketComparison); simpleRedBlackTreeNew(&gRSerPoolSocketSet, rserpoolSocketPrint, rserpoolSocketComparison); gRSerPoolSocketAllocationBitmap = identifierBitmapNew(FD_SETSIZE); if(gRSerPoolSocketAllocationBitmap != NULL) { /* ====== Map stdin, stdout, stderr file descriptors ============ */ CHECK(rsp_mapsocket(STDOUT_FILENO, STDOUT_FILENO) == STDOUT_FILENO); CHECK(rsp_mapsocket(STDIN_FILENO, STDIN_FILENO) == STDIN_FILENO); CHECK(rsp_mapsocket(STDERR_FILENO, STDERR_FILENO) == STDERR_FILENO); /* ====== Add static registrars ================================= */ if( (info == NULL) || (addStaticRegistrars(gAsapInstance->RegistrarSet, info)) ) { #ifdef ENABLE_CSP /* ====== Initialize Component Status Reporter =============== */ if((info) && (info->ri_csp_interval > 0) && (info->ri_csp_server != NULL)) { gCSPReporter = (struct CSPReporter*)malloc(sizeof(struct CSPReporter)); if(gCSPReporter) { cspReporterNew(gCSPReporter, &gDispatcher, info->ri_csp_identifier, info->ri_csp_server, 1000UL * info->ri_csp_interval, getComponentStatus, NULL); } } #endif /* ====== Start the main loop thread ========================= */ if(asapInstanceStartThread(gAsapInstance)) { LOG_NOTE fputs("rsplib is ready\n", stdlog); LOG_END return(0); } } else { LOG_ERROR fputs("Failed to add static registrars\n", stdlog); LOG_END return(-1); } } asapInstanceDelete(gAsapInstance); gAsapInstance = NULL; dispatcherDelete(&gDispatcher); } return(-1); } /* ###### Lock mutex ###################################################### */ static void lock(struct Dispatcher* dispatcher, void* userData) { threadSafetyLock(&gThreadSafety); } /* ###### Unlock mutex #################################################### */ static void unlock(struct Dispatcher* dispatcher, void* userData) { threadSafetyUnlock(&gThreadSafety); } /* ###### Clean-up RSerPool API Library ################################## */ void rsp_cleanup() { int i; if(gAsapInstance) { /* ====== Clean-up RSerPool Socket descriptor storage ============== */ CHECK(rsp_unmapsocket(STDOUT_FILENO) == 0); CHECK(rsp_unmapsocket(STDIN_FILENO) == 0); CHECK(rsp_unmapsocket(STDERR_FILENO) == 0); for(i = 1;i < (int)FD_SETSIZE;i++) { if(identifierBitmapAllocateSpecificID(gRSerPoolSocketAllocationBitmap, i) < 0) { LOG_WARNING fprintf(stdlog, "RSerPool socket %d is still registered -> closing it\n", i); LOG_END rsp_close(i); } } /* ====== Clean-up ASAP Instance, CSP Reported and Dispatcher ====== */ asapInstanceDelete(gAsapInstance); gAsapInstance = NULL; /* ====== Remove Component Status Reporter ========================= */ #ifdef ENABLE_CSP if(gCSPReporter) { cspReporterDelete(gCSPReporter); free(gCSPReporter); gCSPReporter = NULL; } #endif /* ====== Remove Dispatcher ======================================== */ dispatcherDelete(&gDispatcher); threadSafetyDelete(&gRSerPoolSocketSetMutex); threadSafetyDelete(&gThreadSafety); /* ====== Remove socket set ======================================== */ simpleRedBlackTreeDelete(&gRSerPoolSocketSet); identifierBitmapDelete(gRSerPoolSocketAllocationBitmap); gRSerPoolSocketAllocationBitmap = NULL; } finishLogging(); } /* ###### Add list of static registrars ################################## */ static bool addStaticRegistrars(struct RegistrarTable* registrarTable, struct rsp_info* info) { char transportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* transportAddressBlock = (struct TransportAddressBlock*)&transportAddressBlockBuffer; union sockaddr_union* addressArray; struct rsp_registrar_info* registrarInfo; int result; registrarInfo = info->ri_registrars; result = true; while((registrarInfo) && (result == true)) { addressArray = unpack_sockaddr(registrarInfo->rri_addr, registrarInfo->rri_addrs); if(addressArray) { transportAddressBlockNew(transportAddressBlock, IPPROTO_SCTP, getPort((struct sockaddr*)&addressArray[0]), 0, addressArray, registrarInfo->rri_addrs, MAX_PE_TRANSPORTADDRESSES); result = (registrarTableAddStaticEntry(registrarTable, transportAddressBlock) == RSPERR_OKAY); free(addressArray); } else { LOG_ERROR fputs("Unpacking sockaddr array failed\n", stdlog); LOG_END result = false; } registrarInfo = registrarInfo->rri_next; } return(result); } /* ###### Convert pool element node to rsp_addrinfo structure ############ */ static int poolElementNodeToAddrInfo(const struct ST_CLASS(PoolElementNode)* poolElementNode, struct rsp_addrinfo** rspAddrInfo) { int result = REAI_MEMORY; char* ptr; size_t i; *rspAddrInfo = (struct rsp_addrinfo*)malloc(sizeof(struct rsp_addrinfo)); if(rspAddrInfo != NULL) { (*rspAddrInfo)->ai_next = NULL; (*rspAddrInfo)->ai_pe_id = poolElementNode->Identifier; (*rspAddrInfo)->ai_family = poolElementNode->UserTransport->AddressArray[0].sa.sa_family; (*rspAddrInfo)->ai_protocol = poolElementNode->UserTransport->Protocol; switch(poolElementNode->UserTransport->Protocol) { case IPPROTO_SCTP: (*rspAddrInfo)->ai_socktype = SOCK_STREAM; break; case IPPROTO_TCP: (*rspAddrInfo)->ai_socktype = SOCK_STREAM; break; default: (*rspAddrInfo)->ai_socktype = SOCK_DGRAM; break; } (*rspAddrInfo)->ai_addrlen = sizeof(union sockaddr_union); (*rspAddrInfo)->ai_addrs = poolElementNode->UserTransport->Addresses; (*rspAddrInfo)->ai_addr = (struct sockaddr*)malloc((*rspAddrInfo)->ai_addrs * sizeof(union sockaddr_union)); if((*rspAddrInfo)->ai_addr != NULL) { result = 0; ptr = (char*)(*rspAddrInfo)->ai_addr; for(i = 0;i < poolElementNode->UserTransport->Addresses;i++) { memcpy((void*)ptr, (void*)&poolElementNode->UserTransport->AddressArray[i], sizeof(union sockaddr_union)); if (poolElementNode->UserTransport->AddressArray[i].sa.sa_family == AF_INET6) (*rspAddrInfo)->ai_family = AF_INET6; switch(poolElementNode->UserTransport->AddressArray[i].sa.sa_family) { case AF_INET: ptr = (char*)((long)ptr + (long)sizeof(struct sockaddr_in)); break; case AF_INET6: ptr = (char*)((long)ptr + (long)sizeof(struct sockaddr_in6)); break; default: LOG_ERROR fprintf(stdlog, "Bad address type #%d\n", poolElementNode->UserTransport->AddressArray[i].sa.sa_family); LOG_END_FATAL result = REAI_FAMILY; break; } } } else { free(*rspAddrInfo); *rspAddrInfo = NULL; result = REAI_MEMORY; } } return(result); } // ###### Conversion function from PoolElementNode to rsp_addrinfo ####### */ static unsigned int convertPoolElementNode( const struct ST_CLASS(PoolElementNode)* poolElementNode, void* ptr) { return(poolElementNodeToAddrInfo(poolElementNode, (struct rsp_addrinfo**)ptr)); } /* ###### Handle resolution ############################################## */ int rsp_getaddrinfo_tags(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo** rspAddrInfo, const size_t items, const unsigned int staleCacheValue, struct TagItem* tags) { struct PoolHandle myPoolHandle; void* addrInfoArray[MAX_MAX_HANDLE_RESOLUTION_ITEMS]; size_t addrInfos; unsigned int hresResult; int result; size_t n; *rspAddrInfo = NULL; if(gAsapInstance) { poolHandleNew(&myPoolHandle, poolHandle, poolHandleSize); addrInfos = max(1, min((size_t)items, MAX_MAX_HANDLE_RESOLUTION_ITEMS)); hresResult = asapInstanceHandleResolution( gAsapInstance, &myPoolHandle, (void**)&addrInfoArray, &addrInfos, convertPoolElementNode, 1000ULL * staleCacheValue); if(hresResult == RSPERR_OKAY) { if(addrInfos > 0) { for(n = 0;n < addrInfos - 1;n++) { ((struct rsp_addrinfo*)addrInfoArray[n])->ai_next = (struct rsp_addrinfo*)addrInfoArray[n + 1]; } *rspAddrInfo = (struct rsp_addrinfo*)addrInfoArray[0]; } return(addrInfos); } else { if(hresResult == RSPERR_NOT_FOUND) { result = REAI_NONAME; } else { result = REAI_SYSTEM; } } } else { LOG_ERROR fputs("rsplib is not initialized\n", stdlog); LOG_END result = REAI_SYSTEM; } return(result); } /* ###### Handle resolution ############################################## */ int rsp_getaddrinfo(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo** rspAddrInfo, const size_t items, const unsigned int staleCacheValue) { return(rsp_getaddrinfo_tags(poolHandle, poolHandleSize, rspAddrInfo, items, staleCacheValue, NULL)); } /* ###### Free endpoint address array #################################### */ void rsp_freeaddrinfo(struct rsp_addrinfo* rspAddrInfo) { struct rsp_addrinfo* next; while(rspAddrInfo != NULL) { next = rspAddrInfo->ai_next; if(rspAddrInfo->ai_addr) { free(rspAddrInfo->ai_addr); rspAddrInfo->ai_addr = NULL; } free(rspAddrInfo); rspAddrInfo = next; } } /* ###### Register pool element ########################################## */ unsigned int rsp_pe_registration_tags(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo* rspAddrInfo, const struct rsp_loadinfo* rspLoadInfo, const unsigned int registrationLife, const int flags, struct TagItem* tags) { struct PoolHandle myPoolHandle; struct ST_CLASS(PoolElementNode) myPoolElementNode; struct PoolPolicySettings myPolicySettings; char myTransportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* myTransportAddressBlock = (struct TransportAddressBlock*)&myTransportAddressBlockBuffer; union sockaddr_union* unpackedAddrs; unsigned int result; if(gAsapInstance) { if(rspAddrInfo->ai_pe_id == UNDEFINED_POOL_ELEMENT_IDENTIFIER) { rspAddrInfo->ai_pe_id = getPoolElementIdentifier(); } poolHandleNew(&myPoolHandle, poolHandle, poolHandleSize); poolPolicySettingsNew(&myPolicySettings); myPolicySettings.PolicyType = rspLoadInfo->rli_policy; myPolicySettings.Weight = rspLoadInfo->rli_weight; myPolicySettings.WeightDPF = rspLoadInfo->rli_weight_dpf; myPolicySettings.Load = rspLoadInfo->rli_load; myPolicySettings.LoadDegradation = rspLoadInfo->rli_load_degradation; myPolicySettings.LoadDPF = rspLoadInfo->rli_load_dpf; unpackedAddrs = unpack_sockaddr(rspAddrInfo->ai_addr, rspAddrInfo->ai_addrs); if(unpackedAddrs != NULL) { transportAddressBlockNew(myTransportAddressBlock, rspAddrInfo->ai_protocol, getPort((struct sockaddr*)rspAddrInfo->ai_addr), (flags & REGF_CONTROLCHANNEL) ? TABF_CONTROLCHANNEL : 0, unpackedAddrs, rspAddrInfo->ai_addrs, MAX_PE_TRANSPORTADDRESSES); ST_CLASS(poolElementNodeNew)( &myPoolElementNode, rspAddrInfo->ai_pe_id, gAsapInstance->RegistrarIdentifier, registrationLife, &myPolicySettings, myTransportAddressBlock, NULL, -1, 0); LOG_ACTION fputs("Trying to register ", stdlog); ST_CLASS(poolElementNodePrint)(&myPoolElementNode, stdlog, PENPO_FULL); fputs(" to pool ", stdlog); poolHandlePrint(&myPoolHandle, stdlog); fputs("...\n", stdlog); LOG_END result = asapInstanceRegister(gAsapInstance, &myPoolHandle, &myPoolElementNode, !(flags & REGF_DONTWAIT), (flags & REGF_DAEMONMODE)); free(unpackedAddrs); } else { result = RSPERR_OUT_OF_MEMORY; } } else { LOG_ERROR fputs("rsplib is not initialized\n", stdlog); LOG_END result = RSPERR_NOT_INITIALIZED; } return(result); } /* ###### Register pool element ########################################## */ unsigned int rsp_pe_registration(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo* rspAddrInfo, const struct rsp_loadinfo* rspLoadInfo, const unsigned int registrationLife, const int flags) { return(rsp_pe_registration_tags(poolHandle, poolHandleSize, rspAddrInfo, rspLoadInfo, registrationLife, flags, NULL)); } /* ###### Deregister pool element ######################################## */ unsigned int rsp_pe_deregistration_tags(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier, const int flags, struct TagItem* tags) { struct PoolHandle myPoolHandle; unsigned int result; if(gAsapInstance) { poolHandleNew(&myPoolHandle, poolHandle, poolHandleSize); result = asapInstanceDeregister(gAsapInstance, &myPoolHandle, identifier, !(flags & DEREGF_DONTWAIT)); } else { result = RSPERR_NOT_INITIALIZED; LOG_ERROR fputs("rsplib is not initialized\n", stdlog); LOG_END } return(result); } /* ###### Deregister pool element ######################################## */ unsigned int rsp_pe_deregistration(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier, const int flags) { return(rsp_pe_deregistration_tags(poolHandle, poolHandleSize, identifier, flags, NULL)); } /* ###### Report pool element failure #################################### */ unsigned int rsp_pe_failure_tags(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier, struct TagItem* tags) { struct PoolHandle myPoolHandle; unsigned int result; if(gAsapInstance) { poolHandleNew(&myPoolHandle, poolHandle, poolHandleSize); result = asapInstanceReportFailure(gAsapInstance, &myPoolHandle, identifier); } else { result = RSPERR_NOT_INITIALIZED; LOG_ERROR fputs("rsplib is not initialized\n", stdlog); LOG_END } return(result); } /* ###### Report pool element failure #################################### */ unsigned int rsp_pe_failure(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier) { return(rsp_pe_failure_tags(poolHandle, poolHandleSize, identifier, NULL)); } /* ###### Get policy name by type number ################################# */ const char* rsp_getpolicybytype(unsigned int policyType) { const struct ST_CLASS(PoolPolicy)* poolPolicy = ST_CLASS(poolPolicyGetPoolPolicyByType)(policyType); if(poolPolicy) { return(poolPolicy->Name); } return(NULL); } /* ###### Get policy type by name ######################################## */ unsigned int rsp_getpolicybyname(const char* policyName) { const struct ST_CLASS(PoolPolicy)* poolPolicy = ST_CLASS(poolPolicyGetPoolPolicyByName)(policyName); if(poolPolicy) { return(poolPolicy->Type); } return(PPT_UNDEFINED); } #ifdef ENABLE_CSP /* ###### Get PE/PU status ############################################### */ static size_t getComponentStatus(void* userData, uint64_t* identifier, struct ComponentAssociation** caeArray, char* statusText, char* componentAddress, double* workload) { return(getSessionStatus(caeArray, identifier, statusText, componentAddress, workload, gAsapInstance->RegistrarSocket, gAsapInstance->RegistrarIdentifier, gAsapInstance->RegistrarConnectionTimeStamp)); } #endif rsplib-3.0.1/rsplib/peerlistnode-template.h0000664000175000017500000001110311777021056015705 00000000000000/* $Id: peerlistnode-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use peerListmanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PeerList); struct TakeoverProcess; /* Flags */ #define PLNF_STATIC 0 #define PLNF_DYNAMIC (1 << 0) #define PLNF_FROM_PEER (1 << 1) #define PLNF_NEW (1 << 15) /* Indicates that registration added new node */ /* Status */ #define PLNS_LISTSYNC (1 << 0) /* Peer List synchronization in progress */ #define PLNS_HTSYNC (1 << 1) /* Handle Table synchronization in progress */ #define PLNS_MENTOR (1 << 2) /* Synchronization with mentor PR */ /* Timer Codes */ #define PLNT_MAX_TIME_LAST_HEARD 3000 #define PLNT_MAX_TIME_NO_RESPONSE 3001 #define PLNT_TAKEOVER_EXPIRY 3002 struct ST_CLASS(PeerListNode) { struct STN_CLASSNAME PeerListIndexStorageNode; struct STN_CLASSNAME PeerListTimerStorageNode; struct ST_CLASS(PeerList)* OwnerPeerList; RegistrarIdentifierType Identifier; unsigned int Flags; unsigned long long LastUpdateTimeStamp; unsigned int TimerCode; unsigned long long TimerTimeStamp; HandlespaceChecksumAccumulatorType OwnershipChecksum; unsigned int Status; RegistrarIdentifierType TakeoverRegistrarID; struct TakeoverProcess* TakeoverProcess; struct TransportAddressBlock* AddressBlock; void* UserData; }; void ST_CLASS(peerListIndexStorageNodePrint)(const void* nodePtr, FILE* fd); int ST_CLASS(peerListIndexStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2); void ST_CLASS(peerListTimerStorageNodePrint)(const void* nodePtr, FILE* fd); int ST_CLASS(peerListTimerStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2); struct ST_CLASS(PeerListNode)* ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(void* node); struct ST_CLASS(PeerListNode)* ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)(void* node); void ST_CLASS(peerListNodeNew)(struct ST_CLASS(PeerListNode)* peerListNode, const RegistrarIdentifierType identifier, const unsigned int flags, struct TransportAddressBlock* transportAddressBlock); void ST_CLASS(peerListNodeDelete)(struct ST_CLASS(PeerListNode)* peerListNode); int ST_CLASS(peerListNodeUpdate)(struct ST_CLASS(PeerListNode)* peerListNode, const struct ST_CLASS(PeerListNode)* source); HandlespaceChecksumType ST_CLASS(peerListNodeGetOwnershipChecksum)( const struct ST_CLASS(PeerListNode)* peerListNode); void ST_CLASS(peerListNodeGetDescription)( const struct ST_CLASS(PeerListNode)* peerListNode, char* buffer, const size_t bufferSize, const unsigned int fields); void ST_CLASS(peerListNodePrint)(const struct ST_CLASS(PeerListNode)* peerListNode, FILE* fd, const unsigned int fields); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/peerlistmanagement-template_impl.h0000664000175000017500000006670511777021056020137 00000000000000/* $Id: peerlistmanagement-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* #define PRINT_SELECTION_RESULT */ /* #define PRINT_GETNAMETABLE_RESULT */ static void ST_CLASS(peerListManagementPoolNodeUpdateNotification)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, enum PoolNodeUpdateAction updateAction, HandlespaceChecksumAccumulatorType preUpdateChecksum, RegistrarIdentifierType preUpdateHomeRegistrar, void* userData); /* ###### Initialize ##################################################### */ void ST_CLASS(peerListManagementNew)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType ownRegistrarIdentifier, void (*peerListNodeUserDataDisposer)(struct ST_CLASS(PeerListNode)* peerListNode, void* userData), void* disposerUserData) { ST_CLASS(peerListNew)(&peerListManagement->List, ownRegistrarIdentifier); peerListManagement->NewPeerListNode = NULL; peerListManagement->Handlespace = poolHandlespaceManagement; peerListManagement->PeerListNodeUserDataDisposer = peerListNodeUserDataDisposer; peerListManagement->DisposerUserData = disposerUserData; if(peerListManagement->Handlespace) { peerListManagement->Handlespace->PoolNodeUpdateNotification = ST_CLASS(peerListManagementPoolNodeUpdateNotification); peerListManagement->Handlespace->NotificationUserData = (void*)peerListManagement; } } /* ###### PeerListNode deallocation helper ############################ */ static void ST_CLASS(peerListManagementPeerListNodeDisposer)(void* arg1, void* arg2) { struct ST_CLASS(PeerListNode)* peerListNode = (struct ST_CLASS(PeerListNode)*)arg1; struct ST_CLASS(PeerListManagement)* peerListManagement = (struct ST_CLASS(PeerListManagement)*)arg2; if((peerListNode->UserData) && (peerListManagement->PeerListNodeUserDataDisposer)) { peerListManagement->PeerListNodeUserDataDisposer(peerListNode, peerListManagement->DisposerUserData); peerListNode->UserData = NULL; } if(peerListNode->TakeoverProcess) { free(peerListNode->TakeoverProcess); peerListNode->TakeoverProcess = NULL; } transportAddressBlockDelete(peerListNode->AddressBlock); free(peerListNode->AddressBlock); peerListNode->AddressBlock = NULL; free(peerListNode); } /* ###### Invalidate ##################################################### */ void ST_CLASS(peerListManagementDelete)( struct ST_CLASS(PeerListManagement)* peerListManagement) { if(peerListManagement->Handlespace) { peerListManagement->Handlespace->PoolNodeUpdateNotification = NULL; peerListManagement->Handlespace->NotificationUserData = NULL; } peerListManagement->Handlespace = NULL; ST_CLASS(peerListManagementClear)(peerListManagement); if(peerListManagement->NewPeerListNode) { ST_CLASS(peerListNodeDelete)(peerListManagement->NewPeerListNode); free(peerListManagement->NewPeerListNode); peerListManagement->NewPeerListNode = NULL; } ST_CLASS(peerListDelete)(&peerListManagement->List); } /* ###### Clear handlespace ################################################ */ void ST_CLASS(peerListManagementClear)( struct ST_CLASS(PeerListManagement)* peerListManagement) { ST_CLASS(peerListClear)(&peerListManagement->List, ST_CLASS(peerListManagementPeerListNodeDisposer), (void*)peerListManagement); } /* ###### Print peer list ################################################ */ void ST_CLASS(peerListManagementPrint)( struct ST_CLASS(PeerListManagement)* peerListManagement, FILE* fd, const unsigned int fields) { ST_CLASS(peerListPrint)(&peerListManagement->List, fd, fields); } /* ###### Insert PeerListNode into timer storage ######################### */ void ST_CLASS(peerListManagementActivateTimer)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode, const unsigned int timerCode, const unsigned long long timerTimeStamp) { return(ST_CLASS(peerListActivateTimer)( &peerListManagement->List, peerListNode, timerCode, timerTimeStamp)); } /* ###### Remove PeerListNode from timer storage ######################### */ void ST_CLASS(peerListManagementDeactivateTimer)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode) { return(ST_CLASS(peerListDeactivateTimer)( &peerListManagement->List, peerListNode)); } /* ###### Get textual description ######################################## */ void ST_CLASS(peerListManagementGetDescription)( struct ST_CLASS(PeerListManagement)* peerListManagement, char* buffer, const size_t bufferSize) { return(ST_CLASS(peerListGetDescription)(&peerListManagement->List, buffer, bufferSize)); } /* ###### Verify structures ############################################## */ void ST_CLASS(peerListManagementVerify)( struct ST_CLASS(PeerListManagement)* peerListManagement) { ST_CLASS(peerListVerify)(&peerListManagement->List); } /* ###### Get number of pools ############################################ */ size_t ST_CLASS(peerListManagementGetPeers)( const struct ST_CLASS(PeerListManagement)* peerListManagement) { return(ST_CLASS(peerListGetPeerListNodes)(&peerListManagement->List)); } /* ###### Get first PeerListNode from Index ############################## */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement) { return(ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(&peerListManagement->List)); } /* ###### Get last PeerListNode from Index ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetLastPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement) { return(ST_CLASS(peerListGetLastPeerListNodeFromIndexStorage)(&peerListManagement->List)); } /* ###### Get next PeerListNode from Index ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetNextPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode) { return(ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)(&peerListManagement->List, peerListNode)); } /* ###### Get previous PeerListNode from Index ########################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetPrevPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode) { return(ST_CLASS(peerListGetPrevPeerListNodeFromIndexStorage)(&peerListManagement->List, peerListNode)); } /* ###### Get first PeerListNode from Timer ############################## */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetFirstPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement) { return(ST_CLASS(peerListGetFirstPeerListNodeFromTimerStorage)(&peerListManagement->List)); } /* ###### Get last PeerListNode from Timer ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetLastPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement) { return(ST_CLASS(peerListGetLastPeerListNodeFromTimerStorage)(&peerListManagement->List)); } /* ###### Get next PeerListNode from Timer ############################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetNextPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode) { return(ST_CLASS(peerListGetNextPeerListNodeFromTimerStorage)(&peerListManagement->List, peerListNode)); } /* ###### Get previous PeerListNode from Timer ########################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetPrevPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode) { return(ST_CLASS(peerListGetPrevPeerListNodeFromTimerStorage)(&peerListManagement->List, peerListNode)); } /* ###### Find PeerListNode ############################################## */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementFindPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock) { return(ST_CLASS(peerListFindPeerListNode)( &peerListManagement->List, registrarIdentifier, transportAddressBlock)); } /* ###### Find nearest prev PeerListNode ################################# */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementFindNearestPrevPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock) { return(ST_CLASS(peerListFindNearestPrevPeerListNode)( &peerListManagement->List, registrarIdentifier, transportAddressBlock)); } /* ###### Find nearest next PeerListNode ################################# */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementFindNearestNextPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock) { return(ST_CLASS(peerListFindNearestNextPeerListNode)( &peerListManagement->List, registrarIdentifier, transportAddressBlock)); } /* ###### Get random PeerListNode ######################################## */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetRandomPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement) { return(ST_CLASS(peerListGetRandomPeerListNode)(&peerListManagement->List)); } /* ###### Get next timer time stamp ###################################### */ unsigned long long ST_CLASS(peerListManagementGetNextTimerTimeStamp)( struct ST_CLASS(PeerListManagement)* peerListManagement) { const struct ST_CLASS(PeerListNode)* nextTimer = ST_CLASS(peerListGetFirstPeerListNodeFromTimerStorage)( &peerListManagement->List); if(nextTimer != NULL) { return(nextTimer->TimerTimeStamp); } return(~0); } /* ###### Registration ################################################### */ unsigned int ST_CLASS(peerListManagementRegisterPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const unsigned int flags, const struct TransportAddressBlock* transportAddressBlock, const unsigned long long currentTimeStamp, struct ST_CLASS(PeerListNode)** peerListNode) { struct ST_CLASS(PeerListNode) updatedPeerListNode; struct TransportAddressBlock* userTransport; unsigned int errorCode; bool newPeer; /* ====== Handle dynamic entry ======================================== */ if(flags & PLNF_DYNAMIC) { if(registrarIdentifier == UNDEFINED_REGISTRAR_IDENTIFIER) { /* A dynamic entry must have a valid registrar ID! */ return(RSPERR_INVALID_ID); } if( ( ((*peerListNode = ST_CLASS(peerListManagementFindPeerListNode)(peerListManagement, registrarIdentifier, NULL)) != NULL) || ((*peerListNode = ST_CLASS(peerListManagementFindPeerListNode)(peerListManagement, UNDEFINED_REGISTRAR_IDENTIFIER, transportAddressBlock)) != NULL) ) && (!((*peerListNode)->Flags & PLNF_DYNAMIC)) ) { /* ====== Update of static entry ================================ */ newPeer = ((*peerListNode)->Identifier == UNDEFINED_REGISTRAR_IDENTIFIER); ST_CLASS(peerListNodeNew)(&updatedPeerListNode, registrarIdentifier, (*peerListNode)->Flags, /* PLNF_DYNAMIC is never set here! */ (*peerListNode)->AddressBlock); ST_CLASS(peerListUpdatePeerListNode)(&peerListManagement->List, *peerListNode, &updatedPeerListNode, &errorCode); if(newPeer) { /* New peer, because ID 0 changed to actual ID! */ (*peerListNode)->Flags |= PLNF_NEW; } if(peerListManagement->Handlespace) { (*peerListNode)->OwnershipChecksum = ST_CLASS(poolHandlespaceNodeComputeOwnershipChecksum)( &peerListManagement->Handlespace->Handlespace, (*peerListNode)->Identifier); } return(errorCode); } } /* ====== Handle static entry ========================================= */ else { if(registrarIdentifier != UNDEFINED_REGISTRAR_IDENTIFIER) { /* A new static entry must have an undefined registrar ID! */ return(RSPERR_INVALID_ID); } } /* ====== Create or update entry ====================================== */ if(peerListManagement->NewPeerListNode == NULL) { peerListManagement->NewPeerListNode = (struct ST_CLASS(PeerListNode)*)malloc(sizeof(struct ST_CLASS(PeerListNode))); if(peerListManagement->NewPeerListNode == NULL) { return(RSPERR_OUT_OF_MEMORY); } } /* Attention: transportAddressBlock MUST be copied when this PeerListNode is added! */ ST_CLASS(peerListNodeNew)(peerListManagement->NewPeerListNode, registrarIdentifier, flags, (struct TransportAddressBlock*)transportAddressBlock); *peerListNode = ST_CLASS(peerListAddOrUpdatePeerListNode)(&peerListManagement->List, &peerListManagement->NewPeerListNode, &errorCode); if(errorCode == RSPERR_OKAY) { (*peerListNode)->LastUpdateTimeStamp = currentTimeStamp; userTransport = transportAddressBlockDuplicate(transportAddressBlock); if(userTransport != NULL) { if((*peerListNode)->AddressBlock != transportAddressBlock) { /* see comment above! */ transportAddressBlockDelete((*peerListNode)->AddressBlock); free((*peerListNode)->AddressBlock); } (*peerListNode)->AddressBlock = userTransport; if(peerListManagement->Handlespace) { (*peerListNode)->OwnershipChecksum = ST_CLASS(poolHandlespaceNodeComputeOwnershipChecksum)( &peerListManagement->Handlespace->Handlespace, (*peerListNode)->Identifier); } } else { ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( peerListManagement, *peerListNode); *peerListNode = NULL; errorCode = RSPERR_OUT_OF_MEMORY; } } #ifdef VERIFY ST_CLASS(peerListVerify)(&peerListManagement->List); #endif return(errorCode); } /* ###### Deregistration ################################################# */ unsigned int ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode) { unsigned int errorCode; void* userDataBackup; if(STN_METHOD(IsLinked)(&peerListNode->PeerListTimerStorageNode)) { ST_CLASS(peerListDeactivateTimer)(&peerListManagement->List, peerListNode); } /* Check, if a static entry with ID should be turned into ID-less entry only */ if((!(peerListNode->Flags & PLNF_DYNAMIC)) && (peerListNode->Identifier != UNDEFINED_REGISTRAR_IDENTIFIER)) { ST_CLASS(peerListRemovePeerListNode)(&peerListManagement->List, peerListNode); ST_CLASS(peerListNodeDelete)(peerListNode); /* Note: AddressBlock and Flags remain valid here! */ userDataBackup = peerListNode->UserData; /* Preserve user data! */ ST_CLASS(peerListNodeNew)(peerListNode, 0, peerListNode->Flags, peerListNode->AddressBlock); peerListNode->UserData = userDataBackup; ST_CLASS(peerListAddPeerListNode)(&peerListManagement->List, peerListNode, &errorCode); CHECK(errorCode == RSPERR_OKAY); } else { ST_CLASS(peerListRemovePeerListNode)(&peerListManagement->List, peerListNode); ST_CLASS(peerListNodeDelete)(peerListNode); ST_CLASS(peerListManagementPeerListNodeDisposer)(peerListNode, peerListManagement); } #ifdef VERIFY ST_CLASS(peerListVerify)(&peerListManagement->List); #endif return(RSPERR_OKAY); } /* ###### Deregistration ################################################# */ unsigned int ST_CLASS(peerListManagementDeregisterPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock) { struct ST_CLASS(PeerListNode)* peerListNode = ST_CLASS(peerListFindPeerListNode)( &peerListManagement->List, registrarIdentifier, transportAddressBlock); if(peerListNode) { return(ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( peerListManagement, peerListNode)); } return(RSPERR_NOT_FOUND); } /* ###### Restart PE expiry timer to last update TS + expiry timeout ##### */ void ST_CLASS(peerListManagementRestartPeerListNodeExpiryTimer)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode, const unsigned long long expiryTimeout) { ST_CLASS(peerListDeactivateTimer)(&peerListManagement->List, peerListNode); ST_CLASS(peerListActivateTimer)(&peerListManagement->List, peerListNode, PLNT_MAX_TIME_NO_RESPONSE, peerListNode->LastUpdateTimeStamp + expiryTimeout); } /* ###### Purge handlespace from expired PE entries ######################## */ size_t ST_CLASS(peerListManagementPurgeExpiredPeerListNodes)( struct ST_CLASS(PeerListManagement)* peerListManagement, const unsigned long long currentTimeStamp) { struct ST_CLASS(PeerListNode)* peerListNode; struct ST_CLASS(PeerListNode)* nextPeerListNode; size_t purgedPeerLists = 0; peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromTimerStorage)(&peerListManagement->List); while(peerListNode != NULL) { nextPeerListNode = ST_CLASS(peerListGetNextPeerListNodeFromTimerStorage)(&peerListManagement->List, peerListNode); CHECK(peerListNode->TimerCode == PLNT_MAX_TIME_NO_RESPONSE); CHECK(STN_METHOD(IsLinked)(&peerListNode->PeerListTimerStorageNode)); if(peerListNode->TimerTimeStamp <= currentTimeStamp) { ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( peerListManagement, peerListNode); purgedPeerLists++; } else { /* No more relevant entries, since time list is sorted! */ break; } peerListNode = nextPeerListNode; } return(purgedPeerLists); } /* ###### PE update callback for checksum consistency with handlespace ### */ static void ST_CLASS(peerListManagementPoolNodeUpdateNotification)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, enum PoolNodeUpdateAction updateAction, HandlespaceChecksumAccumulatorType preUpdateChecksum, RegistrarIdentifierType preUpdateHomeRegistrar, void* userData) { struct ST_CLASS(PeerListManagement)* peerListManagement = (struct ST_CLASS(PeerListManagement)*)userData; RegistrarIdentifierType homeRegistrarIdentifier = poolElementNode->HomeRegistrarIdentifier; struct ST_CLASS(PeerListNode)* peerListNode; if(updateAction == PNUA_Create) { peerListNode = ST_CLASS(peerListManagementFindPeerListNode)(peerListManagement, homeRegistrarIdentifier, NULL); if(peerListNode) { peerListNode->OwnershipChecksum = handlespaceChecksumAdd(peerListNode->OwnershipChecksum, poolElementNode->Checksum); } } else if(updateAction == PNUA_Delete) { peerListNode = ST_CLASS(peerListManagementFindPeerListNode)(peerListManagement, homeRegistrarIdentifier, NULL); if(peerListNode) { peerListNode->OwnershipChecksum = handlespaceChecksumSub(peerListNode->OwnershipChecksum, poolElementNode->Checksum); } } else if(updateAction == PNUA_Update) { peerListNode = ST_CLASS(peerListManagementFindPeerListNode)(peerListManagement, preUpdateHomeRegistrar, NULL); if(peerListNode) { peerListNode->OwnershipChecksum = handlespaceChecksumSub(peerListNode->OwnershipChecksum, preUpdateChecksum); } peerListNode = ST_CLASS(peerListManagementFindPeerListNode)(peerListManagement, homeRegistrarIdentifier, NULL); if(peerListNode) { peerListNode->OwnershipChecksum = handlespaceChecksumAdd(peerListNode->OwnershipChecksum, poolElementNode->Checksum); } } } /* ###### Verify computed ownership checksums in handlespace ############# */ void ST_CLASS(peerListManagementVerifyChecksumsInHandlespace)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement) { struct ST_CLASS(PeerListNode)* peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(&peerListManagement->List); while(peerListNode != NULL) { if(peerListNode->Identifier != UNDEFINED_REGISTRAR_IDENTIFIER) { CHECK(peerListNode->OwnershipChecksum == ST_CLASS(poolHandlespaceNodeComputeOwnershipChecksum)( &poolHandlespaceManagement->Handlespace, peerListNode->Identifier)); } peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)(&peerListManagement->List, peerListNode); } } /* ###### Get better peer for PE ######################################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetUsefulPeerForPE)( struct ST_CLASS(PeerListManagement)* peerListManagement, const PoolElementIdentifierType peIdentifier) { struct ST_CLASS(PeerListNode)* bestPeerListNode = NULL; struct ST_CLASS(PeerListNode)* peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)(&peerListManagement->List); PoolElementIdentifierType bestMetric = peerListManagement->List.OwnIdentifier ^ peIdentifier; PoolElementIdentifierType metric; /* Current best metric is the own node. Only return other entry if it has a better metric! */ while(peerListNode != NULL) { metric = peerListNode->Identifier ^ peIdentifier; if( (peerListNode->Identifier != UNDEFINED_REGISTRAR_IDENTIFIER) && (metric > bestMetric) ) { bestPeerListNode = peerListNode; bestMetric = metric; } peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)(&peerListManagement->List, peerListNode); } return(bestPeerListNode); } rsplib-3.0.1/rsplib/poolnode-template_impl.h0000664000175000017500000005002511777021056016056 00000000000000/* $Id: poolnode-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* ###### Print ########################################################## */ void ST_CLASS(poolIndexStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PoolNode)* poolNode = (struct ST_CLASS(PoolNode)*)nodePtr; fprintf(fd, "\""); poolHandlePrint(&poolNode->Handle, fd); fprintf(fd, "\""); } /* ###### Comparison ##################################################### */ int ST_CLASS(poolIndexStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PoolNode)* poolNode1 = (struct ST_CLASS(PoolNode)*)nodePtr1; const struct ST_CLASS(PoolNode)* poolNode2 = (struct ST_CLASS(PoolNode)*)nodePtr2; return(poolHandleComparison(&poolNode1->Handle, &poolNode2->Handle)); } /* ###### Initialize ##################################################### */ void ST_CLASS(poolNodeNew)(struct ST_CLASS(PoolNode)* poolNode, const struct PoolHandle* poolHandle, const struct ST_CLASS(PoolPolicy)* poolPolicy, const int protocol, const int flags) { STN_METHOD(New)(&poolNode->PoolIndexStorageNode); poolHandleNew(&poolNode->Handle, poolHandle->Handle, poolHandle->Size); poolNode->Policy = poolPolicy; poolNode->Protocol = protocol; poolNode->Flags = flags; poolNode->GlobalSeqNumber = SeqNumberStart; poolNode->UserData = NULL; poolNode->OwnerPoolHandlespaceNode = NULL; ST_METHOD(New)(&poolNode->PoolElementSelectionStorage, ST_CLASS(poolElementSelectionStorageNodePrint), ST_CLASS(poolElementSelectionStorageNodeComparison)); ST_METHOD(New)(&poolNode->PoolElementIndexStorage, ST_CLASS(poolElementIndexStorageNodePrint), ST_CLASS(poolElementIndexStorageNodeComparison)); } /* ###### Invalidate ##################################################### */ void ST_CLASS(poolNodeDelete)(struct ST_CLASS(PoolNode)* poolNode) { CHECK(!STN_METHOD(IsLinked)(&poolNode->PoolIndexStorageNode)); CHECK(ST_METHOD(IsEmpty)(&poolNode->PoolElementSelectionStorage)); poolHandleDelete(&poolNode->Handle); ST_METHOD(Delete)(&poolNode->PoolElementSelectionStorage); ST_METHOD(Delete)(&poolNode->PoolElementIndexStorage); poolNode->Protocol = 0; poolNode->UserData = NULL; } /* ###### Get textual description ######################################## */ void ST_CLASS(poolNodeGetDescription)(const struct ST_CLASS(PoolNode)* poolNode, char* buffer, const size_t bufferSize) { char poolHandleDescription[256]; char poolDescription[128]; const char* protocol = "(unknown)"; switch(poolNode->Protocol) { case IPPROTO_SCTP: protocol = "SCTP"; break; case IPPROTO_TCP: protocol = "TCP"; break; case IPPROTO_UDP: protocol = "UDP"; break; } poolHandleGetDescription(&poolNode->Handle, poolHandleDescription, sizeof(poolHandleDescription)); safestrcpy(buffer, "Pool \"", bufferSize); safestrcat(buffer, poolHandleDescription, bufferSize); snprintf((char*)&poolDescription, sizeof(poolDescription), "\", Policy \"%s\", Protocol %s, CtrlCh=%s: (%u nodes)", poolNode->Policy->Name, protocol, ((poolNode->Flags & PNF_CONTROLCHANNEL) ? "yes" : "no"), (unsigned int)ST_CLASS(poolNodeGetPoolElementNodes)(poolNode)); safestrcat(buffer, poolDescription, bufferSize); } /* ###### Print by Index and Selection ################################### */ void ST_CLASS(poolNodePrint)(const struct ST_CLASS(PoolNode)* poolNode, FILE* fd, const unsigned int fields) { const struct ST_CLASS(PoolElementNode)* poolElementNode; char poolNodeDescription[512]; size_t i; ST_CLASS(poolNodeGetDescription)(poolNode, (char*)&poolNodeDescription, sizeof(poolNodeDescription)); fputs(poolNodeDescription, fd); fputs("\n", fd); if(fields & PNPO_INDEX) { fputs(" +-- Index:\n", fd); i = 1; poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)((struct ST_CLASS(PoolNode)*)poolNode); while(poolElementNode != NULL) { fprintf(fd, " - idx:#%04u: ", (unsigned int)i++); ST_CLASS(poolElementNodePrint)(poolElementNode, fd, fields); fputs("\n", fd); poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromIndex)((struct ST_CLASS(PoolNode)*)poolNode, (struct ST_CLASS(PoolElementNode)*)poolElementNode); } } if(fields & PNPO_SELECTION) { fputs(" +-- Selection:\n", fd); i = 1; poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)((struct ST_CLASS(PoolNode)*)poolNode); while(poolElementNode != NULL) { fprintf(fd, " - sel:#%04u: ", (unsigned int)i++); ST_CLASS(poolElementNodePrint)(poolElementNode, fd, fields); fputs("\n", fd); poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromSelection)((struct ST_CLASS(PoolNode)*)poolNode, (struct ST_CLASS(PoolElementNode)*)poolElementNode); } } } /* ###### Clear ########################################################## */ void ST_CLASS(poolNodeClear)(struct ST_CLASS(PoolNode)* poolNode, void (*poolElementNodeDisposer)(void* poolElementNode, void* userData), void* userData) { struct ST_CLASS(PoolElementNode)* poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)(poolNode); while(poolElementNode != NULL) { if(poolNode->OwnerPoolHandlespaceNode) { ST_CLASS(poolHandlespaceNodeRemovePoolElementNode)(poolNode->OwnerPoolHandlespaceNode, poolElementNode); } else { ST_CLASS(poolNodeRemovePoolElementNode)(poolNode, poolElementNode); } ST_CLASS(poolElementNodeDelete)(poolElementNode); poolElementNodeDisposer(poolElementNode, userData); poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)(poolNode); } } /* ###### Check, if node may be inserted into pool ####################### */ unsigned int ST_CLASS(poolNodeCheckPoolElementNodeCompatibility)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { if(poolElementNode->Identifier == 0) { return(RSPERR_INVALID_ID); } if(poolNode->Protocol != poolElementNode->UserTransport->Protocol) { return(RSPERR_WRONG_PROTOCOL); } if(poolElementNode->RegistratorTransport) { if(poolElementNode->RegistratorTransport->Protocol != IPPROTO_SCTP) { return(RSPERR_INVALID_REGISTRATOR); } if(poolElementNode->RegistratorTransport->Flags & TABF_CONTROLCHANNEL) { return(RSPERR_INVALID_REGISTRATOR); } if((poolElementNode->RegistratorTransport->Addresses < 1) || (poolElementNode->RegistratorTransport->Addresses > MAX_PE_TRANSPORTADDRESSES)) { return(RSPERR_INVALID_REGISTRATOR); } if(poolElementNode->RegistratorTransport->Port == 0) { return(RSPERR_INVALID_REGISTRATOR); } } if((poolElementNode->UserTransport->Addresses < 1) || (poolElementNode->UserTransport->Addresses > MAX_PE_TRANSPORTADDRESSES)) { return(RSPERR_INVALID_ADDRESSES); } if(poolElementNode->UserTransport->Port == 0) { return(RSPERR_INVALID_ADDRESSES); } if(poolNode->Flags & PNF_CONTROLCHANNEL) { if(!poolElementNode->UserTransport->Flags & TABF_CONTROLCHANNEL) { return(RSPERR_WRONG_CONTROLCHANNEL_HANDLING); } } else { if(poolElementNode->UserTransport->Flags & TABF_CONTROLCHANNEL) { return(RSPERR_WRONG_CONTROLCHANNEL_HANDLING); } } if(!poolPolicySettingsIsValid(&poolElementNode->PolicySettings)) { return(RSPERR_INVALID_POOL_POLICY); } if(poolPolicySettingsAdapt(&poolElementNode->PolicySettings, poolNode->Policy->Type) == 0) { return(RSPERR_INCOMPATIBLE_POOL_POLICY); } return(RSPERR_OKAY); } /* ###### Get number of pool elements #################################### */ size_t ST_CLASS(poolNodeGetPoolElementNodes)( const struct ST_CLASS(PoolNode)* poolNode) { return(ST_METHOD(GetElements)(&poolNode->PoolElementIndexStorage)); } /* ###### Get first PoolElementNode from Index ########################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)( struct ST_CLASS(PoolNode)* poolNode) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&poolNode->PoolElementIndexStorage); if(node) { return(ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)(node)); } return(NULL); }; /* ###### Get next PoolElementNode from Index ############################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetNextPoolElementNodeFromIndex)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolNode->PoolElementIndexStorage, &poolElementNode->PoolElementIndexStorageNode); if(node) { return(ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)(node)); } return(NULL); } /* ###### Get first PoolElementNode from Selection ####################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&poolNode->PoolElementSelectionStorage); if(node) { return(ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)(node)); } return(NULL); }; /* ###### Get last PoolElementNode from Selection ######################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetLastPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode) { struct STN_CLASSNAME* node = ST_METHOD(GetLast)(&poolNode->PoolElementSelectionStorage); if(node) { return(ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)(node)); } return(NULL); }; /* ###### Get next PoolElementNode from Selection ######################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetNextPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolNode->PoolElementSelectionStorage, &poolElementNode->PoolElementSelectionStorageNode); if(node) { return(ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)(node)); } return(NULL); } /* ###### Get previous PoolElementNode from Selection #################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetPrevPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(GetPrev)(&poolNode->PoolElementSelectionStorage, &poolElementNode->PoolElementSelectionStorageNode); if(node) { return(ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)(node)); } return(NULL); } /* ###### Unlink PoolElementNode from Selection ########################## */ void ST_CLASS(poolNodeUnlinkPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node = ST_METHOD(Remove)(&poolNode->PoolElementSelectionStorage, &poolElementNode->PoolElementSelectionStorageNode); CHECK(node == &poolElementNode->PoolElementSelectionStorageNode); } /* ###### Link PoolElementNode into Selection ############################ */ void ST_CLASS(poolNodeLinkPoolElementNodeToSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* node; CHECK(poolPolicySettingsIsValid(&poolElementNode->PolicySettings)); if(poolNode->Policy->UpdatePoolElementNodeFunction) { (*poolNode->Policy->UpdatePoolElementNodeFunction)(poolElementNode); } node = ST_METHOD(Insert)(&poolNode->PoolElementSelectionStorage, &poolElementNode->PoolElementSelectionStorageNode); CHECK(node == &poolElementNode->PoolElementSelectionStorageNode); } /* ###### Add PoolElementNode ############################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeAddPoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode, unsigned int* errorCode) { struct STN_CLASSNAME* result; *errorCode = ST_CLASS(poolNodeCheckPoolElementNodeCompatibility)(poolNode, poolElementNode); if(*errorCode != RSPERR_OKAY) { return(NULL); } result = ST_METHOD(Insert)(&poolNode->PoolElementIndexStorage, &poolElementNode->PoolElementIndexStorageNode); if(result == &poolElementNode->PoolElementIndexStorageNode) { if((PoolElementSeqNumberType)(poolNode->GlobalSeqNumber + 1) < poolNode->GlobalSeqNumber) { ST_CLASS(poolNodeResequence)(poolNode); } poolElementNode->Flags |= PENF_UPDATED; poolElementNode->SeqNumber = poolNode->GlobalSeqNumber++; poolElementNode->VirtualCounter = 0; poolElementNode->RoundCounter = 0; poolElementNode->SelectionCounter = 0; poolElementNode->Degradation = 0; poolElementNode->OwnerPoolNode = poolNode; if(poolNode->Policy->InitializePoolElementNodeFunction) { poolNode->Policy->InitializePoolElementNodeFunction(poolElementNode); } ST_CLASS(poolNodeLinkPoolElementNodeToSelection)(poolNode, poolElementNode); *errorCode = RSPERR_OKAY; return(poolElementNode); } *errorCode = RSPERR_DUPLICATE_ID; return(ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)(result)); } /* ###### Update PoolElementNode ######################################### */ void ST_CLASS(poolNodeUpdatePoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const struct ST_CLASS(PoolElementNode)* source, unsigned int* errorCode) { *errorCode = ST_CLASS(poolNodeCheckPoolElementNodeCompatibility)(poolNode, poolElementNode); if(*errorCode == RSPERR_OKAY) { if(ST_CLASS(poolElementNodeUpdate)(poolElementNode, source)) { /* Policy information has changed. Now, the node has to be re-inserted (Selection only). Currently, the node's position may be incorrect now! */ ST_CLASS(poolNodeUnlinkPoolElementNodeFromSelection)(poolNode, poolElementNode); ST_CLASS(poolNodeLinkPoolElementNodeToSelection)(poolNode, poolElementNode); } } } /* ###### Find PoolElementNode ########################################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeFindPoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, const PoolElementIdentifierType identifier) { struct ST_CLASS(PoolElementNode) cmpElement; struct STN_CLASSNAME* result; cmpElement.Identifier = identifier; result = ST_METHOD(Find)(&poolNode->PoolElementIndexStorage, &cmpElement.PoolElementIndexStorageNode); if(result) { return(ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)(result)); } return(NULL); } /* ###### Find nearest next PoolElementNode ############################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeFindNearestNextPoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, const PoolElementIdentifierType identifier) { struct ST_CLASS(PoolElementNode) cmpElement; struct STN_CLASSNAME* result; cmpElement.Identifier = identifier; result = ST_METHOD(GetNearestNext)(&poolNode->PoolElementIndexStorage, &cmpElement.PoolElementIndexStorageNode); if(result) { return(ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)(result)); } return(NULL); } /* ###### Remove PoolElementNode ############################################ */ struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeRemovePoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode) { struct STN_CLASSNAME* result; result = ST_METHOD(Remove)(&poolNode->PoolElementIndexStorage, &poolElementNode->PoolElementIndexStorageNode); CHECK(result == &poolElementNode->PoolElementIndexStorageNode); result = ST_METHOD(Remove)(&poolNode->PoolElementSelectionStorage, &poolElementNode->PoolElementSelectionStorageNode); CHECK(result != NULL); poolElementNode->OwnerPoolNode = NULL; return(poolElementNode); } /* ###### Resequence: Avoid sequence number wrap ######################### */ void ST_CLASS(poolNodeResequence)(struct ST_CLASS(PoolNode)* poolNode) { struct ST_CLASS(PoolElementNode)* poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)(poolNode); /* Reseqencing does not affect the sorting order of this storage: Let a < b: => a is stored before b => a gets new sequence number before b => new sequence number of a < new sequence number of b. */ poolNode->GlobalSeqNumber = 0; while(poolElementNode != NULL) { poolElementNode->SeqNumber = poolNode->GlobalSeqNumber++; poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromSelection)(poolNode, poolElementNode); } } rsplib-3.0.1/rsplib/environmentcache.h0000664000175000017500000000610711777021056014737 00000000000000/* $Id: environmentcache.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef ENVIRONMENTCACHE_H #define ENVIRONMENTCACHE_H #include "scriptingpackets.h" #include "mutex.h" #include #include #include class EnvironmentCache : public TDMutex { public: EnvironmentCache(); ~EnvironmentCache(); bool initializeCache(const char* directory, const unsigned long long maxSize, const unsigned int maxEntries, FILE* logFile); void cleanUp(); void print(FILE* fh); bool isInCache(const uint8_t* hash); bool storeInCache(const uint8_t* hash, const char* fileName, const unsigned long long size); bool copyFromCache(const uint8_t* hash, const char* fileName); private: static void printHash(FILE* fh, const uint8_t* hash); static unsigned long long copyFile(const char* source, const char* destination, uint8_t* hash); bool purge(unsigned long long bytesToBeFreed, unsigned int entriesToBeFreed); struct CacheEntry { inline bool operator()(const CacheEntry* e1, const CacheEntry* e2) { return(memcmp(&e1->Hash, &e2->Hash, sizeof(e1->Hash)) < 0); } uint8_t Hash[SE_HASH_SIZE]; unsigned long long Size; unsigned long long LastTimeUsed; std::string FileName; }; std::set Cache; std::string CacheDirectory; bool ClearCacheDirectory; unsigned long long TotalSize; FILE* LogFile; unsigned long long MaxSize; unsigned int MaxEntries; }; #endif rsplib-3.0.1/rsplib/randomizer.c0000664000175000017500000000731211777021056013553 00000000000000/* $Id: randomizer.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "randomizer.h" #include "timeutilities.h" #include #include #ifdef NDEBUG #undef min #undef max #include #else /* It is tried to use /dev/urandom as random source first, since it provides high-quality random numbers. If /dev/urandom is not available, use the clib's random() function with a seed given by the current microseconds time. However, the random number quality is much lower since the seed may be easily predictable. */ #define RS_TRY_DEVICE 0 #define RS_DEVICE 1 #define RS_CLIB 2 static int RandomSource = RS_TRY_DEVICE; static FILE* RandomDevice = NULL; #endif /* ###### Get 8-bit random value ######################################### */ uint8_t random8() { return((uint8_t)random32()); } /* ###### Get 16-bit random value ######################################## */ uint16_t random16() { return((uint16_t)random32()); } /* ###### Get 64-bit random value ######################################## */ uint64_t random64() { return( (((uint64_t)random32()) << 32) | (uint64_t)random32() ); } /* ###### Get 32-bit random value ######################################## */ uint32_t random32() { #ifdef NDEBUG #warning Using OMNeT++ random generator instead of time-seeded one! const double value = uniform(0.0, (double)0xffffffff); return((uint32_t)rint(value)); #else uint32_t number; switch(RandomSource) { case RS_DEVICE: if(fread(&number, sizeof(number), 1, RandomDevice) == 1) { return(number); } RandomSource = RS_CLIB; case RS_CLIB: return(random()); break; case RS_TRY_DEVICE: RandomDevice = fopen("/dev/urandom", "r"); if(RandomDevice != NULL) { if(fread(&number, sizeof(number), 1, RandomDevice) == 1) { srandom(number); RandomSource = RS_DEVICE; return(number); } fclose(RandomDevice); } RandomSource = RS_CLIB; srandom((unsigned int)(getMicroTime() & (uint64_t)0xffffffff)); break; } return(random()); #endif } /* ###### Get double random value ######################################## */ double randomDouble() { return( (double)random32() / (double)4294967296.0 ); } /* ###### Get exponential-distributed double random value ################ */ double randomExpDouble(const double p) { return( -p * log(randomDouble()) ); } rsplib-3.0.1/rsplib/randomizer.h0000664000175000017500000000404311777021056013556 00000000000000/* $Id: randomizer.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RANDOMIZER_H #define RANDOMIZER_H #include "tdtypes.h" #ifdef __cplusplus extern "C" { #endif /** * Get 8-bit random value. * * @return Random value. */ uint8_t random8(); /** * Get162-bit random value. * * @return Random value. */ uint16_t random16(); /** * Get 32-bit random value. * * @return Random value. */ uint32_t random32(); /** * Get 64-bit random value. * * @return Random value. */ uint64_t random64(); /** * Get double random value out of interval [0,1). * * @return Random value. */ double randomDouble(); /** * Get exponential-distributed random value. * * @param p Average value. * @return Random value. */ double randomExpDouble(const double p); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolusernode-template_impl.h0000664000175000017500000001675311777021056016767 00000000000000/* $Id: poolusernode-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* ###### Print ########################################################## */ void ST_CLASS(poolUserStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PoolUserNode)* poolUserNode = (struct ST_CLASS(PoolUserNode)*)nodePtr; ST_CLASS(poolUserNodePrint)(poolUserNode, fd, 0); } /* ###### Comparison ##################################################### */ int ST_CLASS(poolUserStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PoolUserNode)* node1 = (struct ST_CLASS(PoolUserNode)*)nodePtr1; const struct ST_CLASS(PoolUserNode)* node2 = (struct ST_CLASS(PoolUserNode)*)nodePtr2; /* Compare assoc IDs */ if(node1->ConnectionAssocID < node2->ConnectionAssocID) { return(-1); } else if(node1->ConnectionAssocID > node2->ConnectionAssocID) { return(1); } /* Compare socket descriptors */ if(node1->ConnectionSocketDescriptor < node2->ConnectionSocketDescriptor) { return(-1); } else if(node1->ConnectionSocketDescriptor > node2->ConnectionSocketDescriptor) { return(1); } return(0); } /* ###### Initialize ##################################################### */ void ST_CLASS(poolUserNodeNew)(struct ST_CLASS(PoolUserNode)* poolUserNode, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID) { STN_METHOD(New)(&poolUserNode->PoolUserListStorageNode); poolUserNode->ConnectionSocketDescriptor = connectionSocketDescriptor; poolUserNode->ConnectionAssocID = connectionAssocID; poolUserNode->HandleResolutionHash = NULL; poolUserNode->EndpointUnreachableHash = NULL; } /* ###### Invalidate ##################################################### */ void ST_CLASS(poolUserNodeDelete)(struct ST_CLASS(PoolUserNode)* poolUserNode) { CHECK(!STN_METHOD(IsLinked)(&poolUserNode->PoolUserListStorageNode)); poolUserNode->ConnectionSocketDescriptor = -1; poolUserNode->ConnectionAssocID = 0; if(poolUserNode->HandleResolutionHash) { timeStampHashTableDelete(poolUserNode->HandleResolutionHash); poolUserNode->HandleResolutionHash = NULL; } if(poolUserNode->EndpointUnreachableHash) { timeStampHashTableDelete(poolUserNode->EndpointUnreachableHash); poolUserNode->EndpointUnreachableHash = NULL; } } /* ###### Get PoolUserNode from given Index Node ######################### */ struct ST_CLASS(PoolUserNode)* ST_CLASS(getPoolUserNodeFromPoolUserListStorageNode)(void* node) { const struct ST_CLASS(PoolUserNode)* dummy = (struct ST_CLASS(PoolUserNode)*)node; long n = (long)node - ((long)&dummy->PoolUserListStorageNode - (long)dummy); return((struct ST_CLASS(PoolUserNode)*)n); } /* ###### Get textual description ######################################## */ void ST_CLASS(poolUserNodeGetDescription)( const struct ST_CLASS(PoolUserNode)* poolUserNode, char* buffer, const size_t bufferSize, const unsigned int fields) { snprintf(buffer, bufferSize, "PU %d/%u", poolUserNode->ConnectionSocketDescriptor, (unsigned int)poolUserNode->ConnectionAssocID); } /* ###### Print ########################################################## */ void ST_CLASS(poolUserNodePrint)(const struct ST_CLASS(PoolUserNode)* poolUserNode, FILE* fd, const unsigned int fields) { char poolUserNodeDescription[128]; ST_CLASS(poolUserNodeGetDescription)(poolUserNode, (char*)&poolUserNodeDescription, sizeof(poolUserNodeDescription), fields); fputs(poolUserNodeDescription, fd); } /* ###### Note a handle resolution into the hash table ################### */ double ST_CLASS(poolUserNodeNoteHandleResolution)(struct ST_CLASS(PoolUserNode)* poolUserNode, const struct PoolHandle* poolHandle, const unsigned long long now, const size_t buckets, const size_t maxEntries) { unsigned int hash; if(poolUserNode->HandleResolutionHash == NULL) { poolUserNode->HandleResolutionHash = timeStampHashTableNew(buckets, maxEntries); if(poolUserNode->HandleResolutionHash == NULL) { return(+9e9); } } hash = computePHPEHash(poolHandle, 0); timeStampHashTableAddTimeStamp(poolUserNode->HandleResolutionHash, hash, now); /* timeStampHashTablePrint(poolUserNode->HandleResolutionHash, stdout); */ return(timeStampHashTableGetRate(poolUserNode->HandleResolutionHash, hash)); } /* ###### Note a handle resolution into the hash table ################### */ double ST_CLASS(poolUserNodeNoteEndpointUnreachable)(struct ST_CLASS(PoolUserNode)* poolUserNode, const struct PoolHandle* poolHandle, const PoolElementIdentifierType peIdentifier, const unsigned long long now, const size_t buckets, const size_t maxEntries) { unsigned int hash; if(poolUserNode->EndpointUnreachableHash == NULL) { poolUserNode->EndpointUnreachableHash = timeStampHashTableNew(buckets, maxEntries); if(poolUserNode->EndpointUnreachableHash == NULL) { return(+9e9); } } hash = computePHPEHash(poolHandle, peIdentifier); timeStampHashTableAddTimeStamp(poolUserNode->EndpointUnreachableHash, hash, now); /* timeStampHashTablePrint(poolUserNode->EndpointUnreachableHash, stdout); */ return(timeStampHashTableGetRate(poolUserNode->EndpointUnreachableHash, hash)); } rsplib-3.0.1/rsplib/doublelinkedringlist.c0000664000175000017500000000677411777021056015631 00000000000000/* $Id: doublelinkedringlist.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "doublelinkedringlist.h" #include "debug.h" #ifdef __cplusplus extern "C" { #endif /* ###### Initialize ###################################################### */ void doubleLinkedRingListNodeNew(struct DoubleLinkedRingListNode* node) { node->Prev = NULL; node->Next = NULL; } /* ###### Invalidate ###################################################### */ void doubleLinkedRingListNodeDelete(struct DoubleLinkedRingListNode* node) { node->Prev = NULL; node->Next = NULL; } /* ###### Initialize ###################################################### */ void doubleLinkedRingListNew(struct DoubleLinkedRingList* list) { list->Node.Prev = &list->Node; list->Node.Next = &list->Node; list->Head = &list->Node; } /* ###### Invalidate ###################################################### */ void doubleLinkedRingListDelete(struct DoubleLinkedRingList* list) { list->Head = NULL; list->Node.Prev = NULL; list->Node.Next = NULL; } /* ###### Insert node after given node #################################### */ void doubleLinkedRingListAddAfter(struct DoubleLinkedRingListNode* after, struct DoubleLinkedRingListNode* node) { node->Next = after->Next; node->Prev = after; after->Next->Prev = node; after->Next = node; } /* ###### Insert node at head ############################################# */ void doubleLinkedRingListAddHead(struct DoubleLinkedRingList* list, struct DoubleLinkedRingListNode* node) { doubleLinkedRingListAddAfter(&list->Node, node); } /* ###### Insert node at tail ############################################# */ void doubleLinkedRingListAddTail(struct DoubleLinkedRingList* list, struct DoubleLinkedRingListNode* node) { doubleLinkedRingListAddAfter(list->Node.Prev, node); } /* ###### Remove node ##################################################### */ void doubleLinkedRingListRemNode(struct DoubleLinkedRingListNode* node) { node->Prev->Next = node->Next; node->Next->Prev = node->Prev; node->Prev = NULL; node->Next = NULL; } #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/doublelinkedringlist.h0000664000175000017500000000475711777021056015635 00000000000000/* $Id: doublelinkedringlist.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef DOUBLELINKEDRINGLIST_H #define DOUBLELINKEDRINGLIST_H #include #include "debug.h" #ifdef __cplusplus extern "C" { #endif struct DoubleLinkedRingListNode { struct DoubleLinkedRingListNode* Prev; struct DoubleLinkedRingListNode* Next; }; void doubleLinkedRingListNodeNew(struct DoubleLinkedRingListNode* node); void doubleLinkedRingListNodeDelete(struct DoubleLinkedRingListNode* node); struct DoubleLinkedRingList { struct DoubleLinkedRingListNode Node; struct DoubleLinkedRingListNode* Head; }; void doubleLinkedRingListNew(struct DoubleLinkedRingList* list); void doubleLinkedRingListDelete(struct DoubleLinkedRingList* list); void doubleLinkedRingListAddAfter(struct DoubleLinkedRingListNode* after, struct DoubleLinkedRingListNode* node); void doubleLinkedRingListAddHead(struct DoubleLinkedRingList* list, struct DoubleLinkedRingListNode* node); void doubleLinkedRingListAddTail(struct DoubleLinkedRingList* list, struct DoubleLinkedRingListNode* node); void doubleLinkedRingListRemNode(struct DoubleLinkedRingListNode* node); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/fractalgeneratorpackets.h0000664000175000017500000000556611777021056016315 00000000000000/* $Id: fractalgeneratorpackets.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef FRACTALGENERATORPACKETS_H #define FRACTALGENERATORPACKETS_H #include "tdtypes.h" #include "netdouble.h" #define PPID_FGP 32 /* old value: 0x29097601 */ #define FGPT_PARAMETER 0x01 #define FGPT_DATA 0x02 struct FGPCommonHeader { uint8_t Type; uint8_t Flags; uint16_t Length; } __attribute__((packed)); #define FGPA_MANDELBROT 1 #define FGPA_MANDELBROTN 2 struct FGPParameter { FGPCommonHeader Header; uint32_t Width; uint32_t Height; uint32_t MaxIterations; uint32_t AlgorithmID; network_double_t C1Real; network_double_t C1Imag; network_double_t C2Real; network_double_t C2Imag; network_double_t N; } __attribute__((packed)); #define FGD_MAX_POINTS 324 struct FGPData { FGPCommonHeader Header; uint32_t StartX; uint32_t StartY; uint32_t Points; uint32_t Buffer[FGD_MAX_POINTS]; } __attribute__((packed)); /** * Calculate size of FGP data message for given amount of points. * * @param points Number of points. * @return Message size. */ inline size_t getFGPDataSize(const size_t points) { struct FGPData fgpData; return(((long)&fgpData.Buffer - (long)&fgpData) + sizeof(uint32_t) * points); } #define FGP_COOKIE_ID "" struct FGPCookie { char ID[8]; FGPParameter Parameter; uint32_t CurrentX; uint32_t CurrentY; } __attribute__((packed)); struct FractalGeneratorStatus { struct FGPParameter Parameter; uint32_t CurrentX; uint32_t CurrentY; } __attribute__((packed)); #endif rsplib-3.0.1/rsplib/asapinstance.c0000664000175000017500000017565611777021056014073 00000000000000/* $Id: asapinstance.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it 1113and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "rserpool-internals.h" #include "loglevel.h" #include "asapinstance.h" #include "rserpoolmessage.h" #include "asapinterthreadmessage.h" #include "timeutilities.h" #include "netutilities.h" #include static void asapInstanceConfigure(struct ASAPInstance* asapInstance, struct TagItem* tags); static void asapInstanceNotifyMainLoop(struct ASAPInstance* asapInstance); static void* asapInstanceMainLoop(void* args); static void asapInstanceHandleRegistrarConnectionEvent( struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData); static void asapInstanceHandleEndpointKeepAlive( struct ASAPInstance* asapInstance, struct RSerPoolMessage* message, int fd); static void asapInstanceDisconnectFromRegistrar( struct ASAPInstance* asapInstance, bool sendAbort); static void asapInstanceHandleRegistrarTimeout(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); /* ###### Constructor #################################################### */ struct ASAPInstance* asapInstanceNew(struct Dispatcher* dispatcher, const bool enableAutoConfig, const union sockaddr_union* registrarAnnounceAddress, struct TagItem* tags) { struct ASAPInstance* asapInstance = NULL; struct sctp_event_subscribe sctpEvents; int autoCloseTimeout; if(dispatcher != NULL) { asapInstance = (struct ASAPInstance*)malloc(sizeof(struct ASAPInstance)); if(asapInstance != NULL) { /* ====== Initialize ASAP Instance structure ==================== */ interThreadMessagePortNew(&asapInstance->MainLoopPort); asapInstance->StateMachine = dispatcher; asapInstance->MainLoopPipe[0] = -1; asapInstance->MainLoopPipe[1] = -1; asapInstance->MainLoopThread = 0; asapInstance->MainLoopShutdown = false; asapInstance->LastAITM = NULL; asapInstance->RegistrarMessageBuffer = NULL; asapInstance->RegistrarHuntMessageBuffer = NULL; asapInstance->RegistrarSet = NULL; asapInstance->RegistrarConnectionTimeStamp = 0; asapInstance->RegistrarHuntSocket = -1; asapInstance->RegistrarSocket = -1; asapInstance->RegistrarIdentifier = 0; asapInstanceConfigure(asapInstance, tags); timerNew(&asapInstance->RegistrarTimeoutTimer, asapInstance->StateMachine, asapInstanceHandleRegistrarTimeout, asapInstance); /* ====== Initialize PU-side cache and ownership management ===== */ ST_CLASS(poolHandlespaceManagementNew)(&asapInstance->Cache, 0x00000000, NULL, NULL, NULL); ST_CLASS(poolHandlespaceManagementNew)(&asapInstance->OwnPoolElements, 0x00000000, NULL, NULL, NULL); /* ====== Initialize message buffers ============================ */ asapInstance->RegistrarMessageBuffer = messageBufferNew(ASAP_BUFFER_SIZE, true); if(asapInstance->RegistrarMessageBuffer == NULL) { asapInstanceDelete(asapInstance); return(NULL); } asapInstance->RegistrarHuntMessageBuffer = messageBufferNew(ASAP_BUFFER_SIZE, false); if(asapInstance->RegistrarHuntMessageBuffer == NULL) { asapInstanceDelete(asapInstance); return(NULL); } /* ====== Initialize registrar table ============================ */ asapInstance->RegistrarSet = registrarTableNew(asapInstance->StateMachine, enableAutoConfig, registrarAnnounceAddress, tags); if(asapInstance->RegistrarSet == NULL) { asapInstanceDelete(asapInstance); return(NULL); } /* ====== Registrar socket ====================================== */ asapInstance->RegistrarHuntSocket = ext_socket(checkIPv6() ? AF_INET6 : AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); if(asapInstance->RegistrarHuntSocket < 0) { LOG_ERROR logerror("Creating registrar hunt socket failed"); LOG_END asapInstanceDelete(asapInstance); return(NULL); } fdCallbackNew(&asapInstance->RegistrarHuntFDCallback, asapInstance->StateMachine, asapInstance->RegistrarHuntSocket, FDCE_Read|FDCE_Exception, asapInstanceHandleRegistrarConnectionEvent, (void*)asapInstance); if(bindplus(asapInstance->RegistrarHuntSocket, NULL, 0) == false) { LOG_ERROR logerror("Binding registrar hunt socket failed"); LOG_END asapInstanceDelete(asapInstance); return(NULL); } setNonBlocking(asapInstance->RegistrarHuntSocket); if(ext_listen(asapInstance->RegistrarHuntSocket, 10) < 0) { LOG_ERROR logerror("Unable to turn registrar hunt socket into listening mode"); LOG_END asapInstanceDelete(asapInstance); return(NULL); } memset(&sctpEvents, 0, sizeof(sctpEvents)); sctpEvents.sctp_data_io_event = 1; sctpEvents.sctp_association_event = 1; sctpEvents.sctp_address_event = 1; sctpEvents.sctp_send_failure_event = 1; sctpEvents.sctp_peer_error_event = 1; sctpEvents.sctp_shutdown_event = 1; sctpEvents.sctp_partial_delivery_event = 1; /* sctpEvents.sctp_adaptation_layer_event = 1; */ if(ext_setsockopt(asapInstance->RegistrarHuntSocket, IPPROTO_SCTP, SCTP_EVENTS, &sctpEvents, sizeof(sctpEvents)) < 0) { logerror("setsockopt() for SCTP_EVENTS on registrar hunt socket failed"); asapInstanceDelete(asapInstance); return(NULL); } autoCloseTimeout = 30; if(ext_setsockopt(asapInstance->RegistrarHuntSocket, IPPROTO_SCTP, SCTP_AUTOCLOSE, &autoCloseTimeout, sizeof(autoCloseTimeout)) < 0) { logerror("setsockopt() for SCTP_AUTOCLOSE on registrar hunt socket failed"); asapInstanceDelete(asapInstance); return(NULL); } /* ====== Initialize main loop ================================== */ if(ext_pipe((int*)&asapInstance->MainLoopPipe) < 0) { logerror("pipe() failed"); asapInstanceDelete(asapInstance); return(NULL); } setNonBlocking(asapInstance->MainLoopPipe[0]); setNonBlocking(asapInstance->MainLoopPipe[1]); /* The ASAP main loop thread cannot be started here, since the static registrar entries are still missing. The can be added later. After that, asapInstanceStartThread() has to be called. */ } } return(asapInstance); } /* ###### Constructor #################################################### */ bool asapInstanceStartThread(struct ASAPInstance* asapInstance) { if(pthread_create(&asapInstance->MainLoopThread, NULL, &asapInstanceMainLoop, asapInstance) != 0) { logerror("Unable to create ASAP main loop thread"); return(false); } return(true); } /* ###### Destructor ##################################################### */ void asapInstanceDelete(struct ASAPInstance* asapInstance) { struct ASAPInterThreadMessage* aitm; if(asapInstance) { if(asapInstance->MainLoopThread != 0) { dispatcherLock(asapInstance->StateMachine); asapInstance->MainLoopShutdown = true; dispatcherUnlock(asapInstance->StateMachine); asapInstanceNotifyMainLoop(asapInstance); CHECK(pthread_join(asapInstance->MainLoopThread, NULL) == 0); asapInstance->MainLoopThread = 0; } if(asapInstance->MainLoopPipe[0] >= 0) { ext_close(asapInstance->MainLoopPipe[0]); asapInstance->MainLoopPipe[0] = -1; } if(asapInstance->MainLoopPipe[1] >= 0) { ext_close(asapInstance->MainLoopPipe[1]); asapInstance->MainLoopPipe[1] = -1; } if(asapInstance->RegistrarHuntSocket >= 0) { fdCallbackDelete(&asapInstance->RegistrarHuntFDCallback); ext_close(asapInstance->RegistrarHuntSocket); } ST_CLASS(poolHandlespaceManagementDelete)(&asapInstance->OwnPoolElements); ST_CLASS(poolHandlespaceManagementDelete)(&asapInstance->Cache); if(asapInstance->RegistrarSet) { registrarTableDelete(asapInstance->RegistrarSet); asapInstance->RegistrarSet = NULL; } timerDelete(&asapInstance->RegistrarTimeoutTimer); /* There may still be AITM messages queued. Remove them first. */ aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortDequeue(&asapInstance->MainLoopPort); while(aitm) { asapInterThreadMessageDelete(aitm); aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortDequeue(&asapInstance->MainLoopPort); } interThreadMessagePortDelete(&asapInstance->MainLoopPort); if(asapInstance->RegistrarMessageBuffer) { messageBufferDelete(asapInstance->RegistrarMessageBuffer); asapInstance->RegistrarMessageBuffer = NULL; } if(asapInstance->RegistrarHuntMessageBuffer) { messageBufferDelete(asapInstance->RegistrarHuntMessageBuffer); asapInstance->RegistrarHuntMessageBuffer = NULL; } free(asapInstance); } } /* ###### Get configuration from file #################################### */ static void asapInstanceConfigure(struct ASAPInstance* asapInstance, struct TagItem* tags) { /* ====== ASAP Instance settings ======================================= */ asapInstance->RegistrarRequestMaxTrials = tagListGetData(tags, TAG_RspLib_RegistrarRequestMaxTrials, ASAP_DEFAULT_REGISTRAR_REQUEST_MAXTRIALS); asapInstance->RegistrarRequestTimeout = (unsigned long long)tagListGetData(tags, TAG_RspLib_RegistrarRequestTimeout, ASAP_DEFAULT_REGISTRAR_REQUEST_TIMEOUT); asapInstance->RegistrarResponseTimeout = (unsigned long long)tagListGetData(tags, TAG_RspLib_RegistrarResponseTimeout, ASAP_DEFAULT_REGISTRAR_RESPONSE_TIMEOUT); /* ====== Show results =================================================== */ LOG_VERBOSE3 fputs("New ASAP instance's configuration:\n", stdlog); fprintf(stdlog, "registrar.request.timeout = %lluus\n", asapInstance->RegistrarRequestTimeout); fprintf(stdlog, "registrar.response.timeout = %lluus\n", asapInstance->RegistrarResponseTimeout); fprintf(stdlog, "registrar.request.maxtrials = %u\n", (unsigned int)asapInstance->RegistrarRequestMaxTrials); LOG_END } /* ###### Connect to registrar ############################################ */ static bool asapInstanceConnectToRegistrar(struct ASAPInstance* asapInstance, int sd) { RegistrarIdentifierType registrarIdentifier; #ifdef HAVE_SCTP_DELAYED_SACK struct sctp_sack_info sctpSACKInfo; #endif if(asapInstance->RegistrarSocket < 0) { /* ====== Look for registrar, if no FD is given ==================== */ if(sd < 0) { LOG_ACTION fputs("Starting registrar hunt...\n", stdlog); LOG_END if(sd < 0) { sd = registrarTableGetRegistrar(asapInstance->RegistrarSet, asapInstance->RegistrarHuntSocket, asapInstance->RegistrarHuntMessageBuffer, ®istrarIdentifier); } dispatcherLock(asapInstance->StateMachine); asapInstance->RegistrarIdentifier = registrarIdentifier; dispatcherUnlock(asapInstance->StateMachine); if(sd < 0) { LOG_ACTION fputs("Unable to connect to a registrar\n", stdlog); LOG_END return(false); } } /* ====== Initialize new connection ================================ */ asapInstance->RegistrarSocket = sd; asapInstance->RegistrarConnectionTimeStamp = getMicroTime(); fdCallbackNew(&asapInstance->RegistrarFDCallback, asapInstance->StateMachine, asapInstance->RegistrarSocket, FDCE_Read|FDCE_Exception, asapInstanceHandleRegistrarConnectionEvent, (void*)asapInstance); asapInstance->LastAITM = NULL; /* Send requests again! */ LOG_NOTE fprintf(stdlog, "Connected to registrar $%08x\n", asapInstance->RegistrarIdentifier); LOG_END #ifdef HAVE_SCTP_DELAYED_SACK /* ====== Tune SACK handling ======================================= */ sctpSACKInfo.sack_assoc_id = 0; sctpSACKInfo.sack_delay = 0; sctpSACKInfo.sack_freq = 1; if(ext_setsockopt(asapInstance->RegistrarSocket, IPPROTO_SCTP, SCTP_DELAYED_SACK, &sctpSACKInfo, sizeof(sctpSACKInfo)) < 0) { LOG_WARNING logerror("Unable to set SCTP_DELAYED_SACK"); LOG_END } #else #warning SCTP_DELAYED_SACK/sctp_sack_info is not supported - Unable to tune SACK handling! #endif } return(true); } /* ###### Disconnect from registrar #################################### */ static void asapInstanceDisconnectFromRegistrar(struct ASAPInstance* asapInstance, bool sendAbort) { if(asapInstance->RegistrarSocket >= 0) { dispatcherLock(asapInstance->StateMachine); timerStop(&asapInstance->RegistrarTimeoutTimer); fdCallbackDelete(&asapInstance->RegistrarFDCallback); dispatcherUnlock(asapInstance->StateMachine); if(sendAbort) { sendabort(asapInstance->RegistrarSocket, 0); } ext_close(asapInstance->RegistrarSocket); asapInstance->RegistrarSocket = -1; asapInstance->RegistrarConnectionTimeStamp = 0; asapInstance->RegistrarIdentifier = UNDEFINED_REGISTRAR_IDENTIFIER; asapInstance->LastAITM = NULL; /* Send requests again! */ LOG_ACTION fputs("Disconnected from registrar\n", stdlog); LOG_END } } /* ###### Send request without response to registrar ##################### */ static unsigned int asapInstanceSendRequest(struct ASAPInstance* asapInstance, struct RSerPoolMessage* request, const bool responseExpected) { struct ASAPInterThreadMessage* aitm; aitm = asapInterThreadMessageNew(request, responseExpected); if(aitm == NULL) { return(RSPERR_OUT_OF_MEMORY); } // ??? dispatcherLock(asapInstance->StateMachine); interThreadMessagePortEnqueue(&asapInstance->MainLoopPort, &aitm->Node, NULL); // ??? dispatcherUnlock(asapInstance->StateMachine); asapInstanceNotifyMainLoop(asapInstance); return(RSPERR_OKAY); } /* ###### Send request to registrar ###################################### */ static unsigned int asapInstanceBeginIO(struct ASAPInstance* asapInstance, struct InterThreadMessagePort* itmPort, struct RSerPoolMessage* request) { struct ASAPInterThreadMessage* aitm; aitm = asapInterThreadMessageNew(request, true); if(aitm == NULL) { return(RSPERR_OUT_OF_MEMORY); } // ??? dispatcherLock(asapInstance->StateMachine); interThreadMessagePortEnqueue(&asapInstance->MainLoopPort, &aitm->Node, itmPort); // ??? dispatcherUnlock(asapInstance->StateMachine); asapInstanceNotifyMainLoop(asapInstance); return(RSPERR_OKAY); } /* ###### Wait for response ############################################## */ static unsigned int asapInstanceWaitIO(struct ASAPInstance* asapInstance, struct InterThreadMessagePort* itmPort, struct RSerPoolMessage* request, struct RSerPoolMessage** responsePtr) { struct ASAPInterThreadMessage* aitm; unsigned int result; interThreadMessagePortWait(itmPort); aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortDequeue(itmPort); CHECK(aitm != NULL); *responsePtr = aitm->Response; result = aitm->Error; free(aitm); return(result); } /* ###### Send request to registrar and wait for response ############## */ static unsigned int asapInstanceDoIO(struct ASAPInstance* asapInstance, struct RSerPoolMessage* request, struct RSerPoolMessage** responsePtr) { struct InterThreadMessagePort itmPort; unsigned int result; interThreadMessagePortNew(&itmPort); result = asapInstanceBeginIO(asapInstance, &itmPort, request); if(result == RSPERR_OKAY) { result = asapInstanceWaitIO(asapInstance, &itmPort, request, responsePtr); } interThreadMessagePortDelete(&itmPort); return(result); } /* ###### Register pool element ########################################## */ unsigned int asapInstanceRegister(struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, struct ST_CLASS(PoolElementNode)* poolElementNode, const bool waitForResponse, const bool daemonMode) { struct RSerPoolMessage* message; struct RSerPoolMessage* response; struct ST_CLASS(PoolElementNode)* oldPoolElementNode; struct ST_CLASS(PoolElementNode)* newPoolElementNode; struct TransportAddressBlock* newUserTransport; unsigned int result; LOG_VERBOSE fputs("Trying to register to pool ", stdlog); poolHandlePrint(poolHandle, stdlog); fputs(" pool element ", stdlog); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END message = rserpoolMessageNew(NULL, ASAP_BUFFER_SIZE); if(message != NULL) { message->Type = AHT_REGISTRATION; message->Flags = 0x00; message->Handle = *poolHandle; message->PoolElementPtr = poolElementNode; /* ====== If reregistration, are new settings compatible? ========== */ dispatcherLock(asapInstance->StateMachine); oldPoolElementNode = ST_CLASS(poolHandlespaceManagementFindPoolElement)( &asapInstance->OwnPoolElements, poolHandle, message->PoolElementPtr->Identifier); if(oldPoolElementNode) { result = ST_CLASS(poolNodeCheckPoolElementNodeCompatibility)( oldPoolElementNode->OwnerPoolNode, oldPoolElementNode); } else { result = ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( &asapInstance->OwnPoolElements, poolHandle, message->PoolElementPtr->HomeRegistrarIdentifier, message->PoolElementPtr->Identifier, message->PoolElementPtr->RegistrationLife, &message->PoolElementPtr->PolicySettings, message->PoolElementPtr->UserTransport, NULL, -1, 0, getMicroTime(), &newPoolElementNode); if(result == RSPERR_OKAY) { newPoolElementNode->UserData = (void*)asapInstance; } else { LOG_ERROR fprintf(stdlog, "Unable to register pool element $%08x of pool ", poolElementNode->Identifier); poolHandlePrint(poolHandle, stdlog); fputs(" to OwnPoolElements\n", stdlog); LOG_END_FATAL } } dispatcherUnlock(asapInstance->StateMachine); /* ====== Send registration ======================================== */ if(result == RSPERR_OKAY) { if(waitForResponse) { result = asapInstanceDoIO(asapInstance, message, &response); if(result == RSPERR_OKAY) { dispatcherLock(asapInstance->StateMachine); if( (response->Error == RSPERR_OKAY) && (!(response->Flags & AHF_REGISTRATION_REJECT)) ) { if(response->Identifier != poolElementNode->Identifier) { LOG_ERROR fprintf(stdlog, "Tried to register PE $%08x, got response for PE $%08x\n", poolElementNode->Identifier, response->Identifier); LOG_END } } else { result = (unsigned int)response->Error; } dispatcherUnlock(asapInstance->StateMachine); if(response) { rserpoolMessageDelete(response); } } rserpoolMessageDelete(message); } else { /* Important: message->PoolElementPtr must be a copy of the PE data, since this thread may delete the supplied PE data when this function returns. */ newPoolElementNode = (struct ST_CLASS(PoolElementNode)*)malloc(sizeof(struct ST_CLASS(PoolElementNode))); if(newPoolElementNode != NULL) { newUserTransport = transportAddressBlockDuplicate(message->PoolElementPtr->UserTransport); if(newUserTransport != NULL) { ST_CLASS(poolElementNodeNew)(newPoolElementNode, message->PoolElementPtr->Identifier, message->PoolElementPtr->HomeRegistrarIdentifier, message->PoolElementPtr->RegistrationLife, &message->PoolElementPtr->PolicySettings, newUserTransport, NULL, -1, 0); message->PoolElementPtr = newPoolElementNode; message->PoolElementPtrAutoDelete = true; result = asapInstanceSendRequest(asapInstance, message, true); } else { free(newPoolElementNode); rserpoolMessageDelete(message); result = RSPERR_OUT_OF_MEMORY; } } else { rserpoolMessageDelete(message); result = RSPERR_OUT_OF_MEMORY; } } } else { LOG_ERROR fputs("Incompatible pool element settings for reregistration!Old: \n", stderr); ST_CLASS(poolElementNodePrint)(oldPoolElementNode, stdlog, PENPO_FULL); fputs("New: \n", stderr); ST_CLASS(poolElementNodePrint)(message->PoolElementPtr, stdlog, PENPO_FULL); LOG_END rserpoolMessageDelete(message); } } else { result = RSPERR_OUT_OF_MEMORY; } LOG_VERBOSE fputs("Registration result is: ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END return(result); } /* ###### Deregister pool element ######################################## */ unsigned int asapInstanceDeregister(struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, const PoolElementIdentifierType identifier, const bool waitForResponse) { struct RSerPoolMessage* message; struct RSerPoolMessage* response; unsigned int result; LOG_VERBOSE fprintf(stdlog, "Trying to deregister $%08x from pool ",identifier); poolHandlePrint(poolHandle, stdlog); fputs("\n", stdlog); LOG_END result = ST_CLASS(poolHandlespaceManagementDeregisterPoolElement)( &asapInstance->OwnPoolElements, poolHandle, identifier); if(result != RSPERR_OKAY) { LOG_ERROR fprintf(stdlog, "Unable to deregister pool element $%08x of pool ", identifier); poolHandlePrint(poolHandle, stdlog); fputs(" from OwnPoolElements\n", stdlog); LOG_END } else { message = rserpoolMessageNew(NULL, ASAP_BUFFER_SIZE); if(message != NULL) { message->Type = AHT_DEREGISTRATION; message->Flags = 0x00; message->Handle = *poolHandle; message->Identifier = identifier; if(waitForResponse) { result = asapInstanceDoIO(asapInstance, message, &response); if((result == RSPERR_OKAY) && (response->Error == RSPERR_OKAY)) { if(identifier != response->Identifier) { LOG_ERROR fprintf(stdlog, "Tried to deregister PE $%08x, got response for PE $%08x\n", identifier, message->Identifier); LOG_END_FATAL } if(response) { rserpoolMessageDelete(response); } } rserpoolMessageDelete(message); } else { result = asapInstanceSendRequest(asapInstance, message, true); } } else { result = RSPERR_OUT_OF_MEMORY; } } LOG_VERBOSE fputs("Deregistration result is: ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END return(result); } /* ###### Do name lookup from cache ###################################### */ static unsigned int asapInstanceHandleResolutionFromCache( struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, void** nodePtrArray, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, size_t* poolElementNodes, unsigned int (*convertFunction)(const struct ST_CLASS(PoolElementNode)* poolElementNode, void* ptr), const bool purgeOutOfDateElements) { unsigned int result; size_t i; dispatcherLock(asapInstance->StateMachine); LOG_VERBOSE fprintf(stdlog, "Handle Resolution for pool "); poolHandlePrint(poolHandle, stdlog); fputs(":\n", stdlog); ST_CLASS(poolHandlespaceManagementPrint)(&asapInstance->Cache, stdlog, PENPO_ONLY_POLICY); LOG_END if(purgeOutOfDateElements) { i = ST_CLASS(poolHandlespaceManagementPurgeExpiredPoolElements)( &asapInstance->Cache, getMicroTime()); LOG_VERBOSE fprintf(stdlog, "Purged %u out-of-date elements\n", (unsigned int)i); LOG_END } if(ST_CLASS(poolHandlespaceManagementHandleResolution)( &asapInstance->Cache, poolHandle, poolElementNodeArray, poolElementNodes, *poolElementNodes, 1000000000) == RSPERR_OKAY) { LOG_VERBOSE fprintf(stdlog, "Got %u items:\n", (unsigned int)*poolElementNodes); for(i = 0;i < *poolElementNodes;i++) { fprintf(stdlog, "#%u: ", (unsigned int)i + 1); ST_CLASS(poolElementNodePrint)(poolElementNodeArray[i], stdlog, PENPO_FULL); } fputs("\n", stdlog); LOG_END result = RSPERR_OKAY; for(i = 0;i < *poolElementNodes;i++) { if(convertFunction(poolElementNodeArray[i], &nodePtrArray[i]) != 0) { result = RSPERR_OUT_OF_MEMORY; } } if(result != RSPERR_OKAY) { for(i = 0;i < *poolElementNodes;i++) { free(nodePtrArray[i]); nodePtrArray[i] = 0; } *poolElementNodes = 0; } } else { result = RSPERR_NOT_FOUND; } dispatcherUnlock(asapInstance->StateMachine); return(result); } /* ###### Do name lookup ################################################# */ static unsigned int asapInstanceHandleResolutionAtRegistrar(struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, void** nodePtrArray, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, size_t* poolElementNodes, unsigned int (*convertFunction)(const struct ST_CLASS(PoolElementNode)* poolElementNode, void* ptr), const unsigned long long cacheElementTimeout) { struct ST_CLASS(PoolElementNode)* newPoolElementNode; struct RSerPoolMessage* message; struct RSerPoolMessage* response; unsigned int result; size_t i; message = rserpoolMessageNew(NULL, ASAP_BUFFER_SIZE); if(message != NULL) { message->Type = AHT_HANDLE_RESOLUTION; message->Flags = 0x00; message->Handle = *poolHandle; message->Addresses = ((*poolElementNodes != RSPGETADDRS_MAX) && (cacheElementTimeout > 0)) ? 0 : *poolElementNodes; result = asapInstanceDoIO(asapInstance, message, &response); if(result == RSPERR_OKAY) { if(response->Error == RSPERR_OKAY) { LOG_VERBOSE fprintf(stdlog, "Got %u elements in handle resolution response\n", (unsigned int)response->PoolElementPtrArraySize); LOG_END dispatcherLock(asapInstance->StateMachine); /* ====== Propagate results into PU-side cache =============== */ for(i = 0;i < response->PoolElementPtrArraySize;i++) { LOG_VERBOSE2 fputs("Adding pool element to cache: ", stdlog); ST_CLASS(poolElementNodePrint)(response->PoolElementPtrArray[i], stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END result = ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( &asapInstance->Cache, poolHandle, response->PoolElementPtrArray[i]->HomeRegistrarIdentifier, response->PoolElementPtrArray[i]->Identifier, response->PoolElementPtrArray[i]->RegistrationLife, &response->PoolElementPtrArray[i]->PolicySettings, response->PoolElementPtrArray[i]->UserTransport, NULL, -1, 0, getMicroTime(), &newPoolElementNode); if(result != RSPERR_OKAY) { LOG_WARNING fputs("Failed to add pool element to cache: ", stdlog); ST_CLASS(poolElementNodePrint)(response->PoolElementPtrArray[i], stdlog, PENPO_FULL); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } ST_CLASS(poolHandlespaceManagementRestartPoolElementExpiryTimer)( &asapInstance->Cache, newPoolElementNode, cacheElementTimeout); } /* ====== Select PEs from cache ============================== */ result = asapInstanceHandleResolutionFromCache( asapInstance, poolHandle, nodePtrArray, poolElementNodeArray, poolElementNodes, convertFunction, false); dispatcherUnlock(asapInstance->StateMachine); /* =========================================================== */ } else { LOG_VERBOSE2 fprintf(stdlog, "Handle Resolution at registrar for pool "); poolHandlePrint(poolHandle, stdlog); fputs(" failed: ", stdlog); rserpoolErrorPrint(response->Error, stdlog); fputs("\n", stdlog); LOG_END result = response->Error; } rserpoolMessageDelete(response); } else { LOG_VERBOSE2 fprintf(stdlog, "Handle Resolution at registrar for pool "); poolHandlePrint(poolHandle, stdlog); fputs(" failed: ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } rserpoolMessageDelete(message); } else { result = RSPERR_OUT_OF_MEMORY; } return(result); } /* ###### Do handle resolution for given pool handle ##################### */ #define HRES_POOL_ELEMENT_NODE_ARRAY_SIZE 1024 unsigned int asapInstanceHandleResolution( struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, void** nodePtrArray, size_t* nodePtrs, unsigned int (*convertFunction)(const struct ST_CLASS(PoolElementNode)* poolElementNode, void* ptr), const unsigned long long cacheElementTimeout) { struct ST_CLASS(PoolElementNode)* poolElementNodeArray[HRES_POOL_ELEMENT_NODE_ARRAY_SIZE]; const size_t originalPoolElementNodes = min(HRES_POOL_ELEMENT_NODE_ARRAY_SIZE, *nodePtrs); unsigned int result; LOG_VERBOSE fputs("Trying handle resolution from cache...\n", stdlog); LOG_END *nodePtrs = originalPoolElementNodes; result = asapInstanceHandleResolutionFromCache( asapInstance, poolHandle, nodePtrArray, (struct ST_CLASS(PoolElementNode)**)&poolElementNodeArray, nodePtrs, convertFunction, true); if(result != RSPERR_OKAY) { LOG_VERBOSE fputs("No results in cache. Trying handle resolution at registrar...\n", stdlog); LOG_END /* The amount is now 0 (since handle resolution was not successful). Set it to its original value. */ *nodePtrs = originalPoolElementNodes; result = asapInstanceHandleResolutionAtRegistrar( asapInstance, poolHandle, nodePtrArray, (struct ST_CLASS(PoolElementNode)**)&poolElementNodeArray, nodePtrs, convertFunction, cacheElementTimeout); if(result != RSPERR_OKAY) { LOG_VERBOSE fputs("Handle resolution not successful\n", stdlog); LOG_END } } return(result); } /* ###### Report pool element failure ####################################### */ unsigned int asapInstanceReportFailure(struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, const PoolElementIdentifierType identifier) { struct RSerPoolMessage* message; struct ST_CLASS(PoolElementNode)* found; unsigned int result; LOG_VERBOSE fprintf(stdlog, "Failure reported for pool element $%08x of pool ", (unsigned int)identifier); poolHandlePrint(poolHandle, stdlog); fputs("\n", stdlog); LOG_END /* ====== Remove pool element from cache ================================= */ dispatcherLock(asapInstance->StateMachine); found = ST_CLASS(poolHandlespaceManagementFindPoolElement)( &asapInstance->Cache, poolHandle, identifier); if(found != NULL) { result = ST_CLASS(poolHandlespaceManagementDeregisterPoolElement)( &asapInstance->Cache, poolHandle, identifier); CHECK(result == RSPERR_OKAY); } else { LOG_VERBOSE fputs("Pool element does not exist in cache\n", stdlog); LOG_END } dispatcherUnlock(asapInstance->StateMachine); /* ====== Report unreachability ========================================== */ message = rserpoolMessageNew(NULL, ASAP_BUFFER_SIZE); if(message != NULL) { message->Type = AHT_ENDPOINT_UNREACHABLE; message->Flags = 0x00; message->Handle = *poolHandle; message->Identifier = identifier; result = asapInstanceSendRequest(asapInstance, message, false); if(result != RSPERR_OKAY) { LOG_VERBOSE2 fprintf(stdlog, "Failed to send failure report for pool element $%08x of pool ", (unsigned int)identifier); poolHandlePrint(poolHandle, stdlog); fputs("\n", stdlog); LOG_END rserpoolMessageDelete(message); } } else { result = RSPERR_OUT_OF_MEMORY; } return(result); } /* ###### Handle endpoint keepalive ###################################### */ static void asapInstanceHandleEndpointKeepAlive( struct ASAPInstance* asapInstance, struct RSerPoolMessage* message, int fd) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolNode)* poolNode; int sd; LOG_VERBOSE2 fprintf(stdlog, "EndpointKeepAlive from registrar $%08x via assoc %u for pool ", message->RegistrarIdentifier, (unsigned int)message->AssocID); poolHandlePrint(&message->Handle, stdlog); fputs("\n", stdlog); LOG_END /* Does message come via association on registrar *hunt* socket instead of peeled-off registrar socket? */ if(fd == asapInstance->RegistrarHuntSocket) { if(message->Flags & AHF_ENDPOINT_KEEP_ALIVE_HOME) { LOG_NOTE fprintf(stdlog, "EndpointKeepAlive from $%08x (assoc %u) instead of home registrar assoc $%08x -> replacing home registrar\n", message->RegistrarIdentifier, (unsigned int)message->AssocID, asapInstance->RegistrarIdentifier); LOG_END sd = registrarTablePeelOffRegistrarAssocID(asapInstance->RegistrarSet, asapInstance->RegistrarHuntSocket, asapInstance->RegistrarHuntMessageBuffer, message->AssocID); if(sd >= 0) { asapInstanceDisconnectFromRegistrar(asapInstance, true); if(asapInstanceConnectToRegistrar(asapInstance, sd) == true) { /* The new registrar ID is already known */ asapInstance->RegistrarIdentifier = message->RegistrarIdentifier; LOG_NOTE fprintf(stdlog, "Home registrar is $%08x\n", asapInstance->RegistrarIdentifier); LOG_END } } else { LOG_ERROR logerror("Peel-off for incoming registrar association from new registrar failed"); LOG_END } } else { LOG_WARNING fprintf(stdlog, "EndpointKeepAlive from $%08x (assoc %u) instead of home-registrar assoc $%08x. The H bit is not set, therefore ignoring it.\n", message->RegistrarIdentifier, (unsigned int)message->AssocID, asapInstance->RegistrarIdentifier); LOG_END } } else { if(asapInstance->RegistrarIdentifier == UNDEFINED_REGISTRAR_IDENTIFIER) { asapInstance->RegistrarIdentifier = message->RegistrarIdentifier; LOG_NOTE fprintf(stdlog, "Home registrar is $%08x\n", asapInstance->RegistrarIdentifier); LOG_END } } /* ====== Send ENDPOINT_KEEP_ALIVE_ACK ================================ */ if(message->Identifier) { poolElementNode = ST_CLASS(poolHandlespaceManagementFindPoolElement)( &asapInstance->OwnPoolElements, &message->Handle, message->Identifier); if(poolElementNode) { message->Type = AHT_ENDPOINT_KEEP_ALIVE_ACK; message->Flags = 0x00; message->Identifier = poolElementNode->Identifier; LOG_VERBOSE2 fprintf(stdlog, "Sending KeepAliveAck for pool element $%08x\n",message->Identifier); LOG_END rserpoolMessageSend(IPPROTO_SCTP, asapInstance->RegistrarSocket, 0, 0, 0, 0, message); } else { LOG_WARNING fprintf(stdlog, "KeepAlive for unknown pool element $%08x -> ignoring it\n",message->Identifier); LOG_END } } else { poolNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)(&asapInstance->OwnPoolElements.Handlespace); while(poolNode != NULL) { poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)(poolNode); while(poolElementNode != NULL) { message->Type = AHT_ENDPOINT_KEEP_ALIVE_ACK; message->Flags = 0x00; message->Identifier = poolElementNode->Identifier; LOG_VERBOSE2 fprintf(stdlog, "Sending KeepAliveAck for pool element $%08x\n",message->Identifier); LOG_END rserpoolMessageSend(IPPROTO_SCTP, asapInstance->RegistrarSocket, 0, 0, 0, 0, message); poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromIndex)(poolNode, poolElementNode); } poolNode = ST_CLASS(poolHandlespaceNodeGetNextPoolNode)(&asapInstance->OwnPoolElements.Handlespace, poolNode); } } rserpoolMessageDelete(message); } /* ###### Handle response from registrar ################################# */ static void asapInstanceHandleResponseFromRegistrar( struct ASAPInstance* asapInstance, struct RSerPoolMessage* response) { struct ASAPInterThreadMessage* aitm; struct ASAPInterThreadMessage* nextAITM; aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortDequeue(&asapInstance->MainLoopPort); if(aitm != NULL) { /* No timeout occurred -> stop timeout timer */ timerStop(&asapInstance->RegistrarTimeoutTimer); if( ((response->Type == AHT_REGISTRATION_RESPONSE) && (aitm->Request->Type == AHT_REGISTRATION)) || ((response->Type == AHT_DEREGISTRATION_RESPONSE) && (aitm->Request->Type == AHT_DEREGISTRATION)) || ((response->Type == AHT_HANDLE_RESOLUTION_RESPONSE) && (aitm->Request->Type == AHT_HANDLE_RESOLUTION)) ) { LOG_VERBOSE fprintf(stdlog, "Successfully got response ($%04x) for request ($%04x) from registrar\n" "RTT %lluus, queuing delay %lluus\n", response->Type, aitm->Request->Type, getMicroTime() - aitm->CreationTimeStamp, aitm->TransmissionTimeStamp - aitm->CreationTimeStamp); LOG_END /* Asynchronous message: print errors here! */ if(aitm->Node.ReplyPort == NULL) { if( (response->Type == AHT_REGISTRATION_RESPONSE) && ((response->Error != RSPERR_OKAY) || (response->Flags & AHF_REGISTRATION_REJECT)) ) { LOG_ERROR fprintf(stdlog, "Unable to register pool element $%08x of pool ", response->Identifier); poolHandlePrint(&response->Handle, stdlog); fputs(": ", stdlog); rserpoolErrorPrint(response->Error, stdlog); fputs("\n", stdlog); LOG_END /* If no addresses are usable, try to re-connect. May be, the host has got some usable addresses then. */ if( (response->Error == RSPERR_NO_USABLE_USER_ADDRESSES) || (response->Error == RSPERR_NO_USABLE_ASAP_ADDRESSES) ) { LOG_NOTE fputs("Trying to re-connect to a registrar ...\n", stdlog); LOG_END asapInstanceDisconnectFromRegistrar(asapInstance, true); } } } } else { if(response->Type == AHT_ERROR) { LOG_ERROR fprintf(stdlog, "Got ASAP_ERROR ($%04x) for request ($%04x) from registrar: ", response->OperationErrorCode, aitm->Request->Type); rserpoolErrorPrint(response->OperationErrorCode, stdlog); fputs("\n", stdlog); LOG_END } else { LOG_ERROR fprintf(stdlog, "Got unexpected response ($%04x) for request ($%04x) from registrar\n", response->Type, aitm->Request->Type); LOG_END } asapInstanceDisconnectFromRegistrar(asapInstance, true); } aitm->Response = response; if(asapInstance->LastAITM == aitm) { /* No more responses are expected. */ asapInstance->LastAITM = NULL; } if(aitm->Node.ReplyPort) { /* Reply to requesting thread, if reply is desired. */ interThreadMessageReply(&aitm->Node); } else { /* Sender is not interested in result, throw it away. */ asapInterThreadMessageDelete(aitm); } /* Schedule next response's timeout */ dispatcherLock(asapInstance->StateMachine); interThreadMessagePortLock(&asapInstance->MainLoopPort); if(asapInstance->LastAITM != NULL) { nextAITM = (struct ASAPInterThreadMessage*)interThreadMessagePortGetFirstMessage( &asapInstance->MainLoopPort); CHECK(nextAITM != NULL); timerStart(&asapInstance->RegistrarTimeoutTimer, nextAITM->ResponseTimeoutTimeStamp); } interThreadMessagePortUnlock(&asapInstance->MainLoopPort); dispatcherUnlock(asapInstance->StateMachine); } else { LOG_ERROR fprintf(stdlog, "Got unexpected response ($%04x) from registrar. Disconnecting.\n", response->Type); LOG_END asapInstanceDisconnectFromRegistrar(asapInstance, true); rserpoolMessageDelete(response); } } /* ###### Handle SCTP notification on registrar socket ################### */ static void handleNotificationOnRegistrarSocket(struct ASAPInstance* asapInstance, const union sctp_notification* notification) { if( (notification->sn_header.sn_type == SCTP_ASSOC_CHANGE) && ((notification->sn_assoc_change.sac_state == SCTP_COMM_LOST) || (notification->sn_assoc_change.sac_state == SCTP_SHUTDOWN_COMP)) ) { LOG_NOTE fputs("Registrar connection lost\n", stdlog); LOG_END asapInstanceDisconnectFromRegistrar(asapInstance, true); } else if(notification->sn_header.sn_type == SCTP_SHUTDOWN_EVENT) { LOG_NOTE fputs("Registrar connection is shutting down\n", stdlog); LOG_END asapInstanceDisconnectFromRegistrar(asapInstance, true); } } /* ###### Handle event on registrar connection ########################### */ static void asapInstanceHandleRegistrarConnectionEvent( struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData) { struct ASAPInstance* asapInstance = (struct ASAPInstance*)userData; struct MessageBuffer* messageBuffer; struct RSerPoolMessage* message; ssize_t received; union sockaddr_union sourceAddress; socklen_t sourceAddressLength; uint32_t ppid; sctp_assoc_t assocID; int flags; dispatcherLock(asapInstance->StateMachine); LOG_VERBOSE2 fputs("Entering Connection Handler...\n", stdlog); LOG_END if(fd == asapInstance->RegistrarHuntSocket) { messageBuffer = asapInstance->RegistrarHuntMessageBuffer; } else if( (fd == asapInstance->RegistrarSocket) && (eventMask & (FDCE_Read|FDCE_Exception)) ) { messageBuffer = asapInstance->RegistrarMessageBuffer; } else { LOG_ERROR fprintf(stdlog, "Event for unknown socket %d\n", fd); LOG_END_FATAL return; /* Avoids warning about uninitializes message buffer. */ } flags = 0; sourceAddressLength = sizeof(sourceAddress); received = messageBufferRead(messageBuffer, fd, &flags, (struct sockaddr*)&sourceAddress, &sourceAddressLength, &ppid, &assocID, NULL, asapInstance->RegistrarResponseTimeout); if(received > 0) { /* ====== Handle notification ================================ */ if(flags & MSG_NOTIFICATION) { if(fd == asapInstance->RegistrarSocket) { handleNotificationOnRegistrarSocket(asapInstance, (union sctp_notification*)messageBuffer->Buffer); } else if(fd == asapInstance->RegistrarHuntSocket) { registrarTableHandleNotificationOnRegistrarHuntSocket(asapInstance->RegistrarSet, asapInstance->RegistrarHuntSocket, asapInstance->RegistrarHuntMessageBuffer, (union sctp_notification*)messageBuffer->Buffer); } } /* ====== Handle message ===================================== */ else { if(rserpoolPacket2Message(messageBuffer->Buffer, &sourceAddress, assocID, ppid, received, messageBuffer->BufferSize, &message) == RSPERR_OKAY) { if(message->Type == AHT_ENDPOINT_KEEP_ALIVE) { asapInstanceHandleEndpointKeepAlive(asapInstance, message, fd); } else { /* Handle registrar's response */ asapInstanceHandleResponseFromRegistrar(asapInstance, message); } } else { if(fd == asapInstance->RegistrarSocket) { LOG_WARNING fputs("Disconnecting from registrar due to failure\n", stdlog); LOG_END asapInstanceDisconnectFromRegistrar(asapInstance, true); } else { LOG_WARNING fputs("Got crap on registrar hunt socket -> sending abort\n", stdlog); LOG_END sendabort(fd, assocID); } } } } else if(received != MBRead_Partial) { LOG_WARNING fputs("Disconnecting from registrar due to disconnect\n", stdlog); LOG_END asapInstanceDisconnectFromRegistrar(asapInstance, true); } LOG_VERBOSE2 fputs("Leaving Connection Handler\n", stdlog); LOG_END dispatcherUnlock(asapInstance->StateMachine); } /* ###### Handle registrar request timeout ############################### */ static void asapInstanceHandleRegistrarTimeout(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct ASAPInstance* asapInstance = (struct ASAPInstance*)userData; CHECK(asapInstance->LastAITM != NULL); LOG_WARNING fputs("Request(s) to registrar timed out!\n", stdlog); LOG_END asapInstance->LastAITM = NULL; asapInstanceDisconnectFromRegistrar(asapInstance, true); } /* ###### Handle ASAP inter-thread message ############################### */ static void asapInstanceHandleQueuedAITMs(struct ASAPInstance* asapInstance) { struct ASAPInterThreadMessage* aitm; struct ASAPInterThreadMessage* nextAITM; unsigned int result; /* ====== Get next AITM =============================================== */ interThreadMessagePortLock(&asapInstance->MainLoopPort); if(asapInstance->LastAITM) { aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortGetNextMessage( &asapInstance->MainLoopPort, &asapInstance->LastAITM->Node); } else { aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortGetFirstMessage(&asapInstance->MainLoopPort); } /* ====== If there is an AITM, connect to registrar if necessary ====== */ if( (asapInstance->RegistrarSocket < 0) && ( (aitm) || ((ST_CLASS(poolHandlespaceManagementGetPoolElements)(&asapInstance->OwnPoolElements) > 0)) ) ) { interThreadMessagePortUnlock(&asapInstance->MainLoopPort); asapInstanceConnectToRegistrar(asapInstance, -1); interThreadMessagePortLock(&asapInstance->MainLoopPort); } /* ====== Handle AITMs ================================================ */ while(aitm != NULL) { nextAITM = (struct ASAPInterThreadMessage*)interThreadMessagePortGetNextMessage(&asapInstance->MainLoopPort, &aitm->Node); aitm->TransmissionTrials++; /* ====== Reply error, when trials have exceeded =================== */ if(aitm->TransmissionTrials > asapInstance->RegistrarRequestMaxTrials) { LOG_WARNING fputs("Maximum number of transmission trials reached\n", stdlog); LOG_END interThreadMessagePortRemoveMessage(&asapInstance->MainLoopPort, &aitm->Node); if(aitm->Node.ReplyPort) { if(asapInstance->RegistrarSocket < 0) { aitm->Error = RSPERR_NO_REGISTRAR; } else { aitm->Error = RSPERR_TIMEOUT; } interThreadMessageReply(&aitm->Node); } else { asapInterThreadMessageDelete(aitm); } } /* ====== Send to registrar ======================================== */ else { if(asapInstance->RegistrarSocket >= 0) { LOG_VERBOSE fputs("Sending message to registrar ...\n", stdlog); LOG_END result = rserpoolMessageSend(IPPROTO_SCTP, asapInstance->RegistrarSocket, 0, 0, 0, asapInstance->RegistrarRequestTimeout, aitm->Request); if(result == false) { LOG_WARNING logerror("Failed to send message to registrar"); LOG_END interThreadMessagePortUnlock(&asapInstance->MainLoopPort); asapInstanceDisconnectFromRegistrar(asapInstance, true); interThreadMessagePortLock(&asapInstance->MainLoopPort); break; } aitm->TransmissionTimeStamp = getMicroTime(); if(!aitm->ResponseExpected) { /* No response from registrar expected. */ interThreadMessagePortRemoveMessage(&asapInstance->MainLoopPort, &aitm->Node); asapInterThreadMessageDelete(aitm); } else { asapInstance->LastAITM = aitm; /* Schedule timeout */ aitm->ResponseTimeoutTimeStamp = getMicroTime() + asapInstance->RegistrarResponseTimeout; aitm->ResponseTimeoutNeedsScheduling = true; // NOTE: // The timer cannot be scheduled here, because a lock for // asapInstance->StateMachine is required to do this. // asapInstance->StateMachine cannot be locked here, since // asapInstance->MainLoopPort is already locked. Trying to // lock asapInstance->MainLoopPort would violate the locking // order! } } } aitm = nextAITM; } interThreadMessagePortUnlock(&asapInstance->MainLoopPort); /* ====== Set timeout ================================================= */ dispatcherLock(asapInstance->StateMachine); interThreadMessagePortLock(&asapInstance->MainLoopPort); aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortGetFirstMessage(&asapInstance->MainLoopPort); while(aitm != NULL) { if( (aitm->ResponseExpected) && (aitm->ResponseTimeoutNeedsScheduling) ) { if(!timerIsRunning(&asapInstance->RegistrarTimeoutTimer)) { // Now, the AITM's timer can be scheduled, since asapInstance->StateMachine // and asapInstance->MainLoopPort are locked. timerStart(&asapInstance->RegistrarTimeoutTimer, aitm->ResponseTimeoutTimeStamp); } } aitm->ResponseTimeoutNeedsScheduling = false; aitm = (struct ASAPInterThreadMessage*)interThreadMessagePortGetNextMessage(&asapInstance->MainLoopPort, &aitm->Node); } interThreadMessagePortUnlock(&asapInstance->MainLoopPort); dispatcherUnlock(asapInstance->StateMachine); } /* ###### Wake up main loop thread using pipe ############################ */ static void asapInstanceNotifyMainLoop(struct ASAPInstance* asapInstance) { const ssize_t result = ext_write(asapInstance->MainLoopPipe[1], "!", 1); if(result <= 0) { LOG_ERROR logerror("Writing to main loop pipe failed"); LOG_END } } /* ###### Check whether ASAP instance is shutting down ################### */ static bool asapInstanceIsShuttingDown(struct ASAPInstance* asapInstance) { dispatcherLock(asapInstance->StateMachine); const bool isShuttingDown = asapInstance->MainLoopShutdown; dispatcherUnlock(asapInstance->StateMachine); return(isShuttingDown); } /* ###### ASAP Instance main loop thread ################################# */ static void* asapInstanceMainLoop(void* args) { struct ASAPInstance* asapInstance = (struct ASAPInstance*)args; char buffer[128]; unsigned long long pollTimeStamp; struct pollfd ufds[FD_SETSIZE]; unsigned int nfds; int timeout; unsigned int pipeIndex; int result; ssize_t r; asapInstanceConnectToRegistrar(asapInstance, -1); while(!asapInstanceIsShuttingDown(asapInstance)) { /* ====== Collect data for ext_select() call ======================= */ dispatcherGetPollParameters(asapInstance->StateMachine, (struct pollfd*)&ufds, &nfds, &timeout, &pollTimeStamp); pipeIndex = nfds; ufds[pipeIndex].fd = asapInstance->MainLoopPipe[0]; ufds[pipeIndex].events = POLLIN; ufds[pipeIndex].revents = 0; if(!interThreadMessagePortIsFirstMessage(&asapInstance->MainLoopPort, &asapInstance->LastAITM->Node)) { /* First message in AITM queue is not LastAITM: There are new AITM messages to be handled. Do not block if there are no socket events! */ timeout = 0; } /* ====== Call ext_poll ============================================ */ result = ext_poll((struct pollfd*)&ufds, nfds + 1, timeout); /* ====== Handle results =========================================== */ dispatcherHandlePollResult(asapInstance->StateMachine, result, (struct pollfd*)&ufds, nfds, timeout, pollTimeStamp); if(ufds[pipeIndex].revents & POLLIN) { r = ext_read(asapInstance->MainLoopPipe[0], (char*)&buffer, sizeof(buffer)); if(r <= 0) { LOG_ERROR logerror("Reading from main loop pipe failed"); LOG_END } } /* ====== Handle inter-thread messages ============================= */ asapInstanceHandleQueuedAITMs(asapInstance); } asapInstanceDisconnectFromRegistrar(asapInstance, false); return(NULL); } rsplib-3.0.1/rsplib/asapinstance.h0000664000175000017500000001752411777021056014065 00000000000000/* $Id: asapinstance.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef ASAPINSTANCE_H #define ASAPINSTANCE_H #include "tdtypes.h" #include "dispatcher.h" #include "tagitem.h" #include "messagebuffer.h" #include "rserpoolmessage.h" #include "poolhandlespacemanagement.h" #include "registrartable.h" #include "interthreadmessageport.h" #ifdef __cplusplus extern "C" { #endif struct ASAPInterThreadMessage; struct ASAPInstance { struct Dispatcher* StateMachine; struct InterThreadMessagePort MainLoopPort; int MainLoopPipe[2]; pthread_t MainLoopThread; bool MainLoopShutdown; struct ASAPInterThreadMessage* LastAITM; int RegistrarHuntSocket; struct MessageBuffer* RegistrarHuntMessageBuffer; int RegistrarSocket; struct MessageBuffer* RegistrarMessageBuffer; RegistrarIdentifierType RegistrarIdentifier; unsigned long long RegistrarConnectionTimeStamp; struct RegistrarTable* RegistrarSet; struct ST_CLASS(PoolHandlespaceManagement) Cache; struct ST_CLASS(PoolHandlespaceManagement) OwnPoolElements; struct FDCallback RegistrarHuntFDCallback; struct FDCallback RegistrarFDCallback; struct Timer RegistrarTimeoutTimer; size_t RegistrarRequestMaxTrials; unsigned long long RegistrarRequestTimeout; unsigned long long RegistrarResponseTimeout; }; #define ASAP_DEFAULT_REGISTRAR_ANNOUNCE_ADDRESS ASAP_ANNOUNCE_MULTICAST_ADDRESS #define ASAP_DEFAULT_REGISTRAR_ANNOUNCE_TIMEOUT 5000000 #define ASAP_DEFAULT_REGISTRAR_CONNECT_MAXTRIALS 1 #define ASAP_DEFAULT_REGISTRAR_CONNECT_TIMEOUT 7500000 #define ASAP_DEFAULT_REGISTRAR_REQUEST_MAXTRIALS 1 #define ASAP_DEFAULT_REGISTRAR_REQUEST_TIMEOUT 3000000 #define ASAP_DEFAULT_REGISTRAR_RESPONSE_TIMEOUT 3000000 #define ASAP_BUFFER_SIZE 65536 /** * Constructor. * * @param dispatcher Dispatcher. * @param enableAutoConfig true to use multicast announces; false otherwise. * @param registrarAnnounceAddress Multicast address for PR announces. * @param tags TagItems. * @return ASAPInstance or NULL in case of error. */ struct ASAPInstance* asapInstanceNew(struct Dispatcher* dispatcher, const bool enableAutoConfig, const union sockaddr_union* registrarAnnounceAddress, struct TagItem* tags); /** * Destructor. * * @param asapInstance ASAPInstance. */ void asapInstanceDelete(struct ASAPInstance* asapInstance); /** * Start ASAP main loop thread. * * @param asapInstance ASAPInstance. */ bool asapInstanceStartThread(struct ASAPInstance* asapInstance); /** * Register pool element. * * @param asapInstance ASAPInstance. * @param poolHandle Pool handle. * @param poolElement Pool Element. * @param waitForResponse Set to true to wait for registrar's response. * @param daemonMode Set to true to use daemon mode. * @return RSPERR_OKAY in case of success; error code otherwise. */ unsigned int asapInstanceRegister(struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, struct ST_CLASS(PoolElementNode)* poolElementNode, const bool waitForResponse, const bool daemonMode); /** * Deregister pool element. * * @param asapInstance ASAPInstance. * @param poolHandle Pool handle. * @param identifier Pool element identifier. * @return RSPERR_OKAY in case of success; error code otherwise. */ unsigned int asapInstanceDeregister( struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, const PoolElementIdentifierType identifier, const bool waitForResponse); /** * Report failure of pool element. * * @param asapInstance ASAPInstance. * @param poolHandle Pool handle. * @param identifier Pool element identifier. * @return RSPERR_OKAY in case of success; error code otherwise. */ unsigned int asapInstanceReportFailure(struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, const PoolElementIdentifierType identifier); /** * Do handle resolution of given pool handle. The result will contain * an array of pointers to opaque data converted by the given conversion * function from PoolElementNode structures. Conversion or at least copying * is necessary, since other ASAP functions could modify the interal * PoolElementNodes! * * @param asapInstance ASAPInstance. * @param poolHandle Pool handle. * @param nodePtrArray Array to store pointers to converted PoolElementNodes to. * @param nodePrts Reference to variable containing maximum amount of pool element nodes to obtain. After function call, this variable contains actual amount of pool element nodes obtained. * @param cacheElementTimeout Stale cache value for newly received PE entries. * @return RSPERR_OKAY in case of success; error code otherwise. */ unsigned int asapInstanceHandleResolution( struct ASAPInstance* asapInstance, struct PoolHandle* poolHandle, void** nodePtrArray, size_t* nodePtrs, unsigned int (*convertFunction)(const struct ST_CLASS(PoolElementNode)* poolElementNode, void* ptr), const unsigned long long cacheElementTimeout); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolhandle.c0000664000175000017500000000667611777021056013542 00000000000000/* $Id: poolhandle.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "poolhandle.h" #include "debug.h" #include "stringutilities.h" /* ###### Initialize ##################################################### */ void poolHandleNew(struct PoolHandle* poolHandle, const unsigned char* handle, const size_t size) { CHECK(size > 0); CHECK(size <= MAX_POOLHANDLESIZE); poolHandle->Size = size; memcpy(&poolHandle->Handle, handle, size); } /* ###### Invalidate ##################################################### */ void poolHandleDelete(struct PoolHandle* poolHandle) { poolHandle->Size = 0; } /* ###### Get textual description ######################################## */ void poolHandleGetDescription(const struct PoolHandle* poolHandle, char* buffer, const size_t bufferSize) { char result[8]; size_t i; buffer[0] = 0x00; for(i = 0;i < ((poolHandle->Size <= MAX_POOLHANDLESIZE) ? poolHandle->Size : MAX_POOLHANDLESIZE);i++) { if(!iscntrl(poolHandle->Handle[i])) { result[0] = poolHandle->Handle[i]; result[1] = 0x00; safestrcat(buffer, result, bufferSize); } else { snprintf((char*)&result, sizeof(result), "{%02x}", poolHandle->Handle[i]); safestrcat(buffer, result, bufferSize); } } } /* ###### Print pool handle ############################################## */ void poolHandlePrint(const struct PoolHandle* poolHandle, FILE* fd) { char poolHandleDescription[128]; poolHandleGetDescription(poolHandle, poolHandleDescription, sizeof(poolHandleDescription)); fputs(poolHandleDescription, fd); } /* ###### Pool Handle comparison ######################################### */ int poolHandleComparison(const struct PoolHandle* poolHandle1, const struct PoolHandle* poolHandle2) { if(poolHandle1->Size < poolHandle2->Size) { return(-1); } if(poolHandle1->Size > poolHandle2->Size) { return(1); } return(memcmp(poolHandle1->Handle, poolHandle2->Handle, poolHandle1->Size)); } rsplib-3.0.1/rsplib/poolhandle.h0000664000175000017500000000427211777021056013535 00000000000000/* $Id: poolhandle.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef POOLHANDLE_H #define POOLHANDLE_H #include #include #ifdef __cplusplus extern "C" { #endif #define MAX_POOLHANDLESIZE 32 struct PoolHandle { size_t Size; unsigned char Handle[MAX_POOLHANDLESIZE]; }; void poolHandleNew(struct PoolHandle* poolHandle, const unsigned char* handle, const size_t size); void poolHandleDelete(struct PoolHandle* poolHandle); void poolHandleGetDescription(const struct PoolHandle* poolHandle, char* buffer, const size_t bufferSize); void poolHandlePrint(const struct PoolHandle* poolHandle, FILE* fd); int poolHandleComparison(const struct PoolHandle* poolHandle1, const struct PoolHandle* poolHandle2); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/calcappclient.cc0000664000175000017500000007650611777021056014361 00000000000000/* $Id: calcappclient.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "tdtypes.h" #include "calcapppackets.h" #include "statistics.h" #include "netutilities.h" #include "breakdetector.h" #include "randomizer.h" #include "timeutilities.h" #include "loglevel.h" #include "debug.h" #include #include #include #include #include #include #include #include using namespace std; /* Exit immediately on Ctrl-C. No clean shutdown. */ /* #define FAST_BREAK */ struct Job { Job* Next; unsigned int JobID; double JobSize; unsigned long long CompleteTimeStamp; unsigned long long QueuingTimeStamp; unsigned long long StartupTimeStamp; unsigned long long AcceptTimeStamp; size_t QueueLength; }; class JobQueue { public: JobQueue(); ~JobQueue(); void enqueue(Job* job); Job* dequeue(); inline size_t getLength() const { return(Jobs); } private: size_t Jobs; Job* FirstJob; Job* LastJob; }; // ###### Constructor ####################################################### JobQueue::JobQueue() { FirstJob = NULL; LastJob = NULL; Jobs = 0; } // ###### Destructor ######################################################## JobQueue::~JobQueue() { Job* currentJob = FirstJob; while(currentJob) { Job* nextJob = currentJob->Next; delete currentJob; currentJob = nextJob; Jobs--; } FirstJob = NULL; LastJob = NULL; CHECK(Jobs == 0); } // ###### Enqueue job ####################################################### void JobQueue::enqueue(Job* job) { job->Next = NULL; job->QueuingTimeStamp = getMicroTime(); job->StartupTimeStamp = 0ULL; if((FirstJob == NULL) && (LastJob == NULL)) { FirstJob = job; LastJob = job; } else { LastJob ->Next = job; LastJob = job; } job->QueueLength = Jobs; // Amount of queued jobs before this job Jobs++; } // ###### Dequeue job ####################################################### Job* JobQueue::dequeue() { Job* job = FirstJob; if(FirstJob == LastJob) { FirstJob = NULL; LastJob = NULL; } else { FirstJob = FirstJob -> Next; } if(job != NULL) { job->StartupTimeStamp = getMicroTime(); CHECK(Jobs > 0); Jobs--; } return(job); } FILE* VectorFH = NULL; FILE* ScalarFH = NULL; unsigned int VectorLine = 0; double JobSize = 5000000; unsigned long long JobInterval = 15000000; unsigned long long KeepAliveTransmissionInterval = 5000000; unsigned long long KeepAliveTimeoutInterval = 5000000; unsigned long long Runtime = 24*60*60*1000000ULL; double TotalQueuingTime = 0.0; double TotalStartupTime = 0.0; double TotalProcessingTime = 0.0; double TotalHandlingTime = 0.0; unsigned long long TotalJobsQueued = 0; unsigned long long TotalJobsStarted = 0; unsigned long long TotalJobsCompleted = 0; double TotalJobSizeQueued = 0.0; double TotalJobSizeStarted = 0.0; double TotalJobSizeCompleted = 0.0; enum ProcessStatus { PS_Init = 0, PS_Processing = 1, PS_Failover = 2, PS_Failed = 3, PS_Completed = 4 }; struct Process { int RSerPoolSocketDescriptor; ProcessStatus Status; JobQueue Queue; Job* CurrentJob; const char* ObjectName; size_t TotalCalcAppRequests; size_t TotalCalcAppAccepts; size_t TotalCalcAppRejects; size_t TotalCalcAppCompletes; size_t TotalCalcAppKeepAlives; size_t TotalCalcAppKeepAliveAcks; // ------ Timers --------------------------------------------------------- unsigned long long NextJobTimeStamp; unsigned long long KeepAliveTransmissionTimeStamp; unsigned long long KeepAliveTimeoutTimeStamp; }; // ###### Send CalcAppRequest message ####################################### void sendCalcAppRequest(struct Process* process) { cout << "Request for job #" << process->CurrentJob->JobID << " (job size " << process->CurrentJob->JobSize << ")" << endl; CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_REQUEST; message.Flags = 0x00; message.Length = htons(sizeof(message)); message.JobID = htonl(process->CurrentJob->JobID); message.JobSize = hton64((unsigned long long)rint(process->CurrentJob->JobSize)); // Set timeout for CalcAppAccept or CalcAppReject process->KeepAliveTimeoutTimeStamp = getMicroTime() + KeepAliveTimeoutInterval; ssize_t result = rsp_sendmsg(process->RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, 0, htonl(PPID_CALCAPP), 0, 0, 0, 0); if(result <= 0) { cerr << "WARNING: Unable to send CalcAppRequest" << endl; process->Status = PS_Failed; } process->TotalCalcAppRequests++; } // ###### Send CalcAppKeepAlive message ##################################### void sendCalcAppKeepAlive(struct Process* process) { struct CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_KEEPALIVE; message.Flags = 0x00; message.Length = htons(sizeof(message)); message.JobID = htonl(process->CurrentJob->JobID); ssize_t result = rsp_sendmsg(process->RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, 0, htonl(PPID_CALCAPP), 0, 0, 0, 0); if(result <= 0) { cerr << "WARNING: Unable to send CalcAppKeepAlive" << endl; process->Status = PS_Failover; } process->TotalCalcAppKeepAlives++; } // ###### Send CalcAppKeepAliveAck message ################################## void sendCalcAppKeepAliveAck(struct Process* process) { struct CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_KEEPALIVE_ACK; message.Flags = 0x00; message.Length = htons(sizeof(message)); message.JobID = htonl(process->CurrentJob->JobID); ssize_t result = rsp_sendmsg(process->RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, 0, htonl(PPID_CALCAPP), 0, 0, 0, 0); if(result <= 0) { cerr << "WARNING: Unable to send CalcAppKeepAliveAck" << endl; process->Status = PS_Failover; } process->TotalCalcAppKeepAliveAcks++; } // ###### Handle incoming CalcAppAccept message ############################# void handleCalcAppAccept(struct Process* process, CalcAppMessage* message, const size_t size) { if(process->CurrentJob->JobID != ntohl(message->JobID)) { cerr << "ERROR: CalcAppAccept for wrong job!" << endl; process->Status = PS_Failed; return; } cout << "Job #" << process->CurrentJob->JobID << " accepted" << endl; process->CurrentJob->AcceptTimeStamp = getMicroTime(); process->Status = PS_Processing; process->KeepAliveTimeoutTimeStamp = ~0ULL; process->KeepAliveTransmissionTimeStamp = getMicroTime() + KeepAliveTransmissionInterval; process->TotalCalcAppAccepts++; } // ###### Handle incoming CalcAppReject message ############################# void handleCalcAppReject(struct Process* process, CalcAppMessage* message, const size_t size) { if(process->CurrentJob->JobID != ntohl(message->JobID)) { cerr << "ERROR: CalcAppReject for wrong job!" << endl; process->Status = PS_Failed; return; } cout << "Job #" << process->CurrentJob->JobID << " rejected" << endl; process->Status = PS_Failover; process->KeepAliveTimeoutTimeStamp = ~0ULL; process->KeepAliveTransmissionTimeStamp = ~0ULL; rsp_forcefailover(process->RSerPoolSocketDescriptor, FFF_NONE, 0); /* No cookie for failover is available, therefore it is necessary to restart! */ if(!rsp_has_cookie(process->RSerPoolSocketDescriptor)) { process->Status = PS_Init; usleep(1000000); sendCalcAppRequest(process); } process->TotalCalcAppRejects++; } // ###### Handle incoming CalcAppKeepAlive message ########################## void handleCalcAppKeepAlive(struct Process* process, CalcAppMessage* message, const size_t size) { if(process->CurrentJob->JobID != ntohl(message->JobID)) { cerr << "ERROR: CalcAppKeepAlive for wrong job!" << endl; process->Status = PS_Failed; return; } sendCalcAppKeepAliveAck(process); } // ###### Handle incoming CalcAppKeepAliveAck message ####################### void handleCalcAppKeepAliveAck(struct Process* process, CalcAppMessage* message, const size_t size) { if(process->CurrentJob->JobID != ntohl(message->JobID)) { cerr << "ERROR: CalcAppKeepAliveAck for wrong job!" << endl; process->Status = PS_Failed; return; } process->Status = PS_Processing; process->KeepAliveTimeoutTimeStamp = ~0ULL; process->KeepAliveTransmissionTimeStamp = getMicroTime() + KeepAliveTransmissionInterval; } // ###### Handle incoming CalcAppCompleted message ########################## void handleCalcAppCompleted(struct Process* process, CalcAppMessage* message, const size_t size) { if(process->CurrentJob->JobID != ntohl(message->JobID)) { cerr << "ERROR: CalcAppCompleted for wrong job!" << endl; process->Status = PS_Failed; return; } process->Status = PS_Completed; process->KeepAliveTimeoutTimeStamp = ~0ULL; process->KeepAliveTransmissionTimeStamp = ~0ULL; process->CurrentJob->CompleteTimeStamp = getMicroTime(); process->TotalCalcAppCompletes++; const double queuingDelay = (process->CurrentJob->StartupTimeStamp - process->CurrentJob->QueuingTimeStamp) / 1000000.0; const double startupDelay = (process->CurrentJob->AcceptTimeStamp - process->CurrentJob->StartupTimeStamp) / 1000000.0; const double processingTime = (process->CurrentJob->CompleteTimeStamp - process->CurrentJob->AcceptTimeStamp) / 1000000.0; const double processingSpeed = process->CurrentJob->JobSize / processingTime; const double handlingTime = (queuingDelay + startupDelay + processingTime); const double handlingSpeed = process->CurrentJob->JobSize / handlingTime; TotalQueuingTime += queuingDelay; TotalStartupTime += startupDelay; TotalProcessingTime += processingTime; TotalHandlingTime += handlingTime; TotalJobsCompleted++; TotalJobSizeCompleted += process->CurrentJob->JobSize; cout << "Job #" << process->CurrentJob->JobID << " completed:" << endl << " Queue Length = " << process->CurrentJob->QueueLength << endl << " JobSize = " << process->CurrentJob->JobSize << endl << " JobInterval = " << (JobInterval / 1000000.0) << " [s]" << endl << " StartupDelay = " << startupDelay << " [s]" << endl << " QueuingDelay = " << queuingDelay << " [s]" << endl << " ProcessingTime = " << processingTime << " [s]" << " => ProcessingSpeed = " << processingSpeed << " [Calculations/s]" << endl << " HandlingTime = " << handlingTime << " [s]" << " => HandlingSpeed = " << handlingSpeed << " [Calculations/s]" << endl; if(VectorLine == 0) { fputs("ObjectName PID " "JobID JobSize JobInterval " "QueueLength " "QueuingDelay StartupDelay ProcessingTime " "HandlingTime HandlingSpeed " "QueuingTimeStamp StartupTimeStamp AcceptTimeStamp CompleteTimeStamp\n", VectorFH); } char basicsBuffer[512]; char performanceBuffer[512]; char timeStampBuffer[512]; snprintf((char*)&basicsBuffer, sizeof(basicsBuffer), "%06u %s %u %u %1.0f %1.6f", ++VectorLine, process->ObjectName, (unsigned int)getpid(), process->CurrentJob->JobID, process->CurrentJob->JobSize, JobInterval / 1000000.0); snprintf((char*)&performanceBuffer, sizeof(performanceBuffer), "%u %1.6f %1.6f %1.6f %1.6f %1.6f", (unsigned int)process->CurrentJob->QueueLength, queuingDelay, startupDelay, processingTime, handlingTime, handlingSpeed); snprintf((char*)&timeStampBuffer, sizeof(timeStampBuffer), "%1.6f %1.6f %1.6f %1.6f", process->CurrentJob->QueuingTimeStamp / 1000000.0, process->CurrentJob->StartupTimeStamp / 1000000.0, process->CurrentJob->AcceptTimeStamp / 1000000.0, process->CurrentJob->CompleteTimeStamp / 1000000.0); fprintf(VectorFH, "%s %s %s\n", basicsBuffer, performanceBuffer, timeStampBuffer); // fflush(VectorFH); } // ###### Get time stamp for next job ####################################### unsigned long long getNextJobTime() { return((unsigned long long)randomExpDouble(JobInterval)); } // ###### Handle next job timer ############################################# void handleNextJobTimer(struct Process* process) { static unsigned int jobID = 0; Job* job = new Job; CHECK(job != NULL); job->JobID = ++jobID; job->JobSize = rint(randomExpDouble(JobSize)); process->Queue.enqueue(job); TotalJobsQueued++; TotalJobSizeQueued += job->JobSize; process->NextJobTimeStamp = getMicroTime() + getNextJobTime(); } // ###### Handle KeepAlive Transmission timer ############################### void handleKeepAliveTransmissionTimer(struct Process* process) { process->KeepAliveTransmissionTimeStamp = ~0ULL; process->KeepAliveTimeoutTimeStamp = getMicroTime() + KeepAliveTimeoutInterval; sendCalcAppKeepAlive(process); } // ###### Handle KeepAlive Timeout timer #################################### bool handleKeepAliveTimeoutTimer(struct Process* process) { cout << "Timeout -> Failover" << endl; rsp_forcefailover(process->RSerPoolSocketDescriptor, FFF_UNREACHABLE, 0); process->Status = PS_Processing; process->KeepAliveTimeoutTimeStamp = ~0ULL; process->KeepAliveTransmissionTimeStamp = getMicroTime() + KeepAliveTransmissionInterval; /* No cookie for failover is available, therefore it is necessary to restart! */ if(!rsp_has_cookie(process->RSerPoolSocketDescriptor)) { process->Status = PS_Init; sendCalcAppRequest(process); } return(true); } // ###### Handle failover ################################################### void handleFailover(Process* process) { puts("===== FAILOVER ======"); process->Status = PS_Processing; } // ###### Handle session events ############################################# void handleEvents(Process* process, const short sessionEvents) { struct rsp_sndrcvinfo rinfo; union rserpool_notification* notification; char buffer[4096]; ssize_t received; int flags; flags = 0; received = rsp_recvfullmsg(process->RSerPoolSocketDescriptor, (char*)&buffer, sizeof(buffer), &rinfo, &flags, 0); if(received > 0) { if(flags & MSG_RSERPOOL_NOTIFICATION) { notification = (union rserpool_notification*)&buffer; printf("Notification: "); rsp_print_notification(notification, stdout); puts(""); if((notification->rn_header.rn_type == RSERPOOL_FAILOVER) && (notification->rn_failover.rf_state == RSERPOOL_FAILOVER_NECESSARY)) { puts("--- FAILOVER ---"); rsp_forcefailover(process->RSerPoolSocketDescriptor, FFF_NONE, 0); /* No cookie for failover is available, therefore it is necessary to restart! */ if(!rsp_has_cookie(process->RSerPoolSocketDescriptor)) { process->Status = PS_Init; sendCalcAppRequest(process); } } } else if(flags & MSG_RSERPOOL_COOKIE_ECHO) { } else { if(received >= (ssize_t)sizeof(CalcAppMessage)) { CalcAppMessage* response = (CalcAppMessage*)&buffer; switch(response->Type) { case CALCAPP_ACCEPT: handleCalcAppAccept(process, response, sizeof(response)); break; case CALCAPP_REJECT: handleCalcAppReject(process, response, sizeof(response)); break; case CALCAPP_KEEPALIVE: handleCalcAppKeepAlive(process, response, sizeof(response)); break; case CALCAPP_KEEPALIVE_ACK: handleCalcAppKeepAliveAck(process, response, sizeof(response)); break; case CALCAPP_COMPLETE: handleCalcAppCompleted(process, response, sizeof(response)); break; default: cerr << "ERROR: Unknown message type " << response->Type << endl; break; } } else { cerr << "ERROR: Received too short CalcApp message (" << received << " bytes)" << endl; } } } } // ###### Handle timers ##################################################### void handleTimer(Process* process) { const unsigned long long now = getMicroTime(); if(process->KeepAliveTransmissionTimeStamp <= now) { handleKeepAliveTransmissionTimer(process); process->KeepAliveTransmissionTimeStamp = ~0ULL; } if(process->KeepAliveTimeoutTimeStamp <= now) { handleKeepAliveTimeoutTimer(process); process->KeepAliveTimeoutTimeStamp = ~0ULL; } if(process->NextJobTimeStamp <= now) { handleNextJobTimer(process); } if(process->NextJobTimeStamp <= now) { handleNextJobTimer(process); } } // ###### Run process ####################################################### void runProcess(const char* poolHandle, const char* objectName, unsigned long long startupDelayStamp) { Process process; process.ObjectName = objectName; process.RSerPoolSocketDescriptor = -1; process.NextJobTimeStamp = getMicroTime() + (unsigned long long)randomExpDouble(JobInterval); process.KeepAliveTransmissionTimeStamp = ~0ULL; process.KeepAliveTimeoutTimeStamp = ~0ULL; process.TotalCalcAppRequests = 0; process.TotalCalcAppRejects = 0; process.TotalCalcAppAccepts = 0; process.TotalCalcAppCompletes = 0; process.TotalCalcAppKeepAlives = 0; process.TotalCalcAppKeepAliveAcks = 0; // Wait for first job usleep(getNextJobTime()); handleNextJobTimer(&process); process.CurrentJob = process.Queue.dequeue(); process.Status = PS_Init; while(process.CurrentJob != NULL) { if(process.Status == PS_Init) { /* The job has just been dequeued */ TotalJobsStarted++; TotalJobSizeStarted += process.CurrentJob->JobSize; } else { /* This is a retrial */ process.Status = PS_Init; } process.RSerPoolSocketDescriptor = rsp_socket(0, SOCK_SEQPACKET, IPPROTO_SCTP); if(process.RSerPoolSocketDescriptor >= 0) { if(rsp_connect(process.RSerPoolSocketDescriptor, (unsigned char*)poolHandle, strlen(poolHandle), 0) == 0) { sendCalcAppRequest(&process); while((!breakDetected()) && (process.Status != PS_Failed) && (process.Status != PS_Completed)) { /* ====== Call rsp_poll() ================================= */ struct pollfd ufds; ufds.fd = process.RSerPoolSocketDescriptor; ufds.events = POLLIN; unsigned long long now = getMicroTime(); unsigned long long nextTimer = now + 500000; nextTimer = min(nextTimer, process.NextJobTimeStamp); nextTimer = min(nextTimer, process.KeepAliveTransmissionTimeStamp); nextTimer = min(nextTimer, process.KeepAliveTimeoutTimeStamp); unsigned long long timeout = (nextTimer >= now) ? (nextTimer - now) : 1; int result = rsp_poll(&ufds, 1, (int)(timeout / 1000ULL)); /* ====== Handle timers =================================== */ handleTimer(&process); if(getMicroTime() - startupDelayStamp >= Runtime) { goto finished; } /* ====== Handle results of ext_select() ================== */ if((result > 0) && (ufds.revents & POLLIN)) { handleEvents(&process, ufds.revents); } if(result < 0) { if(errno != EINTR) { perror("rsp_poll() failed"); } goto finished; } if(process.Status == PS_Failover) { handleFailover(&process); } } if(process.Status == PS_Completed) { delete process.CurrentJob; process.CurrentJob = process.Queue.dequeue(); process.Status = PS_Init; } if(breakDetected()) { rsp_close(process.RSerPoolSocketDescriptor); process.RSerPoolSocketDescriptor = -1; goto finished; } } else { perror("rsp_connect() failed"); process.Status = PS_Failed; } rsp_close(process.RSerPoolSocketDescriptor); process.RSerPoolSocketDescriptor = -1; } else { perror("rsp_socket() failed"); process.Status = PS_Failed; // It is not useful to retry here. return; } while(process.CurrentJob == NULL) { unsigned long long now = getMicroTime(); unsigned long long nextTimer = now + 500000; nextTimer = min(nextTimer, process.NextJobTimeStamp); unsigned long long timeout = (nextTimer >= now) ? (nextTimer - now) : 1; usleep((unsigned int)timeout); handleTimer(&process); if(breakDetected()) { goto finished; } process.CurrentJob = process.Queue.dequeue(); process.Status = PS_Init; } } finished: // Close socket, if it is still open. if(process.RSerPoolSocketDescriptor >= 0) { rsp_close(process.RSerPoolSocketDescriptor); process.RSerPoolSocketDescriptor = -1; } fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Queuing Time\" %1.6f\n", objectName, TotalQueuingTime); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Startup Time\" %1.6f\n", objectName, TotalStartupTime); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Processing Time\" %1.6f\n", objectName, TotalProcessingTime); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Handling Time\" %1.6f\n", objectName, TotalHandlingTime); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Average Processing Speed\" %1.0f\n", objectName, (TotalProcessingTime > 0.0) ? TotalJobSizeCompleted / TotalProcessingTime : 0.0); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Average Handling Speed\" %1.0f\n", objectName, (TotalHandlingTime > 0.0) ? TotalJobSizeCompleted / TotalHandlingTime : 0.0); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Jobs Queued\" %llu\n", objectName, TotalJobsQueued); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Jobs Started\" %llu\n", objectName, TotalJobsStarted); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Jobs Completed\" %llu\n", objectName, TotalJobsCompleted); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Job Size Queued\" %1.0f\n", objectName, TotalJobSizeQueued); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Job Size Started\" %1.0f\n", objectName, TotalJobSizeStarted); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total Job Size Completed\" %1.0f\n", objectName, TotalJobSizeCompleted); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total CalcAppRequests\" %u\n", objectName, (unsigned int)process.TotalCalcAppRequests); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total CalcAppAccepts\" %u\n", objectName, (unsigned int)process.TotalCalcAppAccepts); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total CalcAppRejects\" %u\n", objectName, (unsigned int)process.TotalCalcAppRejects); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total CalcAppCompletes\" %u\n", objectName, (unsigned int)process.TotalCalcAppCompletes); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total CalcAppKeepAlives\" %u\n", objectName, (unsigned int)process.TotalCalcAppKeepAlives); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPU Total CalcAppKeepAliveAcks\" %u\n", objectName, (unsigned int)process.TotalCalcAppKeepAliveAcks); if(process.CurrentJob) { delete process.CurrentJob; process.CurrentJob = NULL; } } // ###### Main program ###################################################### int main(int argc, char** argv) { struct rsp_info info; const char* daemonPIDFile = NULL; const char* poolHandle = "CalcAppPool"; const char* vectorFileName = "CalcAppPU.vec"; const char* scalarFileName = "CalcAppPU.sca"; const char* objectName = "scenario.calcapppooluser[0]"; unsigned long long startupDelayStamp = getMicroTime(); int i; rsp_initinfo(&info); #ifdef ENABLE_CSP info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, 0); #endif for(i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } else if(!(strncmp(argv[i],"-poolhandle=",12))) { poolHandle = (char*)&argv[i][12]; } else if(!(strncmp(argv[i], "-object=" ,8))) { objectName = (char*)&argv[i][8]; } else if(!(strncmp(argv[i], "-vector=" ,8))) { vectorFileName = (char*)&argv[i][8]; } else if(!(strncmp(argv[i], "-scalar=" ,8))) { scalarFileName = (char*)&argv[i][8]; } else if(!(strncmp(argv[i], "-jobinterval=" ,13))) { JobInterval = (unsigned long long)rint(1000000.0 * atof((char*)&argv[i][13])); } else if(!(strncmp(argv[i], "-jobsize=" ,9))) { JobSize = atof((char*)&argv[i][9]); } else if(!(strncmp(argv[i], "-keepalivetransmissioninterval=" ,31))) { KeepAliveTransmissionInterval = 1000ULL * atol((char*)&argv[i][31]); if(KeepAliveTransmissionInterval < 100000) { KeepAliveTransmissionInterval = 100000; } } else if(!(strncmp(argv[i], "-keepalivetimeoutinterval=" ,26))) { KeepAliveTimeoutInterval = 1000ULL * atol((char*)&argv[i][26]); if(KeepAliveTimeoutInterval < 100000) { KeepAliveTimeoutInterval = 100000; } } else if(!(strncmp(argv[i], "-runtime=" ,9))) { Runtime = (unsigned long long)rint(1000000.0 * atof((char*)&argv[i][9])); } else if(!(strncmp(argv[i], "-daemonpidfile=", 15))) { daemonPIDFile = (const char*)&argv[i][15]; } else if(!(strncmp(argv[i],"-log",4))) { if(initLogging(argv[i]) == false) { exit(1); } } else { printf("ERROR: Bad arguments %s!\n", argv[i]); exit(1); } } #ifdef ENABLE_CSP if(CID_OBJECT(info.ri_csp_identifier) == 0ULL) { info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, random64()); } #endif cout << "CalcApp Client - Version 1.0" << endl << "============================" << endl << endl << "Object = " << objectName << endl << "Vector File = " << vectorFileName << endl << "Scalar File = " << scalarFileName << endl << "Pool Handle = " << poolHandle << endl << "Job Interval = " << (JobInterval / 1000000.0) << " [s]" << endl << "Job Size = " << JobSize << " [Calculations]" << endl << "Keep-Alive Transm. Int. = " << (KeepAliveTransmissionInterval / 1000000.0) << " [s]" << endl << "Keep-Alive Timeout Int. = " << (KeepAliveTimeoutInterval / 1000000.0) << " [s]" << endl << "Runtime = " << (Runtime / 1000000.0) << " [s]" << endl << endl; if(daemonPIDFile != NULL) { const pid_t childProcess = fork(); if(childProcess != 0) { FILE* fh = fopen(daemonPIDFile, "w"); if(fh) { fprintf(fh, "%d\n", childProcess); fclose(fh); } else { kill(childProcess, SIGKILL); fprintf(stderr, "ERROR: Unable to create PID file \"%s\"!\n", daemonPIDFile); } exit(0); } } if(rsp_initialize(&info) < 0) { logerror("Unable to initialize rsplib"); exit(1); } VectorFH = fopen(vectorFileName, "w"); if(VectorFH == NULL) { // Make stream non-buffered! cout << " Unable to open output file " << vectorFileName << endl; } setbuf(VectorFH, NULL); ScalarFH = fopen(scalarFileName, "w"); if(ScalarFH == NULL) { cout << " Unable to open output file " << scalarFileName << endl; } setbuf(ScalarFH, NULL); // Make stream non-buffered! fprintf(ScalarFH, "run 1 \"scenario\"\n"); #ifndef FAST_BREAK installBreakDetector(); #endif runProcess(poolHandle, objectName, startupDelayStamp); fclose(ScalarFH); fclose(VectorFH); rsp_cleanup(); rsp_freeinfo(&info); puts("\nTerminated!"); return(0); } rsplib-3.0.1/rsplib/poolnode-template.h0000664000175000017500000001640111777021056015035 00000000000000/* $Id: poolnode-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PoolHandlespaceNode); #define PNF_CONTROLCHANNEL (1 << 0) struct ST_CLASS(PoolNode) { struct STN_CLASSNAME PoolIndexStorageNode; struct ST_CLASSNAME PoolElementSelectionStorage; struct ST_CLASSNAME PoolElementIndexStorage; struct ST_CLASS(PoolHandlespaceNode)* OwnerPoolHandlespaceNode; struct PoolHandle Handle; const struct ST_CLASS(PoolPolicy)* Policy; int Protocol; int Flags; PoolElementSeqNumberType GlobalSeqNumber; void* UserData; }; void ST_CLASS(poolIndexStorageNodePrint)(const void* nodePtr, FILE* fd); int ST_CLASS(poolIndexStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2); void ST_CLASS(poolNodeNew)(struct ST_CLASS(PoolNode)* poolNode, const struct PoolHandle* poolHandle, const struct ST_CLASS(PoolPolicy)* poolPolicy, const int protocol, const int flags); void ST_CLASS(poolNodeDelete)(struct ST_CLASS(PoolNode)* poolNode); void ST_CLASS(poolNodeResequence)(struct ST_CLASS(PoolNode)* poolNode); size_t ST_CLASS(poolNodeGetPoolElementNodes)( const struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetFirstPoolElementNodeFromIndex)( struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetNextPoolElementNodeFromIndex)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetLastPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetNextPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeGetPrevPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode); void ST_CLASS(poolNodeUnlinkPoolElementNodeFromSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode); void ST_CLASS(poolNodeLinkPoolElementNodeToSelection)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode); unsigned int ST_CLASS(poolNodeCheckPoolElementNodeCompatibility)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeAddPoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode, unsigned int* errorCode); void ST_CLASS(poolNodeUpdatePoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const struct ST_CLASS(PoolElementNode)* source, unsigned int* errorCode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeFindPoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, const PoolElementIdentifierType identifier); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeFindNearestNextPoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, const PoolElementIdentifierType identifier); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolNodeRemovePoolElementNode)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode); void ST_CLASS(poolNodeGetDescription)(const struct ST_CLASS(PoolNode)* poolNode, char* buffer, const size_t bufferSize); void ST_CLASS(poolNodePrint)(const struct ST_CLASS(PoolNode)* poolNode, FILE* fd, const unsigned int fields); void ST_CLASS(poolNodeClear)(struct ST_CLASS(PoolNode)* poolNode, void (*poolElementNodeDisposer)(void* poolElementNode, void* userData), void* userData); size_t ST_CLASS(poolNodeSelectPoolElementNodesBySelectionStorageOrder)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, const size_t maxPoolElementNodes, const size_t maxIncrement); size_t ST_CLASS(poolNodeSelectPoolElementNodesByValueTree)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, const size_t maxPoolElementNodes, const size_t maxIncrement); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/scriptingpackets.h0000664000175000017500000000620311777021056014761 00000000000000/* $Id: scriptingpackets.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SCRIPTINGPACKETS_H #define SCRIPTINGPACKETS_H #include "tdtypes.h" #define PPID_SP 35 /* old value: 0x29097604 */ #define SPT_NOTREADY 0x00 #define SPT_READY 0x01 #define SPT_UPLOAD 0x02 #define SPT_DOWNLOAD 0x03 #define SPT_KEEPALIVE 0x04 #define SPT_KEEPALIVE_ACK 0x05 #define SPT_STATUS 0x06 #define SPT_ENVIRONMENT 0x07 #define SD_MAX_DATASIZE 1400 #define SR_MAX_INFOSIZE 64 #define SE_HASH_SIZE 20 /* 160-bit SHA-1 hash */ struct ScriptingCommonHeader { uint8_t Type; uint8_t Flags; uint16_t Length; } __attribute__((packed)); struct NotReady { struct ScriptingCommonHeader Header; uint32_t Reason; char Info[SR_MAX_INFOSIZE]; } __attribute__((packed)); #define SSNR_FULLY_LOADED 0x00000001 #define SSNR_OUT_OF_RESOURCES 0x00000002 struct Ready { struct ScriptingCommonHeader Header; char Info[SR_MAX_INFOSIZE]; } __attribute__((packed)); struct Upload { struct ScriptingCommonHeader Header; char Data[SD_MAX_DATASIZE]; } __attribute__((packed)); struct Download { struct ScriptingCommonHeader Header; char Data[SD_MAX_DATASIZE]; } __attribute__((packed)); struct KeepAlive { struct ScriptingCommonHeader Header; } __attribute__((packed)); struct KeepAliveAck { struct ScriptingCommonHeader Header; uint32_t Status; } __attribute__((packed)); struct Status { struct ScriptingCommonHeader Header; uint32_t Status; } __attribute__((packed)); struct Environment { struct ScriptingCommonHeader Header; uint8_t Hash[SE_HASH_SIZE]; } __attribute__((packed)); #define SEF_UPLOAD_NEEDED (1 << 0) #endif rsplib-3.0.1/rsplib/loglevel.c0000664000175000017500000001225411777021056013213 00000000000000/* $Id: loglevel.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "threadsafety.h" #include "stringutilities.h" #include #include #ifdef HAVE_STDERR_FILEPTR /* stderr is of type FILE* */ FILE** gStdLog = &stderr; #else /* stderr is a macro returning standard error FILE* */ static FILE* _stderr = stderr; FILE** gStdLog = &_stderr; #endif unsigned int gLogLevel = LOGLEVEL_ERROR; static bool gColorMode = true; static bool gCloseStdLog = false; struct ThreadSafety gLogMutex; static char gHostName[128] = { 0x00 }; /* ###### Set ASCII color ################################################ */ void setLogColor(const unsigned int color) { if(gColorMode) { fprintf(stdlog,"\x1b[%dm", 30 + (color % 8) + ((color > 8) ? 60 : 0)); } } /* ###### Initialize logfile ############################################# */ static bool initLogFile(const unsigned int logLevel, const char* fileName, const char* fileMode) { finishLogging(); if(fileName != NULL) { *gStdLog = fopen(fileName,fileMode); if(*gStdLog != NULL) { gCloseStdLog = true; gLogLevel = min(logLevel,MAX_LOGLEVEL); return(true); } } *gStdLog = stderr; gCloseStdLog = false; return(false); } /* ###### Set logging parameter ########################################## */ bool initLogging(const char* parameter) { if(!(strncmp(parameter,"-logfile=",9))) { return(initLogFile(gLogLevel,(char*)¶meter[9],"w")); } else if(!(strncmp(parameter,"-logappend=",11))) { return(initLogFile(gLogLevel,(char*)¶meter[11],"a")); } else if(!(strcmp(parameter,"-logquiet"))) { initLogFile(0,NULL,"w"); gLogLevel = 0; } else if(!(strncmp(parameter,"-loglevel=",10))) { gLogLevel = min(atol((char*)¶meter[10]),MAX_LOGLEVEL); } else if(!(strncmp(parameter,"-logcolor=",10))) { if(!(strcmp((char*)¶meter[10],"off"))) { gColorMode = false; } else { gColorMode = true; } } else { fprintf(stderr, "ERROR: Invalid logging parameter %s\n", parameter); return(false); } return(true); } /* ###### Begin logging ################################################## */ void beginLogging() { struct utsname hostInfo; threadSafetyNew(&gLogMutex, "_LogPrinter_"); if((gCloseStdLog) && (ftell(*gStdLog) > 0)) { fputs("\n#########################################################################################\n\n",*gStdLog); } if(uname(&hostInfo) != 0) { strcpy((char*)&gHostName, "?"); } else { snprintf((char*)&gHostName, sizeof(gHostName), "%s", hostInfo.nodename); } LOG_NOTE fprintf(stdlog,"Logging started, log level is %d.\n",gLogLevel); LOG_END } /* ###### Finish logging ################################################# */ void finishLogging() { if((*gStdLog) && (gCloseStdLog)) { LOG_ACTION fputs("Logging finished.\n",stdlog); LOG_END fclose(*gStdLog); gCloseStdLog = false; *gStdLog = stderr; } threadSafetyDelete(&gLogMutex); } /* ###### Obtain mutex for debug output ################################## */ void loggingMutexLock() { threadSafetyLock(&gLogMutex); } /* ###### Release mutex for debug output ################################# */ void loggingMutexUnlock() { threadSafetyUnlock(&gLogMutex); } /* ###### Get host info string ########################################### */ const char* getHostName() { return((const char*)gHostName); } rsplib-3.0.1/rsplib/loglevel.h0000664000175000017500000001265611777021056013226 00000000000000/* $Id: loglevel.h 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef LOGLEVEL_H #define LOGLEVEL_H #ifdef HAVE_CONFIG_H #include "config.h" #else #error HAVE_CONFIG_H has not been defined?! #endif #include "tdtypes.h" #include "timeutilities.h" #include "threadsafety.h" #include "debug.h" #include #include #ifdef __cplusplus extern "C" { #endif #define LOGLEVEL_ERROR 1 #define LOGLEVEL_WARNING 2 #define LOGLEVEL_NOTE 3 #define LOGLEVEL_ACTION 4 #define LOGLEVEL_VERBOSE1 5 #define LOGLEVEL_VERBOSE2 6 #define LOGLEVEL_VERBOSE3 7 #define LOGLEVEL_VERBOSE4 8 #define LOGLEVEL_VERBOSE5 9 #ifndef MAX_LOGLEVEL #warning MAX_LOGLEVEL should be defined in config.h! #define MAX_LOGLEVEL LOGLEVEL_VERBOSE5 #endif extern unsigned int gLogLevel; extern bool gLogColorMode; extern FILE** gStdLog; extern struct ThreadSafety gLogMutex; void setLogColor(const unsigned int color); #define stdlog (*gStdLog) #define logerror(text) fprintf(stdlog, "%s: %s\n", text, strerror(errno)) #define LOG_BEGIN(prefix,c1,c2) \ { \ loggingMutexLock(); \ setLogColor(c1); \ printTimeStamp(stdlog); \ setLogColor(c2); \ fprintf(stdlog,"P%lu.%lx@%s %s:%u %s()\n", \ (unsigned long)getpid(), \ (unsigned long)pthread_self(), \ getHostName(), \ __FILE__, \ __LINE__, \ __FUNCTION__ \ ); \ setLogColor(c1); \ printTimeStamp(stdlog); \ setLogColor(c2); \ fputs(prefix,stdlog); #define LOG_END \ setLogColor(0); \ fflush(stdlog); \ loggingMutexUnlock(); \ } #define LOG_END_FATAL \ fputs("FATAL ERROR - ABORTING!\n", stdlog); \ setLogColor(0); \ fflush(stdlog); \ abort(); \ } #define LOG_ERROR if((LOGLEVEL_ERROR <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_ERROR)) LOG_BEGIN("Error: ", 9, 1) #define LOG_WARNING if((LOGLEVEL_WARNING <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_WARNING)) LOG_BEGIN("Warning: ", 13, 5) #define LOG_ACTION if((LOGLEVEL_ACTION <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_ACTION)) LOG_BEGIN("", 12, 4) #define LOG_NOTE if((LOGLEVEL_NOTE <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_NOTE)) LOG_BEGIN("", 10, 2) #define LOG_VERBOSE LOG_VERBOSE1 #define LOG_VERBOSE1 if((LOGLEVEL_VERBOSE1 <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_VERBOSE1)) LOG_BEGIN("", 10, 3) #define LOG_VERBOSE2 if((LOGLEVEL_VERBOSE2 <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_VERBOSE2)) LOG_BEGIN("", 14, 6) #define LOG_VERBOSE3 if((LOGLEVEL_VERBOSE3 <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_VERBOSE3)) LOG_BEGIN("", 3, 3) #define LOG_VERBOSE4 if((LOGLEVEL_VERBOSE4 <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_VERBOSE4)) LOG_BEGIN("", 6, 6) #define LOG_VERBOSE5 if((LOGLEVEL_VERBOSE5 <= MAX_LOGLEVEL) && (gLogLevel >= LOGLEVEL_VERBOSE5)) LOG_BEGIN("", 7, 7) /** * Set logging parameter. * * @parameter Parameter. * @return true in case of success; false otherwise. */ bool initLogging(const char* parameter); /** * Begin logging. */ void beginLogging(); /** * Finish logging. */ void finishLogging(); /** * Obtain mutex for debug output. */ void loggingMutexLock(); /** * Release mutex for debug output. */ void loggingMutexUnlock(); /** * Obtain host name. */ const char* getHostName(); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/rspserver.10000664000175000017500000003074111777021056013354 00000000000000.\" $Id: rspserver.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt RspServer 1 .Os RSerPool Server .\" ###### Name ############################################################# .Sh NAME .Nm rspserver .Nd RSerPool Server (PE) for multiple example services .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm rspserver .Op Fl local=address:port,address,... .Op Fl asapannounce=address:port .Op Fl identifier=PE_identifier .Op Fl policy=policy_specification .Op Fl poolhandle=pool_handle .Op Fl quiet .Op Fl registrar=address:port .Op Fl rereginterval=milliseconds .Op Fl runtime=milliseconds .Op Fl uptime=seconds .Op Fl downtime=seconds .Op Fl logcolor=on|off .Op Fl logappend=filename .Op Fl logfile=filename .Op Fl loglevel=0-9 .Op Fl cspserver=address:port .Op Fl cspinterval=milliseconds .Nm rspserver .Op Fl calcapp .Op Fl capcapacity=calculations_per_second .Op Fl capcleanshutdownprobability=probability .Op Fl capcookiemaxcalculations=calculations .Op Fl capcookiemaxtime=seconds .Op Fl capkeepalivetransmissioninterval=milliseconds .Op Fl capkeepalivetimeoutinterval=milliseconds .Op Fl capmaxjobs=max_jobs .Op Fl capobject=name .Op Fl capscalar=scalae_file .Op Fl capvector=vector_file .Nm rspserver .Op Fl chargen .Op Fl chargenmaxthreads=threads .Nm rspserver .Op Fl daytime .Nm rspserver .Op Fl discard .Nm rspserver .Op Fl echo .Nm rspserver .Op Fl fractal .Op Fl fgpcookiemaxpackets=messages .Op Fl fgpcookiemaxtime=milliseconds .Op Fl fgpfailureafter=messages .Op Fl fgpmaxthreads=threads .Op Fl fgptestmode .Op Fl fgptransmittimeout=milliseconds .Nm rspserver .Op Fl pingpong .Op Fl pppfailureafter=messages .Op Fl pppmaxthreads=threads .Nm rspserver .Op Fl scripting .Op Fl sscachedirectory=directory .Op Fl sscachemaxentries=entries .Op Fl sscachemaxsize=kibibytes .Op Fl sskeepaliveinterval=milliseconds .Op Fl sskeepalivetimeout=milliseconds .Op Fl sskeeptempdirs .Op Fl ssmaxthreads=threads .Op Fl sstransmittimeout=milliseconds .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm rspserver is an example Reliable Server Pooling (RSerPool) pool element (PE) that provides multiple services. Upon startup, one service has to be selected by the command-line parameters. To start multiple services, run multiple instances. .Nm rspserver provides the following services: .Bl -tag -width indent .It CalcApp Calculation application model for performance tests. See http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf for more information. .It CharGen Sending as much character data as possible. .It Daytime Sending back current time of day. .It Discard Discarding incoming data. .It Echo Echoing back incoming data. .It Fractal Fractal generator with cookie-based failover. .It PingPong Simple request-response example using cookies for failover. .It Scripting Remote execution of scripts with upload/download of input/output data. Could for example be used for distributing simulation runs. Take care of security when using this service! .El .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .\" ====== Common parameters ================================================ .It Common Pool Element Parameters: .Bl -tag -width indent .It Fl local=address:port,address,... Sets the local endpoint address(es). .It Fl asapannounce=address:port|auto|off Sets the multicast address and port the ASAP instance listens for ASAP Server Announces on. .It Fl identifier=PE_identifier Sets a fixed PE identifier. Handle with care! .It Fl policy=policy_specification Sets the pool policy and its parameters (default is Round Robin). Supported policy specifications: .Bl -tag -width indent .It RoundRobin (default policy) .It WeightedRoundRobin:weight .It Random .It WeightedRandom:weight .It LeastUsed .It LeastUsedDegradation:increment .It PriorityLeastUsed:increment .It LeastUsedDPF:dpf_value .It Priority:priority .It ... .El .It Fl poolhandle=pool_handle Sets the PH to a non-default value; otherwise, the default setting is the service-specific default. .It Fl quiet Do not print startup and shutdown messages. .It Fl rereginterval=milliseconds Sets the PE's re-registration interval. .It Fl runtime=seconds After the configured number of seconds, the service is shut down. Floating-point values (e.g. 30.125) are possible. .It Fl uptime=seconds After negative exponential randomized uptime, the PE service goes down for a configured downtime. After that, it comes up again. This option can be used for testing the failure handling procedures. .It Fl downtime=seconds After negative exponential randomized downtime, the PE service comes up again. This option can be used for testing the failure handling procedures. .El .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .\" ====== ASAP Protocol ==================================================== .It ASAP Protocol Parameters: .Bl -tag -width indent .It Fl registrar=address:port Adds a static PR entry into the Registrar Table. It is possible to add multiple entries. .It Fl registrarannouncetimeout=milliseconds Sets the timeout for ASAP announces via multicast. .It Fl registrarconnecttimeout=milliseconds Sets the timeout for ASAP connection establishment. .It Fl registrarconnectmaxtrials=trials Sets the maximum number of ASAP connection establishment trials. .It Fl registrarrequesttimeout=milliseconds Sets the timeout for ASAP requests. .It Fl registrarresponsetimeout=milliseconds Sets the timeout for waiting to receive ASAP responses. .It Fl registrarrequestmaxtrials=trials Sets the maximum number of ASAP request trials. .El .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. By default, the content of the environment variable CSP_INTERVAL is used. If not defined, no CSP status reports will be sent. .It Fl cspserver=address:port Sets the address of a CSP monitor server. By default, the content of the environment variable CSP_SERVER is used. If not defined, no CSP status reports will be sent. .El .\" ====== Services ========================================================= .It Service Parameters: .Bl -tag -width indent .\" ====== CalcApp ========================================================== .It Fl calcapp Starts the CalcApp service. .Bl -tag -width indent .It Fl capcapacity=calculations_per_second Sets the service capacity in calculations per second. .It Fl capcleanshutdownprobability=probability Sets the probability for sending state cookies to all sessions before shutting down. .It Fl capcookiemaxcalculations=calculations Sets the cookie interval in calculations. .It Fl capcookiemaxtime=seconds Sets the cookie interval in seconds. .It Fl capkeepalivetransmissioninterval=milliseconds Sets the keep-alive transmission interval in milliseconds. .It Fl capkeepalivetimeoutinterval=milliseconds Sets the keep-alive timeout in milliseconds. .It Fl capmaxjobs=max_jobs Sets the an upper limit for the number of simultaneous CalcApp requests. .It Fl capobject=name Sets the object name for scalar hierarchy. .It Fl capscalar=scalar_file Sets the name of vector scalar file. .It Fl capvector=vector_file Sets the name of vector output file. .El .\" ====== CharGen ========================================================== .It Fl chargen Starts the CharGen service. .Bl -tag -width indent .It Fl chargenmaxthreads=threads Sets an upper limit for the number of simultaneous CharGen sessions. .El .\" ====== Daytime ========================================================== .It Fl daytime Starts the Daytime service. .\" ====== Discard ========================================================== .It Fl discard Starts the Discard service. .\" ====== Echo ============================================================= .It Fl echo Starts the Echo service. .\" ====== Fractal ========================================================== .It Fl fractal Starts the Fractal Generator service. .Bl -tag -width indent .It Fl fgpcookiemaxpackets=messages Send cookie after given number of Data messages .It Fl fgpcookiemaxtime=milliseconds Send cookie after given number of milliseconds. .It Fl fgpfailureafter=messages After the set number of data packets, the server will terminate the connection in order to test failovers. .It Fl fgpmaxthreads=threads Sets an upper limit for the number of simultaneous Fractal Generator sessions. .It Fl fgptestmode Generate simple test pattern instead of calculating a fractal graphics (useful to conserve CPU power when debugging). .It Fl fgptransmittimeout=milliseconds Sets transmit timeout in milliseconds. .El .\" ====== PingPong ========================================================= .It Fl pingpong Starts the PingPong service. .Bl -tag -width indent .It Fl pppfailureafter=messages After the set number of messages, the server will terminate the connection in order to test failovers. .It Fl pppmaxthreads=threads Sets an upper limit for the number of simultaneous PingPong sessions. .El .\" ====== Scripting ======================================================== .It Fl scripting Starts the Scripting service. .Bl -tag -width indent .It Fl sscachedirectory=directory Sets the environment cache directory. .It Fl sscachemaxentries=entries Sets the maximum number of environment cache entries. .It Fl sscachemaxsize=kibibytes Sets the maximum size of the environment cache in kibibytes. .It Fl sskeepaliveinterval=milliseconds Sets the keep-alive interval in milliseconds. .It Fl sskeepalivetimeout=milliseconds Sets the keep-alive timeout in milliseconds. .It Fl sskeeptempdirs Turns on keeping all temporary files for debugging. Handle with care! .It Fl ssmaxthreads=threads Sets an upper limit for the number of simultaneous sessions. .It Fl sstransmittimeout=milliseconds Sets the transmission timeout in milliseconds. .El .El .El .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm rspserver uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/statistics.cc0000664000175000017500000000521611777021056013737 00000000000000/* $Id: statistics.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include "debug.h" #include "statistics.h" // ###### Constructor ####################################################### Statistics::Statistics() { numSamples = 0; sumSamples = 0.0; sqSumSamples = 0.0; minSamples = 0.0; maxSamples = 0.0; } // ###### Destructor ######################################################## Statistics::~Statistics() { } // ###### Collect a valueue ################################################### void Statistics::collect(double value) { CHECK(++numSamples > 0); sumSamples += value; sqSumSamples += value * value; if(numSamples > 1) { if(value < minSamples) { minSamples = value; } else if(value > maxSamples) { maxSamples = value; } } else { minSamples = maxSamples = value; } } // ###### Get variance ###################################################### double Statistics::variance() const { if(numSamples <= 1) { return 0.0; } else { const double devsqr = (sqSumSamples - sumSamples * sumSamples / numSamples) / (numSamples - 1); if(devsqr <= 0.0) { return(0.0); } else { return(devsqr); } } } // ###### Get standard deviation ############################################ double Statistics::stddev() const { return(sqrt(variance())); } rsplib-3.0.1/rsplib/terminal0000775000175000017500000000017511777021056012776 00000000000000#!/bin/sh -e echo >&2 "WARNING: Usage of \"terminal\" is deprecated, it has been renamed to \"rspterminal\"!" rspterminal $@ rsplib-3.0.1/rsplib/session.h0000664000175000017500000000451111777021056013067 00000000000000/* $Id: session.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SESSION_H #define SESSION_H #include "tdtypes.h" #include "rserpool.h" #include "poolhandle.h" #include "tagitem.h" #include "simpleredblacktree.h" #include #ifdef __cplusplus extern "C" { #endif struct Session { struct SimpleRedBlackTreeNode SessionIDNode; struct SimpleRedBlackTreeNode AssocIDNode; sctp_assoc_t AssocID; rserpool_session_t SessionID; struct PoolHandle Handle; uint32_t ConnectedPE; bool IsIncoming; bool IsFailed; unsigned long long ConnectionTimeStamp; void* Cookie; size_t CookieSize; void* CookieEcho; size_t CookieEchoSize; unsigned long long ConnectTimeout; unsigned long long HandleResolutionRetryDelay; struct TagItem* Tags; char StatusText[128]; }; #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolelementnode-template_impl.h0000664000175000017500000005150111777021056017430 00000000000000/* $Id: poolelementnode-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* ###### Initialize ##################################################### */ void ST_CLASS(poolElementNodeNew)(struct ST_CLASS(PoolElementNode)* poolElementNode, const PoolElementIdentifierType identifier, const RegistrarIdentifierType homeRegistrarIdentifier, const unsigned int registrationLife, const struct PoolPolicySettings* pps, struct TransportAddressBlock* userTransport, struct TransportAddressBlock* registratorTransport, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID) { STN_METHOD(New)(&poolElementNode->PoolElementSelectionStorageNode); STN_METHOD(New)(&poolElementNode->PoolElementIndexStorageNode); STN_METHOD(New)(&poolElementNode->PoolElementTimerStorageNode); STN_METHOD(New)(&poolElementNode->PoolElementConnectionStorageNode); STN_METHOD(New)(&poolElementNode->PoolElementOwnershipStorageNode); poolElementNode->OwnerPoolNode = NULL; poolElementNode->Checksum = INITIAL_HANDLESPACE_CHECKSUM; poolElementNode->Identifier = identifier; poolElementNode->HomeRegistrarIdentifier = homeRegistrarIdentifier; poolElementNode->RegistrationLife = registrationLife; poolElementNode->PolicySettings = *pps; poolElementNode->Flags = 0; poolElementNode->SeqNumber = 0; poolElementNode->RoundCounter = 0; poolElementNode->VirtualCounter = 0; poolElementNode->SelectionCounter = 0; poolElementNode->Degradation = 0; poolElementNode->UnreachabilityReports = 0; poolElementNode->LastUpdateTimeStamp = 0; poolElementNode->TimerTimeStamp = 0; poolElementNode->TimerCode = 0; poolElementNode->ConnectionSocketDescriptor = connectionSocketDescriptor; poolElementNode->ConnectionAssocID = connectionAssocID; poolElementNode->UserTransport = userTransport; poolElementNode->RegistratorTransport = registratorTransport; poolElementNode->UserData = 0; poolElementNode->LastKeepAliveTransmission = 0; } /* ###### Invalidate ##################################################### */ void ST_CLASS(poolElementNodeDelete)(struct ST_CLASS(PoolElementNode)* poolElementNode) { CHECK(!STN_METHOD(IsLinked)(&poolElementNode->PoolElementSelectionStorageNode)); CHECK(!STN_METHOD(IsLinked)(&poolElementNode->PoolElementIndexStorageNode)); CHECK(!STN_METHOD(IsLinked)(&poolElementNode->PoolElementTimerStorageNode)); CHECK(!STN_METHOD(IsLinked)(&poolElementNode->PoolElementOwnershipStorageNode)); CHECK(!STN_METHOD(IsLinked)(&poolElementNode->PoolElementConnectionStorageNode)); poolElementNode->Checksum = 0; poolElementNode->RegistrationLife = 0; poolElementNode->OwnerPoolNode = NULL; poolElementNode->SeqNumber = 0; poolElementNode->RoundCounter = 0; poolElementNode->VirtualCounter = 0; poolElementNode->SelectionCounter = 0; poolElementNode->Degradation = 0; poolElementNode->UnreachabilityReports = 0; poolElementNode->LastUpdateTimeStamp = 0; poolElementNode->TimerTimeStamp = 0; poolElementNode->TimerCode = 0; poolElementNode->ConnectionSocketDescriptor = -1; poolElementNode->ConnectionAssocID = 0; /* Do not clear UserTransport, RegistratorTransport, UserData, Identifier and HomeRegistrarIdentifier yet - they may be necessary for user-specific dispose function! */ STN_METHOD(Delete)(&poolElementNode->PoolElementConnectionStorageNode); STN_METHOD(Delete)(&poolElementNode->PoolElementOwnershipStorageNode); STN_METHOD(Delete)(&poolElementNode->PoolElementTimerStorageNode); STN_METHOD(Delete)(&poolElementNode->PoolElementIndexStorageNode); STN_METHOD(Delete)(&poolElementNode->PoolElementSelectionStorageNode); poolPolicySettingsDelete(&poolElementNode->PolicySettings); } /* ###### Get textual description ######################################## */ void ST_CLASS(poolElementNodeGetDescription)( const struct ST_CLASS(PoolElementNode)* poolElementNode, char* buffer, const size_t bufferSize, const unsigned int fields) { char tmp[512]; char poolPolicySettingsDescription[512]; char transportAddressDescription[1024]; snprintf(buffer, bufferSize, "$%08x flags=", poolElementNode->Identifier); if(poolElementNode->Flags & PENF_NEW) { safestrcat(buffer, "[new]", bufferSize); } if(poolElementNode->Flags & PENF_UPDATED) { safestrcat(buffer, "[updated]", bufferSize); } if(poolElementNode->Flags & PENF_MARKED) { safestrcat(buffer, "[marked]", bufferSize); } if(fields & (PENPO_CONNECTION|PENPO_CHECKSUM|PENPO_HOME_PR|PENPO_REGLIFE|PENPO_UR_REPORTS|PENPO_LASTUPDATE)) { safestrcat(buffer, "\n ", bufferSize); } if(fields & PENPO_CONNECTION) { snprintf((char*)&tmp, sizeof(tmp), "c=(S%d,A%u) ", poolElementNode->ConnectionSocketDescriptor, (unsigned int)poolElementNode->ConnectionAssocID); safestrcat(buffer, tmp, bufferSize); } if(fields & PENPO_CHECKSUM) { snprintf((char*)&tmp, sizeof(tmp), "chsum=$%08x ", (unsigned int)handlespaceChecksumFinish(poolElementNode->Checksum)); safestrcat(buffer, tmp, bufferSize); } if(fields & PENPO_HOME_PR) { snprintf((char*)&tmp, sizeof(tmp), "home=$%08x ", poolElementNode->HomeRegistrarIdentifier); safestrcat(buffer, tmp, bufferSize); } if(fields & PENPO_REGLIFE) { snprintf((char*)&tmp, sizeof(tmp), "life=%ums ", poolElementNode->RegistrationLife); safestrcat(buffer, tmp, bufferSize); } if(fields & PENPO_UR_REPORTS) { snprintf((char*)&tmp, sizeof(tmp), "ur=%u ", poolElementNode->UnreachabilityReports); safestrcat(buffer, tmp, bufferSize); } if(fields & PENPO_LASTUPDATE) { snprintf((char*)&tmp, sizeof(tmp), "upd=%llu ", poolElementNode->LastUpdateTimeStamp); safestrcat(buffer, tmp, bufferSize); } if(fields & PENPO_POLICYINFO) { poolPolicySettingsGetDescription(&poolElementNode->PolicySettings, (char*)&poolPolicySettingsDescription, sizeof(poolPolicySettingsDescription)); snprintf((char*)&tmp, sizeof(tmp), "\n %s", poolPolicySettingsDescription); safestrcat(buffer, tmp, bufferSize); } if(fields & PENPO_POLICYSTATE) { snprintf((char*)&tmp, sizeof(tmp), "\n seq=%llu val=%llu rd=%u vrt=%u deg=$%x {sel=%llu s/w=%1.1f}", (unsigned long long)poolElementNode->SeqNumber, poolElementNode->PoolElementSelectionStorageNode.Value, poolElementNode->RoundCounter, poolElementNode->VirtualCounter, poolElementNode->Degradation, poolElementNode->SelectionCounter, (double)poolElementNode->SelectionCounter / (double)poolElementNode->PolicySettings.Weight); safestrcat(buffer, tmp, bufferSize); } if((fields & PENPO_USERTRANSPORT) && (poolElementNode->UserTransport->Addresses > 0)) { transportAddressBlockGetDescription(poolElementNode->UserTransport, (char*)&transportAddressDescription, sizeof(transportAddressDescription)); safestrcat(buffer, "\n userT: ", bufferSize); safestrcat(buffer, transportAddressDescription, bufferSize); } if((fields & PENPO_REGISTRATORTRANSPORT) && (poolElementNode->RegistratorTransport != NULL) && (poolElementNode->RegistratorTransport->Addresses > 0)) { transportAddressBlockGetDescription(poolElementNode->RegistratorTransport, (char*)&transportAddressDescription, sizeof(transportAddressDescription)); safestrcat(buffer, "\n regT: ", bufferSize); safestrcat(buffer, transportAddressDescription, bufferSize); } } /* ###### Print ########################################################## */ void ST_CLASS(poolElementNodePrint)( const struct ST_CLASS(PoolElementNode)* poolElementNode, FILE* fd, const unsigned int fields) { char buffer[4096]; ST_CLASS(poolElementNodeGetDescription)(poolElementNode, (char*)&buffer, sizeof(buffer), fields); fputs(buffer, fd); } /* ###### Compute PE checksum ############################################ */ HandlespaceChecksumAccumulatorType ST_CLASS(poolElementNodeComputeChecksum)( const struct ST_CLASS(PoolElementNode)* poolElementNode) { HandlespaceChecksumAccumulatorType checksum = INITIAL_HANDLESPACE_CHECKSUM; PoolElementIdentifierType identifier = htonl(poolElementNode->Identifier); checksum = handlespaceChecksumCompute(checksum, (const char*)&poolElementNode->OwnerPoolNode->Handle.Handle, poolElementNode->OwnerPoolNode->Handle.Size); checksum = handlespaceChecksumCompute(checksum, (const char*)&identifier, sizeof(identifier)); /* checksum = handlespaceChecksumCompute(checksum, (const char*)&poolElementNode->HomeRegistrarIdentifier, sizeof(poolElementNode->HomeRegistrarIdentifier)); checksum = handlespaceChecksumCompute(checksum, (const char*)&poolElementNode->PolicySettings.Weight, sizeof(poolElementNode->PolicySettings.Weight)); checksum = handlespaceChecksumCompute(checksum, (const char*)&poolElementNode->PolicySettings.Load, sizeof(poolElementNode->PolicySettings.Load)); checksum = handlespaceChecksumCompute(checksum, (const char*)&poolElementNode->PolicySettings.LoadDegradation, sizeof(poolElementNode->PolicySettings.LoadDegradation)); */ return(checksum); } /* ###### Update ######################################################### */ int ST_CLASS(poolElementNodeUpdate)(struct ST_CLASS(PoolElementNode)* poolElementNode, const struct ST_CLASS(PoolElementNode)* source) { poolElementNode->Flags &= ~PENF_MARKED; if( (poolPolicySettingsComparison(&poolElementNode->PolicySettings, &source->PolicySettings) != 0) || (poolElementNode->Degradation != 0) ) { /* ====== Update policy information ================================ */ poolElementNode->PolicySettings = source->PolicySettings; /* ====== Reset of degradation ===================================== */ poolElementNode->Degradation = 0; /* ====== Reduce virtual nodes counter, if necessary =============== */ if(poolElementNode->VirtualCounter > poolElementNode->PolicySettings.Weight) { poolElementNode->VirtualCounter = poolElementNode->PolicySettings.Weight; } poolElementNode->Flags |= PENF_UPDATED; return(1); } poolElementNode->Flags &= ~PENF_UPDATED; return(0); } /* ###### Selection Print ################################################ */ void ST_CLASS(poolElementSelectionStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PoolElementNode)* node = ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)((void*)nodePtr); fprintf(fd, "#$%08x", node->Identifier); } /* ###### Selection Comparison ########################################### */ int ST_CLASS(poolElementSelectionStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PoolElementNode)* node1 = ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)((void*)nodePtr1); const struct ST_CLASS(PoolElementNode)* node2 = ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)((void*)nodePtr2); const struct ST_CLASS(PoolNode)* poolNode = node1->OwnerPoolNode; return(poolNode->Policy->ComparisonFunction(node1, node2)); } /* ###### Index Print #################################################### */ void ST_CLASS(poolElementIndexStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PoolElementNode)* node = ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)((void*)nodePtr); fprintf(fd, "#$%08x", node->Identifier); } /* ###### Index Comparison ############################################### */ int ST_CLASS(poolElementIndexStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PoolElementNode)* node1 = ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)((void*)nodePtr1); const struct ST_CLASS(PoolElementNode)* node2 = ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)((void*)nodePtr2); if(node1->Identifier < node2->Identifier) { return(-1); } else if(node1->Identifier > node2->Identifier) { return(1); } return(0); } /* ###### Timer Print #################################################### */ void ST_CLASS(poolElementTimerStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PoolElementNode)* node = ST_CLASS(getPoolElementNodeFromTimerStorageNode)((void*)nodePtr); fprintf(fd, "#$%08x", node->Identifier); } /* ###### Timer Comparison ############################################### */ int ST_CLASS(poolElementTimerStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PoolElementNode)* node1 = ST_CLASS(getPoolElementNodeFromTimerStorageNode)((void*)nodePtr1); const struct ST_CLASS(PoolElementNode)* node2 = ST_CLASS(getPoolElementNodeFromTimerStorageNode)((void*)nodePtr2); if(node1->TimerTimeStamp < node2->TimerTimeStamp) { return(-1); } else if(node1->TimerTimeStamp > node2->TimerTimeStamp) { return(1); } if(node1->Identifier < node2->Identifier) { return(-1); } else if(node1->Identifier > node2->Identifier) { return(1); } return(poolHandleComparison(&node1->OwnerPoolNode->Handle, &node2->OwnerPoolNode->Handle)); } /* ###### Ownership Print ################################################# */ void ST_CLASS(poolElementOwnershipStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PoolElementNode)* node = ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)((void*)nodePtr); fprintf(fd, "#$%08x", node->Identifier); } /* ###### Ownership Comparison ############################################ */ int ST_CLASS(poolElementOwnershipStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PoolElementNode)* node1 = ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)((void*)nodePtr1); const struct ST_CLASS(PoolElementNode)* node2 = ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)((void*)nodePtr2); if(node1->HomeRegistrarIdentifier < node2->HomeRegistrarIdentifier) { return(-1); } else if(node1->HomeRegistrarIdentifier > node2->HomeRegistrarIdentifier) { return(1); } if(node1->Identifier < node2->Identifier) { return(-1); } else if(node1->Identifier > node2->Identifier) { return(1); } return(poolHandleComparison(&node1->OwnerPoolNode->Handle, &node2->OwnerPoolNode->Handle)); } /* ###### Connection Print ################################################# */ void ST_CLASS(poolElementConnectionStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PoolElementNode)* node = ST_CLASS(getPoolElementNodeFromConnectionStorageNode)((void*)nodePtr); fprintf(fd, "#$%08x (S%d,A%u) ", node->Identifier, node->ConnectionSocketDescriptor, (unsigned int)node->ConnectionAssocID); } /* ###### Connection Comparison ############################################ */ int ST_CLASS(poolElementConnectionStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PoolElementNode)* node1 = ST_CLASS(getPoolElementNodeFromConnectionStorageNode)((void*)nodePtr1); const struct ST_CLASS(PoolElementNode)* node2 = ST_CLASS(getPoolElementNodeFromConnectionStorageNode)((void*)nodePtr2); if(node1->ConnectionSocketDescriptor < node2->ConnectionSocketDescriptor) { return(-1); } else if(node1->ConnectionSocketDescriptor > node2->ConnectionSocketDescriptor) { return(1); } if(node1->ConnectionAssocID < node2->ConnectionAssocID) { return(-1); } else if(node1->ConnectionAssocID > node2->ConnectionAssocID) { return(1); } if(node1->Identifier < node2->Identifier) { return(-1); } else if(node1->Identifier > node2->Identifier) { return(1); } return(poolHandleComparison(&node1->OwnerPoolNode->Handle, &node2->OwnerPoolNode->Handle)); } /* ###### Get PoolElementNode from given Selection Node ################## */ struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)(void* node) { const struct ST_CLASS(PoolElementNode)* dummy = (struct ST_CLASS(PoolElementNode)*)node; long n = (long)node - ((long)&dummy->PoolElementSelectionStorageNode - (long)dummy); return((struct ST_CLASS(PoolElementNode)*)n); } /* ###### Get PoolElementNode from given Index Node ###################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)(void* node) { const struct ST_CLASS(PoolElementNode)* dummy = (struct ST_CLASS(PoolElementNode)*)node; long n = (long)node - ((long)&dummy->PoolElementIndexStorageNode - (long)dummy); return((struct ST_CLASS(PoolElementNode)*)n); } /* ###### Get PoolElementNode from given Timer Node ###################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromTimerStorageNode)(void* node) { const struct ST_CLASS(PoolElementNode)* dummy = (struct ST_CLASS(PoolElementNode)*)node; long n = (long)node - ((long)&dummy->PoolElementTimerStorageNode - (long)dummy); return((struct ST_CLASS(PoolElementNode)*)n); } /* ###### Get PoolElementNode from given Ownership Node ################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)(void* node) { const struct ST_CLASS(PoolElementNode)* dummy = (struct ST_CLASS(PoolElementNode)*)node; long n = (long)node - ((long)&dummy->PoolElementOwnershipStorageNode - (long)dummy); return((struct ST_CLASS(PoolElementNode)*)n); } /* ###### Get PoolElementNode from given Connection Node ################### */ struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromConnectionStorageNode)(void* node) { const struct ST_CLASS(PoolElementNode)* dummy = (struct ST_CLASS(PoolElementNode)*)node; long n = (long)node - ((long)&dummy->PoolElementConnectionStorageNode - (long)dummy); return((struct ST_CLASS(PoolElementNode)*)n); } rsplib-3.0.1/rsplib/rspregistrar-takeover.c0000664000175000017500000005013211777021056015744 00000000000000/* $Id: rspregistrar-takeover.c 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" static void registrarFinishTakeover(struct Registrar* registrar, const RegistrarIdentifierType targetID, struct TakeoverProcess* takeoverProcess); /* ###### Handle ENRP Init Takeover ###################################### */ void registrarHandleENRPInitTakeover(struct Registrar* registrar, int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PeerListNode)* peerListNode; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own InitTakeover message\n", stdlog); LOG_END return; } LOG_VERBOSE fprintf(stdlog, "Got InitTakeover from peer $%08x for target $%08x\n", message->SenderID, message->RegistrarIdentifier); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "InitTakeover", "", 0, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, message->RegistrarIdentifier, 0); #endif /* ====== We are the takeover target -> try to stop it by Peer Presence */ if(message->RegistrarIdentifier == registrar->ServerID) { LOG_WARNING fprintf(stdlog, "Peer $%08x has initiated takeover -> trying to stop this by Presences\n", message->SenderID); LOG_END /* ====== Send presence as multicast announce ====================== */ if(registrar->ENRPAnnounceViaMulticast) { registrarSendENRPPresence(registrar, registrar->ENRPMulticastOutputSocket, 0, 0, (union sockaddr_union*)®istrar->ENRPMulticastAddress, 1, 0, false); } /* ====== Send presence to all peers =============================== */ registrarSendENRPPresenceToAllPeers(registrar); } /* ====== Another peer is the takeover target ========================= */ else { peerListNode = ST_CLASS(peerListManagementFindPeerListNode)( ®istrar->Peers, message->RegistrarIdentifier, NULL); if(peerListNode) { /* ====== We have also started a takeover -> negotiation required */ if(peerListNode->TakeoverProcess != NULL) { if(message->SenderID < registrar->ServerID) { LOG_ACTION fprintf(stdlog, "Peer $%08x, also trying takeover of $%08x, has lower ID -> we ($%08x) abort our takeover\n", message->SenderID, message->RegistrarIdentifier, registrar->ServerID); LOG_END /* Acknowledge peer's takeover */ peerListNode->TakeoverRegistrarID = message->SenderID; registrarSendENRPInitTakeoverAck(registrar, fd, assocID, message->SenderID, message->RegistrarIdentifier); /* Cancel our takeover process */ takeoverProcessDelete(peerListNode->TakeoverProcess); peerListNode->TakeoverProcess = NULL; /* Schedule a max-time-no-response timer */ ST_CLASS(peerListManagementDeactivateTimer)( ®istrar->Peers, peerListNode); ST_CLASS(peerListManagementActivateTimer)( ®istrar->Peers, peerListNode, PLNT_MAX_TIME_NO_RESPONSE, getMicroTime() + registrar->PeerMaxTimeNoResponse); } else { LOG_ACTION fprintf(stdlog, "Peer $%08x, also trying takeover of $%08x, has higher ID -> we ($%08x) continue our takeover\n", message->SenderID, message->RegistrarIdentifier, registrar->ServerID); LOG_END } } /* ====== Acknowledge takeover ================================== */ else { LOG_ACTION fprintf(stdlog, "Acknowledging peer $%08x's takeover of $%08x\n", message->SenderID, message->RegistrarIdentifier); LOG_END peerListNode->TakeoverRegistrarID = message->SenderID; registrarSendENRPInitTakeoverAck(registrar, fd, assocID, message->SenderID, message->RegistrarIdentifier); } } /* ====== The target is unknown. Agree to takeover. ================ */ else { LOG_WARNING fprintf(stdlog, "Acknowledging peer $%08x's takeover of $%08x (which is unknown for us!)\n", message->SenderID, message->RegistrarIdentifier); LOG_END registrarSendENRPInitTakeoverAck(registrar, fd, assocID, message->SenderID, message->RegistrarIdentifier); } } } /* ###### Send ENRP Init Takeover ######################################## */ void registrarSendENRPInitTakeoverToAllPeers(struct Registrar* registrar, const RegistrarIdentifierType targetID) { struct ST_CLASS(PeerListNode)* peerListNode; struct RSerPoolMessage* message; message = rserpoolMessageNew(NULL, 65536); if(message != NULL) { message->Type = EHT_INIT_TAKEOVER; message->Flags = 0x00; message->SenderID = registrar->ServerID; message->ReceiverID = 0; message->RegistrarIdentifier = targetID; #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "InitTakeover", "", 0, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, message->RegistrarIdentifier, 0); #endif peerListNode = ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)(®istrar->Peers); while(peerListNode != NULL) { message->ReceiverID = peerListNode->Identifier; message->AddressArray = peerListNode->AddressBlock->AddressArray; message->Addresses = peerListNode->AddressBlock->Addresses; LOG_VERBOSE fprintf(stdlog, "Sending InitTakeover to unicast peer $%08x...\n", peerListNode->Identifier); LOG_END rserpoolMessageSend(IPPROTO_SCTP, registrar->ENRPUnicastSocket, 0, 0, 0, 0, message); peerListNode = ST_CLASS(peerListManagementGetNextPeerListNodeFromIndexStorage)( ®istrar->Peers, peerListNode); } rserpoolMessageDelete(message); } } /* ###### Handle ENRP Init Takeover Ack ################################## */ void registrarHandleENRPInitTakeoverAck(struct Registrar* registrar, int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PeerListNode)* peerListNode; size_t acksToGo; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own InitTakeoverAck message\n", stdlog); LOG_END return; } peerListNode = ST_CLASS(peerListManagementFindPeerListNode)( ®istrar->Peers, message->RegistrarIdentifier, NULL); if((peerListNode) && (peerListNode->TakeoverProcess)) { LOG_VERBOSE fprintf(stdlog, "Got InitTakeoverAck from peer $%08x for target $%08x\n", message->SenderID, message->RegistrarIdentifier); LOG_END acksToGo = takeoverProcessAcknowledge(peerListNode->TakeoverProcess, message->RegistrarIdentifier, message->SenderID); #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "InitTakeoverAck", "", 0, acksToGo, 0, NULL, 0, message->SenderID, message->ReceiverID, message->RegistrarIdentifier, 0); #endif if(acksToGo > 0) { LOG_ACTION fprintf(stdlog, "Peer $%08x acknowledges takeover of target $%08x. %u acknowledges to go.\n", message->SenderID, message->RegistrarIdentifier, (unsigned int)takeoverProcessGetOutstandingAcks(peerListNode->TakeoverProcess)); LOG_END } else { LOG_ACTION fprintf(stdlog, "Takeover of target $%08x confirmed. Taking it over now.\n", message->RegistrarIdentifier); LOG_END registrarFinishTakeover(registrar, message->RegistrarIdentifier, peerListNode->TakeoverProcess); takeoverProcessDelete(peerListNode->TakeoverProcess); peerListNode->TakeoverProcess = NULL; ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( ®istrar->Peers, peerListNode); } } else { LOG_VERBOSE fprintf(stdlog, "Ignoring InitTakeoverAck from peer $%08x for target $%08x\n", message->SenderID, message->RegistrarIdentifier); LOG_END } } /* ###### Send ENRP Init Takeover Ack #################################### */ void registrarSendENRPInitTakeoverAck(struct Registrar* registrar, const int sd, const sctp_assoc_t assocID, const RegistrarIdentifierType receiverID, const RegistrarIdentifierType targetID) { struct RSerPoolMessage* message; message = rserpoolMessageNew(NULL, 65536); if(message != NULL) { message->Type = EHT_INIT_TAKEOVER_ACK; message->AssocID = assocID; message->Flags = 0x00; message->SenderID = registrar->ServerID; message->ReceiverID = receiverID; message->RegistrarIdentifier = targetID; LOG_ACTION fprintf(stdlog, "Sending InitTakeoverAck for target $%08x to peer $%08x...\n", message->RegistrarIdentifier, message->ReceiverID); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "InitTakeoverAck", "", 0, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, message->RegistrarIdentifier, 0); #endif if(rserpoolMessageSend(IPPROTO_SCTP, sd, assocID, 0, 0, 0, message) == false) { LOG_WARNING fputs("Sending InitTakeoverAck failed\n", stdlog); LOG_END } rserpoolMessageDelete(message); } } /* ###### Take over all PEs from dead peer ############################### */ static void registrarFinishTakeover(struct Registrar* registrar, const RegistrarIdentifierType targetID, struct TakeoverProcess* takeoverProcess) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* nextPoolElementNode; LOG_WARNING fprintf(stdlog, "Taking over peer $%08x...\n", targetID); LOG_END /* ====== Send Takeover Servers ======================================= */ registrarSendENRPTakeoverServerToAllPeers(registrar, targetID); /* ====== Update PEs' home PR identifier ============================== */ poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( ®istrar->Handlespace.Handlespace, targetID); while(poolElementNode) { nextPoolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( ®istrar->Handlespace.Handlespace, poolElementNode); LOG_ACTION fprintf(stdlog, "Taking ownership of pool element $%08x in pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs("\n", stdlog); LOG_END /* Deactivate expiry timer */ ST_CLASS(poolHandlespaceNodeDeactivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode); /* Update registrarHandlespace */ ST_CLASS(poolHandlespaceNodeUpdateOwnershipOfPoolElementNode)( ®istrar->Handlespace.Handlespace, poolElementNode, registrar->ServerID); /* Tell node about new home PR */ registrarSendASAPEndpointKeepAlive(registrar, poolElementNode, true); /* Schedule endpoint keep-alive timeout */ ST_CLASS(poolHandlespaceNodeActivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode, PENT_KEEPALIVE_TIMEOUT, getMicroTime() + registrar->EndpointKeepAliveTimeoutInterval); poolElementNode = nextPoolElementNode; } /* ====== Restart the registrarHandlespace action timer ======================== */ timerRestart(®istrar->HandlespaceActionTimer, ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( ®istrar->Handlespace)); /* ====== Remove takeover process ===================================== */ LOG_WARNING fprintf(stdlog, "Takeover of peer $%08x completed\n", targetID); LOG_END } /* ###### Handle ENRP Init Takeover Server ############################### */ void registrarHandleENRPTakeoverServer(struct Registrar* registrar, int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* nextPoolElementNode; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own TakeoverServer message\n", stdlog); LOG_END return; } LOG_ACTION fprintf(stdlog, "Got TakeoverServer from peer $%08x for target $%08x\n", message->SenderID, message->RegistrarIdentifier); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "TakeoverServer", "", 0, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, message->RegistrarIdentifier, 0); #endif /* ====== Update PEs' home PR identifier ============================== */ poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( ®istrar->Handlespace.Handlespace, message->RegistrarIdentifier); while(poolElementNode) { nextPoolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( ®istrar->Handlespace.Handlespace, poolElementNode); LOG_ACTION fprintf(stdlog, "Changing ownership of pool element $%08x in pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs("\n", stdlog); LOG_END /* Update registrarHandlespace */ ST_CLASS(poolHandlespaceNodeUpdateOwnershipOfPoolElementNode)( ®istrar->Handlespace.Handlespace, poolElementNode, message->SenderID); poolElementNode = nextPoolElementNode; } } /* ###### Send ENRP Init Takeover Server ################################# */ static void registrarSendENRPTakeoverServer(struct Registrar* registrar, int sd, const sctp_assoc_t assocID, int msgSendFlags, const union sockaddr_union* destinationAddressList, const size_t destinationAddresses, const RegistrarIdentifierType receiverID, const RegistrarIdentifierType targetID) { struct RSerPoolMessage* message; message = rserpoolMessageNew(NULL, 65536); if(message) { message->Type = EHT_TAKEOVER_SERVER; message->PPID = PPID_ENRP; message->AssocID = assocID; message->AddressArray = (union sockaddr_union*)destinationAddressList; message->Addresses = destinationAddresses; message->Flags = 0x00; message->SenderID = registrar->ServerID; message->ReceiverID = receiverID; message->RegistrarIdentifier = targetID; #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "TakeoverServer", "", 0, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, message->RegistrarIdentifier, 0); #endif if(rserpoolMessageSend(IPPROTO_SCTP, sd, assocID, msgSendFlags, 0, 0, message) == false) { LOG_WARNING fputs("Sending TakeoverServer failed\n", stdlog); LOG_END } rserpoolMessageDelete(message); } } /* ###### Send ENRP takeover server message to all peers ################# */ void registrarSendENRPTakeoverServerToAllPeers(struct Registrar* registrar, const RegistrarIdentifierType targetID) { #ifndef MSG_SEND_TO_ALL struct ST_CLASS(PeerListNode)* peerListNode; peerListNode = ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)(®istrar->Peers); while(peerListNode != NULL) { if(peerListNode->Identifier != UNDEFINED_REGISTRAR_IDENTIFIER) { registrarSendENRPTakeoverServer(registrar, registrar->ENRPUnicastSocket, 0, 0, NULL, 0, peerListNode->Identifier, targetID); } peerListNode = ST_CLASS(peerListManagementGetNextPeerListNodeFromIndexStorage)( ®istrar->Peers, peerListNode); } #else #warning Using MSG_SEND_TO_ALL! registrarSendENRPTakeoverServer(registrar, registrar->ENRPUnicastSocket, 0, MSG_SEND_TO_ALL, NULL, 0, UNDEFINED_REGISTRAR_IDENTIFIER, targetID); #endif } rsplib-3.0.1/rsplib/leaflinkedredblacktree.c0000664000175000017500000000256011777021056016047 00000000000000/* $Id: leaflinkedredblacktree.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "leaflinkedredblacktree.h" #include "redblacktree_impl.h" rsplib-3.0.1/rsplib/leaflinkedredblacktree.h0000664000175000017500000000264711777021056016062 00000000000000/* $Id: leaflinkedredblacktree.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef LEAFLINKEDREDBLACKTREE_H #define LEAFLINKEDREDBLACKTREE_H #define USE_LEAFLINKED #include "redblacktree.h" #endif rsplib-3.0.1/rsplib/thread.cc0000664000175000017500000000546311777021056013020 00000000000000/* $Id: thread.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include #include "thread.h" // ###### Constructor ####################################################### TDThread::TDThread() { MyThread = 0; lock(); Stopping = false; unlock(); } // ###### Destructor ######################################################## TDThread::~TDThread() { if(MyThread != 0) { waitForFinish(); } } // ###### Start routine to lauch thread's run() function #################### void* TDThread::startRoutine(void* object) { TDThread* thread = (TDThread*)object; thread->run(); return(NULL); } // ###### Start thread ###################################################### bool TDThread::start() { if(MyThread == 0) { lock(); Stopping = false; unlock(); if(pthread_create(&MyThread, NULL, startRoutine, (void*)this) == 0) { return(true); } MyThread = 0; fputs("ERROR: Unable to start new thread!\n", stderr); } else { fputs("ERROR: Thread already running!\n", stderr); } return(false); } // ###### Stop thread ####################################################### void TDThread::stop() { lock(); Stopping = true; unlock(); } // ###### Wait until thread has been finished ############################### void TDThread::waitForFinish() { if(MyThread != 0) { pthread_join(MyThread, NULL); MyThread = 0; } } // ###### Wait a given amount of microseconds ############################### void TDThread::delay(const unsigned int us) { usleep(us); } rsplib-3.0.1/rsplib/scriptingserviceexample.10000664000175000017500000000756011777021056016263 00000000000000.\" $Id: scriptingserviceexample.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt ScriptingServiceExample 1 .Os Scripting Control .\" ###### Name ############################################################# .Sh NAME .Nm scriptingserviceexample .Nd Example client script for the Scripting Service .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm scriptingserviceexample .Op ID .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm scriptingserviceexample is a small shell script providing an example of how to use the scripting service PU and PE: it first creates a temporary directory with a name created from the given unique ID. In this directory, an input directory is created containing two files: an example input file "my-input.data" and a run script "ssrun" (the run script is written by echo commands within scriptingserviceexample). The input directory is archived by Tar/GZip and provided to scriptingclient as input file. scriptingclient distributes the input to a Scripting PE, which unpacks the archive and executes "ssrun". "ssrun" gets the name of an output archive as its first argument; this archive is created by the example script and contains an example output file "my-output.data". The output archive is transferred back to the PU. Finally, scriptingserviceexample dumps the content of "my-output.data". .br .Nm scriptingserviceexample can be taken as an example to do something more useful with the scripting service: for example, simulation input could be packaged with a script actually executing a simulation program on the input and archiving the results. Then, the scripting service can be used to distribute a set of simulation runs to a pool of processing nodes. .br Important note on security: the scripting service does not include any security features yet. That is, arbitrary scripts will be executed. Without modifications (for example signatures), do NOT use it outside of a controlled environment! .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It ID Gives an unique identifier for the example run, for example: 1234. .El .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/scriptingclient.10000664000175000017500000001556111777021056014525 00000000000000.\" $Id: scriptingclient.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt ScriptingClient 1 .Os Scripting Client .\" ###### Name ############################################################# .Sh NAME .Nm scriptingclient .Nd RSerPool Client (PU) for the Scripting service .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm scriptingclient .Op Fl poolhandle=pool_handle .Op Fl environment=file_name .Op Fl input=file_name .Op Fl output=file_name .Op Fl quiet .Op Fl maxretry=trials .Op Fl retrydelay=milliseconds .Op Fl runid=description .Op Fl transmittimeout=milliseconds .Op Fl keepaliveinterval=milliseconds .Op Fl keepalivetimeout=milliseconds .Op Fl cspinterval=milliseconds .Op Fl cspserver=address:port .Op Fl logappend=filename .Op Fl logcolor=on|off .Op Fl logfile=filename .Op Fl loglevel=0-9 .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm scriptingclient is a Reliable Server Pooling (RSerPool) pool user (PU) for the scripting service. The purpose of this service is to distribute input data to a scripting PE, execute a script doing some useful work on the input data and returning output data. For example, this service can be used for distributed simulation processing. .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It Fl poolhandle=pool_handle Sets the PH to a non-default value; otherwise, the default setting is "ScriptingPool". .\" ====== Service parameters =============================================== .It Service Parameters: .Bl -tag -width indent .It Fl environment=file_name Sets the name of the environment file to upload to the PE. The PE may cache this environment file, allowing to skip a subsequent upload of the same environment file. .It Fl input=file_name Sets the name of the input file to upload to the PE. .It Fl output=file_name Sets the name of the output file to write the download from the PE to. .It Fl quiet Turns on quiet mode, i.e. only few information is printed. .It Fl maxretry=trials Maximum number of retries upon errors on the remote site. The error counter only increments when the remote-side script returns a non-zero error code. When the error limit is reached, the received output file will be downloaded for debugging purposes. .It Fl retrydelay=milliseconds Sets the retry delay upon failover in milliseconds. .It Fl runid=description Add the given description to all log lines of the scripting service PU operation. This can be useful when multiple PUs are running simultaneously. .It Fl transmittimeout=milliseconds Sets the transmission timeout in milliseconds. .It Fl keepaliveinterval=milliseconds Sets the keep-alive interval in milliseconds. .It Fl keepalivetimeout=milliseconds Sets the keep-alive timeout in milliseconds. .El .\" ====== ASAP Protocol ==================================================== .It ASAP Protocol Parameters: .Bl -tag -width indent .It Fl registrar=address:port Adds a static PR entry into the Registrar Table. It is possible to add multiple entries. .It Fl registrarannouncetimeout=milliseconds Sets the timeout for ASAP announces via multicast. .It Fl registrarconnecttimeout=milliseconds Sets the timeout for ASAP connection establishment. .It Fl registrarconnectmaxtrials=trials Sets the maximum number of ASAP connection establishment trials. .It Fl registrarrequesttimeout=milliseconds Sets the timeout for ASAP requests. .It Fl registrarresponsetimeout=milliseconds Sets the timeout for waiting to receive ASAP responses. .It Fl registrarrequestmaxtrials=trials Sets the maximum number of ASAP request trials. .El .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. By default, the content of the environment variable CSP_INTERVAL is used. If not defined, no CSP status reports will be sent. .It Fl cspserver=address:port Sets the address of a CSP monitor server. By default, the content of the environment variable CSP_SERVER is used. If not defined, no CSP status reports will be sent. .El .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm scriptingclient uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/scriptingclient.c0000664000175000017500000006431611777021056014611 00000000000000/* $Id: scriptingclient.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "scriptingpackets.h" #include "breakdetector.h" #include "timeutilities.h" #include "netutilities.h" #include "randomizer.h" #include "netutilities.h" #include "sha1.h" #ifdef ENABLE_CSP #include "componentstatuspackets.h" #endif #include #include #include #include #include #include #define SSCR_OKAY 0 #define SSCR_COMPLETE 1 #define SSCR_FAILOVER 2 #define SSCS_WAIT_SERVER_READY 1 #define SSCS_WAIT_ENVIRONMENT 2 #define SSCS_WAIT_START_PROCESSING 3 #define SSCS_PROCESSING 4 #define SSCS_DOWNLOAD 5 static uint8_t EnvironmentHash[SE_HASH_SIZE]; static unsigned long long EnvironmentSize = 0; static const char* EnvironmentName = NULL; static const char* InputName = NULL; static const char* OutputName = NULL; static FILE* OutputFile = NULL; static bool Quiet = false; static unsigned int MaxRetry = 3; static unsigned long long TransmitTimeout = 59500000; static unsigned long long KeepAliveInterval = 10000000; static unsigned long long KeepAliveTimeout = 10000000; static unsigned long long RetryDelay = 10000000; static const char* RunID = NULL; static unsigned int State = SSCS_WAIT_SERVER_READY; static unsigned int Trial = 1; static uint32_t ExitStatus = 0; static bool HasAssignedPE = false; static char InfoString[SR_MAX_INFOSIZE + 1] = ""; static bool KeepAliveTransmitted; static unsigned long long LastKeepAlive; /* ###### Randomize waiting time ######################################### */ static unsigned long long randomizeWaitingTime(const unsigned long long interval) { const double originalInterval = (double)interval; const double variation = 0.250 * originalInterval; const double nextInterval = originalInterval - (variation / 2.0) + variation * ((double)rand() / (double)RAND_MAX); return((unsigned long long)nextInterval); } /* ###### Write new log line ############################################# */ static void newLogLine(FILE* fh) { printTimeStamp(fh); if(RunID) { if(InfoString[0] != 0x00) { fprintf(fh, "[%s@%s] ", RunID, InfoString); } else { fprintf(fh, "[%s] ", RunID); } } } /* ###### Upload input file ############################################## */ static unsigned int performUpload(int sd, const char* name) { struct Upload upload; size_t dataLength; ssize_t sent; FILE* fh = fopen(name, "r"); if(fh == NULL) { printTimeStamp(stderr); fprintf(stderr, "ERROR: Unable to open file \"%s\"!\n", name); exit(1); } newLogLine(stdout); puts("Uploading ..."); fflush(stdout); for(;;) { dataLength = fread((char*)&upload.Data, 1, sizeof(upload.Data), fh); if(dataLength >= 0) { upload.Header.Type = SPT_UPLOAD; upload.Header.Flags = 0x00; upload.Header.Length = htons(dataLength + sizeof(struct ScriptingCommonHeader)); sent = rsp_sendmsg(sd, (const char*)&upload, dataLength + sizeof(struct ScriptingCommonHeader), 0, 0, htonl(PPID_SP), 0, 0, 0, (int)(TransmitTimeout / 1000)); if(sent != (ssize_t)dataLength + (ssize_t)sizeof(struct ScriptingCommonHeader)) { newLogLine(stdout); printf("Upload error: %s\n", strerror(errno)); fflush(stdout); return(SSCR_FAILOVER); } if(dataLength == 0) { break; } } else { newLogLine(stderr); fprintf(stderr, "ERROR: Reading failed in \"%s\"!\n", name); exit(1); } } fclose(fh); newLogLine(stdout); puts("Upload complete."); fflush(stdout); return(SSCR_OKAY); } /* ###### Handle Status message ############################################# */ static unsigned int handleStatusMessage(const struct Status* status, const size_t length) { if(length >= sizeof(struct Status)) { ExitStatus = ntohl(status->Status); if(ExitStatus != 0) { newLogLine(stdout); printf("Got exit status %u from remote side!\n", ExitStatus); fflush(stdout); Trial++; if(Trial < MaxRetry) { newLogLine(stdout); printf("Trying again (Trial %u of %u) ...\n", Trial, MaxRetry); fflush(stdout); return(SSCR_FAILOVER); } newLogLine(stderr); fputs("Maximum number of trials reached -> check your input and the results!\n", stderr); fputs("Trying to download the results file for debugging ...", stderr); /* Final trial has failed: continue with download of the error output! */ } return(SSCR_OKAY); } else { newLogLine(stdout); puts("Invalid Status message!"); fflush(stdout); return(SSCR_FAILOVER); } } /* ###### Send KeepAlive message ######################################### */ static unsigned int sendKeepAliveMessage(int sd) { struct KeepAlive keepAlive; ssize_t sent; keepAlive.Header.Type = SPT_KEEPALIVE; keepAlive.Header.Flags = 0x00; keepAlive.Header.Length = htons(sizeof(keepAlive)); sent = rsp_sendmsg(sd, (const char*)&keepAlive, sizeof(keepAlive), 0, 0, htonl(PPID_SP), 0, 0, 0, 0); if(sent != sizeof(keepAlive)) { if((State != SSCS_WAIT_SERVER_READY) && (State != SSCS_WAIT_ENVIRONMENT) && (State != SSCS_WAIT_START_PROCESSING)) { newLogLine(stdout); printf("Keep-Alive transmission error in state #%u: %s\n", State, strerror(errno)); fflush(stdout); } else { newLogLine(stdout); puts("Trying again ..."); fflush(stdout); } return(SSCR_FAILOVER); } KeepAliveTransmitted = true; LastKeepAlive = getMicroTime(); return(SSCR_OKAY); } /* ###### Handle KeepAliveAck message #################################### */ static unsigned int handleKeepAliveAckMessage() { KeepAliveTransmitted = false; LastKeepAlive = getMicroTime(); return(SSCR_OKAY); } /* ###### Send KeepAliveAck message ###################################### */ static unsigned int sendKeepAliveAckMessage(int sd) { struct KeepAlive keepAliveAck; ssize_t sent; keepAliveAck.Header.Type = SPT_KEEPALIVE_ACK; keepAliveAck.Header.Flags = 0x00; keepAliveAck.Header.Length = htons(sizeof(keepAliveAck)); sent = rsp_sendmsg(sd, (const char*)&keepAliveAck, sizeof(keepAliveAck), 0, 0, htonl(PPID_SP), 0, 0, 0, 0); return( (sent == sizeof(keepAliveAck)) ? SSCR_OKAY : SSCR_FAILOVER ); } /* ###### Handle Ready message ########################################### */ static void handleNotReadyMessage(const int sd, const struct NotReady* notReady, const size_t length) { if(length >= sizeof(struct NotReady) - SR_MAX_INFOSIZE) { /* ====== Get info string ========================================== */ size_t i; for(i = 0;i < length - (sizeof(struct NotReady) - SR_MAX_INFOSIZE);i++) { if(i == SR_MAX_INFOSIZE) { break; } InfoString[i] = isprint(notReady->Info[i]) ? notReady->Info[i] : '.'; } InfoString[i] = 0x00; } else { InfoString[0] = 0x00; } if(!Quiet) { newLogLine(stdout); printf("Server %s is not ready yet => trying another one.\n", InfoString); fflush(stdout); } } /* ###### Handle Ready message ########################################### */ static unsigned int handleReadyMessage(const int sd, const struct Ready* ready, const size_t length) { if(length < sizeof(struct Ready) - SR_MAX_INFOSIZE) { newLogLine(stdout); puts("Received invalid Ready message!"); fflush(stdout); return(SSCR_FAILOVER); } /* ====== Get info string ============================================= */ size_t i; for(i = 0;i < length - (sizeof(struct Ready) - SR_MAX_INFOSIZE);i++) { if(i == SR_MAX_INFOSIZE) { break; } InfoString[i] = isprint(ready->Info[i]) ? ready->Info[i] : '.'; } InfoString[i] = 0x00; HasAssignedPE = true; /* ====== Proceed with uploading the work package ===================== */ newLogLine(stdout); printf("Server %s is ready!\n", InfoString); fflush(stdout); /* ====== Request environment ========================================= */ if(EnvironmentName != NULL) { State = SSCS_WAIT_ENVIRONMENT; struct Environment environment; environment.Header.Type = SPT_ENVIRONMENT; environment.Header.Flags = 0x00; environment.Header.Length = htons(sizeof(environment)); memcpy(&environment.Hash, EnvironmentHash, sizeof(EnvironmentHash)); ssize_t sent = rsp_sendmsg(sd, (const char*)&environment, sizeof(environment), 0, 0, htonl(PPID_SP), 0, 0, 0, (int)(TransmitTimeout / 1000)); if(sent != (ssize_t)sizeof(environment)) { newLogLine(stdout); printf("Environment query error: %s\n", strerror(errno)); fflush(stdout); return(SSCR_FAILOVER); } } else { State = SSCS_WAIT_START_PROCESSING; } /* ====== Continue with input upload ================================== */ return(performUpload(sd, InputName)); } /* ###### Handle Ready message ########################################### */ static unsigned int handleEnvironmentMessage(const int sd, const struct Environment* environment, const size_t length) { if(length < sizeof(struct Environment)) { newLogLine(stdout); puts("Received invalid Environment message!"); fflush(stdout); return(SSCR_FAILOVER); } /* ====== Proceed with uploading the work package ===================== */ State = SSCS_WAIT_START_PROCESSING; newLogLine(stdout); if(environment->Header.Flags & SEF_UPLOAD_NEEDED) { if(EnvironmentName != NULL) { printf("Server %s needs environment\n", InfoString); fflush(stdout); return(performUpload(sd, EnvironmentName)); } else { printf("Server %s has requested environment, but there is no environment?!\n", InfoString); fflush(stdout); return(SSCR_FAILOVER); } } else { printf("Server %s has cached environment -> skipping upload\n", InfoString); fflush(stdout); return(SSCR_OKAY); } } /* ###### Handle Status message ########################################## */ static unsigned int serverStartsProcessing(const int sd, const struct Status* status, const size_t length) { if(length < sizeof(struct Status)) { newLogLine(stdout); puts("Received invalid Status message!"); fflush(stdout); return(SSCR_FAILOVER); } if(ntohl(status->Status) == 0) { State = SSCS_PROCESSING; newLogLine(stdout); printf("Server %s is processing ...\n", InfoString); fflush(stdout); } else { State = SSCR_FAILOVER; newLogLine(stdout); printf("Server did not accept upload; status was %u\n", ntohl(status->Status)); fflush(stdout); } return(SSCR_OKAY); } /* ###### Handle Download message ######################################## */ static unsigned int handleDownloadMessage(const struct Download* download, const size_t length) { size_t dataLength; /* ====== Create file, if necessary =================================== */ if(!OutputFile) { newLogLine(stdout); puts("Downloading ..."); fflush(stdout); OutputFile = fopen(OutputName, "w"); if(OutputFile == NULL) { newLogLine(stderr); fprintf(stderr, "ERROR: Unable to create output file \"%s\"!\n", OutputName); exit(1); } } /* ====== Write data ================================================== */ dataLength = length - sizeof(struct ScriptingCommonHeader); if(dataLength > 0) { if(fwrite(&download->Data, dataLength, 1, OutputFile) != 1) { newLogLine(stderr); fprintf(stderr, "ERROR: Writing to output file failed!\n"); fclose(OutputFile); exit(1); } } else { fclose(OutputFile); OutputFile = NULL; if(!Quiet) { newLogLine(stdout); puts("Download completed!"); fflush(stdout); } return(SSCR_COMPLETE); } return(SSCR_OKAY); } /* ###### Handle message ################################################# */ static unsigned int handleMessage(int sd, const struct ScriptingCommonHeader* header, const size_t length, const uint32_t ppid) { /* printf("Message %u in state %u ...\n", header->Type, State); */ /* ====== Check message header ======================================== */ /* if(ppid != PPID_SP) { newLogLine(stdout); printf("Received message has wrong PPID $%08x!\n", ppid); fflush(stdout); return(SSCR_FAILOVER); } */ if(length < sizeof(struct ScriptingCommonHeader)) { newLogLine(stdout); printf("Received message of %u bytes does not even contain header!\n", (unsigned int)length); fflush(stdout); return(SSCR_FAILOVER); } if(ntohs(header->Length) != length) { newLogLine(stdout); printf("Received message has %u bytes but %u bytes are expected!\n", (unsigned int)length, ntohs(header->Length)); fflush(stdout); return(SSCR_FAILOVER); } /* ====== Handle message ============================================== */ switch(State) { /* ====== Wait for Ready message to start upload =================== */ case SSCS_WAIT_SERVER_READY: switch(header->Type) { case SPT_READY: return(handleReadyMessage(sd, (const struct Ready*)header, length)); break; case SPT_NOTREADY: handleNotReadyMessage(sd, (const struct NotReady*)header, length); return(SSCR_FAILOVER); break; } break; /* ====== Wait for Ready message to start upload =================== */ case SSCS_WAIT_ENVIRONMENT: switch(header->Type) { case SPT_ENVIRONMENT: return(handleEnvironmentMessage(sd, (const struct Environment*)header, length)); break; } break; /* ====== Wait for Ready message to start upload =================== */ case SSCS_WAIT_START_PROCESSING: switch(header->Type) { case SPT_STATUS: return(serverStartsProcessing(sd, (const struct Status*)header, length)); break; } break; /* ====== Processing =============================================== */ case SSCS_PROCESSING: switch(header->Type) { case SPT_KEEPALIVE_ACK: return(handleKeepAliveAckMessage()); break; case SPT_KEEPALIVE: return(sendKeepAliveAckMessage(sd)); break; case SPT_STATUS: State = SSCS_DOWNLOAD; return(handleStatusMessage((const struct Status*)header, length)); break; } break; /* ====== Processing =============================================== */ case SSCS_DOWNLOAD: switch(header->Type) { case SPT_DOWNLOAD: return(handleDownloadMessage((const struct Download*)header, length)); break; case SPT_KEEPALIVE_ACK: return(handleKeepAliveAckMessage()); break; } break; } /* ====== Unexpected message ========================================== */ newLogLine(stdout); printf("Unexpected message $%02x in state #%u (length=%u, ppid=$%08x)\n", header->Type, State, (unsigned int)length, ppid); fflush(stdout); return(SSCR_FAILOVER); } /* ###### Main program ################################################### */ int main(int argc, char** argv) { const char* poolHandle = "ScriptingPool"; struct pollfd ufds; char buffer[65536]; struct rsp_info info; struct rsp_sndrcvinfo rinfo; union rserpool_notification* notification; unsigned long long nextTimer; unsigned long long now; ssize_t received; unsigned int result; int events; int flags; int sd; int i; rsp_initinfo(&info); for(i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } else if(!(strncmp(argv[i], "-poolhandle=" ,12))) { poolHandle = (char*)&argv[i][12]; } else if(!(strncmp(argv[i], "-environment=" ,13))) { EnvironmentName = (const char*)&argv[i][13]; if(EnvironmentName[0] == 0x00) { EnvironmentName = NULL; } } else if(!(strncmp(argv[i], "-input=" ,7))) { InputName = (const char*)&argv[i][7]; } else if(!(strncmp(argv[i], "-output=" ,8))) { OutputName = (const char*)&argv[i][8]; } else if(!(strncmp(argv[i], "-runid=" ,7))) { RunID = (const char*)&argv[i][7]; } else if(!(strncmp(argv[i], "-maxretry=" ,10))) { MaxRetry = atol((const char*)&argv[i][10]); if(MaxRetry < 1) { MaxRetry = 1; } } else if(!(strncmp(argv[i], "-retrydelay=" ,12))) { RetryDelay = 1000ULL * atol((const char*)&argv[i][12]); if(RetryDelay < 100000) { RetryDelay = 100000; } } else if(!(strncmp(argv[i], "-transmittimeout=", 17))) { TransmitTimeout = 1000ULL * atol((const char*)&argv[i][17]); } else if(!(strncmp(argv[i], "-keepaliveinterval=", 19))) { KeepAliveInterval = 1000ULL * atol((const char*)&argv[i][19]); } else if(!(strncmp(argv[i], "-keepalivetimeout=", 18))) { KeepAliveTimeout = 1000ULL * atol((const char*)&argv[i][18]); } else if(!(strcmp(argv[i], "-quiet"))) { Quiet = true; } else { fprintf(stderr, "ERROR: Bad argument %s\n", argv[i]); fprintf(stderr, "Usage: %s [-environment=Environment Name] [-input=Input Name] [-output=Output Name] {-poolhandle=Pool Handle} {-quiet} {-maxretry=Trials} {-retrydelay=milliseconds} {-transmittimeout=milliseconds} {-keepaliveinterval=milliseconds} {-keepalivetimeout=milliseconds}\n", argv[0]); exit(1); } } if( (InputName == NULL) || (OutputName == NULL) ) { fprintf(stderr, "ERROR: Missing input or output file name!\n"); exit(1); } #ifdef ENABLE_CSP info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, random64()); #endif if(EnvironmentName) { EnvironmentSize = sha1_computeHashOfFile(EnvironmentName, (uint8_t*)&EnvironmentHash); if(EnvironmentSize == 0) { fprintf(stderr, "ERROR: Unable to compute hash of environment file %s\n", EnvironmentName); exit(1); } } if(!Quiet) { puts("Scripting Pool User - Version 2.0"); puts("=================================\n"); printf("Pool Handle = %s\n", poolHandle); printf("Environment Name = "); if(EnvironmentName) { printf("%s (", EnvironmentName); for(i = 0; i < (int)sizeof(EnvironmentHash); i++) { printf("%02x", (unsigned int)EnvironmentHash[i]); } printf(", %llu KiB)\n", EnvironmentSize / 1024); } else { puts("(none)"); } printf("Input Name = %s\n", InputName); printf("Output Name = %s\n\n", OutputName); printf("Max Retry = %u\n", MaxRetry); printf("Retry Delay = %llu [ms]\n", RetryDelay / 1000); printf("Transmit Timeout = %llu [ms]\n", TransmitTimeout / 1000); printf("Keep-Alive Interval = %llu [ms]\n", KeepAliveInterval / 1000); printf("Keep-Alive Timeout = %llu [ms]\n\n", KeepAliveTimeout / 1000); } if(rsp_initialize(&info) < 0) { newLogLine(stderr); fputs("ERROR: Unable to initialize rsplib\n", stderr); exit(1); } sd = rsp_socket(0, SOCK_SEQPACKET, IPPROTO_SCTP); if(sd < 0) { newLogLine(stderr); perror("Unable to create RSerPool socket"); exit(1); } newLogLine(stdout); printf("Connecting to pool %s ...\n", poolHandle); fflush(stdout); if(rsp_connect(sd, (unsigned char*)poolHandle, strlen(poolHandle), 0) < 0) { newLogLine(stderr); perror("Unable to connect to pool element"); exit(1); } installBreakDetector(); result = SSCR_OKAY; KeepAliveTransmitted = false; LastKeepAlive = getMicroTime(); while( (!breakDetected()) && (result != SSCR_COMPLETE) ) { result = SSCR_OKAY; /* ====== Wait for results and regularly send keep-alives ======= */ nextTimer = LastKeepAlive + (KeepAliveTransmitted ? KeepAliveTimeout : KeepAliveInterval); ufds.fd = sd; ufds.events = POLLIN; now = getMicroTime(); events = rsp_poll(&ufds, 1, (nextTimer <= now) ? 0 : (int)ceil((double)(nextTimer - now) / 1000.0)); /* ====== Handle results ===================================== */ if( (events > 0) && (ufds.revents & POLLIN) ) { flags = 0; received = rsp_recvmsg(sd, (char*)&buffer, sizeof(buffer), &rinfo, &flags, 0); if(received > 0) { /* ====== Notification ================================= */ if(flags & MSG_RSERPOOL_NOTIFICATION) { notification = (union rserpool_notification*)&buffer; if(HasAssignedPE == true) { /* Skip printing if no PE has accepted the request yet. */ newLogLine(stdout); printf("\x1b[39;47mNotification: "); rsp_print_notification(notification, stdout); puts("\x1b[0m"); fflush(stdout); } if((notification->rn_header.rn_type == RSERPOOL_FAILOVER) && (notification->rn_failover.rf_state == RSERPOOL_FAILOVER_NECESSARY)) { result = SSCR_FAILOVER; } } /* ====== Message =================================== */ else { result = handleMessage(sd, (const struct ScriptingCommonHeader*)&buffer, (size_t)received, ntohl(rinfo.rinfo_ppid)); } } } /* ====== Handle timers ====================================== */ if( (result == SSCR_OKAY) && (nextTimer <= getMicroTime()) ) { /* ====== KeepAlive transmission ========================== */ if(!KeepAliveTransmitted) { result = sendKeepAliveMessage(sd); } /* ====== KeepAlive timeout =============================== */ else { newLogLine(stdout); puts("Keep-Alive timeout"); fflush(stdout); result = SSCR_FAILOVER; } } /* ====== Failover ================================================= */ if(result == SSCR_FAILOVER) { if(OutputFile) { fclose(OutputFile); OutputFile = NULL; } unlink(OutputName); if(HasAssignedPE == true) { /* Skip printing if no PE has accepted the request yet. */ newLogLine(stdout); puts("FAILOVER ..."); fflush(stdout); HasAssignedPE = false; /* All work is lost -> start from scratch ... */ } InfoString[0] = 0x00; nextTimer = getMicroTime() + randomizeWaitingTime(RetryDelay); do { usleep(500000); } while( (getMicroTime() < nextTimer) && (!breakDetected()) ); State = SSCS_WAIT_SERVER_READY; rsp_forcefailover(sd, FFF_NONE, 0); KeepAliveTransmitted = false; LastKeepAlive = getMicroTime(); } } if(OutputFile) { fclose(OutputFile); OutputFile = NULL; } if(!Quiet) { puts("\x1b[0m\nTerminated!"); } rsp_close(sd); rsp_cleanup(); rsp_freeinfo(&info); return(((result == SSCR_COMPLETE) && (ExitStatus == 0)) ? 0 : 1); } rsplib-3.0.1/rsplib/poolpolicy-template_impl.h0000664000175000017500000010316711777021056016436 00000000000000/* $Id: poolpolicy-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "randomizer.h" #define COMPARE_KEY_ASCENDING(a, b) if((a) < (b)) { return(-1); } else if ((a) > (b)) { return(1); } #define COMPARE_KEY_DESCENDING(a, b) if((a) > (b)) { return(-1); } else if ((a) < (b)) { return(1); } /* ###### Calculate sum of 3 values and ensure datatype limit ############ */ static unsigned int ST_CLASS(getSum)(const unsigned int v1, const unsigned int v2, const unsigned int v3) { const long long v1_64 = (long long)v1; const long long v2_64 = (long long)v2; const long long v3_64 = (long long)v3; long long v = v1_64 + v2_64 + v3_64; if(v < 0) { v = 0; } else if(v > (long long)PPV_MAX_LOAD) { v = (long long)PPV_MAX_LOAD; } return((unsigned int)v); } /* ###### Get fraction of base for difference ############################ */ static unsigned long long ST_CLASS(getValueFraction)( const unsigned int base, const unsigned int v1, const unsigned int v2, const unsigned int v3) { const long long base_64 = (long long)base; const long long v1_64 = (long long)v1; const long long v2_64 = (long long)v2; const long long v3_64 = (long long)v3; long long v = base_64 - v1_64 - v2_64 - v3_64; if(v < 1) { /* v=0 does not make sense here: PE would never be selected. */ v = 1; } else if(v > (long long)PPV_MAX_WEIGHT) { v = (long long)PPV_MAX_WEIGHT; } return((unsigned long long)v); } /* ####################################################################### #### Generic Policy Functions #### ####################################################################### */ /* ###### Select PoolElementNodes from Storage in Order ################## */ size_t ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, const size_t maxPoolElementNodes, size_t maxIncrement) { struct ST_CLASS(PoolElementNode)* poolElementNode; size_t poolElementNodes; size_t i; size_t elementsToUpdate; /* Set maxIncrement to default, if maxIncrement == 0. */ if(maxIncrement == 0) { maxIncrement = poolNode->Policy->DefaultMaxIncrement; } /* Check, if resequencing is necessary. However, using 64 bit counters, this should (almost) never be necessary */ CHECK(maxPoolElementNodes >= 1); if((PoolElementSeqNumberType)(poolNode->GlobalSeqNumber + maxPoolElementNodes) < poolNode->GlobalSeqNumber) { ST_CLASS(poolNodeResequence)(poolNode); } /* Policy-specifc pool element node updates (e.g. counter changes) */ if(poolNode->Policy->PrepareSelectionFunction) { poolNode->Policy->PrepareSelectionFunction(poolNode); } poolElementNodes = 0; poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)(poolNode); while((poolElementNodes < maxPoolElementNodes) && (poolElementNode != NULL)) { poolElementNodeArray[poolElementNodes] = poolElementNode; poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromSelection)(poolNode, poolElementNode); poolElementNodes++; } elementsToUpdate = poolElementNodes; if(elementsToUpdate > maxIncrement) { elementsToUpdate = maxIncrement; } for(i = 0;i < elementsToUpdate;i++) { ST_CLASS(poolNodeUnlinkPoolElementNodeFromSelection)(poolNode, poolElementNodeArray[i]); poolElementNodeArray[i]->SeqNumber = poolNode->GlobalSeqNumber++; poolElementNodeArray[i]->SelectionCounter++; /* Policy-specifc pool element node updates (e.g. counter changes) */ if(poolNode->Policy->UpdatePoolElementNodeFunction) { poolNode->Policy->UpdatePoolElementNodeFunction(poolElementNodeArray[i]); } ST_CLASS(poolNodeLinkPoolElementNodeToSelection)(poolNode, poolElementNodeArray[i]); } return(poolElementNodes); } /* ###### Select PoolElementNodes from Storage Randomly ################## */ size_t ST_CLASS(poolPolicySelectPoolElementNodesByValueTree)( struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, const size_t maxPoolElementNodes, size_t maxIncrement) { unsigned long long maxValue; unsigned long long value; const size_t poolElements = ST_METHOD(GetElements)(&poolNode->PoolElementSelectionStorage); size_t poolElementNodes = 0; size_t i; /* Set maxIncrement to default, if maxIncrement == 0. */ if(maxIncrement == 0) { maxIncrement = poolNode->Policy->DefaultMaxIncrement; } /* Check, if resequencing is necessary. However, using 64 bit counters, this should (almost) never be necessary */ CHECK(maxPoolElementNodes >= 1); if((PoolElementSeqNumberType)(poolNode->GlobalSeqNumber + maxPoolElementNodes) < poolNode->GlobalSeqNumber) { ST_CLASS(poolNodeResequence)(poolNode); } /* Policy-specifc pool element node updates (e.g. counter changes) */ if(poolNode->Policy->PrepareSelectionFunction) { poolNode->Policy->PrepareSelectionFunction(poolNode); } for(i = 0;i < ((poolElements < maxPoolElementNodes) ? poolElements : maxPoolElementNodes);i++) { maxValue = ST_METHOD(GetValueSum)(&poolNode->PoolElementSelectionStorage); if(maxValue < 1) { break; } value = random64() % maxValue; poolElementNodeArray[poolElementNodes] = (struct ST_CLASS(PoolElementNode)*)ST_METHOD(GetNodeByValue)( &poolNode->PoolElementSelectionStorage, value); if(poolElementNodeArray[poolElementNodes]) { /* Common update functionality: SeqNumber increment and Selection Counter */ poolElementNodeArray[poolElementNodes]->SeqNumber = poolNode->GlobalSeqNumber++; poolElementNodeArray[poolElementNodes]->SelectionCounter++; /* Update PE entries with respect to maxIncrement setting. */ if(poolElementNodes < maxIncrement) { /* Policy-specifc pool element node updates (e.g. counter changes) */ if(poolNode->Policy->UpdatePoolElementNodeFunction) { poolNode->Policy->UpdatePoolElementNodeFunction(poolElementNodeArray[poolElementNodes]); } } /* Unlinking *must* be done for all PEs -> otherwise, multiple selections of the same PE possible! */ ST_CLASS(poolNodeUnlinkPoolElementNodeFromSelection)(poolNode, poolElementNodeArray[poolElementNodes]); poolElementNodes++; } else { break; } } /* Re-linking of all previously unlinked nodes */ for(i = 0;i < poolElementNodes;i++) { ST_CLASS(poolNodeLinkPoolElementNodeToSelection)(poolNode, poolElementNodeArray[i]); } return(poolElementNodes); } /* ####################################################################### #### Round Robin Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(roundRobinComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ####################################################################### #### Weighted Round Robin Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(weightedRoundRobinComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->RoundCounter, poolElementNode2->RoundCounter); COMPARE_KEY_ASCENDING(poolElementNode1->VirtualCounter, poolElementNode2->VirtualCounter); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ###### Get current round counter ###################################### */ static PoolElementSeqNumberType ST_CLASS(weightedRoundRobinGetCurrentRoundCounter)( struct ST_CLASS(PoolNode)* poolNode) { struct ST_CLASS(PoolElementNode)* poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)(poolNode); if(poolElementNode) { return(poolElementNode->RoundCounter); } return(SeqNumberStart); } /* ###### Reset round counters to lowest possible values ################# */ static void ST_CLASS(weightedRoundRobinResetRoundCounters)( struct ST_CLASS(PoolNode)* poolNode) { struct ST_CLASS(PoolElementNode)* poolElementNode = ST_CLASS(poolNodeGetFirstPoolElementNodeFromSelection)(poolNode); if(poolElementNode) { const PoolElementSeqNumberType lowestRoundCounter = poolElementNode->RoundCounter; do { poolElementNode->RoundCounter -= lowestRoundCounter; poolElementNode = ST_CLASS(poolNodeGetNextPoolElementNodeFromSelection)(poolNode, poolElementNode); } while(poolElementNode != NULL); } } /* ###### Initialize ##################################################### */ void ST_CLASS(weightedRoundRobinInitializePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->RoundCounter = ST_CLASS(weightedRoundRobinGetCurrentRoundCounter)( poolElementNode->OwnerPoolNode); poolElementNode->VirtualCounter = poolElementNode->PolicySettings.Weight; } /* ###### Update ######################################################### */ void ST_CLASS(weightedRoundRobinUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { if(poolElementNode->VirtualCounter > 1) { poolElementNode->VirtualCounter--; } else { poolElementNode->RoundCounter++; poolElementNode->VirtualCounter = poolElementNode->PolicySettings.Weight; } } /* ###### Prepare selection on pool ###################################### */ void ST_CLASS(weightedRoundRobinPrepareSelection)( struct ST_CLASS(PoolNode)* poolNode) { const PoolElementSeqNumberType currentRoundCounter = ST_CLASS(weightedRoundRobinGetCurrentRoundCounter)(poolNode); if((PoolElementSeqNumberType)(currentRoundCounter + 2) < currentRoundCounter) { ST_CLASS(weightedRoundRobinResetRoundCounters)(poolNode); } } /* ####################################################################### #### Random Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(randomComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->Identifier, poolElementNode2->Identifier); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(randomUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->PoolElementSelectionStorageNode.Value = 1; } /* ####################################################################### #### Weighted Random Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(weightedRandomComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->Identifier, poolElementNode2->Identifier); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(weightedRandomUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->PoolElementSelectionStorageNode.Value = poolElementNode->PolicySettings.Weight; } /* ####################################################################### #### Weighted Random with Distance Penalty Factor Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(weightedRandomDPFComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->Identifier, poolElementNode2->Identifier); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(weightedRandomDPFUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { const double dpf = (double)poolElementNode->PolicySettings.Distance * ((double)poolElementNode->PolicySettings.WeightDPF / (double)PPV_MAX_WEIGHTDPF); long long value = (long long)poolElementNode->PolicySettings.Weight - (long long)rint((double)poolElementNode->PolicySettings.Weight * dpf); if(value < 0) { value = 1; } else if(value > (long long)PPV_MAX_WEIGHT) { value = (long long)PPV_MAX_WEIGHT; } poolElementNode->PoolElementSelectionStorageNode.Value = (unsigned int)value; } /* ####################################################################### #### Priority Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(priorityComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_DESCENDING(poolElementNode1->PolicySettings.Weight, poolElementNode2->PolicySettings.Weight); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ####################################################################### #### Least Used Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(leastUsedComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->PolicySettings.Load, poolElementNode2->PolicySettings.Load); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ####################################################################### #### Least Used with Distance Penalty Factor Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(leastUsedDPFComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { const double dpf1 = (double)poolElementNode1->PolicySettings.Distance * ((double)poolElementNode1->PolicySettings.LoadDPF / (double)PPV_MAX_LOADDPF); const double dpf2 = (double)poolElementNode2->PolicySettings.Distance * ((double)poolElementNode2->PolicySettings.LoadDPF / (double)PPV_MAX_LOADDPF); unsigned long long v1 = (unsigned long long)rint((double)poolElementNode1->PolicySettings.Load + (dpf1 * (double)PPV_MAX_LOAD)); if(v1 > (long long)PPV_MAX_LOAD) { v1 = (long long)PPV_MAX_LOAD; } unsigned long long v2 = (unsigned long long)rint((double)poolElementNode2->PolicySettings.Load + (dpf2 * (double)PPV_MAX_LOAD)); if(v2 > (long long)PPV_MAX_LOAD) { v2 = (long long)PPV_MAX_LOAD; } /* printf("dpf1=%1.6lf l1=$%x ldpf1=%1.8lf d1=%3u v1=$%x ; ", dpf1, poolElementNode1->PolicySettings.Load, ((double)poolElementNode1->PolicySettings.LoadDPF / (double)PPV_MAX_LOADDPF), poolElementNode1->PolicySettings.Distance, v1); printf("dpf2=%1.6lf l2=$%x ldpf2=%1.8lf d2=%3u v2=$%x\n", dpf2, poolElementNode2->PolicySettings.Load, ((double)poolElementNode2->PolicySettings.LoadDPF / (double)PPV_MAX_LOADDPF), poolElementNode2->PolicySettings.Distance, v2); */ COMPARE_KEY_ASCENDING(v1, v2); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ####################################################################### #### Least Used Degradation Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(leastUsedDegradationComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { const unsigned int v1 = ST_CLASS(getSum)(poolElementNode1->PolicySettings.Load, poolElementNode1->Degradation, 0); const unsigned int v2 = ST_CLASS(getSum)(poolElementNode2->PolicySettings.Load, poolElementNode2->Degradation, 0); COMPARE_KEY_ASCENDING(v1, v2); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(leastUsedDegradationUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->Degradation = ST_CLASS(getSum)(poolElementNode->Degradation, poolElementNode->PolicySettings.LoadDegradation, 0); } /* ####################################################################### #### Least Used with Degradation & Distance Penalty Factor Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(leastUsedDegradationDPFComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { const double dpf1 = (double)poolElementNode1->PolicySettings.Distance * ((double)poolElementNode1->PolicySettings.LoadDPF / (double)PPV_MAX_LOADDPF); const double dpf2 = (double)poolElementNode2->PolicySettings.Distance * ((double)poolElementNode2->PolicySettings.LoadDPF / (double)PPV_MAX_LOADDPF); unsigned long long v1 = (unsigned long long)rint( (double)poolElementNode1->PolicySettings.Load + (double)poolElementNode1->Degradation + (dpf1 * (double)PPV_MAX_LOADDPF)); if(v1 > (long long)PPV_MAX_LOAD) { v1 = (long long)PPV_MAX_LOAD; } unsigned long long v2 = (unsigned long long)rint( (double)poolElementNode2->PolicySettings.Load + (double)poolElementNode2->Degradation + (dpf2 * (double)PPV_MAX_LOAD)); if(v2 > (long long)PPV_MAX_LOAD) { v2 = (long long)PPV_MAX_LOAD; } /* printf("dpf1=%1.6lf deg1=%1.3f%% l1=$%x ldpf1=%1.8lf d1=%3u v1=$%llx ; ", dpf1, poolElementNode1->Degradation * 100.0 / (double)PPV_MAX_LOADDEGRADATION, poolElementNode1->PolicySettings.Load, ((double)poolElementNode1->PolicySettings.LoadDPF / (double)(long long)PPV_MAX_LOAD_DPF), poolElementNode1->PolicySettings.Distance, v1); printf("dpf2=%1.6lf deg1=%1.3f%% l2=$%x ldpf2=%1.8lf d2=%3u v2=$%llx\n", dpf2, poolElementNode2->Degradation * 100.0 / (double)PPV_MAX_LOAD_DEGRADATION, poolElementNode2->PolicySettings.Load, ((double)poolElementNode2->PolicySettings.LoadDPF / (double)PPV_MAX_LOADDPF), poolElementNode2->PolicySettings.Distance, v2); */ COMPARE_KEY_ASCENDING(v1, v2); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ####################################################################### #### Priority Least Used Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(priorityLeastUsedComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { const unsigned int v1 = ST_CLASS(getSum)(poolElementNode1->PolicySettings.Load, poolElementNode1->PolicySettings.LoadDegradation, 0); const unsigned int v2 = ST_CLASS(getSum)(poolElementNode2->PolicySettings.Load, poolElementNode2->PolicySettings.LoadDegradation, 0); COMPARE_KEY_ASCENDING(v1, v2); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ####################################################################### #### Priority Least Used Degradation Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(priorityLeastUsedDegradationComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { const unsigned int v1 = ST_CLASS(getSum)(poolElementNode1->PolicySettings.Load, poolElementNode1->PolicySettings.LoadDegradation, poolElementNode1->Degradation); const unsigned int v2 = ST_CLASS(getSum)(poolElementNode2->PolicySettings.Load, poolElementNode2->PolicySettings.LoadDegradation, poolElementNode2->Degradation); COMPARE_KEY_ASCENDING(v1, v2); COMPARE_KEY_ASCENDING(poolElementNode1->SeqNumber, poolElementNode2->SeqNumber); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(priorityLeastUsedDegradationUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->Degradation = ST_CLASS(getSum)(poolElementNode->Degradation, poolElementNode->PolicySettings.LoadDegradation, 0); } /* ####################################################################### #### Randomized Least Used Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(randomizedLeastUsedComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->Identifier, poolElementNode2->Identifier); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(randomizedLeastUsedUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->PoolElementSelectionStorageNode.Value = ST_CLASS(getValueFraction)(PPV_MAX_LOAD, poolElementNode->PolicySettings.Load, 0, 0); } /* ####################################################################### #### Randomized Least Used Degradation Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(randomizedLeastUsedDegradationComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->Identifier, poolElementNode2->Identifier); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(randomizedLeastUsedDegradationUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->PoolElementSelectionStorageNode.Value = ST_CLASS(getValueFraction)(PPV_MAX_LOAD, poolElementNode->PolicySettings.Load, poolElementNode->Degradation, 0); } /* ####################################################################### #### Randomized Priority Least Used Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(randomizedPriorityLeastUsedComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->Identifier, poolElementNode2->Identifier); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(randomizedPriorityLeastUsedUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->PoolElementSelectionStorageNode.Value = ST_CLASS(getValueFraction)(PPV_MAX_LOAD, poolElementNode->PolicySettings.Load, poolElementNode->PolicySettings.LoadDegradation, 0); } /* ####################################################################### #### Randomized Priority Least Used Degradation Policy #### ####################################################################### */ /* ###### Sorting Order ################################################## */ static int ST_CLASS(randomizedPriorityLeastUsedDegradationComparison)( const struct ST_CLASS(PoolElementNode)* poolElementNode1, const struct ST_CLASS(PoolElementNode)* poolElementNode2) { COMPARE_KEY_ASCENDING(poolElementNode1->Identifier, poolElementNode2->Identifier); return(0); } /* ###### Update ######################################################### */ static void ST_CLASS(randomizedPriorityLeastUsedDegradationUpdatePoolElementNode)( struct ST_CLASS(PoolElementNode)* poolElementNode) { poolElementNode->PoolElementSelectionStorageNode.Value = ST_CLASS(getValueFraction)(PPV_MAX_LOAD, poolElementNode->PolicySettings.Load, poolElementNode->PolicySettings.LoadDegradation, poolElementNode->Degradation); } const struct ST_CLASS(PoolPolicy) ST_CLASS(PoolPolicyArray)[] = { { PPT_ROUNDROBIN, "RoundRobin", 1, &ST_CLASS(roundRobinComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, NULL, NULL }, { PPT_WEIGHTED_ROUNDROBIN, "WeightedRoundRobin", 1, &ST_CLASS(weightedRoundRobinComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), &ST_CLASS(weightedRoundRobinInitializePoolElementNode), &ST_CLASS(weightedRoundRobinUpdatePoolElementNode), &ST_CLASS(weightedRoundRobinPrepareSelection) }, { PPT_RANDOM, "Random", 0, &ST_CLASS(randomComparison), &ST_CLASS(poolPolicySelectPoolElementNodesByValueTree), NULL, &ST_CLASS(randomUpdatePoolElementNode), NULL }, { PPT_WEIGHTED_RANDOM, "WeightedRandom", 0, &ST_CLASS(weightedRandomComparison), &ST_CLASS(poolPolicySelectPoolElementNodesByValueTree), NULL, &ST_CLASS(weightedRandomUpdatePoolElementNode), NULL }, { PPT_WEIGHTED_RANDOM_DPF, "WeightedRandomDPF", 0, &ST_CLASS(weightedRandomDPFComparison), &ST_CLASS(poolPolicySelectPoolElementNodesByValueTree), NULL, &ST_CLASS(weightedRandomDPFUpdatePoolElementNode), NULL }, { PPT_PRIORITY, "Priority", 1, &ST_CLASS(priorityComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, NULL, NULL }, { PPT_LEASTUSED, "LeastUsed", 1, &ST_CLASS(leastUsedComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, NULL, NULL }, { PPT_LEASTUSED_DPF, "LeastUsedDPF", 1, &ST_CLASS(leastUsedDPFComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, NULL, NULL }, { PPT_LEASTUSED_DEGRADATION, "LeastUsedDegradation", 1, &ST_CLASS(leastUsedDegradationComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, &ST_CLASS(leastUsedDegradationUpdatePoolElementNode), NULL }, { PPT_LEASTUSED_DEGRADATION_DPF, "LeastUsedDegradationDPF", 1, &ST_CLASS(leastUsedDegradationDPFComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, &ST_CLASS(leastUsedDegradationUpdatePoolElementNode), NULL }, { PPT_PRIORITY_LEASTUSED, "PriorityLeastUsed", 1, &ST_CLASS(priorityLeastUsedComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, NULL, NULL }, { PPT_PRIORITY_LEASTUSED_DEGRADATION, "PriorityLeastUsedDegradation", 1, &ST_CLASS(priorityLeastUsedDegradationComparison), &ST_CLASS(poolPolicySelectPoolElementNodesBySortingOrder), NULL, &ST_CLASS(priorityLeastUsedDegradationUpdatePoolElementNode), NULL }, { PPT_RANDOMIZED_LEASTUSED, "RandomizedLeastUsed", 1, &ST_CLASS(randomizedLeastUsedComparison), &ST_CLASS(poolPolicySelectPoolElementNodesByValueTree), NULL, &ST_CLASS(randomizedLeastUsedUpdatePoolElementNode), NULL }, { PPT_RANDOMIZED_LEASTUSED_DEGRADATION, "RandomizedLeastUsedDegradation", 1, &ST_CLASS(randomizedLeastUsedDegradationComparison), &ST_CLASS(poolPolicySelectPoolElementNodesByValueTree), NULL, &ST_CLASS(randomizedLeastUsedDegradationUpdatePoolElementNode), NULL }, { PPT_RANDOMIZED_PRIORITY_LEASTUSED, "RandomizedPriorityLeastUsed", 1, &ST_CLASS(randomizedPriorityLeastUsedComparison), &ST_CLASS(poolPolicySelectPoolElementNodesByValueTree), NULL, &ST_CLASS(randomizedPriorityLeastUsedUpdatePoolElementNode), NULL }, { PPT_RANDOMIZED_PRIORITY_LEASTUSED_DEGRADATION, "RandomizedPriorityLeastUsedDegradation", 1, &ST_CLASS(randomizedPriorityLeastUsedDegradationComparison), &ST_CLASS(poolPolicySelectPoolElementNodesByValueTree), NULL, &ST_CLASS(randomizedPriorityLeastUsedDegradationUpdatePoolElementNode), NULL } }; const size_t ST_CLASS(PoolPolicies) = sizeof(ST_CLASS(PoolPolicyArray)) / sizeof(struct ST_CLASS(PoolPolicy)); /* ###### Get policy type for policy name ################################ */ const struct ST_CLASS(PoolPolicy)* ST_CLASS(poolPolicyGetPoolPolicyByName)(const char* policyName) { size_t i; for(i = 0;i < ST_CLASS(PoolPolicies);i++) { if(strcmp(ST_CLASS(PoolPolicyArray)[i].Name, policyName) == 0) { return(&ST_CLASS(PoolPolicyArray)[i]); } } return(NULL); } /* ###### Get policy name for policy type ################################ */ const struct ST_CLASS(PoolPolicy)* ST_CLASS(poolPolicyGetPoolPolicyByType)(const unsigned int policyType) { size_t i; for(i = 0;i < ST_CLASS(PoolPolicies);i++) { if(ST_CLASS(PoolPolicyArray)[i].Type == policyType) { return(&ST_CLASS(PoolPolicyArray)[i]); } } return(NULL); } rsplib-3.0.1/rsplib/mutex.cc0000664000175000017500000000307711777021056012712 00000000000000/* $Id: mutex.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "mutex.h" // ###### Constructor ####################################################### TDMutex::TDMutex() { threadSafetyNew(&MyMutex, "TDMutex"); } // ###### Destructor ######################################################## TDMutex::~TDMutex() { threadSafetyDelete(&MyMutex); } rsplib-3.0.1/rsplib/rspregistrar.10000664000175000017500000002147711777021056014056 00000000000000.\" $Id: registrar.8 1767 2008-04-16 11:41:05Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt RspRegistrar 1 .Os RSerPool Registrar .\" ###### Name ############################################################# .Sh NAME .Nm rspregistrar .Nd RSerPool Pool Registrar (PR) Service .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm rspregistrar .Op Fl announcettl=TTL .Op Fl asap=auto|address:port,address,... .Op Fl asapannounce=auto|address:port .Op Fl autoclosetimeout=seconds .Op Fl endpointkeepalivetransmissioninterval=milliseconds .Op Fl endpointkeepalivetimeoutinterval=milliseconds .Op Fl maxbadpereports=reports .Op Fl maxhresitems=items .Op Fl maxincrement=increment .Op Fl minaddressscope=loopback|sitelocal|global .Op Fl serverannouncecycle=milliseconds .Op Fl enrp=auto|address:port,address,... .Op Fl enrpannounce=auto|address:port .Op Fl maxelementsperhtrequest=items .Op Fl mentordiscoverytimeout=milliseconds .Op Fl peer=address:port .Op Fl peerheartbeatcycle=milliseconds .Op Fl peermaxtimelastheard=millisecond .Op Fl peermaxtimenoresponse=milliseconds .Op Fl takeoverexpiryinterval=milliseconds .Op Fl cspinterval=milliseconds .Op Fl cspserver=address:port .Op Fl logcolor=on|off .Op Fl logappend=filename .Op Fl logfile=filename .Op Fl loglevel=0-9 .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm rspregistrar provides a registrar service for Reliable Server Pooling (RSerPool) pool elements (PEs) and pool users (PUs). PRs of an operation scope synchronize their view of the handlespace using the Endpoint haNdlespace Redundancy Protocol (ENRP), transported via SCTP. An operation scope has a limited range, e.g. an organization or only a building. In particular, it is restricted to a single administrative domain \- in contrast to GRID computing \- in order to keep the management complexity at a minimum. Nevertheless, PEs may be distributed globally for their service to survive localized disasters. .Pp PEs choose an arbitrary PR of the operation scope to register into a pool by using the Aggregate Server Access Protocol (ASAP), again transported via SCTP. Upon registration at a PR, the chosen PR becomes the Home-PR (PR-H) of the newly registered PE. A PR-H is responsible for monitoring its PEs' availability by keep-alive messages (to be acknowledged by the PE within a given timeout) and propagates the information about its PEs to the other PRs of the operation scope via ENRP updates. .Pp In order to access the service of a pool given by its PH, a PU requests a PE selection from an arbitrary PR of the operation scope, using the Aggregate Server Access Protocol (ASAP), transported via SCTP. The PR selects the requested list of PE identities by applying a pool-specific selection rule, called pool policy. .Pp In order to allow for automatic configuration, a PR can send out regular announces via an ASAP and ENRP multicast address. PEs and PUs can listen to this address to learn the list of currently available PRs. .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It Fl quiet Do not print startup and shutdown messages. .It Fl announcettl=TTL Sets the TTL for outgoing ASAP Announce/ENRP Presence messages via multicast. .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). .El .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. .It Fl cspserver=address:port Sets the CSP monitor server's address and port. .El .\" ====== ASAP Protocol ==================================================== .It Aggregate Server Access Protocol (ASAP) Parameters: .Bl -tag -width indent .It Fl autoclosetimeout=seconds Sets the SCTP autoclose timeout for idle ASAP associations. .It Fl asap=auto|address:port,address,... Sets the ASAP endpoint address(es). Use "auto" to automatically set it (default). .It Fl asapannounce=auto|address:port Sets the multicast address and UDP port to send the ASAP Announces to. Use "auto" to automatically set it (default). Examples: .br \-asapannounce=auto .br \-asapannounce=239.0.0.1:3863 .It Fl endpointkeepalivetransmissioninterval=milliseconds Sets the ASAP Endpoint Keep Alive interval. .It Fl endpointkeepalivetimeoutinterval=milliseconds Sets the ASAP Endpoint Keep Alive timeout. .It Fl maxbadpereports=reports Sets the maximum number of ASAP Endpoint Unreachable reports before removing a PE. .It Fl maxincrement=increment Sets the MaxIncrement constant. Handle with care! .It Fl maxhresitems=items Sets the MaxHResItems constant. .It Fl minaddressscope=loopback|sitelocal|global Sets the minimum address scope acceptable for registered PEs: .br loopback: Loopback address (only valid on the same node!) .br site-local: Site-local addresses (e.g. 192.168.1.1, etc.) .br global: Global addresses .It Fl serverannouncecycle=milliseconds Sets the ASAP Announce interval. .El .\" ====== ENRP Protocol ==================================================== .It Endpoint Handlespace Redundancy Protocol (ENRP) Parameters: .Bl -tag -width indent .It Fl enrp=auto|address:port,address,... Sets the ENRP endpoint address(es). Use "auto" to automatically set it (default). Examples: .br \-enrp=auto .br \-enrp=1.2.3.4:9901 .br \-enrp=1.2.3.4:9901,[2000::1:2:3],9.8.7.6 .It Fl enrpannounce=auto|address:port Sets the multicast address and UDP port to send the ENRP Announces to. Use "auto" to automatically set it (default). Examples: .br \-enrpannounce=auto .br \-enrpannounce=239.0.0.1:9901 .It Fl maxelementsperhtrequest=items Sets the maximum number of items per ENRP Handle Table Response. .It Fl mentordiscoverytimeout=milliseconds Sets the mentor PR discovery timeout in milliseconds. .It Fl peer=address:port Adds a static PR entry into the Peer List. It is possible to add multiple entries. .It Fl peerheartbeatcycle=milliseconds Sets the ENRP peer heartbeat interval. .It Fl peermaxtimelastheard=milliseconds Sets the ENRP peer max time last heard. .It Fl peermaxtimenoresponse=milliseconds Sets the ENRP maximum time without response. .It Fl takeoverexpiryinterval=milliseconds Sets the ENRP takeover timeout. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm rspregistrar uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/rspregistrar.c0000664000175000017500000011530211777021056014127 00000000000000/* $Id$ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" #include /* #define FAST_BREAK */ /* ###### Add peer ####################################################### */ static void addPeer(struct Registrar* registrar, char* arg) { char transportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* transportAddressBlock = (struct TransportAddressBlock*)&transportAddressBlockBuffer; union sockaddr_union addressArray[MAX_PE_TRANSPORTADDRESSES]; size_t addresses; char* address; char* idx; uint16_t port; addresses = 0; address = arg; while(addresses < MAX_PE_TRANSPORTADDRESSES) { idx = strindex(address, ','); if(idx) { *idx = 0x00; } if(!string2address(address, &addressArray[addresses])) { fprintf(stderr, "ERROR: Bad address %s! Use format .\n",address); exit(1); } addresses++; if(idx) { address = idx; address++; } else { break; } } if(addresses < 1) { fprintf(stderr, "ERROR: At least one peer address must be specified (at %s)!\n", arg); exit(1); } port = getPort((struct sockaddr*)&addressArray[0]); if(port == 0) { port = ENRP_PORT; } transportAddressBlockNew(transportAddressBlock, IPPROTO_SCTP, port, 0, (union sockaddr_union*)&addressArray, addresses, MAX_PE_TRANSPORTADDRESSES); if(registrarAddStaticPeer(registrar, 0, transportAddressBlock) != RSPERR_OKAY) { fputs("ERROR: Unable to add static peer ", stderr); transportAddressBlockPrint(transportAddressBlock, stderr); fputs("\n", stderr); exit(1); } } /* ###### Create and bind SCTP and UDP sockets ########################### */ static void getSocketPair(const char* sctpAddressParameter, struct TransportAddressBlock* sctpTransportAddress, int* sctpSocket, const bool requiresUDPSocket, const char* udpGroupAddressParameter, struct TransportAddressBlock* udpGroupTransportAddress, int* udpSocket, const bool useIPv6, const uint16_t defaultPort) { union sockaddr_union sctpAddressArray[MAX_PE_TRANSPORTADDRESSES]; union sockaddr_union groupAddress; union sockaddr_union udpAddress; uint16_t localPort; size_t i; int family; const char* address; char* idx; struct sctp_event_subscribe sctpEvents; size_t sctpAddresses; uint16_t configuredPort; size_t trials; sctpAddresses = 0; family = useIPv6 ? AF_INET6 : AF_INET; if(string2address(udpGroupAddressParameter, &groupAddress) == false) { fprintf(stderr, "ERROR: Bad multicast group address <%s>\n", udpGroupAddressParameter); exit(1); } if(getPort(&groupAddress.sa) == 0) { setPort(&groupAddress.sa, defaultPort); } memset(&udpAddress, 0, sizeof(udpAddress)); udpAddress.sa.sa_family = groupAddress.sa.sa_family; if(!(strncmp(sctpAddressParameter, "auto", 4))) { string2address((family == AF_INET6) ? "[::]" : "0.0.0.0", &sctpAddressArray[0]); sctpAddresses = 1; } else { address = sctpAddressParameter; while(sctpAddresses < MAX_PE_TRANSPORTADDRESSES) { idx = strindex((char*)address, ','); if(idx) { *idx = 0x00; } if(!string2address(address, &sctpAddressArray[sctpAddresses])) { fprintf(stderr, "ERROR: Bad local address %s! Use format .\n", address); exit(1); } sctpAddresses++; if(idx) { address = idx; address++; } else { break; } } } if(sctpAddresses < 1) { puts("ERROR: At least one SCTP address must be specified!\n"); exit(1); } configuredPort = getPort((struct sockaddr*)&sctpAddressArray[0]); *sctpSocket = -1; *udpSocket = -1; trials = 0; while(trials++ < 1024) { if(configuredPort == 0) { localPort = 10000 + (random16() % 50000); setPort((struct sockaddr*)&udpAddress, localPort); for(i = 0;i < sctpAddresses;i++) { setPort((struct sockaddr*)&sctpAddressArray[i], localPort); } } else { setPort((struct sockaddr*)&udpAddress, configuredPort); trials = 1024; } *sctpSocket = ext_socket(family, SOCK_SEQPACKET, IPPROTO_SCTP); if(*sctpSocket < 0) { if(errno == ESOCKTNOSUPPORT) { break; } continue; } if(bindplus(*sctpSocket, (union sockaddr_union*)&sctpAddressArray, sctpAddresses) == false) { ext_close(*sctpSocket); *sctpSocket = -1; continue; } if(!requiresUDPSocket) { break; } *udpSocket = ext_socket(udpAddress.sa.sa_family, SOCK_DGRAM, IPPROTO_UDP); if(*udpSocket < 0) { puts("ERROR: Unable to create UDP socket!"); exit(1); } setReusable(*udpSocket, 1); if(bindplus(*udpSocket, (union sockaddr_union*)&udpAddress, 1) == true) { break; } ext_close(*sctpSocket); *sctpSocket = -1; ext_close(*udpSocket); *udpSocket = -1; if(configuredPort != 0) { break; } } if((*sctpSocket < 0) || (requiresUDPSocket && (*udpSocket < 0))) { perror("Unable to find suitable SCTP/UDP socket pair"); exit(1); } if(ext_listen(*sctpSocket, 10) < 0) { perror("listen() call failed"); exit(1); } memset(&sctpEvents, 0, sizeof(sctpEvents)); sctpEvents.sctp_data_io_event = 1; sctpEvents.sctp_association_event = 1; sctpEvents.sctp_address_event = 1; sctpEvents.sctp_send_failure_event = 1; sctpEvents.sctp_peer_error_event = 1; sctpEvents.sctp_shutdown_event = 1; sctpEvents.sctp_partial_delivery_event = 1; /* sctpEvents.sctp_adaptation_layer_event = 1; */ if(ext_setsockopt(*sctpSocket, IPPROTO_SCTP, SCTP_EVENTS, &sctpEvents, sizeof(sctpEvents)) < 0) { perror("setsockopt() for SCTP_EVENTS failed"); exit(1); } transportAddressBlockNew(sctpTransportAddress, IPPROTO_SCTP, getPort((struct sockaddr*)&sctpAddressArray[0]), 0, (union sockaddr_union*)&sctpAddressArray, sctpAddresses, MAX_PE_TRANSPORTADDRESSES); transportAddressBlockNew(udpGroupTransportAddress, IPPROTO_UDP, getPort((struct sockaddr*)&groupAddress), 0, (union sockaddr_union*)&groupAddress, 1, 1); } /* ###### Enter daemon mode, if requested ################################ */ static void goIntoDaemonMode(const char* daemonPIDFile) { FILE* fh; pid_t childProcess; if(daemonPIDFile != NULL) { childProcess = fork(); if(childProcess != 0) { fh = fopen(daemonPIDFile, "w"); if(fh) { fprintf(fh, "%d\n", childProcess); fclose(fh); } else { kill(childProcess, SIGKILL); fprintf(stderr, "ERROR: Unable to create PID file \"%s\"!\n", daemonPIDFile); } exit(0); } else { signal(SIGHUP, SIG_IGN); } } } /* ###### Main program ################################################### */ int main(int argc, char** argv) { char asapUnicastAddressBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* asapUnicastAddress = (struct TransportAddressBlock*)&asapUnicastAddressBuffer; const char* asapUnicastAddressParameter; int asapUnicastSocket; char asapAnnounceAddressBuffer[transportAddressBlockGetSize(1)]; struct TransportAddressBlock* asapAnnounceAddress = (struct TransportAddressBlock*)&asapAnnounceAddressBuffer; const char* asapAnnounceAddressParameter; int asapAnnounceSocket; bool asapSendAnnounces; char enrpUnicastAddressBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* enrpUnicastAddress = (struct TransportAddressBlock*)&enrpUnicastAddressBuffer; const char* enrpUnicastAddressParameter; int enrpUnicastSocket; char enrpMulticastAddressBuffer[transportAddressBlockGetSize(1)]; struct TransportAddressBlock* enrpMulticastAddress = (struct TransportAddressBlock*)&enrpMulticastAddressBuffer; const char* enrpMulticastAddressParameter; int enrpMulticastOutputSocket; int enrpMulticastInputSocket; bool enrpAnnounceViaMulticast; struct Registrar* registrar; uint32_t serverID ; bool quiet; bool useIPv6; const char* daemonPIDFile; unsigned int run; double uptime; double downtime; double t; unsigned long long endTimeStamp; unsigned long long pollTimeStamp; struct pollfd ufds[FD_SETSIZE]; unsigned int nfds; int timeout; int result; int i; #ifdef ENABLE_CSP union sockaddr_union cspReportAddress; unsigned long long cspReportInterval = 0; #endif #ifdef ENABLE_REGISTRAR_STATISTICS struct RegistrarStatistics statistics; const char* objectName = "registrar"; const char* scalarName = NULL; FILE* scalarFH = NULL; FILE* actionLogFile = NULL; BZFILE* actionLogBZFile = NULL; FILE* statsFile = NULL; BZFILE* statsBZFile = NULL; int statsInterval = -1; int bzerror; unsigned long long now; #endif run = 1; uptime = 0.0; downtime = 0.0; start: serverID = 0; quiet = false; useIPv6 = checkIPv6(); daemonPIDFile = NULL; asapUnicastAddressParameter = "auto"; asapUnicastSocket = -1; asapAnnounceAddressParameter = "auto"; asapAnnounceSocket = -1; asapSendAnnounces = false; enrpUnicastAddressParameter = "auto"; enrpUnicastSocket = -1; enrpMulticastAddressParameter = "auto"; enrpMulticastOutputSocket = -1; enrpMulticastInputSocket = -1; enrpAnnounceViaMulticast = false; /* ====== Get arguments =============================================== */ #ifdef ENABLE_CSP const char* cspServer = getenv("CSP_SERVER"); const char* cspInterval = getenv("CSP_INTERVAL"); if(cspInterval) { cspReportInterval = 1000ULL * atol(cspInterval); if(cspReportInterval < 250000) { cspReportInterval = 250000; } } string2address( (cspServer == NULL) ? "127.0.0.1:2960" : cspServer, &cspReportAddress); #endif for(i = 1;i < argc;i++) { if(!(strncmp(argv[i], "-identifier=", 12))) { if(sscanf((const char*)&argv[i][12], "0x%x", &serverID) == 0) { if(sscanf((const char*)&argv[i][12], "%u", &serverID) == 0) { fputs("ERROR: Bad registrar ID given!\n", stderr); exit(1); } } } else if(!(strncmp(argv[i], "-peer=",6))) { /* to be handled later */ } else if( (!(strncmp(argv[i], "-maxbadpereports=", 17))) || (!(strncmp(argv[i], "-distancestep=", 14))) || (!(strncmp(argv[i], "-autoclosetimeout=", 18))) || (!(strncmp(argv[i], "-serverannouncecycle=", 21))) || (!(strncmp(argv[i], "-endpointkeepalivetransmissioninterval=", 39))) || (!(strncmp(argv[i], "-endpointkeepalivetimeoutinterval=", 34))) || (!(strncmp(argv[i], "-minaddressscope=", 17))) || (!(strncmp(argv[i], "-peerheartbeatcycle=", 20))) || (!(strncmp(argv[i], "-peermaxtimelastheard=", 22))) || (!(strncmp(argv[i], "-peermaxtimenoresponse=", 23))) || (!(strncmp(argv[i], "-mentordiscoverytimeout=", 19))) || (!(strncmp(argv[i], "-takeoverexpiryinterval=", 24))) || (!(strcmp(argv[i], "-supporttakeoversuggestion"))) || (!(strncmp(argv[i], "-maxincrement=", 14))) || (!(strncmp(argv[i], "-maxhresitems=", 14))) || (!(strncmp(argv[i], "-maxhrrate=", 11))) || (!(strncmp(argv[i], "-maxeurate=", 11))) || (!(strncmp(argv[i], "-maxelementsperhtrequest=", 25))) ) { /* to be handled later */ } else if(!(strncmp(argv[i], "-asap=",6))) { asapUnicastAddressParameter = (const char*)&argv[i][6]; } else if(!(strncmp(argv[i], "-asapannounce=", 14))) { if( (!(strcasecmp((const char*)&argv[i][14], "off"))) || (!(strcasecmp((const char*)&argv[i][14], "none"))) ) { asapAnnounceAddressParameter = "0.0.0.0:0"; asapSendAnnounces = false; } else { asapAnnounceAddressParameter = (const char*)&argv[i][14]; asapSendAnnounces = true; } } else if(!(strncmp(argv[i], "-enrp=",6))) { enrpUnicastAddressParameter = (const char*)&argv[i][6]; } else if(!(strncmp(argv[i], "-enrpannounce=", 14))) { if( (!(strcasecmp((const char*)&argv[i][14], "off"))) || (!(strcasecmp((const char*)&argv[i][14], "none"))) ) { enrpMulticastAddressParameter = "0.0.0.0:0"; enrpAnnounceViaMulticast = false; } else { enrpMulticastAddressParameter = (const char*)&argv[i][14]; enrpAnnounceViaMulticast = true; } } else if(!(strncmp(argv[i], "-enrpmulticast=", 15))) { fputs("WARNING: -enrpmulticast is deprecated, use -enrpannounce!\n", stderr); if( (!(strcasecmp((const char*)&argv[i][15], "off"))) || (!(strcasecmp((const char*)&argv[i][15], "none"))) ) { enrpMulticastAddressParameter = "0.0.0.0:0"; enrpAnnounceViaMulticast = false; } else { enrpMulticastAddressParameter = (const char*)&argv[i][15]; enrpAnnounceViaMulticast = true; } } else if(!(strncmp(argv[i], "-log",4))) { if(initLogging(argv[i]) == false) { exit(1); } } else if(!(strcmp(argv[i], "-quiet"))) { quiet = true; } else if(!(strcmp(argv[i], "-disable-ipv6"))) { useIPv6 = false; } else if(!(strncmp(argv[i], "-daemonpidfile=", 15))) { daemonPIDFile = (const char*)&argv[i][15]; } else if(!(strncmp(argv[i], "-uptime=", 8))) { uptime = atof((const char*)&argv[i][8]); } else if(!(strncmp(argv[i], "-downtime=", 10))) { downtime = atof((const char*)&argv[i][10]); } #ifdef ENABLE_REGISTRAR_STATISTICS else if(!(strncmp(argv[i], "-actionlogfile=", 15))) { if(actionLogBZFile) { BZ2_bzWriteClose(&bzerror, actionLogBZFile, 0, NULL, NULL); actionLogBZFile = NULL; } if(actionLogFile) { fclose(actionLogFile); } actionLogFile = fopen((const char*)&argv[i][15], (run > 1) ? "a" : "w"); if(actionLogFile == NULL) { fprintf(stderr, "ERROR: Unable to create action log file \"%s\"!\n", (char*)&argv[i][11]); } if(strstr(&argv[i][15], ".bz2") == &argv[i][15 + strlen(&argv[i][15]) - 4]) { actionLogBZFile = BZ2_bzWriteOpen(&bzerror, actionLogFile, 9, 0, 30); if(actionLogBZFile == NULL) { fprintf(stderr, "ERROR: Unable to initialize BZip2 compressor for action log file \"%s\"!\n", (char*)&argv[i][11]); } } } else if(!(strncmp(argv[i], "-object=", 8))) { objectName = (const char*)&argv[i][8]; } else if(!(strncmp(argv[i], "-scalar=", 8))) { scalarName = (const char*)&argv[i][8]; } else if(!(strncmp(argv[i], "-statsfile=", 11))) { if(statsFile) { fclose(statsFile); } statsFile = fopen((const char*)&argv[i][11], (run > 1) ? "a" : "w"); if(statsFile == NULL) { fprintf(stderr, "ERROR: Unable to create statistics file \"%s\"!\n", (char*)&argv[i][11]); } if(strstr(&argv[i][11], ".bz2") == &argv[i][11 + strlen(&argv[i][11]) - 4]) { statsBZFile = BZ2_bzWriteOpen(&bzerror, statsFile, 9, 0, 30); if(statsBZFile == NULL) { fprintf(stderr, "ERROR: Unable to initialize BZip2 compressor for statistics file \"%s\"!\n", (char*)&argv[i][11]); } } } else if(!(strncmp(argv[i], "-statsinterval=", 15))) { statsInterval = atol((const char*)&argv[i][15]); if(statsInterval < 10) { statsInterval = 10; } else if(statsInterval > 3600000) { statsInterval = 36000000; } } #endif #ifdef ENABLE_CSP else if(!(strncmp(argv[i], "-cspinterval=", 13))) { cspReportInterval = 1000ULL * atol((char*)&argv[i][13]); } else if(!(strncmp(argv[i], "-cspserver=", 11))) { if(!string2address((char*)&argv[i][11], &cspReportAddress)) { fprintf(stderr, "ERROR: Bad CSP report address %s! Use format .\n", (char*)&argv[i][11]); exit(1); } if(getPort(&cspReportAddress.sa) == 0) { setPort(&cspReportAddress.sa, 2960); } if(cspReportInterval <= 0) { cspReportInterval = 250000; } } #else else if((!(strncmp(argv[i], "-cspinterval=", 13))) || (!(strncmp(argv[i], "-cspserver=", 11)))) { fprintf(stderr, "ERROR: CSP support not compiled in! Ignoring argument %s\n", argv[i]); exit(1); } #endif else { fprintf(stderr, "ERROR: Invalid argument <%s>!\n", argv[i]); fprintf(stderr, "Usage: %s {-asap=auto|address:port{,address}...} {[-asapannounce=auto|address:port}]} {-enrp=auto|address:port{,address}...} {[-enrpannounce=auto|address:port}]} {-logfile=file|-logappend=file|-logquiet} {-loglevel=level} {-logcolor=on|off} " #ifdef ENABLE_CSP "{-cspserver=address} {-cspinterval=milliseconds} " #endif "{-identifier=registrar identifier} " "{-disable-ipv6} {-quiet} " "{-autoclosetimeout=seconds} {-serverannouncecycle=milliseconds} " "{-maxbadpereports=reports} {-maxeurate=rate} {-maxhrrate=rate} " "{-endpointkeepalivetransmissioninterval=milliseconds} {-endpointkeepalivetimeoutinterval=milliseconds} " "{-minaddressscope=loopback|sitelocal|global} " "{-peerheartbeatcycle=milliseconds} {-peermaxtimelastheard=milliseconds} {-peermaxtimenoresponse=milliseconds} " "{-supporttakeoversuggestion} {-takeoverexpiryinterval=milliseconds} {-mentorhuntinterval=milliseconds} " #ifdef ENABLE_REGISTRAR_STATISTICS "{-actionlogfile=file} {-statsfile=file} {-statsinterval=millisecs} {-scalar=file} {-object=ID} " #endif "{-daemonpidfile=file}" "\n",argv[0]); exit(1); } } /* ====== Failure test mode =========================================== */ if(uptime < 0.000001) { uptime = 0.0; } if(downtime < 0.000001) { downtime = 0.000001; } if(uptime > 0.000001) { printf("Uptime = %1.3f [s]\n", uptime); printf("Downtime = %1.3f [s]\n", downtime); t = randomExpDouble(uptime); printf("\nRun #%u: Running registrar for %1.3fs ...\n\n", run, t); endTimeStamp = getMicroTime() + (unsigned long long)rint(t * 1000000.0); } else { endTimeStamp = (uptime > 0) ? (getMicroTime() + uptime) : 0; } beginLogging(); #ifndef HAVE_KERNEL_SCTP /* For userland SCTP: go into daemon mode now. This mode must be entered before any SCTP is used (fork() limitation for userland SCTP)! */ goIntoDaemonMode(daemonPIDFile); #endif if(!strcmp(asapAnnounceAddressParameter, "auto")) { asapAnnounceAddressParameter = ASAP_ANNOUNCE_MULTICAST_ADDRESS; asapSendAnnounces = true; } if(!strcmp(enrpMulticastAddressParameter, "auto")) { enrpMulticastAddressParameter = ENRP_ANNOUNCE_MULTICAST_ADDRESS; enrpAnnounceViaMulticast = true; } getSocketPair(asapUnicastAddressParameter, asapUnicastAddress, &asapUnicastSocket, asapSendAnnounces, asapAnnounceAddressParameter, asapAnnounceAddress, &asapAnnounceSocket, useIPv6, ASAP_PORT); getSocketPair(enrpUnicastAddressParameter, enrpUnicastAddress, &enrpUnicastSocket, enrpAnnounceViaMulticast, enrpMulticastAddressParameter, enrpMulticastAddress, &enrpMulticastOutputSocket, useIPv6, ENRP_PORT); if(enrpAnnounceViaMulticast) { enrpMulticastInputSocket = ext_socket(enrpMulticastAddress->AddressArray[0].sa.sa_family, SOCK_DGRAM, IPPROTO_UDP); if(enrpMulticastInputSocket < 0) { fputs("ERROR: Unable to create input UDP socket for ENRP!\n", stderr); exit(1); } setReusable(enrpMulticastInputSocket, 1); if(bindplus(enrpMulticastInputSocket, (union sockaddr_union*)&enrpMulticastAddress->AddressArray[0], 1) == false) { fputs("ERROR: Unable to bind input UDP socket for ENRP to address ", stderr); fputaddress(&enrpMulticastAddress->AddressArray[0].sa, true, stderr); fputs("\n", stderr); exit(1); } } /* ====== Initialize Registrar ======================================= */ registrar = registrarNew(serverID, asapUnicastSocket, asapAnnounceSocket, enrpUnicastSocket, enrpMulticastInputSocket, enrpMulticastOutputSocket, asapSendAnnounces, (const union sockaddr_union*)&asapAnnounceAddress->AddressArray[0], enrpAnnounceViaMulticast, (const union sockaddr_union*)&enrpMulticastAddress->AddressArray[0] #ifdef ENABLE_REGISTRAR_STATISTICS , actionLogFile, actionLogBZFile, statsFile, statsBZFile, statsInterval, (scalarName != NULL) #endif #ifdef ENABLE_CSP , cspReportInterval, &cspReportAddress #endif ); if(registrar == NULL) { fprintf(stderr, "ERROR: Unable to initialize Registrar object!\n"); exit(1); } #ifdef ENABLE_REGISTRAR_STATISTICS if(run > 1) { registrar->Stats = statistics; } #endif for(i = 1;i < argc;i++) { if(!(strncmp(argv[i], "-peer=",6))) { addPeer(registrar, (char*)&argv[i][6]); } else if(!(strncmp(argv[i], "-distancestep=", 14))) { registrar->DistanceStep = atol((char*)&argv[i][14]); if(registrar->DistanceStep < 1) { registrar->DistanceStep = 1; } } else if(!(strncmp(argv[i], "-maxbadpereports=", 17))) { registrar->MaxBadPEReports = atol((char*)&argv[i][17]); if(registrar->MaxBadPEReports < 1) { registrar->MaxBadPEReports = 1; } } else if(!(strncmp(argv[i], "-maxincrement=", 14))) { registrar->MaxIncrement = atol((char*)&argv[i][14]); } else if(!(strncmp(argv[i], "-maxhresitems=", 14))) { registrar->MaxHandleResolutionItems = atol((char*)&argv[i][14]); if(registrar->MaxHandleResolutionItems < 1) { registrar->MaxHandleResolutionItems = 1; } } else if(!(strncmp(argv[i], "-maxelementsperhtrequest=", 25))) { registrar->MaxElementsPerHTRequest = atol((char*)&argv[i][25]); if(registrar->MaxElementsPerHTRequest < 1) { registrar->MaxElementsPerHTRequest = 1; } } else if(!(strncmp(argv[i], "-autoclosetimeout=", 18))) { registrar->AutoCloseTimeout = 1000000 * atol((char*)&argv[i][18]); if(registrar->AutoCloseTimeout < 5000000) { registrar->AutoCloseTimeout = 5000000; } } else if(!(strncmp(argv[i], "-serverannouncecycle=", 21))) { registrar->ServerAnnounceCycle = 1000 * atol((char*)&argv[i][21]); if(registrar->ServerAnnounceCycle < 100000) { registrar->ServerAnnounceCycle = 100000; } else if(registrar->ServerAnnounceCycle > 60000000) { registrar->ServerAnnounceCycle = 60000000; } } else if(!(strncmp(argv[i], "-endpointkeepalivetransmissioninterval=", 39))) { registrar->EndpointKeepAliveTransmissionInterval = 1000 * atol((char*)&argv[i][39]); if(registrar->EndpointKeepAliveTransmissionInterval < 300000) { registrar->EndpointKeepAliveTransmissionInterval = 300000; } else if(registrar->EndpointKeepAliveTransmissionInterval > 300000000) { registrar->EndpointKeepAliveTransmissionInterval = 300000000; } } else if(!(strncmp(argv[i], "-endpointkeepalivetimeoutinterval=", 34))) { registrar->EndpointKeepAliveTimeoutInterval = 1000 * atol((char*)&argv[i][34]); if(registrar->EndpointKeepAliveTimeoutInterval < 100000) { registrar->EndpointKeepAliveTimeoutInterval = 100000; } if(registrar->EndpointKeepAliveTimeoutInterval > 60000000) { registrar->EndpointKeepAliveTimeoutInterval = 60000000; } } else if(!(strncmp(argv[i], "-minaddressscope=", 17))) { if(!(strcmp((const char*)&argv[i][17], "loopback"))) { registrar->MinEndpointAddressScope = AS_LOOPBACK; } else if(!(strcmp((const char*)&argv[i][17], "sitelocal"))) { registrar->MinEndpointAddressScope = AS_UNICAST_SITELOCAL; } else if(!(strcmp((const char*)&argv[i][17], "global"))) { registrar->MinEndpointAddressScope = AS_UNICAST_GLOBAL; } else { fputs("ERROR: Bad argument for -minaddressscope!\n", stderr); exit(1); } } else if(!(strncmp(argv[i], "-peerheartbeatcycle=", 20))) { registrar->PeerHeartbeatCycle = 1000 * atol((char*)&argv[i][20]); if(registrar->PeerHeartbeatCycle < 1000000) { registrar->PeerHeartbeatCycle = 1000000; } else if(registrar->PeerHeartbeatCycle > 300000000) { registrar->PeerHeartbeatCycle = 300000000; } } else if(!(strncmp(argv[i], "-peermaxtimelastheard=", 22))) { registrar->PeerMaxTimeLastHeard = 1000 * atol((char*)&argv[i][22]); if(registrar->PeerMaxTimeLastHeard < 1000000) { registrar->PeerMaxTimeLastHeard = 1000000; } else if(registrar->PeerMaxTimeLastHeard > 300000000) { registrar->PeerMaxTimeLastHeard = 300000000; } } else if(!(strncmp(argv[i], "-peermaxtimenoresponse=", 23))) { registrar->PeerMaxTimeNoResponse = 1000 * atol((char*)&argv[i][23]); if(registrar->PeerMaxTimeNoResponse < 1000000) { registrar->PeerMaxTimeNoResponse = 1000000; } else if(registrar->PeerMaxTimeNoResponse > 60000000) { registrar->PeerMaxTimeNoResponse = 60000000; } } else if(!(strncmp(argv[i], "-mentordiscoverytimeout=", 24))) { registrar->MentorDiscoveryTimeout = 1000 * atol((char*)&argv[i][24]); if(registrar->MentorDiscoveryTimeout < 1000000) { registrar->MentorDiscoveryTimeout = 1000000; } else if(registrar->MentorDiscoveryTimeout > 60000000) { registrar->MentorDiscoveryTimeout = 60000000; } } else if(!(strncmp(argv[i], "-takeoverexpiryinterval=", 24))) { registrar->TakeoverExpiryInterval = 1000 * atol((char*)&argv[i][24]); if(registrar->TakeoverExpiryInterval < 1000000) { registrar->TakeoverExpiryInterval = 1000000; } else if(registrar->TakeoverExpiryInterval > 60000000) { registrar->TakeoverExpiryInterval = 60000000; } } else if(!(strncmp(argv[i], "-announcettl=", 13))) { registrar->AnnounceTTL = atol((char*)&argv[i][13]); if(registrar->AnnounceTTL < 1) { registrar->AnnounceTTL = 1; } else if(registrar->AnnounceTTL > 255) { registrar->AnnounceTTL = 255; } } else if(!(strncmp(argv[i], "-maxhrrate=", 11))) { registrar->MaxHRRate = atof((const char*)&argv[i][11]); } else if(!(strncmp(argv[i], "-maxeurate=", 11))) { registrar->MaxEURate = atof((const char*)&argv[i][11]); } else if(!(strcmp(argv[i], "-supporttakeoversuggestion"))) { registrar->ENRPSupportTakeoverSuggestion = true; } } #ifndef FAST_BREAK installBreakDetector(); #endif /* ====== Print information =========================================== */ if(!quiet) { puts("The rsplib Registrar - Version 1.00"); puts("===================================\n"); printf("Server ID: $%08x\n", registrar->ServerID); printf("ASAP Address: "); transportAddressBlockPrint(asapUnicastAddress, stdout); puts(""); printf("ENRP Address: "); transportAddressBlockPrint(enrpUnicastAddress, stdout); puts(""); printf("ASAP Announce Address: "); if(asapSendAnnounces) { transportAddressBlockPrint(asapAnnounceAddress, stdout); puts(""); } else { puts("(none)"); } printf("ENRP Announce Address: "); if(enrpAnnounceViaMulticast) { transportAddressBlockPrint(enrpMulticastAddress, stdout); puts(""); } else { puts("(none)"); } printf("ASAP/ENRP Announce TTL: %d\n", registrar->AnnounceTTL); #ifdef ENABLE_CSP if(cspReportInterval > 0) { printf("CSP Report Address: "); fputaddress((struct sockaddr*)&cspReportAddress, true, stdout); puts(""); printf("CSP Report Interval: %lldms\n", cspReportInterval / 1000); } #endif printf("Auto-Close Timeout: %llus\n", registrar->AutoCloseTimeout / 1000000); printf("Min Address Scope: "); if(registrar->MinEndpointAddressScope <= AS_LOOPBACK) { puts("loopback"); } else if(registrar->MinEndpointAddressScope <= AS_UNICAST_SITELOCAL) { puts("site-local"); } else { puts("global"); } #ifdef ENABLE_REGISTRAR_STATISTICS if(statsFile) { printf("Statistics Interval: %ums\n", statsInterval); } if(actionLogFile) { printf("Action Log File: active\n"); } if(scalarName) { printf("Scalar File: %s\n", scalarName); printf("Object ID: %s\n", objectName); } #endif printf("Daemon Mode: %s\n", (daemonPIDFile == NULL) ? "off" : daemonPIDFile); puts("\nASAP Parameters:"); printf(" Distance Step: %ums\n", (unsigned int)registrar->DistanceStep); printf(" Max Bad PE Reports: %u\n", (unsigned int)registrar->MaxBadPEReports); printf(" Server Announce Cycle: %lldms\n", registrar->ServerAnnounceCycle / 1000); printf(" Endpoint Monitoring SCTP Heartbeat Interval: %lldms\n", registrar->EndpointMonitoringHeartbeatInterval / 1000); printf(" Endpoint Keep Alive Transmission Interval: %lldms\n", registrar->EndpointKeepAliveTransmissionInterval / 1000); printf(" Endpoint Keep Alive Timeout Interval: %lldms\n", registrar->EndpointKeepAliveTimeoutInterval / 1000); printf(" Max Increment: %u\n", (unsigned int)registrar->MaxIncrement); printf(" Max Handle Resolution Items (MaxHResItems): %u\n", (unsigned int)registrar->MaxHandleResolutionItems); puts("ENRP Parameters:"); printf(" Peer Heartbeat Cylce: %lldms\n", registrar->PeerHeartbeatCycle / 1000); printf(" Peer Max Time Last Heard: %lldms\n", registrar->PeerMaxTimeLastHeard / 1000); printf(" Peer Max Time No Response: %lldms\n", registrar->PeerMaxTimeNoResponse / 1000); printf(" Max Elements per Handle Table Request: %u\n", (unsigned int)registrar->MaxElementsPerHTRequest); printf(" Mentor Hunt Timeout: %lldms\n", registrar->MentorDiscoveryTimeout / 1000); printf(" Takeover Expiry Interval: %lldms\n", registrar->TakeoverExpiryInterval / 1000); printf(" Support for Takeover Suggestion: %s\n", registrar->ENRPSupportTakeoverSuggestion ? "on" : "off"); puts("Security Parameters:"); printf(" Max Handle Resolution Rate: "); if(registrar->MaxHRRate > 0.0) { printf("%1.2lf requests/s\n", registrar->MaxHRRate); } else { puts("unlimited"); } printf(" Max Endpoint Unreachable Rate: "); if(registrar->MaxEURate > 0.0) { printf("%1.2lf requests/s\n", registrar->MaxEURate); } else { puts("unlimited"); } puts(""); } /* ====== We are ready! =============================================== */ LOG_NOTE fputs("Registrar started. Going into initialization phase...\n", stdlog); LOG_END #ifdef HAVE_KERNEL_SCTP goIntoDaemonMode(daemonPIDFile); #endif /* ====== Main loop =================================================== */ while(!breakDetected()) { dispatcherGetPollParameters(®istrar->StateMachine, (struct pollfd*)&ufds, &nfds, &timeout, &pollTimeStamp); if((timeout < 0) || (timeout > 500)) { timeout = 500; } result = ext_poll((struct pollfd*)&ufds, nfds, timeout); if(result < 0) { if(errno != EINTR) { perror("poll() failed"); } break; } if( (endTimeStamp > 0) && (endTimeStamp <= getMicroTime()) ) { puts("Shutdown by timer!"); break; } dispatcherHandlePollResult(®istrar->StateMachine, result, (struct pollfd*)&ufds, nfds, timeout, pollTimeStamp); } /* ====== Clean up ==================================================== */ #ifdef ENABLE_REGISTRAR_STATISTICS if(registrar->Stats.NeedsWeightedStatValues) { now = getMicroTime(); updateWeightedStatValue(®istrar->Stats.PoolsCount, now, 0); updateWeightedStatValue(®istrar->Stats.PoolElementsCount, now, 0); updateWeightedStatValue(®istrar->Stats.OwnedPoolElementsCount, now, 0); updateWeightedStatValue(®istrar->Stats.PeersCount, now, 0); } statistics = registrar->Stats; if(scalarName) { scalarFH = fopen(scalarName, "w"); if(scalarFH) { registrarPrintScalarStatistics(registrar, scalarFH, objectName); fclose(scalarFH); } else { fprintf(stderr, "ERROR: Unable to create scalar file \"%s\"!\n", scalarName); } } if(statsBZFile) { BZ2_bzWriteClose(&bzerror, statsBZFile, 0, NULL, NULL); statsBZFile = NULL; } if(statsFile) { fclose(statsFile); statsFile = NULL; } if(actionLogBZFile) { BZ2_bzWriteClose(&bzerror, actionLogBZFile, 0, NULL, NULL); actionLogBZFile = NULL; } if(actionLogFile) { fclose(actionLogFile); } #endif registrarDelete(registrar); finishLogging(); #ifndef FAST_BREAK uninstallBreakDetector(); #endif if((!breakDetected()) && (uptime > 0.000001)) { t = randomExpDouble(downtime); printf("\nWaiting for %1.3fs ...\n", t); usleep((unsigned long long)rint(t * 1000000.0)); if(!breakDetected()) { run++; goto start; } } if(!quiet) { puts("\nTerminated!"); } return(0); } rsplib-3.0.1/rsplib/rspregistrar.h0000664000175000017500000005504011777021056014136 00000000000000/* $Id: rspregistrar.h 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef REGISTRAR_H #define REGISTRAR_H #include "tdtypes.h" #include "loglevel.h" #include "netutilities.h" #include "dispatcher.h" #include "timer.h" #include "rserpoolmessage.h" #include "poolhandlespacemanagement.h" #include "takeoverprocess.h" #include "messagebuffer.h" #include "randomizer.h" #include "breakdetector.h" #ifdef ENABLE_CSP #include "componentstatusreporter.h" #endif #include #include #include #ifdef ENABLE_REGISTRAR_STATISTICS #include #endif /* Exit immediately on Ctrl-C. No clean shutdown. */ /* #define FAST_BREAK */ #define REGISTRAR_RSERPOOL_MESSAGE_BUFFER_SIZE 65536 #define REGISTRAR_DEFAULT_MIN_ENDPOINT_ADDRESS_SCOPE AS_UNICAST_SITELOCAL #define REGISTRAR_DEFAULT_DISTANCE_STEP 50 #define REGISTRAR_DEFAULT_MAX_BAD_PE_REPORTS 3 #define REGISTRAR_DEFAULT_SERVER_ANNOUNCE_CYCLE 1000000 #define REGISTRAR_DEFAULT_ENDPOINT_MONITORING_HEARTBEAT_INTERVAL 1000000 #define REGISTRAR_DEFAULT_ENDPOINT_KEEP_ALIVE_TRANSMISSION_INTERVAL 5000000 #define REGISTRAR_DEFAULT_ENDPOINT_KEEP_ALIVE_TIMEOUT_INTERVAL 5000000 #define REGISTRAR_DEFAULT_MAX_ELEMENTS_PER_HANDLE_TABLE_REQUEST 128 #define REGISTRAR_DEFAULT_MAX_INCREMENT 0 #define REGISTRAR_DEFAULT_MAX_HANDLE_RESOLUTION_ITEMS 3 #define REGISTRAR_DEFAULT_PEER_HEARTBEAT_CYCLE 2444444 #define REGISTRAR_DEFAULT_PEER_MAX_TIME_LAST_HEARD 5000000 #define REGISTRAR_DEFAULT_PEER_MAX_TIME_NO_RESPONSE 5000000 #define REGISTRAR_DEFAULT_MENTOR_DISCOVERY_TIMEOUT 5000000 #define REGISTRAR_DEFAULT_TAKEOVER_EXPIRY_INTERVAL 5000000 #define REGISTRAR_DEFAULT_AUTOCLOSE_TIMEOUT 300000000 #define REGISTRAR_DEFAULT_ANNOUNCE_TTL 30 #define REGISTRAR_DEFAULT_SUPPORT_TAKEOVER_SUGGESTION false #define REGISTRAR_DEFAULT_MAX_HR_RATE -1.0 /* unlimited */ #define REGISTRAR_DEFAULT_MAX_EU_RATE -1.0 /* unlimited */ #ifdef ENABLE_REGISTRAR_STATISTICS struct RegistrarStatistics { unsigned long long StatsLine; unsigned long long StatsStartTime; unsigned long long ActionLogLine; unsigned long long ActionLogLastActivity; unsigned long long ActionLogStartTime; int StatsInterval; unsigned long long RegistrationCount; unsigned long long ReregistrationCount; unsigned long long DeregistrationCount; unsigned long long HandleResolutionCount; unsigned long long FailureReportCount; unsigned long long SynchronizationCount; unsigned long long HandleUpdateCount; unsigned long long EndpointKeepAliveCount; bool NeedsWeightedStatValues; struct WeightedStatValue PoolsCount; struct WeightedStatValue PoolElementsCount; struct WeightedStatValue OwnedPoolElementsCount; struct WeightedStatValue PeersCount; }; #endif struct Registrar { RegistrarIdentifierType ServerID; struct Dispatcher StateMachine; struct ST_CLASS(PoolHandlespaceManagement) Handlespace; struct ST_CLASS(PeerListManagement) Peers; struct Timer HandlespaceActionTimer; struct Timer PeerActionTimer; struct ST_CLASS(PoolUserList) PoolUsers; struct MessageBuffer* UDPMessageBuffer; int ASAPAnnounceSocket; int ASAPAnnounceSocketFamily; struct FDCallback ASAPSocketFDCallback; union sockaddr_union ASAPAnnounceAddress; bool ASAPSendAnnounces; int ASAPSocket; struct MessageBuffer* ASAPMessageBuffer; struct Timer ASAPAnnounceTimer; int ENRPMulticastOutputSocket; int ENRPMulticastOutputSocketFamily; int ENRPMulticastInputSocket; struct FDCallback ENRPMulticastInputSocketFDCallback; union sockaddr_union ENRPMulticastAddress; int ENRPUnicastSocket; struct FDCallback ENRPUnicastSocketFDCallback; struct MessageBuffer* ENRPUnicastMessageBuffer; bool ENRPAnnounceViaMulticast; struct Timer ENRPAnnounceTimer; bool ENRPSupportTakeoverSuggestion; bool InStartupPhase; RegistrarIdentifierType MentorServerID; int AnnounceTTL; size_t DistanceStep; size_t MaxBadPEReports; unsigned long long AutoCloseTimeout; unsigned long long ServerAnnounceCycle; unsigned long long EndpointMonitoringHeartbeatInterval; unsigned long long EndpointKeepAliveTransmissionInterval; unsigned long long EndpointKeepAliveTimeoutInterval; unsigned int MinEndpointAddressScope; size_t MaxElementsPerHTRequest; size_t MaxIncrement; size_t MaxHandleResolutionItems; unsigned long long PeerHeartbeatCycle; unsigned long long PeerMaxTimeLastHeard; unsigned long long PeerMaxTimeNoResponse; unsigned long long MentorDiscoveryTimeout; unsigned long long TakeoverExpiryInterval; double MaxHRRate; double MaxEURate; #ifdef ENABLE_CSP struct CSPReporter CSPReporter; unsigned int CSPReportInterval; union sockaddr_union CSPReportAddress; #endif #ifdef ENABLE_REGISTRAR_STATISTICS struct RegistrarStatistics Stats; FILE* ActionLogFile; BZFILE* ActionLogBZFile; FILE* StatsFile; BZFILE* StatsBZFile; struct Timer StatsTimer; #endif }; /* ###### Initialization ################################################# */ struct Registrar* registrarNew(const RegistrarIdentifierType serverID, int asapUnicastSocket, int asapAnnounceSocket, int enrpUnicastSocket, int enrpMulticastOutputSocket, int enrpMulticastInputSocket, const bool asapSendAnnounces, const union sockaddr_union* asapAnnounceAddress, const bool enrpAnnounceViaMulticast, const union sockaddr_union* enrpMulticastAddress #ifdef ENABLE_REGISTRAR_STATISTICS , FILE* actionLogFile, BZFILE* actionLogBZFile, FILE* statsFile, BZFILE* statsBZFile, const unsigned int statsInterval, const bool needsWeightedStatValues #endif #ifdef ENABLE_CSP , const unsigned int cspReportInterval, const union sockaddr_union* cspReportAddress #endif ); void registrarDelete(struct Registrar* registrar); unsigned int registrarAddStaticPeer( struct Registrar* registrar, const RegistrarIdentifierType identifier, const struct TransportAddressBlock* transportAddressBlock); unsigned long long registrarRandomizeCycle(const unsigned long long interval); unsigned int registrarRoundDistance(const unsigned int distance, const unsigned int step); void registrarUpdateDistance(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, const struct ST_CLASS(PoolElementNode)* poolElementNode, struct PoolPolicySettings* updatedPolicySettings, bool addDistance, unsigned int* distance); /* ###### Statistics ##################################################### */ #ifdef ENABLE_REGISTRAR_STATISTICS void registrarPrintScalarStatistics(struct Registrar* registrar, FILE* fh, const char* objectName); void registrarBeginActionLog(struct Registrar* registrar); void registrarWriteActionLog(struct Registrar* registrar, const char* direction, const char* protocol, const char* action, const char* reason, const uint32_t flags, const unsigned long long counter, const unsigned long long timeValue, const struct PoolHandle* poolHandle, PoolElementIdentifierType poolElementID, RegistrarIdentifierType senderID, RegistrarIdentifierType receiverID, RegistrarIdentifierType targetID, unsigned int errorCode); #endif /* ###### Core ########################################################### */ void registrarDumpHandlespace(struct Registrar* registrar); void registrarDumpPeers(struct Registrar* registrar); void registrarBeginNormalOperation(struct Registrar* registrar, const bool initializedFromMentor); void registrarHandleSocketEvent(struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData); void registrarHandleMessage(struct Registrar* registrar, struct RSerPoolMessage* message, int sd); /* ###### ASAP ########################################################### */ void registrarHandleASAPAnnounceTimer(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); void registrarHandlePoolElementEvent(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); /* ====== Handlespace Operations ======================= */ void registrarRemovePoolElementsOfConnection(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID); void registrarHandleASAPRegistration(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarHandleASAPDeregistration(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarHandleASAPHandleResolution(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); /* ====== Monitoring =================================== */ void registrarHandleASAPEndpointKeepAliveAck(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendASAPEndpointKeepAlive(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode, const bool newHomeRegistrar); void registrarHandleASAPEndpointUnreachable(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); /* ###### ENRP ########################################################### */ void registrarHandleENRPAnnounceTimer(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); void registrarHandlePeerEvent(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); /* ====== List/Handlespace I/O ========================= */ void registrarHandleENRPHandleUpdate(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendENRPHandleUpdate(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode, const uint16_t action); void registrarHandleENRPListRequest(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendENRPListRequest(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, int msgSendFlags, const union sockaddr_union* destinationAddressList, const size_t destinationAddresses, RegistrarIdentifierType receiverID); void registrarHandleENRPListResponse(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarHandleENRPHandleTableRequest(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendENRPHandleTableRequest(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, int msgSendFlags, const union sockaddr_union* destinationAddressList, const size_t destinationAddresses, RegistrarIdentifierType receiverID, unsigned int flags); void registrarHandleENRPHandleTableResponse(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message); /* ====== Handlespace Audit ============================ */ void registrarHandleENRPPresence(struct Registrar* registrar, const int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendENRPPresence(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, int msgSendFlags, const union sockaddr_union* destinationAddressList, const size_t destinationAddresses, const RegistrarIdentifierType receiverID, const bool replyRequired); void registrarSendENRPPresenceToAllPeers(struct Registrar* registrar); /* ====== Takeover ===================================== */ void registrarHandleENRPInitTakeover(struct Registrar* registrar, const int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendENRPInitTakeoverToAllPeers(struct Registrar* registrar, const RegistrarIdentifierType targetID); void registrarHandleENRPInitTakeoverAck(struct Registrar* registrar, const int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendENRPInitTakeoverAck(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, const RegistrarIdentifierType receiverID, const RegistrarIdentifierType targetID); void registrarHandleENRPTakeoverServer(struct Registrar* registrar, const int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message); void registrarSendENRPTakeoverServerToAllPeers(struct Registrar* registrar, const RegistrarIdentifierType targetID); /* ###### Security ####################################################### */ bool registrarPoolUserHasPermissionFor(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, const unsigned int action, const struct PoolHandle* poolHandle, const PoolElementIdentifierType peIdentifier); /* ###### Miscellaneous ################################################## */ void registrarRegistrationHook(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode); void registrarDeregistrationHook(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode); #endif rsplib-3.0.1/rsplib/fgpconfig/0000775000175000017500000000000012065103200013233 500000000000000rsplib-3.0.1/rsplib/fgpconfig/input-001.fsf0000664000175000017500000000124711777021017015332 00000000000000 MandelbrotN 2.3507508768668367027387944290239829570055007934570312500000000000e-01 1.1638007791262661161368896500789560377597808837890625000000000000e+00 2.3507524835295476317575946723081870004534721374511718750000000000e-01 1.1638006586265630115661906529567204415798187255859375000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-002.fsf0000664000175000017500000000124711777021017015333 00000000000000 MandelbrotN 8.6249999999999993338661852249060757458209991455078125000000000000e-02 1.2753125000000000710542735760100185871124267578125000000000000000e+00 3.3374999999999999111821580299874767661094665527343750000000000000e-01 1.0896874999999999200639422269887290894985198974609375000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-003.fsf0000664000175000017500000000124711777021017015334 00000000000000 MandelbrotN 2.1309374999999999844568776552478084340691566467285156250000000000e-01 1.1733734375000000049737991503207013010978698730468750000000000000e+00 2.4031874999999999764632718779466813430190086364746093750000000000e-01 1.1529546875000000749622586226905696094036102294921875000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-004.fsf0000664000175000017500000000124711777021017015335 00000000000000 MandelbrotN 2.3460149999999999059774324905447429046034812927246093750000000000e-01 1.1651719062499998891269115119939669966697692871093750000000000000e+00 2.3841299999999998604494066967163234949111938476562500000000000000e-01 1.1623132812500001076472244676551781594753265380859375000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-005.fsf0000664000175000017500000000124711777021017015336 00000000000000 MandelbrotN 2.3481113249999999159634000989171909168362617492675781250000000000e-01 1.1640504914843750050579274102346971631050109863281250000000000000e+00 2.3528280562499997996539491396106313914060592651367187500000000000e-01 1.1636967366406250068422423282754607498645782470703125000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-006.fsf0000664000175000017500000000124711777021017015337 00000000000000 MandelbrotN 2.3505050661093748742835884968371829017996788024902343750000000000e-01 1.1638206245348632350555817538406699895858764648437500000000000000e+00 2.3510887616015624379528503595793154090642929077148437500000000000e-01 1.1637768473729492857415834805578924715518951416015625000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-007.fsf0000664000175000017500000000124711777021017015340 00000000000000 MandelbrotN 2.3507064410541794741149601577490102499723434448242187500000000000e-01 1.1638065337608720639650528028141707181930541992187500000000000000e+00 2.3508910347535838525345752714201807975769042968750000000000000000e-01 1.1637926892334169437503987865056842565536499023437500000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-008.fsf0000664000175000017500000000124711777021017015341 00000000000000 MandelbrotN 2.3507124403494100706168978831556160002946853637695312500000000000e-01 1.1638016391435612728599835463683120906352996826171875000000000000e+00 2.3507745099808347033487621047243010252714157104492187500000000000e-01 1.1637969839212045641829718078952282667160034179687500000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-009.fsf0000664000175000017500000000124711777021017015342 00000000000000 MandelbrotN 2.3507411475539438661108704309299355372786521911621093750000000000e-01 1.1638009718950235171774920672760345041751861572265625000000000000e+00 2.3507551132210144362311154964118031784892082214355468750000000000e-01 1.1637999244699932521740493029938079416751861572265625000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-010.fsf0000664000175000017500000000124711777021017015332 00000000000000 MandelbrotN 2.3507502252375397922001809547509765252470970153808593750000000000e-01 1.1638008309290714947792366729117929935455322265625000000000000000e+00 2.3507529834567861271032995773566653952002525329589843750000000000e-01 1.1638006240626279641503515449585393071174621582031250000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-011.fsf0000664000175000017500000000124711777021017015333 00000000000000 MandelbrotN 1.2051932340603803417433681488546426407992839813232421875000000000e-01 1.0614469954703931175998832259210757911205291748046875000000000000e+00 1.2051932340634355367292585015093209221959114074707031250000000000e-01 1.0614469954701639675676005936111323535442352294921875000000000000e+00 1000 7 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-012.fsf0000664000175000017500000000125111777021017015327 00000000000000 MandelbrotN -2.1159707417211340296780974767898442223668098449707031250000000000e-01 1.2163035592265596385175285831792280077934265136718750000000000000e+00 -2.1159707417031611842439531301351962611079216003417968750000000000e-01 1.2163035592252118277656336431391537189483642578125000000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-013.fsf0000664000175000017500000000125111777021017015330 00000000000000 MandelbrotN -2.1159707417124284933862554680672474205493927001953125000000000000e-01 1.2163035592265076800799761258531361818313598632812500000000000000e+00 -2.1159707417043405186518612026702612638473510742187500000000000000e-01 1.2163035592259010542193209403194487094879150390625000000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-014.fsf0000664000175000017500000000125211777021017015332 00000000000000 MandelbrotN 9.8054305753796777711528420695685781538486480712890625000000000000e-01 -8.0598399511126128658133893623016774654388427734375000000000000000e-02 9.8054305793246798739204450612305663526058197021484375000000000000e-01 -8.0598399807001286365704117997665889561176300048828125000000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-015.fsf0000664000175000017500000000125211777021017015333 00000000000000 MandelbrotN 9.7982362499999997584865241151419468224048614501953125000000000000e-01 -8.0277210937499982046361424181668553501367568969726562500000000000e-02 9.8113481250000000866151594891562126576900482177734375000000000000e-01 -8.1260601562500006656009077232738491147756576538085937500000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-016.fsf0000664000175000017500000000125211777021017015334 00000000000000 MandelbrotN 9.8045955093750003506158918753499165177345275878906250000000000000e-01 -8.0555223662109404214604069238703232258558273315429687500000000000e-02 9.8055297304687494275299286528024822473526000976562500000000000000e-01 -8.0625290244140584983156827547645661979913711547851562500000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-017.fsf0000664000175000017500000000125211777021017015335 00000000000000 MandelbrotN 9.8053370473681633612272889877203851938247680664062500000000000000e-01 -8.0593774879431132052154396205878583714365959167480468750000000000e-02 9.8054690060976557042238255235133692622184753417968750000000000000e-01 -8.0603671784143057776894636390352388843894004821777343750000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-018.fsf0000664000175000017500000000125211777021017015336 00000000000000 MandelbrotN 9.8050415999472650963042497096466831862926483154296875000000000000e-01 -8.0584374279675283214707803836063249036669731140136718750000000000e-02 9.8052342830478511626068893747287802398204803466796875000000000000e-01 -8.0598825512219238187405778717220528051257133483886718750000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-019.fsf0000664000175000017500000000125211777021017015337 00000000000000 MandelbrotN 9.8054047783974607188639538435381837189197540283203125000000000000e-01 -8.0596416973461898480834975089237559586763381958007812500000000000e-02 9.8054631672158198973932030639844015240669250488281250000000000000e-01 -8.0600796134838836870528666622703894972801208496093750000000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-020.fsf0000664000175000017500000000125211777021017015327 00000000000000 MandelbrotN 9.8054230978892209513730904291151091456413269042968750000000000000e-01 -8.0597950592269124170385907746094744652509689331054687500000000000e-02 9.8054328050302730357401514993398450314998626708984375000000000000e-01 -8.0598678627848030497915488012949936091899871826171875000000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-021.fsf0000664000175000017500000000125211777021017015330 00000000000000 MandelbrotN 9.8054283397453889659090009445208124816417694091796875000000000000e-01 -8.0598208134855159334719587604922708123922348022460937500000000000e-02 9.8054324410124837907432038264232687652111053466796875000000000000e-01 -8.0598515729887271197284803747606929391622543334960937500000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-022.fsf0000664000175000017500000000125011777021017015327 00000000000000 MandelbrotN 6.4124999999999998667732370449812151491641998291015625000000000000e-01 3.0578125000000000444089209850062616169452667236328125000000000000e-01 1.4699999999999999733546474089962430298328399658203125000000000000e+00 -3.1578125000000001332267629550187848508358001708984375000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-023.fsf0000664000175000017500000000125211777021017015332 00000000000000 MandelbrotN 9.8054304262650238133147695407387800514698028564453125000000000000e-01 -8.0598396344565420568173408355505671352148056030273437500000000000e-02 9.8054306364549626007232063784613274037837982177734375000000000000e-01 -8.0598412108810829623806171184696722775697708129882812500000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-024.fsf0000664000175000017500000000125211777021017015333 00000000000000 MandelbrotN 9.8054305642021710731626171764219179749488830566406250000000000000e-01 -8.0598399188698044426359956560190767049789428710937500000000000000e-02 9.8054306046637340621430212195264175534248352050781250000000000000e-01 -8.0598402223315268599890259793028235435485839843750000000000000000e-02 1000 99 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-025.fsf0000664000175000017500000000125211777021017015334 00000000000000 MandelbrotN -1.3948485853509984266906940320041030645370483398437500000000000000e-01 9.9718281748829895594354866261710412800312042236328125000000000000e-01 -1.3948484263764879265146134912356501445174217224121093750000000000e-01 9.9718280556521066149144871815224178135395050048828125000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-026.fsf0000664000175000017500000000125211777021017015335 00000000000000 MandelbrotN -1.3948484941393729519276689643447753041982650756835937500000000000e-01 9.9718281011833997951043784269131720066070556640625000000000000000e-01 -1.3948484673124245114550490143301431089639663696289062500000000000e-01 9.9718280810631887423056696206913329660892486572265625000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-027.fsf0000664000175000017500000000125211777021017015336 00000000000000 MandelbrotN -1.3948484804010410909036465909593971446156501770019531250000000000e-01 9.9718280921770119373803709095227532088756561279296875000000000000e-01 -1.3948484783816847421000773010746343061327934265136718750000000000e-01 9.9718280906624945369998158639646135270595550537109375000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-028.fsf0000664000175000017500000000125211777021017015337 00000000000000 MandelbrotN -1.3948484797826132819409394869580864906311035156250000000000000000e-01 9.9718280916469304031579667935147881507873535156250000000000000000e-01 -1.3948484794595161773145264305640012025833129882812500000000000000e-01 9.9718280914046086849111816263757646083831787109375000000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-029.fsf0000664000175000017500000000125211777021017015340 00000000000000 MandelbrotN -1.3948484796028903787146191461943089962005615234375000000000000000e-01 9.9718280915525769891871732397703453898429870605468750000000000000e-01 -1.3948484795556376214520355460990685969591140747070312500000000000e-01 9.9718280915171364497950889926869422197341918945312500000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-030.fsf0000664000175000017500000000125211777021017015330 00000000000000 MandelbrotN -1.3948484795756019294366012672981014475226402282714843750000000000e-01 9.9718280915378543216576190388877876102924346923828125000000000000e-01 -1.3948484795591814533466390457761008292436599731445312500000000000e-01 9.9718280915255386176454521773848682641983032226562500000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-031.fsf0000664000175000017500000000125211777021017015331 00000000000000 MandelbrotN -1.3948484795736315611236477707279846072196960449218750000000000000e-01 9.9718280915365786754023247340228408575057983398437500000000000000e-01 -1.3948484795684384929259636010101530700922012329101562500000000000e-01 9.9718280915326840130319396848790347576141357421875000000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-032.fsf0000664000175000017500000000125211777021017015332 00000000000000 MandelbrotN -1.3948484795698212757031342334812507033348083496093750000000000000e-01 9.9718280915351131810098195273894816637039184570312500000000000000e-01 -1.3948484795685814341403840899147326126694679260253906250000000000e-01 9.9718280915341828141151836462086066603660583496093750000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-033.fsf0000664000175000017500000000124711777021017015337 00000000000000 MandelbrotN 4.4718749999999996003197111349436454474925994873046875000000000000e-01 6.5274531250000000781597009336110204458236694335937500000000000000e-01 5.0741249999999993303134715461055748164653778076171875000000000000e-01 6.0757656250000002806643806252395734190940856933593750000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-034.fsf0000664000175000017500000000125211777021017015334 00000000000000 MandelbrotN -1.3948484795694912619090644056996097788214683532714843750000000000e-01 9.9718280915347057291597820949391461908817291259765625000000000000e-01 -1.3948484795689719550892959887278266251087188720703125000000000000e-01 9.9718280915343171511011632901499979197978973388671875000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-035.fsf0000664000175000017500000000125211777021017015335 00000000000000 MandelbrotN -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-036.fsf0000664000175000017500000000125211777021017015336 00000000000000 MandelbrotN -3.6749999999999999333866185224906075745820999145507812500000000000e-01 1.0398437499999999555910790149937383830547332763671875000000000000e+00 -4.1250000000000001942890293094023945741355419158935546875000000000e-02 7.9515625000000000888178419700125232338905334472656250000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-037.fsf0000664000175000017500000000125211777021017015337 00000000000000 MandelbrotN -1.4200415624999998542854484639974543824791908264160156250000000000e-01 9.9898705468749993130472830671351402997970581054687500000000000000e-01 -1.3222481249999998298427783538500079885125160217285156250000000000e-01 9.9165254687499992947152804845245555043220520019531250000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-038.fsf0000664000175000017500000000125211777021017015340 00000000000000 MandelbrotN -1.4021942601562498165179704301408492028713226318359375000000000000e-01 9.9733679042968748085229435673682019114494323730468750000000000000e-01 -1.3865473101562497681982222275109961628913879394531250000000000000e-01 9.9616326917968744947273762591066770255565643310546875000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-039.fsf0000664000175000017500000000125211777021017015341 00000000000000 MandelbrotN -1.3951047249046871767674815600912552326917648315429687500000000000e-01 9.9724112858352054189481350476853549480438232421875000000000000000e-01 -1.3932582625628903150172277491947170346975326538085937500000000000e-01 9.9710264390788572175239323769346810877323150634765625000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-040.fsf0000664000175000017500000000125211777021017015331 00000000000000 MandelbrotN -1.3950862602812691415365975444728974252939224243164062500000000000e-01 9.9719868880063333715924045463907532393932342529296875000000000000e-01 -1.3947469728259639931700064607866806909441947937011718750000000000e-01 9.9717324224148540245948879601201042532920837402343750000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-041.fsf0000664000175000017500000000125211777021017015332 00000000000000 MandelbrotN -1.3948915941037878796215920829126844182610511779785156250000000000e-01 9.9718466668626948301579204780864529311656951904296875000000000000e-01 -1.3948334911270668379223991450999164953827857971191406250000000000e-01 9.9718030896301546039950380873051472008228302001953125000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-042.fsf0000664000175000017500000000125211777021017015333 00000000000000 MandelbrotN -1.3948552797433372285595964967797044664621353149414062500000000000e-01 9.9718349917958104544624120535445399582386016845703125000000000000e-01 -1.3948432233756677400826617940765572711825370788574218750000000000e-01 9.9718259495200578523821377530111931264400482177734375000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-043.fsf0000664000175000017500000000125211777021017015334 00000000000000 MandelbrotN -1.3948497639551285520731482847622828558087348937988281250000000000e-01 9.9718288562349510772975236250204034149646759033203125000000000000e-01 -1.3948483021205484999605062057526083663105964660644531250000000000e-01 9.9718277598590154831015297531848773360252380371093750000000000000e-01 1000 17 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-044.fsf0000664000175000017500000000125111777021017015334 00000000000000 MandelbrotN 2.6310937499999997868371792719699442386627197265625000000000000000e-01 -6.2309257812499996287414205653476528823375701904296875000000000000e-01 3.2917499999999999538147221755934879183769226074218750000000000000e-01 -6.7264179687500003090860900556435808539390563964843750000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-045.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 1.1614027164558116123060926838661544024944305419921875000000000000e+00 2.8404674281510400302153129814541898667812347412109375000000000000e-01 1.1613952617236549258450395427644252777099609375000000000000000000e+00 2.8405233386422157337847238522954285144805908203125000000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-046.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 1.1614026046348293608190260783885605633258819580078125000000000000e+00 2.8404645860344046592871336542884819209575653076171875000000000000e-01 1.1613979081535705795147350727347657084465026855468750000000000000e+00 2.8404998096438460741808285092702135443687438964843750000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-047.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 1.1614020058334688645373944382299669086933135986328125000000000000e+00 2.8404735827313165597018951302743516862392425537109375000000000000e-01 1.1613986595905720911048319976544007658958435058593750000000000000e+00 2.8404986795530423604461134345910977572202682495117187500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-048.fsf0000664000175000017500000000123211777021017015337 00000000000000 Mandelbrot 1.1614002867011805619767983444035053253173828125000000000000000000e+00 2.8404761185560123415427824511425569653511047363281250000000000000e-01 1.1613994124952238262693526849034242331981658935546875000000000000e+00 2.8404826751006873042371125848148949444293975830078125000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-049.fsf0000664000175000017500000000123211777021017015340 00000000000000 Mandelbrot 1.1614002047443721110653314099181443452835083007812500000000000000e+00 2.8404783778320319420629402884515002369880676269531250000000000000e-01 1.1613995600174791267278351369895972311496734619140625000000000000e+00 2.8404832132837287694826500228373333811759948730468750000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-050.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 1.1614000532335522208882139238994568586349487304687500000000000000e+00 2.8404782559383540130326650796632748097181320190429687500000000000e-01 1.1613998090432415821737777150701731443405151367187500000000000000e+00 2.8404800873656838033909366458829026669263839721679687500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-051.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 1.1613999637988510205133252384257502853870391845703125000000000000e+00 2.8404789377634864777633083576802164316177368164062500000000000000e-01 1.1613999177079297187020756609854288399219512939453125000000000000e+00 2.8404792834453962413476801884826272726058959960937500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-052.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 1.1613999515271431484109143639216199517250061035156250000000000000e+00 2.8404790335461826966678700046031735837459564208984375000000000000e-01 1.1613999279055460256415699404897168278694152832031250000000000000e+00 2.8404792107081611174379531803424470126628875732421875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-053.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 1.1613999471571476718168014485854655504226684570312500000000000000e+00 2.8404790804941071336031654936959967017173767089843750000000000000e-01 1.1613999366455369788297957711620256304740905761718750000000000000e+00 2.8404791593311873310057080743717961013317108154296875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-054.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 1.1613999435569211104990472449571825563907623291015625000000000000e+00 2.8404790980189320581672518528648652136325836181640625000000000000e-01 1.1613999369477456813370963573106564581394195556640625000000000000e+00 2.8404791475877477768818835102138109505176544189453125000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-055.fsf0000664000175000017500000000125111777021017015336 00000000000000 MandelbrotN 3.1307150390624999269917339006497059017419815063476562500000000000e-01 -6.2348484277343751980282604563399218022823333740234375000000000000e-01 3.2909241796874999508304426854010671377182006835937500000000000000e-01 -6.3550052832031245220179016541806049644947052001953125000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-056.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 1.1555718750000001371347480016993358731269836425781250000000000000e+00 2.8780845703124990908605695949518121778964996337890625000000000000e-01 1.1619717187500000488142859467188827693462371826171875000000000000e+00 2.8300857421874997532640350073052104562520980834960937500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-057.fsf0000664000175000017500000000123211777021017015337 00000000000000 Mandelbrot 1.1613999432182009474701089857262559235095977783203125000000000000e+00 2.8404791061874595792247077952197287231683731079101562500000000000e-01 1.1613999420698566389376082952367141842842102050781250000000000000e+00 2.8404791148000418932184629738912917673587799072265625000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-058.fsf0000664000175000017500000000123211777021017015340 00000000000000 Mandelbrot 1.1613999430000154777786747217760421335697174072265625000000000000e+00 2.8404791079350966143124423979315906763076782226562500000000000000e-01 1.1613999421818201884804011569940485060214996337890625000000000000e+00 2.8404791140715612840494941337965428829193115234375000000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-059.fsf0000664000175000017500000000123211777021017015341 00000000000000 Mandelbrot 1.1613999425704628620792391302529722452163696289062500000000000000e+00 2.8404791092250325501566976527101360261440277099609375000000000000e-01 1.1613999421889793506323940164293162524700164794921875000000000000e+00 2.8404791120861594411195483189658261835575103759765625000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-060.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 1.1613999423730452242864430445479229092597961425781250000000000000e+00 2.8404791107205668021506994591618422418832778930664062500000000000e-01 1.1613999422276044537483130625332705676555633544921875000000000000e+00 2.8404791118113725811866743242717348039150238037109375000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-061.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 1.1613999423397756149967108285636641085147857666015625000000000000e+00 2.8404791109455451714183027434046380221843719482421875000000000000e-01 1.1613999422492387036953687129425816237926483154296875000000000000e+00 2.8404791116245720061783686105627566576004028320312500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-062.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 1.1613999423119354403866054781246930360794067382812500000000000000e+00 2.8404791109173943564059072741656564176082611083984375000000000000e-01 1.1613999422584055931650937054655514657497406005859375000000000000e+00 2.8404791113188682105672455691092181950807571411132812500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-063.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 1.1613999423077199235621037587407045066356658935546875000000000000e+00 2.8404791110156724087687507562804967164993286132812500000000000000e-01 1.1613999422919956128197327416273765265941619873046875000000000000e+00 2.8404791111336047393365333846304565668106079101562500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-064.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 1.1613999423044178982422636181581765413284301757812500000000000000e+00 2.8404791110415927857246742860297672450542449951171875000000000000e-01 1.1613999422952387963192677489132620394229888916015625000000000000e+00 2.8404791111104360501471433053666260093450546264648437500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-065.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 1.1613999423002299149487726026563905179500579833984375000000000000e+00 2.8404791110598365255768271708802785724401473999023437500000000000e-01 1.1613999422978893427682578476378694176673889160156250000000000000e+00 2.8404791110773908169306878335191868245601654052734375000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-066.fsf0000664000175000017500000000125111777021017015340 00000000000000 MandelbrotN 3.1743720298828126402668203809298574924468994140625000000000000000e-01 -6.2589298641845703130570655048359185457229614257812500000000000000e-01 3.2564792144531251594230525370221585035324096679687500000000000000e-01 -6.3205102526123047024242396219051443040370941162109375000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-067.fsf0000664000175000017500000000123211777021017015340 00000000000000 Mandelbrot 1.1613999422993024346340007468825206160545349121093750000000000000e+00 2.8404791110689975308645216500735841691493988037109375000000000000e-01 1.1613999422990068932648455302114598453044891357421875000000000000e+00 2.8404791110712135360216734625282697379589080810546875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-068.fsf0000664000175000017500000000123211777021017015341 00000000000000 Mandelbrot 1.1596277759765625248178366746287792921066284179687500000000000000e+00 2.8523851977539055324584182926628272980451583862304687500000000000e-01 1.1616597263671875062129856814863160252571105957031250000000000000e+00 2.8371455698242181719948007412313017994165420532226562500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-069.fsf0000664000175000017500000000123211777021017015342 00000000000000 Mandelbrot 1.1613999422992864474224461446283385157585144042968750000000000000e+00 2.8404791110702864997961114568170160055160522460937500000000000000e-01 1.1613999422992111743013765590148977935314178466796875000000000000e+00 2.8404791110708516033156456614960916340351104736328125000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-070.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 1.1613999422991734267185393036925233900547027587890625000000000000e+00 2.8404791110698601741546553967054933309555053710937500000000000000e-01 1.1613999422991365673141217484953813254833221435546875000000000000e+00 2.8404791110701366196877870606840588152408599853515625000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-071.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 1.1613999422991674315142063278472051024436950683593750000000000000e+00 2.8404791110699001421835419023409485816955566406250000000000000000e-01 1.1613999422991407861616153240902349352836608886718750000000000000e+00 2.8404791110700999823279744305182248353958129882812500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-072.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 1.1610349016220702367263584164902567863464355468750000000000000000e+00 2.8422889442504883916740254790056496858596801757812500000000000000e-01 1.1615327294677735281425157154444605112075805664062500000000000000e+00 2.8385552354077137060528457368491217494010925292968750000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-073.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 1.1611798939821313947362568796961568295955657958984375000000000000e+00 2.8418937933979615539925589473568834364414215087890625000000000000e-01 1.1614586775757251846385997851029969751834869384765625000000000000e+00 2.8398029164460081297249871568055823445320129394531250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-074.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 1.1613551791666034684880060012801550328731536865234375000000000000e+00 2.8409498495740270751497291712439619004726409912109375000000000000e-01 1.1614537988628372833233015626319684088230133056640625000000000000e+00 2.8402102018522734638850124611053615808486938476562500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-075.fsf0000664000175000017500000000123211777021017015337 00000000000000 Mandelbrot 1.1613559188143252054459253486129455268383026123046875000000000000e+00 2.8409251946499680663293929683277383446693420410156250000000000000e-01 1.1614476351318225866293687431607395410537719726562500000000000000e+00 2.8402373222687382625650798217975534498691558837890625000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-076.fsf0000664000175000017500000000123211777021017015340 00000000000000 Mandelbrot 1.1613840069365588547611878311727195978164672851562500000000000000e+00 2.8405550333248186234413878992199897766113281250000000000000000000e-01 1.1614049870441862655212617028155364096164703369140625000000000000e+00 2.8403976825176124876293215493205934762954711914062500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-077.fsf0000664000175000017500000000125111777021017015342 00000000000000 MandelbrotN -4.2690320800781256238565219973679631948471069335937500000000000000e-01 6.3219858691406249917577042651828378438949584960937500000000000000e-01 -3.6633521191406254180478185844549443572759628295898437500000000000e-01 5.8677258984375002537348109399317763745784759521484375000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-078.fsf0000664000175000017500000000123211777021017015342 00000000000000 Mandelbrot 1.1613864458740705831729655983508564531803131103515625000000000000e+00 2.8405647038431780515566060785204172134399414062500000000000000000e-01 1.1614035708869214769123345831758342683315277099609375000000000000e+00 2.8404362662467963485113386923330835998058319091796875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-079.fsf0000664000175000017500000000123211777021017015343 00000000000000 Mandelbrot 1.1613945588489087423766932261059992015361785888671875000000000000e+00 2.8405344674923627135143533450900577008724212646484375000000000000e-01 1.1614030785428020031702089909231290221214294433593750000000000000e+00 2.8404705697881638126744974215398542582988739013671875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-080.fsf0000664000175000017500000000125111777021017015334 00000000000000 MandelbrotN 8.7133593750000004618527782440651208162307739257812500000000000000e-01 -2.1960546875000000466293670342565746977925300598144531250000000000e-01 8.9505468750000005684341886080801486968994140625000000000000000000e-01 -2.3739453125000001265654248072678456082940101623535156250000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-081.fsf0000664000175000017500000000125111777021017015335 00000000000000 MandelbrotN 8.8686074882812504505125161813339218497276306152343750000000000000e-01 -2.2759199807128910331144311385287437587976455688476562500000000000e-01 8.8847110371093751535198634883272461593151092529296875000000000000e-01 -2.2879976423339842828141854624846018850803375244140625000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-082.fsf0000664000175000017500000000125111777021017015336 00000000000000 MandelbrotN 8.8752904610449223632429038843838497996330261230468750000000000000e-01 -2.2754871978381352448650432052090764045715332031250000000000000000e-01 8.8813292918554687105370248900726437568664550781250000000000000000e-01 -2.2800163209460450053356339594756718724966049194335937500000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-083.fsf0000664000175000017500000000125311777021017015341 00000000000000 MandelbrotN -4.7680312500000004982680934517702553421258926391601562500000000000e-01 -3.1355566406250001687538997430237941443920135498046875000000000000e-01 -4.1862656250000002122746423083299305289983749389648437500000000000e-01 -3.5718808593750001056932319443149026483297348022460937500000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-084.fsf0000664000175000017500000000124711777021017015345 00000000000000 MandelbrotN 6.0170140912536629329565585067030042409896850585937500000000000000e-01 6.6122014423103336877574065510998480021953582763671875000000000000e-01 6.0171967580566398936525729368440806865692138671875000000000000000e-01 6.6120644422080998570123711033375002443790435791015625000000000000e-01 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-085.fsf0000664000175000017500000000125311777021017015343 00000000000000 MandelbrotN -4.4218807031250001449151909582724329084157943725585937500000000000e-01 -3.3830797338867191204059281517402268946170806884765625000000000000e-01 -4.3382518945312503744204946087847929447889328002929687500000000000e-01 -3.4458013403320308931654381012776866555213928222656250000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-086.fsf0000664000175000017500000000125311777021017015344 00000000000000 MandelbrotN -4.3826579997075748584833831955620553344488143920898437500000000000e-01 -3.4159999122152423511877827877469826489686965942382812500000000000e-01 -4.3747262645575046846602162986528128385543823242187500000000000000e-01 -3.4219487135777948427772798822843469679355621337890625000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-087.fsf0000664000175000017500000000125311777021017015345 00000000000000 MandelbrotN -4.3761310987859436405500446198857389390468597412109375000000000000e-01 -3.4173158583383217434814582702529150992631912231445312500000000000e-01 -4.3751131845127938513329013403563294559717178344726562500000000000e-01 -3.4180792940431836690606814954662695527076721191406250000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-088.fsf0000664000175000017500000000124711777021017015351 00000000000000 MandelbrotN 6.1875000000000002220446049250313080847263336181640625000000000000e-01 4.0937499999999998889776975374843459576368331909179687500000000000e-01 9.6374999999999999555910790149937383830547332763671875000000000000e-01 1.5062500000000000888178419700125232338905334472656250000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-089.fsf0000664000175000017500000000124711777021017015352 00000000000000 MandelbrotN 8.4817500000000001225686219186172820627689361572265625000000000000e-01 2.7563359375000001660893644839234184473752975463867187500000000000e-01 8.8655625000000004565237077258643694221973419189453125000000000000e-01 2.4684765624999999156230501284881029278039932250976562500000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-090.fsf0000664000175000017500000000124711777021017015342 00000000000000 MandelbrotN 8.7198210975585943582899517423356883227825164794921875000000000000e-01 2.5742781513305662555168851213238667696714401245117187500000000000e-01 8.7499761662109376558760232001077383756637573242187500000000000000e-01 2.5516618498413085047715753717056941241025924682617187500000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-091.fsf0000664000175000017500000000124711777021017015343 00000000000000 MandelbrotN 6.9374999999999997779553950749686919152736663818359375000000000000e-01 1.1671874999999998223643160599749535322189331054687500000000000000e-01 8.2499999999999995559107901499373838305473327636718750000000000000e-01 1.8281250000000005828670879282071837224066257476806640625000000000e-02 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-092.fsf0000664000175000017500000000124711777021017015344 00000000000000 MandelbrotN 7.4902930799726796795567906883661635220050811767578125000000000000e-01 6.0242003222956919117336838098708540201187133789062500000000000000e-02 7.4921430389910570468714468006510287523269653320312500000000000000e-01 6.0103256296578616568737629677343647927045822143554687500000000000e-02 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-093.fsf0000664000175000017500000000124711777021017015345 00000000000000 MandelbrotN 2.1637500000000001176836406102665932849049568176269531250000000000e-01 8.1059375000000000177635683940025046467781066894531250000000000000e-01 2.4112500000000000599520433297584531828761100769042968750000000000e-01 7.9203124999999996447286321199499070644378662109375000000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-094.fsf0000664000175000017500000000124711777021017015346 00000000000000 MandelbrotN 2.2580474999999999852207110961899161338806152343750000000000000000e-01 8.0944519531249992105870205705286934971809387207031250000000000000e-01 2.2756818749999999096367275797092588618397712707519531250000000000e-01 8.0812261718750000305533376376843079924583435058593750000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-095.fsf0000664000175000017500000000124711777021017015347 00000000000000 MandelbrotN 6.0171604530295486057411835645325481891632080078125000000000000000e-01 6.6121779525011370459708359703654423356056213378906250000000000000e-01 6.0171794047103555058697565982583910226821899414062500000000000000e-01 6.6121637387405318708744061950710602104663848876953125000000000000e-01 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-096.fsf0000664000175000017500000000125311777021017015345 00000000000000 MandelbrotN -4.8749999999999998889776975374843459576368331909179687500000000000e-01 -5.3671875000000002220446049250313080847263336181640625000000000000e-01 -2.5874999999999998001598555674718227237462997436523437500000000000e-01 -7.0828124999999997335464740899624302983283996582031250000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-097.fsf0000664000175000017500000000125311777021017015346 00000000000000 MandelbrotN -2.4663667968749997116972849653393495827913284301757812500000000000e-01 -5.7023628417968752479794147802749648690223693847656250000000000000e-01 -2.4431953124999997162269949058099882677197456359863281250000000000e-01 -5.7197414550781255915268275202834047377109527587890625000000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-098.fsf0000664000175000017500000000125111777021017015345 00000000000000 MandelbrotN 1.2323964792886961117091004780377261340618133544921875000000000000e+00 -8.8357420335784905840448288927291287109255790710449218750000000000e-02 1.2458857690008544594206796318758279085159301757812500000000000000e+00 -9.8474387619903666624132654305867617949843406677246093750000000000e-02 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-099.fsf0000664000175000017500000000123411777021017015347 00000000000000 Mandelbrot -4.5046874999999997335464740899624302983283996582031250000000000000e-01 2.2392480468749997868371792719699442386627197265625000000000000000e-01 -4.0567968749999999689137553104956168681383132934570312500000000000e-01 1.9033300781250001021405182655144017189741134643554687500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-100.fsf0000664000175000017500000000123411777021017015326 00000000000000 Mandelbrot -4.3395278320312496989075157216575462371110916137695312500000000000e-01 2.1274153564453124332089828385505825281143188476562500000000000000e-01 -4.2846612304687498040678406141523737460374832153320312500000000000e-01 2.0862654052734375120792265079217031598091125488281250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-101.fsf0000664000175000017500000000123411777021017015327 00000000000000 Mandelbrot -4.3207360209960932184714010872994549572467803955078125000000000000e-01 2.1076633798828123267377065985783701762557029724121093750000000000e-01 -4.3097627006835936835926759158610366284847259521484375000000000000e-01 2.0994333896484376755786627199995564296841621398925781250000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-102.fsf0000664000175000017500000000123411777021017015330 00000000000000 Mandelbrot -4.3160723598632810826813965832116082310676574707031250000000000000e-01 2.1053212618286132329359361392562277615070343017578125000000000000e-01 -4.3151670609374997988894051559327635914087295532226562500000000000e-01 2.1046422876342771313140644906525267288088798522949218750000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-103.fsf0000664000175000017500000000123211777021017015327 00000000000000 Mandelbrot 8.6710552734375001548983163957018405199050903320312500000000000000e-01 2.4352052856445305373256360326195135712623596191406250000000000000e-01 8.7351653320312494521715507289627566933631896972656250000000000000e-01 2.3871227416992185643707102826738264411687850952148437500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-104.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 8.7111240600585937432498440102790482342243194580078125000000000000e-01 2.4137785019989005386165104027895722538232803344726562500000000000e-01 8.7171343780517573929245145336608402431011199951171875000000000000e-01 2.4092707635040278013605075102532282471656799316406250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-105.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 8.7145965850213846781713300515548326075077056884765625000000000000e-01 2.4126602711843150861348306079889880493283271789550781250000000000e-01 8.7146793276135725569986334448913112282752990722656250000000000000e-01 2.4125982142401741770143530629866290837526321411132812500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-106.fsf0000664000175000017500000000124711777021017015340 00000000000000 MandelbrotN 6.0171635143182389260374520745244808495044708251953125000000000000e-01 6.6121726820090920284656021976843476295471191406250000000000000000e-01 6.0171636896212865597277641427353955805301666259765625000000000000e-01 6.6121725505318074134208927716827020049095153808593750000000000000e-01 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-107.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 7.4109562500000003559819106158101931214332580566406250000000000000e-01 1.0845007958984376195132881548488512635231018066406250000000000000e-01 7.5002680078125005813660663989139720797538757324218750000000000000e-01 1.0175169775390624504751713175210170447826385498046875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-108.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 7.4500301440429694821432349272072315216064453125000000000000000000e-01 1.0572886196899414223970836701482767239212989807128906250000000000e-01 7.4654364222656255378751666285097599029541015625000000000000000000e-01 1.0457339110229493805981348941713804379105567932128906250000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-109.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 7.4563315284868225685244169653742574155330657958984375000000000000e-01 1.0558002317888134924395160396670689806342124938964843750000000000e-01 7.4573767241026822638616522453958168625831604003906250000000000000e-01 1.0550163350769187209365895796508993953466415405273437500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-110.fsf0000664000175000017500000000123511777021017015330 00000000000000 Mandelbrot -4.6875000000000000000000000000000000000000000000000000000000000000e-01 1.0671875000000000111022302462515654042363166809082031250000000000e-01 -2.1749999999999999888977697537484345957636833190917968750000000000e-01 -8.1718749999999992783550339936482487246394157409667968750000000000e-02 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-111.fsf0000664000175000017500000000123511777021017015331 00000000000000 Mandelbrot -2.6719370055395508245510427514091134071350097656250000000000000000e-01 7.0304306057678341707051217213120253290981054306030273437500000000e-03 -2.5021560213896482105511154259147588163614273071289062500000000000e-01 -5.7031432054748618792894276907645689789205789566040039062500000000e-03 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-112.fsf0000664000175000017500000000123611777021017015333 00000000000000 Mandelbrot -2.6691780645471147037639525478880386799573898315429687500000000000e-01 -2.8646173767186812811336160677910811500623822212219238281250000000e-03 -2.6509266087510002796179264805687125772237777709960937500000000000e-01 -4.2334765614272630920855711167405388550832867622375488281250000000e-03 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-113.fsf0000664000175000017500000000123611777021017015334 00000000000000 Mandelbrot -2.6639763996452220373711838874442037194967269897460937500000000000e-01 -3.2980894518763927830695692478002456482499837875366210937500000000e-03 -2.6611474239968241350950961532362271100282669067382812500000000000e-01 -3.5102626255062354537761493133984913583844900131225585937500000000e-03 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-114.fsf0000664000175000017500000000123611777021017015335 00000000000000 Mandelbrot -2.6589344349815452472896026847593020647764205932617187500000000000e-01 -3.6902105724960516247579178639171004761010408401489257812500000000e-03 -2.6548506717471648252981708537845406681299209594726562500000000000e-01 -3.9964928150745832741153051870242052245885133743286132812500000000e-03 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-115.fsf0000664000175000017500000000123611777021017015336 00000000000000 Mandelbrot -1.1369999999999999551469898051436757668852806091308593750000000000e-01 -5.9757910156249993693933220129110850393772125244140625000000000000e-01 -8.7117187499999998445687765524780843406915664672851562500000000000e-02 -6.1751621093749997637445403597666881978511810302734375000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-116.fsf0000664000175000017500000000123611777021017015337 00000000000000 Mandelbrot -1.0844989453124999345678958206917741335928440093994140625000000000e-01 -5.9934852001953120570476585271535441279411315917968750000000000000e-01 -1.0094024999999999525623906038163113407790660858154296875000000000e-01 -6.0498075341796864190513360881595872342586517333984375000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-117.fsf0000664000175000017500000000124711777021017015342 00000000000000 MandelbrotN 6.0171636259506711130740086446166969835758209228515625000000000000e-01 6.6121725695422584045957137277582660317420959472656250000000000000e-01 6.0171636297881647692520346026867628097534179687500000000000000000e-01 6.6121725666641384400179504154948517680168151855468750000000000000e-01 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-118.fsf0000664000175000017500000000123611777021017015341 00000000000000 Mandelbrot -1.0784912296874998860474192952096927911043167114257812500000000000e-01 -5.9970992166259762257141119334846735000610351562500000000000000000e-01 -1.0612190472656249373706316418974893167614936828613281250000000000e-01 -6.0100533534423827841663978688302449882030487060546875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-119.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 6.9369075000000002262368070660158991813659667968750000000000000000e-01 3.5838074999999997016786323911219369620084762573242187500000000000e-01 7.1334675000000002942357468782574869692325592041015625000000000000e-01 3.4363874999999999282351836882298812270164489746093750000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-120.fsf0000664000175000017500000000123211777021017015326 00000000000000 Mandelbrot 7.0002980999999997457905465125804767012596130371093750000000000000e-01 3.5214611250000005249205514701316133141517639160156250000000000000e-01 7.0499295000000006261586804612306877970695495605468750000000000000e-01 3.4842375749999998646444510086439549922943115234375000000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-121.fsf0000664000175000017500000000123611777021017015333 00000000000000 Mandelbrot -3.9806200895537102724119904451072216033935546875000000000000000000e-01 -3.7170304612173465930169413695693947374820709228515625000000000000e-01 -3.9725404184575191512962533124664332717657089233398437500000000000e-01 -3.7230902145394900726316222971945535391569137573242187500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-122.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 6.8950781250000003907985046680551022291183471679687500000000000000e-01 2.7556640624999995115018691649311222136020660400390625000000000000e-01 7.1425781249999997779553950749686919152736663818359375000000000000e-01 2.5700390625000002486899575160350650548934936523437500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-123.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 7.0166625000000004686029342337860725820064544677734375000000000000e-01 2.7222515624999993333332781730860006064176559448242187500000000000e-01 7.0896749999999997271515894681215286254882812500000000000000000000e-01 2.6674921875000001669775429036235436797142028808593750000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-124.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 7.0308937500000001641353719605831429362297058105468750000000000000e-01 2.6933249999999997470467860694043338298797607421875000000000000000e-01 7.0469812499999995303312516625737771391868591308593750000000000000e-01 2.6812593750000002223998762929113581776618957519531250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-125.fsf0000664000175000017500000000123411777021017015335 00000000000000 Mandelbrot 3.6685312500000000213162820728030055761337280273437500000000000000e-01 -6.2743945312500004618527782440651208162307739257812500000000000000e-01 3.7985625000000000639488462184090167284011840820312500000000000000e-01 -6.3719179687500004938272013532696291804313659667968750000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-126.fsf0000664000175000017500000000125111777021017015335 00000000000000 MandelbrotN -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-127.fsf0000664000175000017500000000123411777021017015337 00000000000000 Mandelbrot -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-128.fsf0000664000175000017500000000125011777021017015336 00000000000000 MandelbrotN 9.1714295654296926901816178201443108264356851577758789062500000000e-03 8.8286855146789555703890073345974087715148925781250000000000000000e-01 9.2064089941406301864645911336992867290973663330078125000000000000e-03 8.8284231689636227802253642948926426470279693603515625000000000000e-01 1000 12 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-129.fsf0000664000175000017500000000123311777021017015340 00000000000000 Mandelbrot -1.2187499999999999722444243843710864894092082977294921875000000000e-01 1.0083984375000001332267629550187848508358001708984375000000000000e+00 3.4218749999999997779553950749686919152736663818359375000000000000e-01 6.6035156250000004440892098500626161694526672363281250000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-130.fsf0000664000175000017500000000123211777021017015327 00000000000000 Mandelbrot 1.7831542968749999888977697537484345957636833190917968750000000000e-01 8.3899749755859376332267629550187848508358001708984375000000000000e-01 2.5155029296874997779553950749686919152736663818359375000000000000e-01 7.8407135009765638322676295501878485083580017089843750000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-131.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 2.2907226562499999333866185224906075745820999145507812500000000000e-01 8.5966278076171886990408665951690636575222015380859375000000000000e-01 2.6460205078124998667732370449812151491641998291015625000000000000e-01 8.3301544189453136102230246251565404236316680908203125000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-132.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 2.5655233383178710493410790149937383830547332763671875000000000000e-01 8.4935775518417366836132487151189707219600677490234375000000000000e-01 2.6016082763671871669330926124530378729104995727539062500000000000e-01 8.4665138483047497341971165951690636575222015380859375000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-133.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 2.5837913382053373512192706584755796939134597778320312500000000000e-01 8.4788616630434998633347731811227276921272277832031250000000000000e-01 2.5921359801292415125928414454392623156309127807617187500000000000e-01 8.4726031816005720198603512471891008317470550537109375000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-134.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 2.5876768121011550771726206221501342952251434326171875000000000000e-01 8.4744024950154139830260646704118698835372924804687500000000000000e-01 2.5885634303055699012574564221722539514303207397460937500000000000e-01 8.4737375313621021710730474296724423766136169433593750000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-135.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 2.5880854876797526609166766320413444191217422485351562500000000000e-01 8.4742689827818973302697713734232820570468902587890625000000000000e-01 2.5884221255292411134618646428862120956182479858398437500000000000e-01 8.4740165043947812684166365215787664055824279785156250000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-136.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 2.5881244114310997250782975243055261671543121337890625000000000000e-01 8.4741449790740586145432189368875697255134582519531250000000000000e-01 2.5882138308598701126328478494542650878429412841796875000000000000e-01 8.4740779145024802687657938804477453231811523437500000000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-137.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 2.5881749892954980518666729949472937732934951782226562500000000000e-01 8.4741099273565689831144709387444891035556793212890625000000000000e-01 2.5882033520205610654940642234578263014554977416992187500000000000e-01 8.4740886553127725555611959862289950251579284667968750000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-138.fsf0000664000175000017500000000123211777021017015337 00000000000000 Mandelbrot 2.5881901013099456454469304844678845256567001342773437500000000000e-01 8.4741020445132553273737130439258180558681488037109375000000000000e-01 2.5882003384810231549906234249647241085767745971679687500000000000e-01 8.4740943666349477503274556511314585804939270019531250000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-139.fsf0000664000175000017500000000125011777021017015340 00000000000000 MandelbrotN 9.1832892314234210867640584297078021336346864700317382812500000000e-03 8.8285725427384820207521443080622702836990356445312500000000000000e-01 9.1853153055207869409626297851900744717568159103393554687500000000e-03 8.8285573471827527569644189497921615839004516601562500000000000000e-01 1000 12 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-140.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 2.5881923086999591987478197552263736724853515625000000000000000000e-01 8.4740999670873284888017451521591283380985260009765625000000000000e-01 2.5881974752722375354707651240460108965635299682617187500000000000e-01 8.4740960921581187648143895785324275493621826171875000000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-141.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 2.5881947063124072228035288389946799725294113159179687500000000000e-01 8.4740987248899701800297634690650738775730133056640625000000000000e-01 2.5881971846525470004607427654264029115438461303710937500000000000e-01 8.4740968661348647916753407116630114614963531494140625000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-142.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 2.5881958486723155576925137211219407618045806884765625000000000000e-01 8.4740978177787540381871167483041062951087951660156250000000000000e-01 2.5881965999191702820780847105197608470916748046875000000000000000e-01 8.4740972543436132724536946625448763370513916015625000000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-143.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 2.5881961526925273409105443533917423337697982788085937500000000000e-01 8.4740973542653141858949084053165279328823089599609375000000000000e-01 2.5881962829869031850194005528464913368225097656250000000000000000e-01 8.4740972565445316089238758650026284158229827880859375000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-144.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 2.5881961665363045765886340632278006523847579956054687500000000000e-01 8.4740972974905570680448363418690860271453857421875000000000000000e-01 2.5881962037923528230365377567068208009004592895507812500000000000e-01 8.4740972695485206056531524154706858098506927490234375000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/Makefile.am0000664000175000017500000001232311777021017015226 00000000000000# $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de fgpconfigdir = $(datadir)/fgpconfig dist_fgpconfig_DATA = \ input-001.fsf \ input-002.fsf \ input-003.fsf \ input-004.fsf \ input-005.fsf \ input-006.fsf \ input-007.fsf \ input-008.fsf \ input-009.fsf \ input-010.fsf \ input-011.fsf \ input-012.fsf \ input-013.fsf \ input-014.fsf \ input-015.fsf \ input-016.fsf \ input-017.fsf \ input-018.fsf \ input-019.fsf \ input-020.fsf \ input-021.fsf \ input-022.fsf \ input-023.fsf \ input-024.fsf \ input-025.fsf \ input-026.fsf \ input-027.fsf \ input-028.fsf \ input-029.fsf \ input-030.fsf \ input-031.fsf \ input-032.fsf \ input-033.fsf \ input-034.fsf \ input-035.fsf \ input-036.fsf \ input-037.fsf \ input-038.fsf \ input-039.fsf \ input-040.fsf \ input-041.fsf \ input-042.fsf \ input-043.fsf \ input-044.fsf \ input-045.fsf \ input-046.fsf \ input-047.fsf \ input-048.fsf \ input-049.fsf \ input-050.fsf \ input-051.fsf \ input-052.fsf \ input-053.fsf \ input-054.fsf \ input-055.fsf \ input-056.fsf \ input-057.fsf \ input-058.fsf \ input-059.fsf \ input-060.fsf \ input-061.fsf \ input-062.fsf \ input-063.fsf \ input-064.fsf \ input-065.fsf \ input-066.fsf \ input-067.fsf \ input-068.fsf \ input-069.fsf \ input-070.fsf \ input-071.fsf \ input-072.fsf \ input-073.fsf \ input-074.fsf \ input-075.fsf \ input-076.fsf \ input-077.fsf \ input-078.fsf \ input-079.fsf \ input-080.fsf \ input-081.fsf \ input-082.fsf \ input-083.fsf \ input-084.fsf \ input-085.fsf \ input-086.fsf \ input-087.fsf \ input-088.fsf \ input-089.fsf \ input-090.fsf \ input-091.fsf \ input-092.fsf \ input-093.fsf \ input-094.fsf \ input-095.fsf \ input-096.fsf \ input-097.fsf \ input-098.fsf \ input-099.fsf \ input-100.fsf \ input-101.fsf \ input-102.fsf \ input-103.fsf \ input-104.fsf \ input-105.fsf \ input-106.fsf \ input-107.fsf \ input-108.fsf \ input-109.fsf \ input-110.fsf \ input-111.fsf \ input-112.fsf \ input-113.fsf \ input-114.fsf \ input-115.fsf \ input-116.fsf \ input-117.fsf \ input-118.fsf \ input-119.fsf \ input-120.fsf \ input-121.fsf \ input-122.fsf \ input-123.fsf \ input-124.fsf \ input-125.fsf \ input-126.fsf \ input-127.fsf \ input-128.fsf \ input-129.fsf \ input-130.fsf \ input-131.fsf \ input-132.fsf \ input-133.fsf \ input-134.fsf \ input-135.fsf \ input-136.fsf \ input-137.fsf \ input-138.fsf \ input-139.fsf \ input-140.fsf \ input-141.fsf \ input-142.fsf \ input-143.fsf \ input-144.fsf \ input-145.fsf \ input-146.fsf \ input-147.fsf \ input-148.fsf \ input-149.fsf \ input-150.fsf \ input-151.fsf \ input-152.fsf \ input-153.fsf \ input-154.fsf \ input-155.fsf \ input-156.fsf \ input-157.fsf \ input-158.fsf \ input-159.fsf \ input-160.fsf \ input-161.fsf \ input-162.fsf \ input-163.fsf \ input-164.fsf \ input-165.fsf \ input-166.fsf \ input-167.fsf \ input-168.fsf \ input-169.fsf \ input-170.fsf \ input-171.fsf \ input-172.fsf \ input-173.fsf \ input-174.fsf \ input-175.fsf \ input-176.fsf \ input-177.fsf \ input-178.fsf \ input-179.fsf \ input-180.fsf \ input-181.fsf \ input-182.fsf \ input-183.fsf \ input-184.fsf \ input-185.fsf \ input-186.fsf \ input-187.fsf \ input-188.fsf \ input-189.fsf \ input-190.fsf \ input-191.fsf \ input-192.fsf \ input-193.fsf \ input-194.fsf \ input-195.fsf \ input-196.fsf \ input-197.fsf \ input-198.fsf \ input-199.fsf \ input-200.fsf \ input-201.fsf \ input-202.fsf \ input-203.fsf \ input-204.fsf \ input-205.fsf \ input-206.fsf \ input-207.fsf \ input-208.fsf \ input-209.fsf \ input-210.fsf \ input-211.fsf \ input-212.fsf \ input-213.fsf \ input-214.fsf \ input-215.fsf \ input-216.fsf \ input-217.fsf \ input-218.fsf \ input-219.fsf \ input-220.fsf \ input-221.fsf \ input-222.fsf \ input-223.fsf \ input-224.fsf \ input-225.fsf \ input-226.fsf \ input-227.fsf \ input-228.fsf \ input-229.fsf \ input-230.fsf \ input-231.fsf \ input-232.fsf \ input-233.fsf \ input-234.fsf \ input-235.fsf \ input-236.fsf \ input-237.fsf \ input-238.fsf \ input-239.fsf \ input-240.fsf \ input-241.fsf \ input-242.fsf \ input-243.fsf \ input-244.fsf \ input-245.fsf \ input-246.fsf \ input-247.fsf \ input-248.fsf \ input-249.fsf \ input-250.fsf rsplib-3.0.1/rsplib/fgpconfig/Makefile.in0000664000175000017500000004302112065103163015230 00000000000000# Makefile.in generated by automake 1.11.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. # 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@ # $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de VPATH = @srcdir@ 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@ subdir = rsplib/fgpconfig DIST_COMMON = $(dist_fgpconfig_DATA) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = 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__installdirs = "$(DESTDIR)$(fgpconfigdir)" DATA = $(dist_fgpconfig_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COLORGCC = @COLORGCC@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDADD = @QT_LDADD@ RANLIB = @RANLIB@ RSPLIB_AGE = @RSPLIB_AGE@ RSPLIB_CURRENT = @RSPLIB_CURRENT@ RSPLIB_RELEASE = @RSPLIB_RELEASE@ RSPLIB_REVISION = @RSPLIB_REVISION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ bz2_LIBS = @bz2_LIBS@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ glib_LIBS = @glib_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sctplib_LIBS = @sctplib_LIBS@ sharedstatedir = @sharedstatedir@ socketapi_LIBS = @socketapi_LIBS@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ thread_LIBS = @thread_LIBS@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ fgpconfigdir = $(datadir)/fgpconfig dist_fgpconfig_DATA = \ input-001.fsf \ input-002.fsf \ input-003.fsf \ input-004.fsf \ input-005.fsf \ input-006.fsf \ input-007.fsf \ input-008.fsf \ input-009.fsf \ input-010.fsf \ input-011.fsf \ input-012.fsf \ input-013.fsf \ input-014.fsf \ input-015.fsf \ input-016.fsf \ input-017.fsf \ input-018.fsf \ input-019.fsf \ input-020.fsf \ input-021.fsf \ input-022.fsf \ input-023.fsf \ input-024.fsf \ input-025.fsf \ input-026.fsf \ input-027.fsf \ input-028.fsf \ input-029.fsf \ input-030.fsf \ input-031.fsf \ input-032.fsf \ input-033.fsf \ input-034.fsf \ input-035.fsf \ input-036.fsf \ input-037.fsf \ input-038.fsf \ input-039.fsf \ input-040.fsf \ input-041.fsf \ input-042.fsf \ input-043.fsf \ input-044.fsf \ input-045.fsf \ input-046.fsf \ input-047.fsf \ input-048.fsf \ input-049.fsf \ input-050.fsf \ input-051.fsf \ input-052.fsf \ input-053.fsf \ input-054.fsf \ input-055.fsf \ input-056.fsf \ input-057.fsf \ input-058.fsf \ input-059.fsf \ input-060.fsf \ input-061.fsf \ input-062.fsf \ input-063.fsf \ input-064.fsf \ input-065.fsf \ input-066.fsf \ input-067.fsf \ input-068.fsf \ input-069.fsf \ input-070.fsf \ input-071.fsf \ input-072.fsf \ input-073.fsf \ input-074.fsf \ input-075.fsf \ input-076.fsf \ input-077.fsf \ input-078.fsf \ input-079.fsf \ input-080.fsf \ input-081.fsf \ input-082.fsf \ input-083.fsf \ input-084.fsf \ input-085.fsf \ input-086.fsf \ input-087.fsf \ input-088.fsf \ input-089.fsf \ input-090.fsf \ input-091.fsf \ input-092.fsf \ input-093.fsf \ input-094.fsf \ input-095.fsf \ input-096.fsf \ input-097.fsf \ input-098.fsf \ input-099.fsf \ input-100.fsf \ input-101.fsf \ input-102.fsf \ input-103.fsf \ input-104.fsf \ input-105.fsf \ input-106.fsf \ input-107.fsf \ input-108.fsf \ input-109.fsf \ input-110.fsf \ input-111.fsf \ input-112.fsf \ input-113.fsf \ input-114.fsf \ input-115.fsf \ input-116.fsf \ input-117.fsf \ input-118.fsf \ input-119.fsf \ input-120.fsf \ input-121.fsf \ input-122.fsf \ input-123.fsf \ input-124.fsf \ input-125.fsf \ input-126.fsf \ input-127.fsf \ input-128.fsf \ input-129.fsf \ input-130.fsf \ input-131.fsf \ input-132.fsf \ input-133.fsf \ input-134.fsf \ input-135.fsf \ input-136.fsf \ input-137.fsf \ input-138.fsf \ input-139.fsf \ input-140.fsf \ input-141.fsf \ input-142.fsf \ input-143.fsf \ input-144.fsf \ input-145.fsf \ input-146.fsf \ input-147.fsf \ input-148.fsf \ input-149.fsf \ input-150.fsf \ input-151.fsf \ input-152.fsf \ input-153.fsf \ input-154.fsf \ input-155.fsf \ input-156.fsf \ input-157.fsf \ input-158.fsf \ input-159.fsf \ input-160.fsf \ input-161.fsf \ input-162.fsf \ input-163.fsf \ input-164.fsf \ input-165.fsf \ input-166.fsf \ input-167.fsf \ input-168.fsf \ input-169.fsf \ input-170.fsf \ input-171.fsf \ input-172.fsf \ input-173.fsf \ input-174.fsf \ input-175.fsf \ input-176.fsf \ input-177.fsf \ input-178.fsf \ input-179.fsf \ input-180.fsf \ input-181.fsf \ input-182.fsf \ input-183.fsf \ input-184.fsf \ input-185.fsf \ input-186.fsf \ input-187.fsf \ input-188.fsf \ input-189.fsf \ input-190.fsf \ input-191.fsf \ input-192.fsf \ input-193.fsf \ input-194.fsf \ input-195.fsf \ input-196.fsf \ input-197.fsf \ input-198.fsf \ input-199.fsf \ input-200.fsf \ input-201.fsf \ input-202.fsf \ input-203.fsf \ input-204.fsf \ input-205.fsf \ input-206.fsf \ input-207.fsf \ input-208.fsf \ input-209.fsf \ input-210.fsf \ input-211.fsf \ input-212.fsf \ input-213.fsf \ input-214.fsf \ input-215.fsf \ input-216.fsf \ input-217.fsf \ input-218.fsf \ input-219.fsf \ input-220.fsf \ input-221.fsf \ input-222.fsf \ input-223.fsf \ input-224.fsf \ input-225.fsf \ input-226.fsf \ input-227.fsf \ input-228.fsf \ input-229.fsf \ input-230.fsf \ input-231.fsf \ input-232.fsf \ input-233.fsf \ input-234.fsf \ input-235.fsf \ input-236.fsf \ input-237.fsf \ input-238.fsf \ input-239.fsf \ input-240.fsf \ input-241.fsf \ input-242.fsf \ input-243.fsf \ input-244.fsf \ input-245.fsf \ input-246.fsf \ input-247.fsf \ input-248.fsf \ input-249.fsf \ input-250.fsf all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(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) --gnu rsplib/fgpconfig/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu rsplib/fgpconfig/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);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-dist_fgpconfigDATA: $(dist_fgpconfig_DATA) @$(NORMAL_INSTALL) test -z "$(fgpconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(fgpconfigdir)" @list='$(dist_fgpconfig_DATA)'; test -n "$(fgpconfigdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(fgpconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(fgpconfigdir)" || exit $$?; \ done uninstall-dist_fgpconfigDATA: @$(NORMAL_UNINSTALL) @list='$(dist_fgpconfig_DATA)'; test -n "$(fgpconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fgpconfigdir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: 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 $(DATA) installdirs: for dir in "$(DESTDIR)$(fgpconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done 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: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile 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-dist_fgpconfigDATA 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: maintainer-clean-am -rm -f Makefile 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: uninstall-dist_fgpconfigDATA .MAKE: install-am install-strip .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-dist_fgpconfigDATA \ 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 uninstall uninstall-am uninstall-dist_fgpconfigDATA # 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: rsplib-3.0.1/rsplib/fgpconfig/input-145.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 2.5881961875510445247883239971997682005167007446289062500000000000e-01 8.4740972938595471308786954978131689131259918212890625000000000000e-01 2.5881961947111908894925136337406001985073089599609375000000000000e-01 8.4740972884894383287956998174195177853107452392578125000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-146.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 2.5881961899899691426085723833239171653985977172851562500000000000e-01 8.4740972909087841635766835679532960057258605957031250000000000000e-01 2.5881961909968648205548902296868618577718734741210937500000000000e-01 8.4740972901536126826727013394702225923538208007812500000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-147.fsf0000664000175000017500000000123211777021017015337 00000000000000 Mandelbrot 2.5881961902684386123141280222625937312841415405273437500000000000e-01 8.4740972904220523975737933142227120697498321533203125000000000000e-01 2.5881961903990202689129773716558702290058135986328125000000000000e-01 8.4740972903241162939025343803223222494125366210937500000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-148.fsf0000664000175000017500000000123211777021017015340 00000000000000 Mandelbrot 2.5881961903633143862180077121593058109283447265625000000000000000e-01 8.4740972903584443898239442205522209405899047851562500000000000000e-01 2.5881961903873901276185165443166624754667282104492187500000000000e-01 8.4740972903403877225514406745787709951400756835937500000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-149.fsf0000664000175000017500000000123211777021017015341 00000000000000 Mandelbrot 9.3749999999999996530553048046385811176151037216186523437500000000e-03 1.0019531250000000000000000000000000000000000000000000000000000000e+00 2.0624999999999998889776975374843459576368331909179687500000000000e-01 8.5429687499999995559107901499373838305473327636718750000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-150.fsf0000664000175000017500000000125011777021017015331 00000000000000 MandelbrotN 9.1840566069877980354130286855252052191644906997680664062500000000e-03 8.8285672401226811256691462403978221118450164794921875000000000000e-01 9.1844592892146494772509512927172181662172079086303710937500000000e-03 8.8285642200059799566957963179447688162326812744140625000000000000e-01 1000 12 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-151.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 6.5361328124999992783550339936482487246394157409667968750000000000e-02 9.8072753906249998667732370449812151491641998291015625000000000000e-01 8.8740234374999990563104290686169406399130821228027343750000000000e-02 9.6319335937499994670929481799248605966567993164062500000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-152.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 7.3470886230468740452081988223653752356767654418945312500000000000e-02 9.7227551651000965193816227838397026062011718750000000000000000000e-01 7.5041656494140615563104290686169406399130821228027343750000000000e-02 9.7109743881225585315775106209912337362766265869140625000000000000e-01 1000 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-153.fsf0000664000175000017500000000125211777021017015336 00000000000000 MandelbrotN -2.9954531249999999387156890406913589686155319213867187500000000000e-01 9.3363867187500004796163466380676254630088806152343750000000000000e-01 -2.9068593749999999120703364496876019984483718872070312500000000000e-01 9.2699414062499996269650637259474024176597595214843750000000000000e-01 1000 67 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-154.fsf0000664000175000017500000000125211777021017015337 00000000000000 MandelbrotN -2.9562503906249998353317209875967819243669509887695312500000000000e-01 9.3284132812499997999822198835317976772785186767578125000000000000e-01 -2.9442902343749999261035554809495806694030761718750000000000000000e-01 9.3194431640625008395062423005583696067333221435546875000000000000e-01 1000 67 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-155.fsf0000664000175000017500000000125211777021017015340 00000000000000 MandelbrotN -2.9498367568359373791508915019221603870391845703125000000000000000e-01 9.3259446302490234259607859712559729814529418945312500000000000000e-01 -2.9474297753906247843147525600215885788202285766601562500000000000e-01 9.3241393941650396737230721555533818900585174560546875000000000000e-01 1000 67 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-156.fsf0000664000175000017500000000125111777021017015340 00000000000000 MandelbrotN -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 1.5000000000000000000000000000000000000000000000000000000000000000e+00 -1.5000000000000000000000000000000000000000000000000000000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-157.fsf0000664000175000017500000000125111777021017015341 00000000000000 MandelbrotN -3.6562499999999997779553950749686919152736663818359375000000000000e-01 1.2808593749999999111821580299874767661094665527343750000000000000e+00 -7.4999999999999997224442438437108648940920829772949218750000000000e-02 1.0628906250000000888178419700125232338905334472656250000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-158.fsf0000664000175000017500000000125111777021017015342 00000000000000 MandelbrotN -2.4074707031249997779553950749686919152736663818359375000000000000e-01 1.2321569824218749911182158029987476766109466552734375000000000000e+00 -2.0351074218749998223643160599749535322189331054687500000000000000e-01 1.2042297363281249111821580299874767661094665527343750000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-159.fsf0000664000175000017500000000125111777021017015343 00000000000000 MandelbrotN -2.1264527893066403896327187794668134301900863647460937500000000000e-01 1.2168406333923340589819872548105195164680480957031250000000000000e+00 -2.1113255310058592906230501284881029278039932250976562500000000000e-01 1.2157060890197752822672327965847216546535491943359375000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-160.fsf0000664000175000017500000000125111777021017015333 00000000000000 MandelbrotN -2.1164546170234679878241479400458047166466712951660156250000000000e-01 1.2163614065766332750229139492148533463478088378906250000000000000e+00 -2.1152727999687193083389047387754544615745544433593750000000000000e-01 1.2162727702975273391672317302436567842960357666015625000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-161.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 3.3947812500000001945110739143274258822202682495117187500000000000e-01 6.8632265624999999609201495331944897770881652832031250000000000000e-01 3.9874687500000000062172489379008766263723373413085937500000000000e-01 6.4187109375000006572520305780926719307899475097656250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-162.fsf0000664000175000017500000000125111777021017015335 00000000000000 MandelbrotN -2.1159985095039007818584764208935666829347610473632812500000000000e-01 1.2163066090436651656148114852840080857276916503906250000000000000e+00 -2.1159209527596831157403300949226832017302513122558593750000000000e-01 1.2163007922878488198392687991145066916942596435546875000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-163.fsf0000664000175000017500000000125111777021017015336 00000000000000 MandelbrotN -2.1159747577509840921194950169592630118131637573242187500000000000e-01 1.2163039293975612675779984783730469644069671630859375000000000000e+00 -2.1159663961644981089449402134050615131855010986328125000000000000e-01 1.2163033022785747494509678290341980755329132080078125000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-164.fsf0000664000175000017500000000125111777021017015337 00000000000000 MandelbrotN -2.1159718573256716678265831887983949854969978332519531250000000000e-01 1.2163036627086798446839566167909651994705200195312500000000000000e+00 -2.1159696493442403664175799349322915077209472656250000000000000000e-01 1.2163034971100723513615093906992115080356597900390625000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-165.fsf0000664000175000017500000000125111777021017015340 00000000000000 MandelbrotN -2.1159710189827218851377210739883594214916229248046875000000000000e-01 1.2163035787018863231878640362992882728576660156250000000000000000e+00 -2.1159706463858554692514246653445297852158546447753906250000000000e-01 1.2163035507571211546462564001558348536491394042968750000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-166.fsf0000664000175000017500000000125111777021017015341 00000000000000 MandelbrotN -2.1159707715551151485655623218917753547430038452148437500000000000e-01 1.2163035614037855935976040200330317020416259765625000000000000000e+00 -2.1159707197408636480950860914163058623671531677246093750000000000e-01 1.2163035575177165714677585128811188042163848876953125000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-167.fsf0000664000175000017500000000125111777021017015342 00000000000000 MandelbrotN -2.1159707536630065205507378323090961202979087829589843750000000000e-01 1.2163035603755965041727904463186860084533691406250000000000000000e+00 -2.1159707381187309316317168850218877196311950683593750000000000000e-01 1.2163035592097757309204553166637197136878967285156250000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-168.fsf0000664000175000017500000000125111777021017015343 00000000000000 MandelbrotN -2.1159707462308996461786136933369562029838562011718750000000000000e-01 1.2163035597019098421611715821200050413608551025390625000000000000e+00 -2.1159707393574153644344448821357218548655509948730468750000000000e-01 1.2163035591863986528693430955172516405582427978515625000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-169.fsf0000664000175000017500000000125111777021017015344 00000000000000 MandelbrotN -2.1159707424504833883638355018774745985865592956542968750000000000e-01 1.2163035592993010070017589896451681852340698242187500000000000000e+00 -2.1159707410435668606396575341932475566864013671875000000000000000e-01 1.2163035591937823021169151616049930453300476074218750000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-170.fsf0000664000175000017500000000125111777021017015334 00000000000000 MandelbrotN -2.1159707418415524271537719869229476898908615112304687500000000000e-01 1.2163035592273063745238914634683169424533843994140625000000000000e+00 -2.1159707416129283630290558448905358090996742248535156250000000000e-01 1.2163035592101596460423706957953982055187225341796875000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-171.fsf0000664000175000017500000000125111777021017015335 00000000000000 MandelbrotN -2.1159707417347420332909280205058166757225990295410156250000000000e-01 1.2163035592272080087639096745988354086875915527343750000000000000e+00 -2.1159707416525802559092994670209009200334548950195312500000000000e-01 1.2163035592210460489326351307681761682033538818359375000000000000e+00 1000 3 SimpleHSV 640*480 rsplib-3.0.1/rsplib/fgpconfig/input-172.fsf0000664000175000017500000000125111777021017015336 00000000000000 MandelbrotN -4.9667812500000002584599201327364426106214523315429687500000000000e-01 4.4394570312499997966071418886713217943906784057617187500000000000e-01 -2.9178749999999997744026813961681909859180450439453125000000000000e-01 2.9027773437499998498978470706788357347249984741210937500000000000e-01 1000 2 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-173.fsf0000664000175000017500000000125411777021017015342 00000000000000 MandelbrotN -1.2079826831918108465124817030300619080662727355957031250000000000e-01 9.8790662036600562778687617537798359990119934082031250000000000000e-01 -1.2079825726575116329186698749253991991281509399414062500000000000e-01 9.8790661207593322146180980780627578496932983398437500000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-174.fsf0000664000175000017500000000125411777021017015343 00000000000000 MandelbrotN -1.2079826387017554567560040368334739468991756439208984375000000000e-01 9.8790661992732264895522575898212380707263946533203125000000000000e-01 -1.2079826008437578865883921253043808974325656890869140625000000000e-01 9.8790661708797278262039753826684318482875823974609375000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-175.fsf0000664000175000017500000000125411777021017015344 00000000000000 MandelbrotN -1.2079826137627995563672556045275996439158916473388671875000000000e-01 9.8790661967887949401756486622616648674011230468750000000000000000e-01 -1.2079826014589503668794634450023295357823371887207031250000000000e-01 9.8790661875609087072547254138044081628322601318359375000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-176.fsf0000664000175000017500000000125411777021017015345 00000000000000 MandelbrotN -1.2079826103792409841553023852611659094691276550292968750000000000e-01 9.8790661954180691850524453911930322647094726562500000000000000000e-01 -1.2079826074724567264162544688588241115212440490722656250000000000e-01 9.8790661932379819631933060009032487869262695312500000000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-177.fsf0000664000175000017500000000125411777021017015346 00000000000000 MandelbrotN -1.2079826084098946314959732717397855594754219055175781250000000000e-01 9.8790661952509284393642019495018757879734039306640625000000000000e-01 -1.2079826075378594096854101280769100412726402282714843750000000000e-01 9.8790661945969027168956699824775569140911102294921875000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-178.fsf0000664000175000017500000000125411777021017015347 00000000000000 MandelbrotN -1.2079826079629765733791657567053334787487983703613281250000000000e-01 9.8790661950421854164972046419279649853706359863281250000000000000e-01 -1.2079826076185226635395508765213890001177787780761718750000000000e-01 9.8790661947838442902281030910671688616275787353515625000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-179.fsf0000664000175000017500000000125411777021017015350 00000000000000 MandelbrotN -1.2079826078187365367977434971180628053843975067138671875000000000e-01 9.8790661949278690823206261484301649034023284912109375000000000000e-01 -1.2079826076206755247621771331978379748761653900146484375000000000e-01 9.8790661947793234620718294536345638334751129150390625000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-180.fsf0000664000175000017500000000125411777021017015340 00000000000000 MandelbrotN -1.2079826077048513854883537987916497513651847839355468750000000000e-01 9.8790661948602809250274958685622550547122955322265625000000000000e-01 -1.2079826076285979374880241721257334575057029724121093750000000000e-01 9.8790661948030911165830048048519529402256011962890625000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-181.fsf0000664000175000017500000000125411777021017015341 00000000000000 MandelbrotN -1.2079826076689169356281894351923256181180477142333984375000000000e-01 9.8790661948151248239469168765936046838760375976562500000000000000e-01 -1.2079826076569070980593068043162929825484752655029296875000000000e-01 9.8790661948061175845481329815811477601528167724609375000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-182.fsf0000664000175000017500000000125411777021017015342 00000000000000 MandelbrotN -1.2079826076687068259207791243170504458248615264892578125000000000e-01 9.8790661948112290513535072022932581603527069091796875000000000000e-01 -1.2079826076660045430788414932976593263447284698486328125000000000e-01 9.8790661948092028943335662916069850325584411621093750000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-183.fsf0000664000175000017500000000125411777021017015343 00000000000000 MandelbrotN -1.2480000000000000814903700074864900670945644378662109375000000000e-01 9.8934726562499997193356193747604265809059143066406250000000000000e-01 -1.2032812500000000799360577730112709105014801025390625000000000000e-01 9.8599335937499987814192081714281812310218811035156250000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-184.fsf0000664000175000017500000000125411777021017015344 00000000000000 MandelbrotN -1.2079826076686392410941550679126521572470664978027343750000000000e-01 9.8790661948111402335115371897700242698192596435546875000000000000e-01 -1.2079826076667679601861493665637681260704994201660156250000000000e-01 9.8790661948097369116084109919029287993907928466796875000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-185.fsf0000664000175000017500000000125411777021017015345 00000000000000 MandelbrotN -1.2079826076686064895149286257947096601128578186035156250000000000e-01 9.8790661948106006651215693636913783848285675048828125000000000000e-01 -1.2079826076674111956510415666343760676681995391845703125000000000e-01 9.8790661948097036049176722372067160904407501220703125000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-186.fsf0000664000175000017500000000125411777021017015346 00000000000000 MandelbrotN -1.2079826076682120827854305389337241649627685546875000000000000000e-01 9.8790661948104385725599740908364765346050262451171875000000000000e-01 -1.2079826076677459278929660513313137926161289215087890625000000000e-01 9.8790661948100888523072171665262430906295776367187500000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-187.fsf0000664000175000017500000000125411777021017015347 00000000000000 MandelbrotN -1.2079826076679638091615487383023719303309917449951171875000000000e-01 9.8790661948103031253509698217385448515415191650390625000000000000e-01 -1.2079826076677493973399180049455026164650917053222656250000000000e-01 9.8790661948101421430123991740401834249496459960937500000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-188.fsf0000664000175000017500000000125411777021017015350 00000000000000 MandelbrotN -1.2079826076681048074856761331830057315528392791748046875000000000e-01 9.8790661948104241396606539638014510273933410644531250000000000000e-01 -1.2079826076677920021484879953277413733303546905517578125000000000e-01 9.8790661948101887723794334306148812174797058105468750000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-189.fsf0000664000175000017500000000125411777021017015351 00000000000000 MandelbrotN -1.2079826076681135504919950562907615676522254943847656250000000000e-01 9.8790661948104174783225062128622084856033325195312500000000000000e-01 -1.2079826076678991386703643229338922537863254547119140625000000000e-01 9.8790661948102564959839355651638470590114593505859375000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-190.fsf0000664000175000017500000000125111777021017015336 00000000000000 MandelbrotN 1.7190721875000000706812386397359659895300865173339843750000000000e-01 9.4902282812499993980281942640431225299835205078125000000000000000e-01 1.7898346875000001321431852829846320673823356628417968750000000000e-01 9.4371564062500001845990027504740282893180847167968750000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-191.fsf0000664000175000017500000000125111777021017015337 00000000000000 MandelbrotN 1.7695789218750002103064389302744530141353607177734375000000000000e-01 9.4728914687499998770192632946418598294258117675781250000000000000e-01 1.7787780468750000184563475613686023280024528503417968750000000000e-01 9.4659921249999989800727462352369911968708038330078125000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-192.fsf0000664000175000017500000000125111777021017015340 00000000000000 MandelbrotN 1.7725686375000002104052043705451069399714469909667968750000000000e-01 9.4724458861328120207190295332111418247222900390625000000000000000e-01 1.7731895784375001356991674583696294575929641723632812500000000000e-01 9.4719801804296877012490085689933039247989654541015625000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-193.fsf0000664000175000017500000000125111777021017015341 00000000000000 MandelbrotN 1.7726664356976565284362834518105955794453620910644531250000000000e-01 9.4722696941417960925235774993780069053173065185546875000000000000e-01 1.7728092521132815528872583854536060243844985961914062500000000000e-01 9.4721625818300780874636757289408706128597259521484375000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-194.fsf0000664000175000017500000000125411777021017015345 00000000000000 MandelbrotN -1.2113306250000001329514276449117460288107395172119140625000000000e-01 9.8795679199218744415134096925612539052963256835937500000000000000e-01 -1.2056289843750001011812855722382664680480957031250000000000000000e-01 9.8752916894531239666576993840862996876239776611328125000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-195.fsf0000664000175000017500000000125111777021017015343 00000000000000 MandelbrotN 1.7727619441756056750669756638671969994902610778808593750000000000e-01 9.4722185033828210087847310205688700079917907714843750000000000000e-01 1.7727787251044416216849697320867562666535377502441406250000000000e-01 9.4722059176861939100433573912596330046653747558593750000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-196.fsf0000664000175000017500000000125111777021017015344 00000000000000 MandelbrotN 1.7727712785672705697592732576595153659582138061523437500000000000e-01 9.4722106320783894251036372224916703999042510986328125000000000000e-01 1.7727774455586178814492370747757377102971076965332031250000000000e-01 9.4722060068348779005020787735702469944953918457031250000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-197.fsf0000664000175000017500000000125111777021017015345 00000000000000 MandelbrotN 1.7727734293055030789787451794836670160293579101562500000000000000e-01 9.4722096829398771955510483167017810046672821044921875000000000000e-01 1.7727745162377278598242469342949334532022476196289062500000000000e-01 9.4722088677407090262505562350270338356494903564453125000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-198.fsf0000664000175000017500000000125111777021017015346 00000000000000 MandelbrotN 1.7727742118967049211875064429477788507938385009765625000000000000e-01 9.4722094849144122807871326585882343351840972900390625000000000000e-01 1.7727744646084472868174941595498239621520042419433593750000000000e-01 9.4722092953806058535093370664981193840503692626953125000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-199.fsf0000664000175000017500000000125111777021017015347 00000000000000 MandelbrotN 1.7727743433068110512351722718449309468269348144531250000000000000e-01 9.4722093687459829602914851420791819691658020019531250000000000000e-01 1.7727744146978782757706483153015142306685447692871093750000000000e-01 9.4722093152026831663903294611372984945774078369140625000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-200.fsf0000664000175000017500000000125111777021017015326 00000000000000 MandelbrotN 1.7727743586558905586336720716644776985049247741699218750000000000e-01 9.4722093373116045267323670486803166568279266357421875000000000000e-01 1.7727743720417155071089609918999485671520233154296875000000000000e-01 9.4722093272722351908754490068531595170497894287109375000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-201.fsf0000664000175000017500000000125111777021017015327 00000000000000 MandelbrotN 1.7727743616509689106308655937027651816606521606445312500000000000e-01 9.4722093350506553210976790069253183901309967041015625000000000000e-01 1.7727743634078585444058262510225176811218261718750000000000000000e-01 9.4722093337329871243213119669235311448574066162109375000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-202.fsf0000664000175000017500000000125111777021017015330 00000000000000 MandelbrotN 1.7727743628390654762050360204739263281226158142089843750000000000e-01 9.4722093348686520197787785946275107562541961669921875000000000000e-01 1.7727743633024450886637168878223747014999389648437500000000000000e-01 9.4722093345211177961573412176221609115600585937500000000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-203.fsf0000664000175000017500000000125111777021017015331 00000000000000 MandelbrotN 1.7727743628935124786671906349511118605732917785644531250000000000e-01 9.4722093347015456910042985327891074120998382568359375000000000000e-01 1.7727743629630196564583854978991439566016197204589843750000000000e-01 9.4722093346494162791060489325900562107563018798828125000000000000e-01 1000 123 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-204.fsf0000664000175000017500000000125411777021017015335 00000000000000 MandelbrotN -1.2085582022460938933505758541286922991275787353515625000000000000e-01 9.8791732594848624682271065466920845210552215576171875000000000000e-01 -1.2078811324218750866688054657061002217233180999755859375000000000e-01 9.8786654571166987448549434702727012336254119873046875000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-205.fsf0000664000175000017500000000125411777021017015336 00000000000000 MandelbrotN -1.2080487072033692375061519896917161531746387481689453125000000000e-01 9.8791067162162016224158378463471308350563049316406250000000000000e-01 -1.2079293736468506292869307117143762297928333282470703125000000000e-01 9.8790172160488121111399095752858556807041168212890625000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-206.fsf0000664000175000017500000000125411777021017015337 00000000000000 MandelbrotN -1.2080085812949899193302627509183366782963275909423828125000000000e-01 9.8790810967932862762808099432731978595256805419921875000000000000e-01 -1.2079712895585778542617561015504179522395133972167968750000000000e-01 9.8790531279909765682845090850605629384517669677734375000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-207.fsf0000664000175000017500000000125411777021017015340 00000000000000 MandelbrotN -1.2079856468770965027825781135106808505952358245849609375000000000e-01 9.8790681146075476348755728395190089941024780273437500000000000000e-01 -1.2079793072819064447820380792109062895178794860839843750000000000e-01 9.8790633599111554730143325286917388439178466796875000000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-208.fsf0000664000175000017500000000125411777021017015341 00000000000000 MandelbrotN -1.2079838876394312363604655047311098314821720123291015625000000000e-01 9.8790674350821883198392470148974098265171051025390625000000000000e-01 -1.2079798461474976212226550842387950979173183441162109375000000000e-01 9.8790644039632380390969501604558899998664855957031250000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-209.fsf0000664000175000017500000000125411777021017015342 00000000000000 MandelbrotN -1.2079837461872135195850574973519542254507541656494140625000000000e-01 9.8790667518174579697642911924049258232116699218750000000000000000e-01 -1.2079821194867103317793777250699349679052829742431640625000000000e-01 9.8790655317920816891330559883499518036842346191406250000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-210.fsf0000664000175000017500000000125411777021017015332 00000000000000 MandelbrotN -1.2079827864339166831886274167118244804441928863525390625000000000e-01 9.8790663433631287215774818832869641482830047607421875000000000000e-01 -1.2079824793941966454280390053099836222827434539794921875000000000e-01 9.8790661130833390402017357700970023870468139648437500000000000000e-01 1000 1234 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-211.fsf0000664000175000017500000000123211777021017015327 00000000000000 Mandelbrot 1.1456298066915422406708557900856249034404754638671875000000000000e+00 2.8503359589324184231173830994521267712116241455078125000000000000e-01 1.1456298066918080280629510525614023208618164062500000000000000000e+00 2.8503359589304255727881809434620663523674011230468750000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-212.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 1.1456297807775954744613500224659219384193420410156250000000000000e+00 2.8503360772298480529940434280433692038059234619140625000000000000e-01 1.1456298330632954662888778329943306744098663330078125000000000000e+00 2.8503356850870975591760725365020334720611572265625000000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-213.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 1.1456297955483056849601553039974533021450042724609375000000000000e+00 2.8503359855664800459607022276031784713268280029296875000000000000e-01 1.1456298194690135439088862767675891518592834472656250000000000000e+00 2.8503358061611716589567322444054298102855682373046875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-214.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 1.1456298038906524983104873172123916447162628173828125000000000000e+00 2.8503359788387810924703558157489169389009475708007812500000000000e-01 1.1456298096316224199853195386822335422039031982421875000000000000e+00 2.8503359357815066799091141547251027077436447143554687500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-215.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 1.1456298059358729357626316414098255336284637451171875000000000000e+00 2.8503359638046166235625378249096684157848358154296875000000000000e-01 1.1456298073137058946002753145876340568065643310546875000000000000e+00 2.8503359534708694322802102760761044919490814208984375000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-216.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 1.1456298064405041614577385189477354288101196289062500000000000000e+00 2.8503359598950162023811571998521685600280761718750000000000000000e-01 1.1456298068056300909489664263674058020114898681640625000000000000e+00 2.8503359571565722863084602067829109728336334228515625000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-217.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 1.1456298065322421120271201289142481982707977294921875000000000000e+00 2.8503359593256477610978549819265026599168777465820312500000000000e-01 1.1456298067321484257519159655203111469745635986328125000000000000e+00 2.8503359578263504081618862073810305446386337280273437500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-218.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 1.1456298066719265982271735992981120944023132324218750000000000000e+00 2.8503359590567112213932432496221736073493957519531250000000000000e-01 1.1456298067101586823923753399867564439773559570312500000000000000e+00 2.8503359587699705901542301944573409855365753173828125000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-219.fsf0000664000175000017500000000123211777021017015337 00000000000000 Mandelbrot 1.1456298066890353570812521866173483431339263916015625000000000000e+00 2.8503359589500204540613026438222732394933700561523437500000000000e-01 1.1456298067004095919685369153739884495735168457031250000000000000e+00 2.8503359588647136924066671781474724411964416503906250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-220.fsf0000664000175000017500000000123211777021017015327 00000000000000 Mandelbrot 1.1456298066904571086865871620830148458480834960937500000000000000e+00 2.8503359589386823014223182326531969010829925537109375000000000000e-01 1.1456298066929879730935226689325645565986633300781250000000000000e+00 2.8503359589197008183703019312815740704536437988281250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-221.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 1.1456297333784093428477035558898933231830596923828125000000000000e+00 2.8503370490353252542092832300113514065742492675781250000000000000e-01 1.1456299288389704127411050649243406951427459716796875000000000000e+00 2.8503355830811172300087719122529961168766021728515625000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-222.fsf0000664000175000017500000000123211777021017015331 00000000000000 Mandelbrot 1.1429249999999999687361196265555918216705322265625000000000000000e+00 2.8695625000000002380318164796335622668266296386718750000000000000e-01 1.1478749999999999786837179271969944238662719726562500000000000000e+00 2.8324375000000001634248292248230427503585815429687500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-223.fsf0000664000175000017500000000123211777021017015332 00000000000000 Mandelbrot 1.1443790624999998772892695342306979000568389892578125000000000000e+00 2.8622303125000003731770448212046176195144653320312500000000000000e-01 1.1468293124999999754720647615613415837287902832031250000000000000e+00 2.8438534374999996368060806162247899919748306274414062500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-224.fsf0000664000175000017500000000123211777021017015333 00000000000000 Mandelbrot 1.1452580896874999805135075803264044225215911865234375000000000000e+00 2.8533022140624997309288346514222212135791778564453125000000000000e-01 1.1459441596874999635957692589727230370044708251953125000000000000e+00 2.8481566890624998578118720615748316049575805664062500000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-225.fsf0000664000175000017500000000123211777021017015334 00000000000000 Mandelbrot 1.1455247993999999600589490000857040286064147949218750000000000000e+00 2.8510306791718742491781313219689764082431793212890625000000000000e-01 1.1457057503624998862079564787563867866992950439453125000000000000e+00 2.8496735469531253581720875445171259343624114990234375000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-226.fsf0000664000175000017500000000123211777021017015335 00000000000000 Mandelbrot 1.1456091677862656474928826355608180165290832519531250000000000000e+00 2.8505090314752923319474575691856443881988525390625000000000000000e-01 1.1456573459800312164702518202830106019973754882812500000000000000e+00 2.8501476950220505646171886837691999971866607666015625000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-227.fsf0000664000175000017500000000123211777021017015336 00000000000000 Mandelbrot 1.1456230792397155138218067804700694978237152099609375000000000000e+00 2.8503902421162891078765255770122166723012924194335937500000000000e-01 1.1456366895794543037112589445314370095729827880859375000000000000e+00 2.8502881645682481837056343465519603341817855834960937500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-228.fsf0000664000175000017500000000123211777021017015337 00000000000000 Mandelbrot 1.1456281661041929353928026102948933839797973632812500000000000000e+00 2.8503512825187871104759551599272526800632476806640625000000000000e-01 1.1456315686891276328651656513102352619171142578125000000000000000e+00 2.8503257631317768794332323523121885955333709716796875000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-229.fsf0000664000175000017500000000123211777021017015340 00000000000000 Mandelbrot 1.1456292166522914488524520493228919804096221923828125000000000000e+00 2.8503427760564503667950475573888979852199554443359375000000000000e-01 1.1456304585957926001071882637916132807731628417968750000000000000e+00 2.8503334614801917323845259488734882324934005737304687500000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-230.fsf0000664000175000017500000000123211777021017015330 00000000000000 Mandelbrot 1.1456296264936467466100111778359860181808471679687500000000000000e+00 2.8503374764506661520613306493032723665237426757812500000000000000e-01 1.1456300223631377122046615113504230976104736328125000000000000000e+00 2.8503345074294839101014531479449942708015441894531250000000000000e-01 1000 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-231.fsf0000664000175000017500000000125211777021017015333 00000000000000 MandelbrotN -9.4411973696544082557124966115225106477737426757812500000000000000e-02 1.0380245542069581610178374830866232514381408691406250000000000000e+00 -9.4411973696413742374033972737379372119903564453125000000000000000e-02 1.0380245542068604613916704693110659718513488769531250000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-232.fsf0000664000175000017500000000125211777021017015334 00000000000000 MandelbrotN -9.4414152941202353352956322396494215354323387145996093750000000000e-02 1.0380253465805764356844065332552418112754821777343750000000000000e+00 -9.4410918459659320944865612545982003211975097656250000000000000000e-02 1.0380229207194191509699976450065150856971740722656250000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-233.fsf0000664000175000017500000000125211777021017015335 00000000000000 MandelbrotN -9.4412216295378464936405293883581180125474929809570312500000000000e-02 1.0380247305129199908435566612752154469490051269531250000000000000e+00 -9.4411799855879802167990533234842587262392044067382812500000000000e-02 1.0380244181832960492783968220464885234832763671875000000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-234.fsf0000664000175000017500000000125211777021017015336 00000000000000 MandelbrotN -9.4412100733417589348839271679025841876864433288574218750000000000e-02 1.0380246239304358191191113292006775736808776855468750000000000000e+00 -9.4411824842249719713649369623453821986913681030273437500000000000e-02 1.0380244170120600522011500288499519228935241699218750000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-235.fsf0000664000175000017500000000125211777021017015337 00000000000000 MandelbrotN -9.4411982445079367654017232780461199581623077392578125000000000000e-02 1.0380245586218235231967810250353068113327026367187500000000000000e+00 -9.4411964857017416363760275999084115028381347656250000000000000000e-02 1.0380245454307770458513004996348172426223754882812500000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-236.fsf0000664000175000017500000000125211777021017015340 00000000000000 MandelbrotN -9.4411974816257501763594461863249307498335838317871093750000000000e-02 1.0380245550245152941215565078891813755035400390625000000000000000e+00 -9.4411973123406531249734996436018263921141624450683593750000000000e-02 1.0380245537548768997027082150452770292758941650390625000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-237.fsf0000664000175000017500000000125211777021017015341 00000000000000 MandelbrotN -9.4411973777270216667822921863262308761477470397949218750000000000e-02 1.0380245542521517876366488053463399410247802734375000000000000000e+00 -9.4411973624913630986910106912546325474977493286132812500000000000e-02 1.0380245541378845253177587437676265835762023925781250000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-238.fsf0000664000175000017500000000125211777021017015342 00000000000000 MandelbrotN -9.4411973705472176932040895280806580558419227600097656250000000000e-02 1.0380245542147292781010037288069725036621093750000000000000000000e+00 -9.4411973690236516976170833004289306700229644775390625000000000000e-02 1.0380245542033026406869566926616244018077850341796875000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-239.fsf0000664000175000017500000000125211777021017015343 00000000000000 MandelbrotN -9.4411973697378234748889269667415646836161613464355468750000000000e-02 1.0380245542073185394116308088996447622776031494140625000000000000e+00 -9.4411973695987971844090225204126909375190734863281250000000000000e-02 1.0380245542062760399915077869081869721412658691406250000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-240.fsf0000664000175000017500000000125211777021017015333 00000000000000 MandelbrotN -9.4411973696822124035854528756317449733614921569824218750000000000e-02 1.0380245542072061848415387430577538907527923583984375000000000000e+00 -9.4411973696723078264270156978454906493425369262695312500000000000e-02 1.0380245542071320219434937826008535921573638916015625000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-241.fsf0000664000175000017500000000125211777021017015334 00000000000000 MandelbrotN -9.4419813283902656597668112681276397779583930969238281250000000000e-02 1.0380279852365721371398876726743765175342559814453125000000000000e+00 -9.4385766109765512066331893947790376842021942138671875000000000000e-02 1.0380024498559692336385751332272775471210479736328125000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-242.fsf0000664000175000017500000000124711777021017015341 00000000000000 MandelbrotN 2.3507539739317762084169771696906536817550659179687500000000000000e-01 1.1638010103712728149361055329791270196437835693359375000000000000e+00 2.3507777403705742980122295193723402917385101318359375000000000000e-01 1.1637992278883628749497347598662599921226501464843750000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-243.fsf0000664000175000017500000000124711777021017015342 00000000000000 MandelbrotN 2.3507659462753208168273033606965327635407447814941406250000000000e-01 1.1638003575369069153566670138388872146606445312500000000000000000e+00 2.3507718284689232968176497706735972315073013305664062500000000000e-01 1.1637999163723868889519508229568600654602050781250000000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-244.fsf0000664000175000017500000000124711777021017015343 00000000000000 MandelbrotN 2.3507690638379299952198664414027007296681404113769531250000000000e-01 1.1638002292315590135984848529915325343608856201171875000000000000e+00 2.3507708579069788723536760244314791634678840637207031250000000000e-01 1.1638000946763804588357515967800281941890716552734375000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-245.fsf0000664000175000017500000000124711777021017015344 00000000000000 MandelbrotN 2.3507702995029874926125046386005124077200889587402343750000000000e-01 1.1638001339216408336341146423364989459514617919921875000000000000e+00 2.3507706941981781900707915156090166419744491577148437500000000000e-01 1.1638001043195016492859394929837435483932495117187500000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-246.fsf0000664000175000017500000000124711777021017015345 00000000000000 MandelbrotN 2.3507704983306898505190929427044466137886047363281250000000000000e-01 1.1638001316336421542274592866306193172931671142578125000000000000e+00 2.3507705491476957315732931874663336202502250671386718750000000000e-01 1.1638001278223668588651662503252737224102020263671875000000000000e+00 1000 3 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-247.fsf0000664000175000017500000000125111777021017015341 00000000000000 MandelbrotN -2.2125000000000000222044604925031308084726333618164062500000000000e-01 1.0610937499999999467092948179924860596656799316406250000000000000e+00 1.4999999999999999444888487687421729788184165954589843750000000000e-02 8.8390625000000000444089209850062616169452667236328125000000000000e-01 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-248.fsf0000664000175000017500000000125211777021017015343 00000000000000 MandelbrotN -9.9346845703125005733191699164308374747633934020996093750000000000e-02 1.0418264550781248800603862036950886249542236328125000000000000000e+00 -9.3505564453125009083400698273180751129984855651855468750000000000e-02 1.0374454941406250352287088389857672154903411865234375000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-249.fsf0000664000175000017500000000125211777021017015344 00000000000000 MandelbrotN -9.4556995078125011255920639996475074440240859985351562500000000000e-02 1.0381929956005859772005806007655337452888488769531250000000000000e+00 -9.4111597382812509082761209810996660962700843811035156250000000000e-02 1.0378589473291015554679006527294404804706573486328125000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/fgpconfig/input-250.fsf0000664000175000017500000000125211777021017015334 00000000000000 MandelbrotN -9.4513568802832043092010394502722192555665969848632812500000000000e-02 1.0380743388708191243807732462300918996334075927734375000000000000e+00 -9.4379392747119150719470326293958351016044616699218750000000000000e-02 1.0379737068290344481624742911662906408309936523437500000000000000e+00 1000 16 SimpleHSV 800*600 rsplib-3.0.1/rsplib/calcapppackets.h0000664000175000017500000000365611777021056014373 00000000000000/* $Id: calcapppackets.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef CALCAPPPACKETS_H #define CALCAPPPACKETS_H #include "netdouble.h" #define PPID_CALCAPP 34 /* old value: 0x29097603 */ #define CALCAPP_REQUEST 1 #define CALCAPP_ACCEPT 2 #define CALCAPP_REJECT 3 #define CALCAPP_ABORT 4 #define CALCAPP_COMPLETE 5 #define CALCAPP_KEEPALIVE 6 #define CALCAPP_KEEPALIVE_ACK 7 struct CalcAppMessage { uint8_t Type; uint8_t Flags; uint16_t Length; uint32_t JobID; uint64_t JobSize; uint64_t Completed; } __attribute__((packed)); struct CalcAppCookie { uint32_t JobID; uint64_t JobSize; uint64_t Completed; } __attribute__((packed)); #endif rsplib-3.0.1/rsplib/calcappservice.cc0000664000175000017500000006174511777021056014542 00000000000000/* $Id: calcappservice.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include "calcappservice.h" #include "netutilities.h" #include "timeutilities.h" #include "stringutilities.h" #include "randomizer.h" #include "loglevel.h" using namespace std; // ###### Constructor ####################################################### CalcAppServer::CalcAppServer(const size_t maxJobs, const char* objectName, const char* vectorFileName, const char* scalarFileName, const double capacity, const unsigned long long keepAliveTransmissionInterval, const unsigned long long keepAliveTimeoutInterval, const unsigned long long cookieMaxTime, const double cookieMaxCalculations, const double cleanShutdownProbability, CalcAppServerStatistics* statistics, const bool resetStatistics) { FirstJob = NULL; ObjectName = objectName; VectorFileName = vectorFileName; ScalarFileName = scalarFileName; VectorFH = NULL; ScalarFH = NULL; MaxJobs = maxJobs; Capacity = capacity; KeepAliveTimeoutInterval = keepAliveTimeoutInterval; KeepAliveTransmissionInterval = keepAliveTransmissionInterval; CookieMaxTime = cookieMaxTime; CookieMaxCalculations = cookieMaxCalculations; CleanShutdownProbability = cleanShutdownProbability; Jobs = 0; Stats = statistics; if(resetStatistics) { Stats->StartupTimeStamp = getMicroTime(); Stats->TotalUsedCalculations = 0.0; Stats->TotalJobsAccepted = 0; Stats->TotalJobsRejected = 0; Stats->VectorLine = 0; } } // ###### Destructor ######################################################## CalcAppServer::~CalcAppServer() { } // ###### Print parameters ################################################## void CalcAppServer::printParameters() { puts("CalcApp Parameters:"); printf(" Object Name = %s\n", ObjectName.c_str()); printf(" Vector File Name = %s\n", VectorFileName.c_str()); printf(" Scalar File Name = %s\n", ScalarFileName.c_str()); printf(" Max Jobs = %u\n", (unsigned int)MaxJobs); printf(" Capacity = %1.1f Calculations/s\n", Capacity); printf(" Clean Shutdown Prob. = %1.2f%%\n", 100.0 * CleanShutdownProbability); printf(" KA Transmission Interv. = %llums\n", KeepAliveTransmissionInterval / 1000); printf(" KA Timeout Interval = %llums\n", KeepAliveTimeoutInterval / 1000); printf(" Cookie Max Time = %1.3fs\n", CookieMaxTime / 1000000.0); printf(" Cookie Max Calculations = %1.0f Calculations\n", CookieMaxCalculations); } // ###### Add job ########################################################### CalcAppServer::CalcAppServerJob* CalcAppServer::addJob(rserpool_session_t sessionID, uint32_t jobID, double jobSize, double completed) { if(Jobs < MaxJobs) { CalcAppServerJob* job = new CalcAppServerJob; if(job) { updateCalculations(); job->Next = FirstJob; job->SessionID = sessionID; job->JobID = jobID; job->JobSize = jobSize; job->Completed = completed; job->KeepAliveTransmissionTimeStamp = getMicroTime() + KeepAliveTransmissionInterval; job->KeepAliveTimeoutTimeStamp = ~0ULL; job->JobCompleteTimeStamp = ~0ULL; job->CookieTransmissionTimeStamp = ~0ULL; job->LastUpdateAt = getMicroTime(); job->LastCookieAt = job->LastUpdateAt; job->LastCookieCompleted = 0.0; FirstJob = job; Jobs++; cout << " Job added (" << Jobs << " are running)" << endl; scheduleJobs(); } return(job); } return(NULL); } // ###### Find job ########################################################## CalcAppServer::CalcAppServerJob* CalcAppServer::findJob(rserpool_session_t sessionID, uint32_t jobID) { CalcAppServerJob* job = FirstJob; while(job != NULL) { if((job->SessionID == sessionID) && (job->JobID == jobID)) { return(job); } job = job->Next; } return(NULL); } // ###### Remove job ######################################################## void CalcAppServer::removeJob(CalcAppServer::CalcAppServerJob* removedJob) { updateCalculations(); CalcAppServerJob* job = FirstJob; CalcAppServerJob* prev = NULL; while(job != NULL) { if(job == removedJob) { if(prev == NULL) { FirstJob = job->Next; } else { prev->Next = job->Next; } delete removedJob; CHECK(Jobs > 0); Jobs--; cout << " Job removed (" << Jobs << " still running)" << endl; break; } prev = job; job = job->Next; } scheduleJobs(); } // ###### Remove all jobs ################################################### void CalcAppServer::removeAllJobs() { // ====== Clean shutdown: send cookies to all PUs ======================== const double r = randomDouble(); if(r <= CleanShutdownProbability) { // Update the jobs' progress to send correct cookies! updateCalculations(); scheduleJobs(); // Send cookies CalcAppServerJob* job = FirstJob; while(job != NULL) { CalcAppServerJob* next = job->Next; sendCookie(job); // Note: this function may call removeJob()! job = next; } } // ====== Remove all jobs ================================================ while(FirstJob) { removeJob(FirstJob); } } // ###### Update calculations until now for all sessions #################### void CalcAppServer::updateCalculations() { const unsigned long long now = getMicroTime(); CalcAppServerJob* job = FirstJob; if(Jobs > 0) { const double capacityPerJob = Capacity / ((double)Jobs * 1000000.0); while(job != NULL) { const unsigned long long elapsed = now - job->LastUpdateAt; const double completedCalculations = elapsed * capacityPerJob; if(job->Completed + completedCalculations < job->JobSize) { Stats->TotalUsedCalculations += completedCalculations; job->Completed += completedCalculations; } else { CHECK(job->JobSize - job->Completed >= 0.0); Stats->TotalUsedCalculations += job->JobSize - job->Completed; job->Completed = job->JobSize; } job->LastUpdateAt = now; job = job->Next; } } } // ###### Schedule requests of all sessions ################################# void CalcAppServer::scheduleJobs() { const unsigned long long now = getMicroTime(); CalcAppServerJob* job = FirstJob; if(Jobs > 0) { const double capacityPerJob = Capacity / ((double)Jobs * 1000000.0); while(job != NULL) { // When is the current session's job completed? const double calculationsToGo = job->JobSize - job->Completed; const unsigned long long timeToGo = (unsigned long long)ceil(calculationsToGo / capacityPerJob); // job->JobCompleteTimeStamp = now + timeToGo; job->JobCompleteTimeStamp = job->LastUpdateAt + timeToGo; // When is the time to send the next cookie? const double calculationsSinceLastCookie = job->Completed - job->LastCookieCompleted; const double timeSinceLastCookie = (double)now - (double)job->LastCookieAt; const unsigned long long nextByCalculations = (unsigned long long)rint(max(0.0, CookieMaxCalculations - calculationsSinceLastCookie) / capacityPerJob); const unsigned long long nextByTime = (unsigned long long)rint(max(0.0, CookieMaxTime - timeSinceLastCookie)); const unsigned long long nextCookie = min(nextByCalculations, nextByTime); job->CookieTransmissionTimeStamp = now + nextCookie; job = job->Next; } } setLoad((double)Jobs / (double)MaxJobs); } // ###### Schedule next timer event ######################################### void CalcAppServer::scheduleNextTimerEvent() { unsigned long long nextTimerTimeStamp = ~0ULL; CalcAppServerJob* job = FirstJob; while(job != NULL) { nextTimerTimeStamp = min(nextTimerTimeStamp, job->JobCompleteTimeStamp); nextTimerTimeStamp = min(nextTimerTimeStamp, job->KeepAliveTransmissionTimeStamp); nextTimerTimeStamp = min(nextTimerTimeStamp, job->KeepAliveTimeoutTimeStamp); nextTimerTimeStamp = min(nextTimerTimeStamp, job->CookieTransmissionTimeStamp); job = job->Next; } startTimer(nextTimerTimeStamp); } // ###### Initialize ######################################################## EventHandlingResult CalcAppServer::initializeService(int sd, const uint32_t peIdentifier) { Identifier = peIdentifier; VectorFH = fopen(VectorFileName.c_str(), (Stats->VectorLine > 0) ? "a" : "w"); if(VectorFH == NULL) { cout << " Unable to open output file " << VectorFileName << endl; return(EHR_Abort); } setbuf(VectorFH, NULL); // Make stream non-buffered! ScalarFH = fopen(ScalarFileName.c_str(), "w"); if(ScalarFH == NULL) { cout << " Unable to open output file " << ScalarFileName << endl; return(EHR_Abort); } setbuf(ScalarFH, NULL); // Make stream non-buffered! fprintf(ScalarFH, "run 1 \"scenario\"\n"); return(EHR_Okay); } // ###### Shutdown ########################################################## void CalcAppServer::finishService(int sd, EventHandlingResult initializeResult) { removeAllJobs(); if(ScalarFH) { unsigned long long shutdownTimeStamp = getMicroTime(); const unsigned long long serviceUptime = shutdownTimeStamp - Stats->StartupTimeStamp; const double availableCalculations = serviceUptime * Capacity / 1000000.0; const double utilization = Stats->TotalUsedCalculations / availableCalculations; const double totalUsedCapacity = Stats->TotalUsedCalculations; const double totalWastedCapacity = serviceUptime - totalUsedCapacity; fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Service Uptime\" %1.6f\n", ObjectName.c_str(), serviceUptime / 1000000.0); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Service Capacity\" %1.0f\n", ObjectName.c_str(), Capacity); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Service Max Jobs\" %u\n", ObjectName.c_str(), (unsigned int)MaxJobs); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Total Used Capacity\" %1.0f\n", ObjectName.c_str(), totalUsedCapacity); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Total Wasted Capacity\" %1.0f\n", ObjectName.c_str(), totalWastedCapacity); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Total Jobs Accepted\" %llu\n", ObjectName.c_str(), Stats->TotalJobsAccepted); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Total Jobs Rejected\" %llu\n", ObjectName.c_str(), Stats->TotalJobsRejected); fprintf(ScalarFH, "scalar \"%s\" \"CalcAppPE Utilization\" %1.6f\n", ObjectName.c_str(), utilization); fclose(ScalarFH); ScalarFH = NULL; } if(VectorFH) { fclose(VectorFH); VectorFH = NULL; } } // ###### Handle incoming CalcAppRequest #################################### void CalcAppServer::handleCalcAppRequest(rserpool_session_t sessionID, const CalcAppMessage* message, const size_t received) { CalcAppServerJob* job = addJob(sessionID, ntohl(message->JobID), (double)ntoh64(message->JobSize), 0.0); if(job) { cout << "Job " << job->SessionID << "/" << job->JobID << " of size " << job->JobSize << " accepted" << endl; sendCalcAppAccept(job); } else { cout << "Job " << sessionID << "/" << ntohl(message->JobID) << " rejected!" << endl; sendCalcAppReject(sessionID, ntohl(message->JobID)); } } // ###### Handle incoming CalcAppRequest #################################### EventHandlingResult CalcAppServer::handleCookieEcho(rserpool_session_t sessionID, const char* buffer, size_t bufferSize) { if(bufferSize >= sizeof(CalcAppCookie)) { const CalcAppCookie* cookie = (const CalcAppCookie*)buffer; CalcAppServerJob* job = addJob(sessionID, ntohl(cookie->JobID), (double)ntoh64(cookie->JobSize), (double)ntoh64(cookie->Completed)); if(job) { cout << "Job " << job->SessionID << "/" << job->JobID << " of size " << job->JobSize << ", completed " << job->Completed << " accepted from cookie echo" << endl; sendCalcAppAccept(job); } else { cout << "Job " << sessionID << "/" << ntohl(cookie->JobID) << " rejected from cookie echo!" << endl; sendCalcAppReject(sessionID, ntohl(cookie->JobID)); } return(EHR_Okay); } else { cerr << "ERROR: Received malformed cookie echo!" << endl; } return(EHR_Abort); } // ###### Send CalcAppAccept ################################################ void CalcAppServer::sendCalcAppAccept(CalcAppServer::CalcAppServerJob* job) { Stats->TotalJobsAccepted++; struct CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_ACCEPT; message.Flags = 0x00; message.Length = ntohs(sizeof(message)); message.JobID = htonl(job->JobID); if(rsp_sendmsg(RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, job->SessionID, htonl(PPID_CALCAPP), 0, 0, 0, 0) < 0) { logerror("Unable to send CalcAppAccept"); removeJob(job); } } // ###### Send CalcAppReject ################################################ void CalcAppServer::sendCalcAppReject(rserpool_session_t sessionID, uint32_t jobID) { Stats->TotalJobsRejected++; struct CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_REJECT; message.Flags = 0x00; message.Length = ntohs(sizeof(message)); message.JobID = htonl(jobID); if(rsp_sendmsg(RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, sessionID, htonl(PPID_CALCAPP), 0, 0, 0, 0) < 0) { logerror("Unable to send CalcAppReject"); } } // ###### Handle JobComplete timer ########################################## void CalcAppServer::handleJobCompleteTimer(CalcAppServer::CalcAppServerJob* job) { cout << "Job " << job->SessionID << "/" << job->JobID << " is complete!" << endl; updateCalculations(); scheduleJobs(); sendCalcAppComplete(job); removeJob(job); } // ###### Send CalcAppComplete ############################################## void CalcAppServer::sendCalcAppComplete(CalcAppServer::CalcAppServerJob* job) { struct CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_COMPLETE; message.Flags = 0x00; message.Length = ntohs(sizeof(message)); message.JobID = htonl(job->JobID); message.JobSize = hton64((unsigned long long)rint(job->JobSize)); message.Completed = hton64((unsigned long long)rint(job->Completed)); if(rsp_sendmsg(RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, job->SessionID, htonl(PPID_CALCAPP), 0, 0, 0, 0) < 0) { logerror("Unable to send CalcAppAccept"); } unsigned long long shutdownTimeStamp = getMicroTime(); const unsigned long long serviceUptime = shutdownTimeStamp - Stats->StartupTimeStamp; const double availableCalculations = serviceUptime * Capacity / 1000000.0; const double utilization = Stats->TotalUsedCalculations / availableCalculations; if(VectorFH) { if(Stats->VectorLine == 0) { fprintf(VectorFH, "ObjectName PID PoolElementIdentifier CurrentTimeStamp Runtime AvailableCalculations UsedCalculations Utilization CurrentJobs MaxJobs\n"); } fprintf(VectorFH,"%06llu %s %u 0x%08x %1.6f %1.6f %1.0f %1.0f %1.6f %u %u\n", ++Stats->VectorLine, ObjectName.c_str(), (unsigned int)getpid(), Identifier, getMicroTime() / 1000000.0, serviceUptime / 1000000.0, availableCalculations, Stats->TotalUsedCalculations, utilization, (unsigned int)Jobs, (unsigned int)MaxJobs); // fflush(VectorFH); } } // ###### Handle incoming CalcAppKeepAlive ################################## void CalcAppServer::handleCalcAppKeepAlive(rserpool_session_t sessionID, const CalcAppMessage* message, const size_t received) { CalcAppServerJob* job = findJob(sessionID, ntohl(message->JobID)); if(job != NULL) { sendCalcAppKeepAliveAck(job); } else { cerr << "ERROR: CalcAppKeepAlive for wrong job!" << endl; removeJob(job); return; } } // ###### Send CalcAppKeepAlive ############################################# void CalcAppServer::sendCalcAppKeepAliveAck(CalcAppServer::CalcAppServerJob* job) { struct CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_KEEPALIVE_ACK; message.Flags = 0x00; message.Length = ntohs(sizeof(message)); message.JobID = htonl(job->JobID); if(rsp_sendmsg(RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, job->SessionID, htonl(PPID_CALCAPP), 0, 0, 0, 0) < 0) { logerror("Unable to send CalcAppKeepAlive"); removeJob(job); return; } } // ###### Send CalcAppKeepAlive ############################################# void CalcAppServer::sendCalcAppKeepAlive(CalcAppServer::CalcAppServerJob* job) { // KeepAlives++; struct CalcAppMessage message; memset(&message, 0, sizeof(message)); message.Type = CALCAPP_KEEPALIVE; message.Flags = 0x00; message.Length = ntohs(sizeof(message)); message.JobID = htonl(job->JobID); if(rsp_sendmsg(RSerPoolSocketDescriptor, (void*)&message, sizeof(message), 0, job->SessionID, htonl(PPID_CALCAPP), 0, 0, 0, 0) < 0) { logerror("Unable to send CalcAppKeepAlive"); removeJob(job); return; } } // ###### Handle incoming CalcAppKeepAliveAck ############################### void CalcAppServer::handleCalcAppKeepAliveAck(rserpool_session_t sessionID, const CalcAppMessage* message, const size_t received) { CalcAppServerJob* job = findJob(sessionID, ntohl(message->JobID)); if(job != NULL) { job->KeepAliveTimeoutTimeStamp = ~0ULL; job->KeepAliveTransmissionTimeStamp = getMicroTime() + KeepAliveTransmissionInterval; } else { cerr << "ERROR: CalcAppKeepAliveAck for wrong job!" << endl; removeJob(job); return; } } // ###### Handle KeepAlive Transmission timer ############################### void CalcAppServer::handleKeepAliveTransmissionTimer(CalcAppServer::CalcAppServerJob* job) { job->KeepAliveTransmissionTimeStamp = ~0ULL; job->KeepAliveTimeoutTimeStamp = getMicroTime() + KeepAliveTimeoutInterval; sendCalcAppKeepAlive(job); } // ###### Handle KeepAlive Timeout timer #################################### void CalcAppServer::handleKeepAliveTimeoutTimer(CalcAppServer::CalcAppServerJob* job) { job->KeepAliveTimeoutTimeStamp = ~0ULL; cout << "No keep-alive for job " << job->JobID << "/" << job->JobID << " -> removing session" << endl; removeJob(job); } // ###### Send cookie ####################################################### void CalcAppServer::sendCookie(CalcAppServer::CalcAppServerJob* job) { struct CalcAppCookie cookie; memset(&cookie, 0, sizeof(cookie)); cookie.JobID = htonl(job->JobID); cookie.JobSize = hton64((unsigned long long)rint(job->JobSize)); cookie.Completed = hton64((unsigned long long)rint(job->Completed)); if(rsp_send_cookie(RSerPoolSocketDescriptor, (const unsigned char*)&cookie, sizeof(cookie), job->SessionID, 0) < 0) { logerror("Unable to send CalcAppKeepAlive"); removeJob(job); return; } job->LastCookieAt = getMicroTime(); job->LastCookieCompleted = job->Completed; } // ###### Handle Cookie Transmission timer ################################## void CalcAppServer::handleCookieTransmissionTimer(CalcAppServer::CalcAppServerJob* job) { updateCalculations(); sendCookie(job); scheduleJobs(); } // ###### Handle message #################################################### EventHandlingResult CalcAppServer::handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { if(bufferSize >= sizeof(CalcAppMessage)) { const CalcAppMessage* message = (const CalcAppMessage*)buffer; switch(message->Type) { case CALCAPP_REQUEST: handleCalcAppRequest(sessionID, message, bufferSize); break; case CALCAPP_KEEPALIVE: handleCalcAppKeepAlive(sessionID, message, bufferSize); break; case CALCAPP_KEEPALIVE_ACK: handleCalcAppKeepAliveAck(sessionID, message, bufferSize); break; default: cerr << "ERROR: Unexpected message type " << message->Type << endl; break; } } scheduleNextTimerEvent(); return(EHR_Okay); } // ###### Handle timer ###################################################### void CalcAppServer::handleTimer() { const unsigned long long now = getMicroTime(); CalcAppServerJob* job = FirstJob; while(job != NULL) { CalcAppServerJob* next = job->Next; // ====== Handle timers =============================================== if(job->JobCompleteTimeStamp <= now) { job->JobCompleteTimeStamp = ~0ULL; handleJobCompleteTimer(job); break; } if(job->CookieTransmissionTimeStamp <= now) { job->CookieTransmissionTimeStamp = ~0ULL; handleCookieTransmissionTimer(job); break; } if(job->KeepAliveTransmissionTimeStamp <= now) { job->KeepAliveTransmissionTimeStamp = ~0ULL; handleKeepAliveTransmissionTimer(job); break; } if(job->KeepAliveTimeoutTimeStamp <= now) { job->KeepAliveTimeoutTimeStamp = ~0ULL; handleKeepAliveTimeoutTimer(job); break; } job = next; } scheduleNextTimerEvent(); } rsplib-3.0.1/rsplib/transportaddressblock.c0000664000175000017500000004050411777021056016016 00000000000000/* $Id: transportaddressblock.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "config.h" #include "transportaddressblock.h" #include "stringutilities.h" #include "debug.h" #include #include #include #include #include #include #ifndef HAVE_TEST #include "netutilities.h" #else /* ###### Convert address to string ###################################### */ static int address2string(const struct sockaddr* address, char* buffer, const size_t length, const int port) { struct sockaddr_in* ipv4address; struct sockaddr_in6* ipv6address; #ifdef HAVE_TEST struct sockaddr_testaddr* testaddress; #endif char str[128]; switch(address->sa_family) { case AF_INET: ipv4address = (struct sockaddr_in*)address; if(port) { snprintf(buffer, length, "%s:%u", inet_ntoa(ipv4address->sin_addr), ntohs(ipv4address->sin_port)); } else { snprintf(buffer, length, "%s", inet_ntoa(ipv4address->sin_addr)); } return(1); break; case AF_INET6: ipv6address = (struct sockaddr_in6*)address; ipv6address->sin6_scope_id = 0; if(inet_ntop(AF_INET6,&ipv6address->sin6_addr, str, sizeof(str)) != NULL) { if(port) { snprintf(buffer, length, "[%s]:%u", str, ntohs(ipv6address->sin6_port)); } else { snprintf(buffer, length, "%s", str); } return(1); } break; #ifdef HAVE_TEST case AF_TEST: testaddress = (struct sockaddr_testaddr*)address; snprintf(buffer, length, "%u:%u", testaddress->ta_addr, testaddress->ta_port); return(1); break; #endif case AF_UNSPEC: safestrcpy(buffer,"(unspecified)",length); return(1); break; } snprintf(buffer,length,"(unsupported address family #%d)",address->sa_family); return(0); } #endif /* ###### Initialize ##################################################### */ void transportAddressBlockNew(struct TransportAddressBlock* transportAddressBlock, const int protocol, const uint16_t port, const uint16_t flags, const union sockaddr_union* addressArray, const size_t addresses, const size_t maxAddresses) { size_t i; transportAddressBlock->Next = NULL; transportAddressBlock->Flags = flags; transportAddressBlock->Port = port; transportAddressBlock->Protocol = protocol; transportAddressBlock->Addresses = min(maxAddresses, addresses); for(i = 0;i < transportAddressBlock->Addresses;i++) { memcpy((void*)&transportAddressBlock->AddressArray[i], (void*)&addressArray[i], sizeof(union sockaddr_union)); switch(((struct sockaddr*)&addressArray[i])->sa_family) { case AF_INET: ((struct sockaddr_in*)&transportAddressBlock->AddressArray[i])->sin_port = htons(port); break; case AF_INET6: ((struct sockaddr_in6*)&transportAddressBlock->AddressArray[i])->sin6_port = htons(port); break; #ifdef HAVE_TEST case AF_TEST: ((struct sockaddr_testaddr*)&transportAddressBlock->AddressArray[i])->ta_port = port; break; #endif default: fprintf(stderr,"Unsupported address family #%d\n",((struct sockaddr*)&addressArray[i])->sa_family); break; } } } /* ###### Invalidate ##################################################### */ void transportAddressBlockDelete(struct TransportAddressBlock* transportAddressBlock) { transportAddressBlock->Flags = 0; transportAddressBlock->Port = 0; transportAddressBlock->Protocol = 0; transportAddressBlock->Addresses = 0; } /* ###### Get textual description ######################################## */ void transportAddressBlockGetDescription( const struct TransportAddressBlock* transportAddressBlock, char* buffer, const size_t bufferSize) { char addressString[96]; char protocolString[32]; size_t i; if(transportAddressBlock != NULL) { safestrcpy(buffer, "{", bufferSize); for(i = 0;i < transportAddressBlock->Addresses;i++) { if(i > 0) { safestrcat(buffer, ", ", bufferSize); } if(address2string((struct sockaddr*)&transportAddressBlock->AddressArray[i], (char*)&addressString, sizeof(addressString), 0)) { safestrcat(buffer, addressString, bufferSize); } else { safestrcat(buffer, "(invalid)", bufferSize); } } safestrcat(buffer, "} ", bufferSize); switch(transportAddressBlock->Protocol) { case IPPROTO_SCTP: strcpy((char*)&protocolString,"SCTP"); break; case IPPROTO_TCP: strcpy((char*)&protocolString,"TCP"); break; case IPPROTO_UDP: strcpy((char*)&protocolString,"UDP"); break; default: snprintf((char*)&protocolString, sizeof(protocolString), "Protocol $%04x",transportAddressBlock->Protocol); break; } snprintf((char*)&addressString, sizeof(addressString), "%u/%s%s", transportAddressBlock->Port, protocolString, ((transportAddressBlock->Flags & TABF_CONTROLCHANNEL) ? "+CtrlCh" : "")); safestrcat(buffer, addressString, bufferSize); } else { safestrcpy(buffer, "(null)", bufferSize); } } /* ###### Print TransportAddressBlock #################################### */ void transportAddressBlockPrint( const struct TransportAddressBlock* transportAddressBlock, FILE* fd) { char buffer[512]; transportAddressBlockGetDescription(transportAddressBlock, (char*)&buffer, sizeof(buffer)); fputs(buffer, fd); } /* ###### Duplicate TransportAddressBlock ################################ */ struct TransportAddressBlock* transportAddressBlockDuplicate(const struct TransportAddressBlock* transportAddressBlock) { struct TransportAddressBlock* duplicate; size_t size; if(transportAddressBlock) { size = transportAddressBlockGetSize(transportAddressBlock->Addresses); duplicate = (struct TransportAddressBlock*)malloc(size); if(duplicate) { memcpy(duplicate, transportAddressBlock, size); return(duplicate); } } return(NULL); } #ifdef HAVE_TEST int addresscmp(const struct sockaddr* address1, const struct sockaddr* address2, const bool port) { const struct sockaddr_testaddr* test1 = (const struct sockaddr_testaddr*)address1; const struct sockaddr_testaddr* test2 = (const struct sockaddr_testaddr*)address2; CHECK(test1->ta_family == AF_TEST); CHECK(test2->ta_family == AF_TEST); if(test1->ta_addr < test2->ta_addr) { return(-1); } else if(test1->ta_addr > test2->ta_addr) { return(1); } if(port) { if(test1->ta_port < test2->ta_port) { return(-1); } else if(test1->ta_port > test2->ta_port) { return(1); } } return(0); } #else #include "netutilities.h" #endif /* ###### Compare TransportAddressBlocks ################################# */ int transportAddressBlockComparison(const void* transportAddressBlockPtr1, const void* transportAddressBlockPtr2) { const struct TransportAddressBlock* transportAddressBlock1 = (const struct TransportAddressBlock*)transportAddressBlockPtr1; const struct TransportAddressBlock* transportAddressBlock2 = (const struct TransportAddressBlock*)transportAddressBlockPtr2; int result; size_t i; if((transportAddressBlock1 == NULL) && (transportAddressBlock2 != NULL)) { return(-1); } else if((transportAddressBlock1 != NULL) && (transportAddressBlock2 == NULL)) { return(1); } if(transportAddressBlock1->Port < transportAddressBlock2->Port) { return(-1); } else if(transportAddressBlock1->Port > transportAddressBlock2->Port) { return(1); } if(transportAddressBlock1->Flags < transportAddressBlock2->Flags) { return(-1); } else if(transportAddressBlock1->Flags > transportAddressBlock2->Flags) { return(1); } if(transportAddressBlock1->Addresses < transportAddressBlock2->Addresses) { return(-1); } else if(transportAddressBlock1->Addresses > transportAddressBlock2->Addresses) { return(1); } for(i = 0;i < transportAddressBlock1->Addresses;i++) { result = addresscmp((const struct sockaddr*)&transportAddressBlock1->AddressArray[i], (const struct sockaddr*)&transportAddressBlock2->AddressArray[i], false); if(result != 0) { return(result); } } return(0); } /* ###### Overlap comparison of TransportAddressBlocks ################### */ int transportAddressBlockOverlapComparison(const void* transportAddressBlockPtr1, const void* transportAddressBlockPtr2) { const struct TransportAddressBlock* transportAddressBlock1 = (const struct TransportAddressBlock*)transportAddressBlockPtr1; const struct TransportAddressBlock* transportAddressBlock2 = (const struct TransportAddressBlock*)transportAddressBlockPtr2; int result; size_t i, j; if((transportAddressBlock1 == NULL) && (transportAddressBlock2 != NULL)) { return(-1); } else if((transportAddressBlock1 != NULL) && (transportAddressBlock2 == NULL)) { return(1); } if(transportAddressBlock1->Port < transportAddressBlock2->Port) { return(-1); } else if(transportAddressBlock1->Port > transportAddressBlock2->Port) { return(1); } if(transportAddressBlock1->Flags < transportAddressBlock2->Flags) { return(-1); } else if(transportAddressBlock1->Flags > transportAddressBlock2->Flags) { return(1); } for(i = 0;i < transportAddressBlock1->Addresses;i++) { for(j = 0;j < transportAddressBlock2->Addresses;j++) { result = addresscmp((const struct sockaddr*)&transportAddressBlock1->AddressArray[i], (const struct sockaddr*)&transportAddressBlock2->AddressArray[j], false); if(result == 0) { return(0); } } } if(transportAddressBlock1->Addresses < transportAddressBlock2->Addresses) { return(-1); } else if(transportAddressBlock1->Addresses > transportAddressBlock2->Addresses) { return(1); } for(i = 0;i < transportAddressBlock1->Addresses;i++) { result = addresscmp((const struct sockaddr*)&transportAddressBlock1->AddressArray[i], (const struct sockaddr*)&transportAddressBlock2->AddressArray[i], false); if(result != 0) { return(result); } } return(0); } #ifndef HAVE_TEST /* ###### Get addresses from SCTP socket ################################# */ #define MAX_ADDRESSES 128 size_t transportAddressBlockGetAddressesFromSCTPSocket( struct TransportAddressBlock* sctpAddress, int sockFD, sctp_assoc_t assocID, const size_t maxAddresses, const bool local) { union sockaddr_union sctpAddressArray[MAX_ADDRESSES]; union sockaddr_union* endpointAddressArray; size_t sctpAddresses; if(local) { sctpAddresses = getladdrsplus(sockFD, assocID, (union sockaddr_union**)&endpointAddressArray); } else { sctpAddresses = getpaddrsplus(sockFD, assocID, (union sockaddr_union**)&endpointAddressArray); } if(sctpAddresses > 0) { if(sctpAddresses > maxAddresses) { sctpAddresses = maxAddresses; } if(sctpAddresses > MAX_ADDRESSES) { sctpAddresses = MAX_ADDRESSES; } memcpy(&sctpAddressArray, endpointAddressArray, sctpAddresses * sizeof(union sockaddr_union)); free(endpointAddressArray); transportAddressBlockNew(sctpAddress, IPPROTO_SCTP, getPort((struct sockaddr*)&sctpAddressArray[0]), 0, (union sockaddr_union*)&sctpAddressArray, sctpAddresses,maxAddresses); } return(sctpAddresses); } #endif #ifndef HAVE_TEST /* ###### Filter address array ########################################### */ size_t transportAddressBlockFilter( const struct TransportAddressBlock* originalAddressBlock, const struct TransportAddressBlock* associationAddressBlock, struct TransportAddressBlock* filteredAddressBlock, const size_t maxAddresses, const bool filterPort, const unsigned int minScope) { bool selectionArray[MAX_ADDRESSES]; size_t selected = 0; size_t i, j; CHECK(maxAddresses <= MAX_ADDRESSES); for(i = 0;i < originalAddressBlock->Addresses;i++) { selectionArray[i] = false; if(getScope((const struct sockaddr*)&originalAddressBlock->AddressArray[i]) >= minScope) { if(associationAddressBlock != NULL) { for(j = 0;j < associationAddressBlock->Addresses;j++) { if(addresscmp(&originalAddressBlock->AddressArray[i].sa, &associationAddressBlock->AddressArray[j].sa, filterPort) == 0) { selectionArray[i] = true; selected++; break; } } } else { selectionArray[i] = true; selected++; } } } if(selected > 0) { filteredAddressBlock->Next = NULL; filteredAddressBlock->Protocol = originalAddressBlock->Protocol; filteredAddressBlock->Port = originalAddressBlock->Port; filteredAddressBlock->Flags = originalAddressBlock->Flags; filteredAddressBlock->Addresses = selected; j = 0; for(i = 0;i < originalAddressBlock->Addresses;i++) { if(selectionArray[i]) { memcpy(&filteredAddressBlock->AddressArray[j], (const struct sockaddr*)&originalAddressBlock->AddressArray[i], sizeof(filteredAddressBlock->AddressArray[j])); j++; } } } return(selected); } #endif rsplib-3.0.1/rsplib/transportaddressblock.h0000664000175000017500000001456011777021056016026 00000000000000/* $Id: transportaddressblock.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TRANSPORTADDRESSBLOCK_H #define TRANSPORTADDRESSBLOCK_H #include #include #include #include #include #include "tdtypes.h" #include "sockaddrunion.h" #ifdef __cplusplus extern "C" { #endif #define TABF_CONTROLCHANNEL (1 << 0) struct TransportAddressBlock { struct TransportAddressBlock* Next; int Protocol; uint16_t Port; uint16_t Flags; size_t Addresses; union sockaddr_union AddressArray[0]; }; #define transportAddressBlockGetSize(addresses) (sizeof(struct TransportAddressBlock) + (addresses * sizeof(union sockaddr_union))) /** * Initialize. * * @param transportAddressBlock TransportAddressBlock. * @param protocol Protocol. * @param port Port. * @param flags Flags. * @param addressArray Address array. * @param addresses Number of addresses. */ void transportAddressBlockNew(struct TransportAddressBlock* transportAddressBlock, const int protocol, const uint16_t port, const uint16_t flags, const union sockaddr_union* addressArray, const size_t addresses, const size_t maxAddresses); /** * Invalidate. * * @param transportAddressBlock TransportAddressBlock. */ void transportAddressBlockDelete(struct TransportAddressBlock* transportAddressBlock); /** * Get textual description of transport address block. * * @param transportAddressBlock TransportAddressBlock. * @param buffer Buffer to write description to. * @param bufferSize Size of buffer. */ void transportAddressBlockGetDescription( const struct TransportAddressBlock* transportAddressBlock, char* buffer, const size_t bufferSize); /** * Print transport address block. * * @param transportAddressBlock TransportAddressBlock. * @param fd File to write transport address to (e.g. stdout, stderr, ...). */ void transportAddressBlockPrint(const struct TransportAddressBlock* transportAddressBlock, FILE* fd); /** * Print transport address block. * * @param transportAddressBlock TransportAddressBlock. * @return Copy of TransportAddressBlock or NULL in case of out of memory. */ struct TransportAddressBlock* transportAddressBlockDuplicate(const struct TransportAddressBlock* transportAddressBlock); /** * Compare TransportAddressBlocks. * * @param transportAddressBlockPtr1 TransportAddressBlock 1. * @param transportAddressBlockPtr2 TransportAddressBlock 2. * @return Comparison result. */ int transportAddressBlockComparison(const void* transportAddressBlockPtr1, const void* transportAddressBlockPtr2); /** * Compare TransportAddressBlocks for overlaps. The address blocks are * considered as equal when ports and flags are equal AND there is at least * one common address. For different address blocks, this function is * equal to transportAddressBlockComparison(). * * @param transportAddressBlockPtr1 TransportAddressBlock 1. * @param transportAddressBlockPtr2 TransportAddressBlock 2. * @return Comparison result. * * @see transportAddressBlockComparison */ int transportAddressBlockOverlapComparison(const void* transportAddressBlockPtr1, const void* transportAddressBlockPtr2); /** * Initialize TransportAddressBlock with local addresses * of given SCTP socket. * * @param transportAddressBlock TransportAddressBlock. * @param sockFD Socket FD. * @param assocID Association ID. * @param maxAddresses Maximum number of addresses to be returned. * @return Number of obtained addresses. */ size_t transportAddressBlockGetAddressesFromSCTPSocket( struct TransportAddressBlock* sctpAddress, int sockFD, sctp_assoc_t assocID, const size_t maxAddresses, const bool local); /* This function takes the given addresses from sourceAddressBlock and writes valid addresses to validAddressBlock, the amount of valid addresses is returned. A valid address must fulfil the following conditions: - the address must have a sufficient scope, - the address must be in assocAddressArray or assocAddressArray == NULL */ size_t transportAddressBlockFilter( const struct TransportAddressBlock* originalAddressBlock, const struct TransportAddressBlock* associationAddressBlock, struct TransportAddressBlock* filteredAddressBlock, const size_t maxAddresses, const bool filterPort, const unsigned int minScope); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/timer.c0000664000175000017500000001113311777021056012515 00000000000000/* $Id: timer.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "timer.h" /* ###### Constructor #################################################### */ void timerNew(struct Timer* timer, struct Dispatcher* dispatcher, void (*callback)(struct Dispatcher* dispatcher, struct Timer* timer, void* userData), void* userData) { simpleRedBlackTreeNodeNew(&timer->Node); timer->Master = dispatcher; timer->TimeStamp = 0; timer->Callback = callback; timer->UserData = userData; } /* ###### Destructor ##################################################### */ void timerDelete(struct Timer* timer) { timerStop(timer); simpleRedBlackTreeNodeDelete(&timer->Node); timer->Master = NULL; timer->TimeStamp = 0; timer->Callback = NULL; timer->UserData = NULL; } /* ###### Start timer #################################################### */ void timerStart(struct Timer* timer, const unsigned long long timeStamp) { struct SimpleRedBlackTreeNode* result; CHECK(!simpleRedBlackTreeNodeIsLinked(&timer->Node)); timer->TimeStamp = timeStamp; dispatcherLock(timer->Master); result = simpleRedBlackTreeInsert(&timer->Master->TimerStorage, &timer->Node); CHECK(result == &timer->Node); timer->Master->AddRemove = true; dispatcherUnlock(timer->Master); } /* ###### Restart timer ################################################## */ void timerRestart(struct Timer* timer, const unsigned long long timeStamp) { timerStop(timer); timerStart(timer, timeStamp); } /* ###### Check, if timer is running ##################################### */ bool timerIsRunning(struct Timer* timer) { return(simpleRedBlackTreeNodeIsLinked(&timer->Node)); } /* ###### Stop timer ##################################################### */ void timerStop(struct Timer* timer) { struct SimpleRedBlackTreeNode* result; dispatcherLock(timer->Master); if(simpleRedBlackTreeNodeIsLinked(&timer->Node)) { result = simpleRedBlackTreeRemove(&timer->Master->TimerStorage, &timer->Node); CHECK(result == &timer->Node); timer->TimeStamp = 0; timer->Master->AddRemove = true; } dispatcherUnlock(timer->Master); } /* ###### Timer comparision function ##################################### */ int timerComparison(const void* timerPtr1, const void* timerPtr2) { const struct Timer* timer1 = (const struct Timer*)timerPtr1; const struct Timer* timer2 = (const struct Timer*)timerPtr2; if(timer1->TimeStamp < timer2->TimeStamp) { return(-1); } else if(timer1->TimeStamp > timer2->TimeStamp) { return(1); } if((long)timer1 < (long)timer2) { return(-1); } if((long)timer1 > (long)timer2) { return(1); } return(0); } rsplib-3.0.1/rsplib/timer.h0000664000175000017500000000734011777021056012527 00000000000000/* $Id: timer.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TIMER_H #define TIMER_H #include "tdtypes.h" #include "dispatcher.h" #include "simpleredblacktree.h" #ifdef __cplusplus extern "C" { #endif struct Timer { struct SimpleRedBlackTreeNode Node; struct Dispatcher* Master; unsigned long long TimeStamp; void (*Callback)(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); void* UserData; }; /** * Constructor. * * @param timer Timer. * @param dispatcher Dispatcher. * @param callback Callback. * @param userData User data for callback. */ void timerNew(struct Timer* timer, struct Dispatcher* dispatcher, void (*callback)(struct Dispatcher* dispatcher, struct Timer* timer, void* userData), void* userData); /** * Destructor. * * @param timer Timer. */ void timerDelete(struct Timer* timer); /** * Start timer. * * @param timer Timer. * @param timeStamp Time stamp. */ void timerStart(struct Timer* timer, const unsigned long long timeStamp); /** * Restart timer (set new timeout for already running timer). * * @param timer Timer. * @param timeStamp Time stamp. */ void timerRestart(struct Timer* timer, const unsigned long long timeStamp); /** * Stop timer. * * @param timer Timer. */ void timerStop(struct Timer* timer); /** * Check, if timer is running. * * @param timer Timer. * @return true if timer is running; false otherwise. */ bool timerIsRunning(struct Timer* timer); /** * Timer comparision function. * * @param timerPtr1 Pointer to timer 1. * @param timerPtr2 Pointer to timer 2. * @return Comparision result. */ int timerComparison(const void* timerPtr1, const void* timerPtr2); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/udplikeserver.h0000664000175000017500000000670611777021056014300 00000000000000/* $Id: udplikeserver.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef UDPLIKESERVER_H #define UDPLIKESERVER_H #include "rserpool-internals.h" #include "cpprspserver.h" struct TagItem; class UDPLikeServer { public: UDPLikeServer(); virtual ~UDPLikeServer(); virtual EventHandlingResult initializeService(int sd, const uint32_t peIdentifier); virtual void finishService(int sd, EventHandlingResult initializeResult); virtual void poolElement(const char* programTitle, const char* poolHandle, struct rsp_info* info, struct rsp_loadinfo* loadinfo, const sockaddr* localAddressSet = NULL, const size_t localAddresses = 0, unsigned int reregInterval = 30000, unsigned int runtimeLimit = 0, const bool quiet = false, const bool daemonMode = false, struct TagItem* tags = NULL); double getLoad() const; void setLoad(double load); protected: virtual bool waitForAction(unsigned long long timeout); virtual void printParameters(); void startTimer(unsigned long long timeStamp); void stopTimer(); virtual EventHandlingResult handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); virtual EventHandlingResult handleCookieEcho(rserpool_session_t sessionID, const char* buffer, size_t bufferSize); virtual void handleNotification(const union rserpool_notification* notification); virtual void handleTimer(); protected: int RSerPoolSocketDescriptor; private: unsigned long long NextTimerTimeStamp; unsigned int Load; }; #endif rsplib-3.0.1/rsplib/pooluserlist-template_impl.h0000664000175000017500000002017611777021056017007 00000000000000/* $Id: pooluserlist-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* ###### Initialize ##################################################### */ void ST_CLASS(poolUserListNew)(struct ST_CLASS(PoolUserList)* poolUserList) { ST_METHOD(New)(&poolUserList->PoolUserListStorage, ST_CLASS(poolUserStorageNodePrint), ST_CLASS(poolUserStorageNodeComparison)); } /* ###### Invalidate ##################################################### */ void ST_CLASS(poolUserListDelete)(struct ST_CLASS(PoolUserList)* poolUserList) { ST_CLASS(poolUserListClear)(poolUserList); ST_METHOD(Delete)(&poolUserList->PoolUserListStorage); } /* ###### Get number of pool elements #################################### */ size_t ST_CLASS(poolUserListGetPoolUserNodes)( const struct ST_CLASS(PoolUserList)* poolUserList) { return(ST_METHOD(GetElements)(&poolUserList->PoolUserListStorage)); } /* ###### Get first PoolUserNode ######################################### */ struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListGetFirstPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList) { struct STN_CLASSNAME* node = ST_METHOD(GetFirst)(&poolUserList->PoolUserListStorage); if(node) { return(ST_CLASS(getPoolUserNodeFromPoolUserListStorageNode)(node)); } return(NULL); } /* ###### Get next PoolUserNode ########################################## */ struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListGetNextPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)* poolUserNode) { struct STN_CLASSNAME* node = ST_METHOD(GetNext)(&poolUserList->PoolUserListStorage, &poolUserNode->PoolUserListStorageNode); if(node) { return(ST_CLASS(getPoolUserNodeFromPoolUserListStorageNode)(node)); } return(NULL); } /* ###### Get textual description ######################################## */ void ST_CLASS(poolUserListGetDescription)(struct ST_CLASS(PoolUserList)* poolUserList, char* buffer, const size_t bufferSize) { snprintf(buffer, bufferSize, "PoolUserList (%u poolUsers)", (unsigned int)ST_CLASS(poolUserListGetPoolUserNodes)(poolUserList)); } /* ###### Verify ######################################################### */ void ST_CLASS(poolUserListVerify)(struct ST_CLASS(PoolUserList)* poolUserList) { ST_METHOD(Verify)(&poolUserList->PoolUserListStorage); } /* ###### Print ########################################################## */ void ST_CLASS(poolUserListPrint)(struct ST_CLASS(PoolUserList)* poolUserList, FILE* fd, const unsigned int fields) { struct ST_CLASS(PoolUserNode)* poolUserNode; char poolUserListDescription[128]; unsigned int i; ST_CLASS(poolUserListGetDescription)(poolUserList, (char*)&poolUserListDescription, sizeof(poolUserListDescription)); fputs(poolUserListDescription, fd); fputs("\n", fd); fputs(" +-- Pool Users:\n", fd); i = 1; poolUserNode = ST_CLASS(poolUserListGetFirstPoolUserNode)(poolUserList); while(poolUserNode != NULL) { fprintf(fd, " - idx:#%04u: ", i); ST_CLASS(poolUserNodePrint)(poolUserNode, fd, fields); fputs("\n", fd); i++; poolUserNode = ST_CLASS(poolUserListGetNextPoolUserNode)(poolUserList, poolUserNode); } } /* ###### Clear ########################################################## */ void ST_CLASS(poolUserListClear)(struct ST_CLASS(PoolUserList)* poolUserList) { struct ST_CLASS(PoolUserNode)* poolUserNode = ST_CLASS(poolUserListGetFirstPoolUserNode)(poolUserList); while(poolUserNode != NULL) { ST_CLASS(poolUserListRemovePoolUserNode)(poolUserList, poolUserNode); ST_CLASS(poolUserNodeDelete)(poolUserNode); poolUserNode = ST_CLASS(poolUserListGetFirstPoolUserNode)(poolUserList); } } /* ###### Add PoolUserNode ############################################### */ struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListAddPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)* poolUserNode) { struct STN_CLASSNAME* result; /* Allow random selection. It might be useful to add priorities ... */ poolUserNode->PoolUserListStorageNode.Value = 1; result = ST_METHOD(Insert)(&poolUserList->PoolUserListStorage, &poolUserNode->PoolUserListStorageNode); if(result == &poolUserNode->PoolUserListStorageNode) { return(poolUserNode); } return(ST_CLASS(getPoolUserNodeFromPoolUserListStorageNode)(result)); } /* ###### Add or update PoolUserNode ######################################## */ struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListAddOrUpdatePoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)** poolUserNode) { struct ST_CLASS(PoolUserNode)* newPoolUserNode = ST_CLASS(poolUserListAddPoolUserNode)(poolUserList, *poolUserNode); if(newPoolUserNode == *poolUserNode) { *poolUserNode = NULL; } return(newPoolUserNode); } /* ###### Find PoolUserNode ############################################## */ struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListFindPoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID) { struct ST_CLASS(PoolUserNode) cmpElement; struct STN_CLASSNAME* result; cmpElement.ConnectionSocketDescriptor = connectionSocketDescriptor; cmpElement.ConnectionAssocID = connectionAssocID; result = ST_METHOD(Find)(&poolUserList->PoolUserListStorage, &cmpElement.PoolUserListStorageNode); if(result) { return(ST_CLASS(getPoolUserNodeFromPoolUserListStorageNode)(result)); } return(NULL); } /* ###### Remove PoolUserNode ############################################ */ struct ST_CLASS(PoolUserNode)* ST_CLASS(poolUserListRemovePoolUserNode)( struct ST_CLASS(PoolUserList)* poolUserList, struct ST_CLASS(PoolUserNode)* poolUserNode) { struct STN_CLASSNAME* result; result = ST_METHOD(Remove)(&poolUserList->PoolUserListStorage, &poolUserNode->PoolUserListStorageNode); CHECK(result == &poolUserNode->PoolUserListStorageNode); return(poolUserNode); } rsplib-3.0.1/rsplib/registrartable.c0000664000175000017500000011157311777021056014420 00000000000000/* $Id: registrartable.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "registrartable.h" #include "rserpool-internals.h" #include "rserpoolmessage.h" #include "asapinstance.h" #include "leaflinkedredblacktree.h" #include "netutilities.h" #include "randomizer.h" #include "loglevel.h" #ifdef ENABLE_CSP #include "componentstatusreporter.h" #endif #include #include #ifdef ENABLE_CSP extern struct CSPReporter* gCSPReporter; #endif /* Maximum number of simultaneous registrar connection trials */ #define MAX_SIMULTANEOUS_REQUESTS 3 struct RegistrarAssocIDNode { struct SimpleRedBlackTreeNode Node; sctp_assoc_t AssocID; }; /* ###### Registrar announce callback ######################################### */ static void handleRegistrarAnnounceCallback(struct RegistrarTable* registrarTable, int sd) { struct RSerPoolMessage* message; struct ST_CLASS(PeerListNode)* peerListNode; union sockaddr_union senderAddress; socklen_t senderAddressLength; char buffer[1024]; ssize_t received; unsigned int result; size_t i; LOG_VERBOSE2 fputs("Trying to receive registrar announce...\n", stdlog); LOG_END senderAddressLength = sizeof(senderAddress); received = ext_recvfrom(sd, (char*)&buffer , sizeof(buffer), 0, (struct sockaddr*)&senderAddress, &senderAddressLength); if(received > 0) { result = rserpoolPacket2Message((char*)&buffer, &senderAddress, 0, PPID_ASAP, received, sizeof(buffer), &message); if(message != NULL) { if(result == RSPERR_OKAY) { if(message->Type == AHT_SERVER_ANNOUNCE) { if(message->Error == RSPERR_OKAY) { LOG_VERBOSE3 fputs("RegistrarAnnounce from ", stdlog); address2string((struct sockaddr*)&senderAddress, (char*)&buffer, sizeof(buffer), true); fputs(buffer, stdlog); fputs(" received\n", stdlog); LOG_END result = ST_CLASS(peerListManagementRegisterPeerListNode)( ®istrarTable->RegistrarList, message->RegistrarIdentifier, PLNF_DYNAMIC, message->PeerListNodePtr->AddressBlock, getMicroTime(), &peerListNode); if(result == RSPERR_OKAY) { registrarTable->LastAnnounceHeard = getMicroTime(); ST_CLASS(peerListManagementRestartPeerListNodeExpiryTimer)( ®istrarTable->RegistrarList, peerListNode, registrarTable->RegistrarAnnounceTimeout); } else { LOG_ERROR fputs("Unable to add new peer: ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } i = ST_CLASS(peerListManagementPurgeExpiredPeerListNodes)( ®istrarTable->RegistrarList, getMicroTime()); LOG_VERBOSE4 fprintf(stdlog, "Purged %u out-of-date peer list nodes. Peer List:\n", (unsigned int)i); ST_CLASS(peerListManagementPrint)(®istrarTable->RegistrarList, stdlog, PLPO_PEERS_INDEX|PLNPO_TRANSPORT); LOG_END } } } rserpoolMessageDelete(message); } } } /* ###### Registrar announce callback for FDCallback ######################## */ /* This function is only called to "flush" the socket's buffer into the cache when there is *no* PR hunt in progress. The PR hunt itself may *not* use the Dispatcher's select() procedure -> This may case recursive invocation! Therefore, registrarTableFindRegistrar() simply calls ext_select() and manually calls handleRegistrarAnnounceCallback() to read from the announce socket. */ static void registrarAnnouceFDCallback(struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData) { LOG_VERBOSE4 fputs("Entering registrarAnnouceFDCallback()...\n", stdlog); LOG_END handleRegistrarAnnounceCallback((struct RegistrarTable*)userData, fd); LOG_VERBOSE4 fputs("Leaving registrarAnnouceFDCallback()\n", stdlog); LOG_END } /* ###### Compare two registrar association IDs ########################## */ static int registrarAssocIDNodeComparison(const void* node1, const void* node2) { const struct RegistrarAssocIDNode* a1 = (const struct RegistrarAssocIDNode*)node1; const struct RegistrarAssocIDNode* a2 = (const struct RegistrarAssocIDNode*)node2; if(a1->AssocID < a2->AssocID) { return(-1); } else if(a1->AssocID > a2->AssocID) { return(1); } return(0); } /* ###### Print registrar association ID ################################# */ static void registrarAssocIDNodePrint(const void* node, FILE* fd) { const struct RegistrarAssocIDNode* assocIDNode = (const struct RegistrarAssocIDNode*)node; fprintf(fd, "%u ", (unsigned int)assocIDNode->AssocID); } /* ###### Constructor ####################################################### */ struct RegistrarTable* registrarTableNew(struct Dispatcher* dispatcher, const bool enableAutoConfig, const union sockaddr_union* registrarAnnounceAddress, struct TagItem* tags) { struct RegistrarTable* registrarTable = (struct RegistrarTable*)malloc(sizeof(struct RegistrarTable)); if(registrarTable != NULL) { registrarTable->Dispatcher = dispatcher; registrarTable->LastAnnounceHeard = 0; registrarTable->OutstandingConnects = 0; registrarTable->AnnounceSocket = -1; ST_CLASS(peerListManagementNew)(®istrarTable->RegistrarList, NULL, 0, NULL, NULL); simpleRedBlackTreeNew(®istrarTable->RegistrarAssocIDList, registrarAssocIDNodePrint, registrarAssocIDNodeComparison); /* ====== ASAP Instance settings ==================================== */ registrarTable->RegistrarConnectMaxTrials = tagListGetData(tags, TAG_RspLib_RegistrarConnectMaxTrials, ASAP_DEFAULT_REGISTRAR_CONNECT_MAXTRIALS); registrarTable->RegistrarConnectTimeout = (unsigned long long)tagListGetData(tags, TAG_RspLib_RegistrarConnectTimeout, ASAP_DEFAULT_REGISTRAR_CONNECT_TIMEOUT); registrarTable->RegistrarAnnounceTimeout = (unsigned long long)tagListGetData(tags, TAG_RspLib_RegistrarAnnounceTimeout, ASAP_DEFAULT_REGISTRAR_ANNOUNCE_TIMEOUT); LOG_VERBOSE3 fputs("New ASAP registrar table's configuration:\n", stdlog); fprintf(stdlog, "registrartable.announce.timeout = %lluus\n", registrarTable->RegistrarAnnounceTimeout); fprintf(stdlog, "registrartable.connect.timeout = %lluus\n", registrarTable->RegistrarConnectTimeout); fprintf(stdlog, "registrartable.connect.maxtrials = %u\n", registrarTable->RegistrarConnectMaxTrials); LOG_END if(enableAutoConfig) { if(registrarAnnounceAddress == NULL) { CHECK(string2address(ASAP_DEFAULT_REGISTRAR_ANNOUNCE_ADDRESS, ®istrarTable->AnnounceAddress) == true); } else { memcpy(®istrarTable->AnnounceAddress, registrarAnnounceAddress, sizeof(registrarTable->AnnounceAddress)); } /* ====== Join announce multicast groups ======================== */ registrarTable->AnnounceSocket = ext_socket(registrarTable->AnnounceAddress.sa.sa_family, SOCK_DGRAM, IPPROTO_UDP); if(registrarTable->AnnounceSocket >= 0) { fdCallbackNew(®istrarTable->AnnounceSocketFDCallback, registrarTable->Dispatcher, registrarTable->AnnounceSocket, FDCE_Read, registrarAnnouceFDCallback, registrarTable); setReusable(registrarTable->AnnounceSocket, 1); if(bindplus(registrarTable->AnnounceSocket, ®istrarTable->AnnounceAddress, 1) == false) { LOG_ERROR fputs("Unable to bind multicast socket to address ", stdlog); fputaddress((struct sockaddr*)®istrarTable->AnnounceAddress.sa, true, stdlog); fputs("\n", stdlog); LOG_END registrarTableDelete(registrarTable); return(false); } if(!multicastGroupControl(registrarTable->AnnounceSocket, ®istrarTable->AnnounceAddress, true)) { LOG_WARNING fputs("Joining multicast group ", stdlog); fputaddress(®istrarTable->AnnounceAddress.sa, true, stdlog); fputs(" failed. Check routing (is default route set?) and firewall settings!\n", stdlog); LOG_END } } else { LOG_ERROR fputs("Creating a socket for registrar announces failed\n", stdlog); LOG_END registrarTableDelete(registrarTable); return(false); } } else { /* Autoconfig disabled */ registrarTable->AnnounceSocket = -1; memset(®istrarTable->AnnounceAddress, 0, sizeof(registrarTable->AnnounceAddress)); } /* ====== Show results ================================================ */ LOG_VERBOSE3 fputs("New RegistrarTable's configuration:\n", stdlog); fprintf(stdlog, "registrar.announce.timeout = %llu [us]\n", registrarTable->RegistrarAnnounceTimeout); fputs("registrar.announce.address = ", stdlog); if(registrarTable->AnnounceAddress.sa.sa_family != 0) { fputaddress((struct sockaddr*)®istrarTable->AnnounceAddress, true, stdlog); } else { fputs("none", stdlog); } fputs("\n", stdlog); fprintf(stdlog, "registrar.connect.maxtrials = %u\n", registrarTable->RegistrarConnectMaxTrials); fprintf(stdlog, "registrar.connect.timeout = %llu [us]\n", registrarTable->RegistrarConnectTimeout); LOG_END } return(registrarTable); } /* ###### Destructor ##################################################### */ void registrarTableDelete(struct RegistrarTable* registrarTable) { struct SimpleRedBlackTreeNode* node; if(registrarTable != NULL) { if(registrarTable->AnnounceSocket >= 0) { fdCallbackDelete(®istrarTable->AnnounceSocketFDCallback); ext_close(registrarTable->AnnounceSocket); registrarTable->AnnounceSocket = -1; } node = simpleRedBlackTreeGetFirst(®istrarTable->RegistrarAssocIDList); while(node) { CHECK(simpleRedBlackTreeRemove(®istrarTable->RegistrarAssocIDList, node) == node); free(node); node = simpleRedBlackTreeGetFirst(®istrarTable->RegistrarAssocIDList); } simpleRedBlackTreeDelete(®istrarTable->RegistrarAssocIDList); ST_CLASS(peerListManagementDelete)(®istrarTable->RegistrarList); free(registrarTable); } } /* ###### Add registrar assoc ID to list ################################# */ static void addRegistrarAssocID(struct RegistrarTable* registrarTable, int registrarHuntFD, sctp_assoc_t assocID) { struct RegistrarAssocIDNode* node = (struct RegistrarAssocIDNode*)malloc(sizeof(struct RegistrarAssocIDNode)); if(node != NULL) { simpleRedBlackTreeNodeNew(&node->Node); node->Node.Value = 1; node->AssocID = assocID; CHECK(simpleRedBlackTreeInsert(®istrarTable->RegistrarAssocIDList, &node->Node) == &node->Node); LOG_VERBOSE3 fprintf(stdlog, "Added assoc %u to registrar assoc ID list.\n" , (unsigned int)assocID); fputs("RegistrarAssocIDList: ", stdlog); simpleRedBlackTreePrint(®istrarTable->RegistrarAssocIDList, stdlog); LOG_END } else { sendabort(registrarHuntFD, assocID); } } /* ###### Remove registrar assoc ID from list ############################ */ static void removeRegistrarAssocID(struct RegistrarTable* registrarTable, int registrarHuntFD, sctp_assoc_t assocID) { struct RegistrarAssocIDNode cmpNode; struct SimpleRedBlackTreeNode* node; cmpNode.AssocID = assocID; node = simpleRedBlackTreeFind(®istrarTable->RegistrarAssocIDList, &cmpNode.Node); if(node != NULL) { CHECK(simpleRedBlackTreeRemove(®istrarTable->RegistrarAssocIDList, node) == node); free(node); LOG_VERBOSE3 fprintf(stdlog, "Removed assoc %u from registrar assoc ID list.\n" , (unsigned int)assocID); fputs("RegistrarAssocIDList: ", stdlog); simpleRedBlackTreePrint(®istrarTable->RegistrarAssocIDList, stdlog); LOG_END } else { LOG_WARNING fprintf(stderr, "Tried to remove not-existing assoc %u from registrar assoc ID list.\n", (unsigned int)assocID); LOG_END } } /* ###### Get registrar assoc ID from list ############################### */ static sctp_assoc_t selectRegistrarAssocID(struct RegistrarTable* registrarTable) { size_t elements; RedBlackTreeNodeValueType value; struct SimpleRedBlackTreeNode* node; elements = simpleRedBlackTreeGetElements(®istrarTable->RegistrarAssocIDList); if(elements > 0) { value = random32() % elements; node = simpleRedBlackTreeGetNodeByValue(®istrarTable->RegistrarAssocIDList, value); CHECK(node); return(((struct RegistrarAssocIDNode*)node)->AssocID); } return(0); } /* ###### Get registrar assoc ID from list ############################### */ static int selectRegistrar(struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, RegistrarIdentifierType* registrarIdentifier) { sctp_assoc_t assocID; struct ST_CLASS(PeerListNode)* peerListNode; union sockaddr_union* peerAddressArray; int sd; size_t n; sd = -1; *registrarIdentifier = UNDEFINED_REGISTRAR_IDENTIFIER; assocID = selectRegistrarAssocID(registrarTable); if(assocID != 0) { /* ====== Registrar selected, get some information about it ======== */ n = getpaddrsplus(registrarHuntFD, assocID, &peerAddressArray); if(n > 0) { LOG_VERBOSE2 fprintf(stdlog, "Assoc %u connected to registrar at ", (unsigned int)assocID); fputaddress((struct sockaddr*)&peerAddressArray[0], true, stdlog); fputs("\n", stdlog); LOG_END /* ====== Get registrar's entry ================================= */ struct TransportAddressBlock* registrarAddressBlock = (struct TransportAddressBlock*)malloc(transportAddressBlockGetSize(n)); if(registrarAddressBlock) { transportAddressBlockNew(registrarAddressBlock, IPPROTO_SCTP, getPort(&peerAddressArray[0].sa), 0, peerAddressArray, n, n); peerListNode = ST_CLASS(peerListManagementFindPeerListNode)( ®istrarTable->RegistrarList, 0, registrarAddressBlock); if(peerListNode) { *registrarIdentifier = peerListNode->Identifier; } free(registrarAddressBlock); } free(peerAddressArray); /* ====== Peel-off association ================================== */ sd = registrarTablePeelOffRegistrarAssocID(registrarTable, registrarHuntFD, registrarHuntMessageBuffer, assocID); } else { LOG_VERBOSE2 fprintf(stdlog, "Cannot find our peer addresses of assoc %u (already broken) -> removing it\n", (unsigned int)assocID); LOG_END removeRegistrarAssocID(registrarTable, registrarHuntFD, assocID); } } return(sd); } /* ###### Peel off registrar assoc ####################################### */ int registrarTablePeelOffRegistrarAssocID(struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, sctp_assoc_t assocID) { int sd = sctp_peeloff(registrarHuntFD, assocID); if(sd >= 0) { LOG_VERBOSE2 fprintf(stdlog, "Assoc %u peeled off from registrar hunt socket\n", (unsigned int)assocID); LOG_END } else { LOG_VERBOSE fprintf(stdlog, "Assoc %u peel-off failed: %s\n", assocID, strerror(errno)); LOG_END sendabort(registrarHuntFD, assocID); } /* In any case, the registrar association is broken -> remove it. */ removeRegistrarAssocID(registrarTable, registrarHuntFD, assocID); return(sd); } /* ###### Handle notification on registrar hunt socket ################### */ void registrarTableHandleNotificationOnRegistrarHuntSocket( struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, const union sctp_notification* notification) { union sockaddr_union* peerAddressArray; size_t n; /* ====== Association change notification ============================= */ if(notification->sn_header.sn_type == SCTP_ASSOC_CHANGE) { if(notification->sn_assoc_change.sac_state == SCTP_COMM_UP) { n = getpaddrsplus(registrarHuntFD, notification->sn_assoc_change.sac_assoc_id, &peerAddressArray); if(n > 0) { LOG_VERBOSE2 fprintf(stdlog, "Assoc %u connected to registrar at ", (unsigned int)notification->sn_assoc_change.sac_assoc_id); fputaddress((struct sockaddr*)&peerAddressArray[0], true, stdlog); fputs("\n", stdlog); LOG_END free(peerAddressArray); } /* ====== Add registrar assoc ID to list ======================== */ addRegistrarAssocID(registrarTable, registrarHuntFD, notification->sn_assoc_change.sac_assoc_id); } else if((notification->sn_assoc_change.sac_state == SCTP_COMM_LOST) || (notification->sn_assoc_change.sac_state == SCTP_SHUTDOWN_COMP) ) { LOG_VERBOSE2 fprintf(stdlog, "Assoc %u disconnected from registrar (communication lost or shutdown complete)\n", (unsigned int)notification->sn_assoc_change.sac_assoc_id); LOG_END removeRegistrarAssocID(registrarTable, registrarHuntFD, notification->sn_assoc_change.sac_assoc_id); } } else if(notification->sn_header.sn_type == SCTP_SHUTDOWN_EVENT) { LOG_VERBOSE2 fprintf(stdlog, "Assoc %u disconnected from registrar (shutdown)\n", (unsigned int)notification->sn_shutdown_event.sse_assoc_id); LOG_END removeRegistrarAssocID(registrarTable, registrarHuntFD, notification->sn_shutdown_event.sse_assoc_id); } } /* ###### Add static registrar entry ################################### */ unsigned int registrarTableAddStaticEntry( struct RegistrarTable* registrarTable, const struct TransportAddressBlock* transportAddressBlock) { struct ST_CLASS(PeerListNode)* peerListNode; unsigned int result; result = ST_CLASS(peerListManagementRegisterPeerListNode)( ®istrarTable->RegistrarList, 0, PLNF_STATIC, transportAddressBlock, getMicroTime(), &peerListNode); if(result == RSPERR_OKAY) { LOG_VERBOSE3 fputs("Added static entry to registrar table: ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, PLPO_FULL); fputs("\n", stdlog); LOG_END } else { LOG_WARNING fputs("Unable to add static entry to registrar table: ", stdlog); transportAddressBlockPrint(transportAddressBlock, stdlog); fputs("\n", stdlog); LOG_END } return(result); } /* ###### Try more registrars ########################################### */ static void tryNextBlock(struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, RegistrarIdentifierType* lastRegistrarIdentifier, struct TransportAddressBlock** lastTransportAddressBlock) { struct TransportAddressBlock* transportAddressBlock; struct ST_CLASS(PeerListNode)* peerListNode; int result; size_t i; if( (registrarTable->AnnounceAddress.sa.sa_family != 0) && (!multicastGroupControl(registrarTable->AnnounceSocket, ®istrarTable->AnnounceAddress, true)) ) { LOG_WARNING fputs("Joining multicast group ", stdlog); fputaddress(®istrarTable->AnnounceAddress.sa, true, stdlog); fputs(" failed. Check routing (is default route set?) and firewall settings!\n", stdlog); LOG_END } i = ST_CLASS(peerListManagementPurgeExpiredPeerListNodes)( ®istrarTable->RegistrarList, getMicroTime()); LOG_VERBOSE4 fprintf(stdlog, "Purged %u out-of-date peer list nodes. Peer List:\n", (unsigned int)i); ST_CLASS(peerListManagementPrint)(®istrarTable->RegistrarList, stdlog, PLPO_PEERS_INDEX|PLNPO_TRANSPORT); LOG_END for(i = 0;i < MAX_SIMULTANEOUS_REQUESTS;i++) { peerListNode = ST_CLASS(peerListManagementFindNearestNextPeerListNode)( ®istrarTable->RegistrarList, *lastRegistrarIdentifier, *lastTransportAddressBlock); if( (peerListNode == NULL) && (i == 0) ) { /* There is only one PR => get it. */ peerListNode = ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)( ®istrarTable->RegistrarList); } if(peerListNode != NULL) { *lastRegistrarIdentifier = peerListNode->Identifier; if(*lastTransportAddressBlock) { transportAddressBlockDelete(*lastTransportAddressBlock); free(*lastTransportAddressBlock); } *lastTransportAddressBlock = transportAddressBlockDuplicate(peerListNode->AddressBlock); transportAddressBlock = peerListNode->AddressBlock; while(transportAddressBlock != NULL) { if(transportAddressBlock->Protocol == IPPROTO_SCTP) { break; } transportAddressBlock = transportAddressBlock->Next; } if(transportAddressBlock != NULL) { LOG_VERBOSE1 fputs("Trying registrar at ", stdlog); transportAddressBlockPrint(transportAddressBlock, stdlog); fputs("...\n", stdlog); LOG_END result = connectplus(registrarHuntFD, transportAddressBlock->AddressArray, transportAddressBlock->Addresses); if((result < 0) && (errno != EINPROGRESS) && (errno != EISCONN)) { LOG_WARNING fputs("Connection to registrar ", stdlog); transportAddressBlockPrint(transportAddressBlock, stdlog); fputs(" failed\n", stdlog); LOG_END } else { registrarTable->OutstandingConnects++; } } } else { if(*lastTransportAddressBlock) { free(*lastTransportAddressBlock); } *lastTransportAddressBlock = NULL; *lastRegistrarIdentifier = UNDEFINED_REGISTRAR_IDENTIFIER; break; } } } /* ###### Find registrar ################################################### */ int registrarTableGetRegistrar(struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, RegistrarIdentifierType* registrarIdentifier) { const union sctp_notification* notification; RegistrarIdentifierType lastRegistrarIdentifier; struct TransportAddressBlock* lastTransportAddressBlock; struct ST_CLASS(PeerListNode)* peerListNode; sctp_assoc_t assocID; ssize_t received; unsigned long long now; unsigned long long start; unsigned long long stop; unsigned long long nextTimeout; unsigned long long lastTrialTimeStamp; struct pollfd pollFDs[2]; unsigned int trials; int result; int flags; int sd; int n; *registrarIdentifier = 0; if(registrarTable == NULL) { return(-1); } LOG_VERBOSE1 fputs("Looking for registrar...\n", stdlog); LOG_END /* ====== Is there already a connection to a registrar? =============== */ sd = selectRegistrar(registrarTable, registrarHuntFD, registrarHuntMessageBuffer, registrarIdentifier); if(sd >= 0) { return(sd); } /* ====== Do registrar hunt =========================================== */ trials = 0; lastRegistrarIdentifier = 0; lastTransportAddressBlock = NULL; start = 0; registrarTable->OutstandingConnects = 0; peerListNode = ST_CLASS(peerListManagementGetRandomPeerListNode)(®istrarTable->RegistrarList); if(peerListNode) { lastRegistrarIdentifier = peerListNode->Identifier; lastTransportAddressBlock = transportAddressBlockDuplicate(peerListNode->AddressBlock); LOG_VERBOSE3 fputs("Randomized registrar hunt start: ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, PLPO_FULL); fputs("\n", stdlog); LOG_END /* Subtract one, in order to select this node, if it is the first one! => Increased connection establishment speed. */ lastRegistrarIdentifier--; } lastTrialTimeStamp = 0; for(;;) { /* ====== Start new round ========================================== */ if((lastRegistrarIdentifier == 0) && (lastTransportAddressBlock == NULL)) { /* Start new trial, when - First time - A new registrar announce has been added to the list AND there are no outstanding connects - The current trial has been running for at least registrarTable->RegistrarConnectTimeout */ if( (start == 0) || ((registrarTable->LastAnnounceHeard >= start) && (registrarTable->OutstandingConnects == 0)) || (start + registrarTable->RegistrarConnectTimeout < getMicroTime()) ) { trials++; if(trials > registrarTable->RegistrarConnectMaxTrials) { LOG_VERBOSE fputs("Registrar hunt procedure did not find any registrar!\n", stdlog); LOG_END if(lastTransportAddressBlock) { transportAddressBlockDelete(lastTransportAddressBlock); free(lastTransportAddressBlock); } return(-1); } lastTrialTimeStamp = 0; start = getMicroTime(); LOG_VERBOSE3 fprintf(stdlog, "Trial #%u...\n", trials); LOG_END } } /* ====== Try next block of addresses ================================= */ if(lastTrialTimeStamp + registrarTable->RegistrarConnectTimeout < getMicroTime()) { /* Try next block of addresses */ tryNextBlock(registrarTable, registrarHuntFD, registrarHuntMessageBuffer, &lastRegistrarIdentifier, &lastTransportAddressBlock); lastTrialTimeStamp = getMicroTime(); } /* ====== Wait for event =========================================== */ stop = getMicroTime() + registrarTable->RegistrarConnectTimeout; do { pollFDs[0].fd = registrarHuntFD; pollFDs[0].events = POLLIN; pollFDs[0].revents = 0; if(registrarTable->AnnounceSocket >= 0) { pollFDs[1].fd = registrarTable->AnnounceSocket; pollFDs[1].events = POLLIN; pollFDs[1].revents = 0; n = 2; } else { n = 1; } now = getMicroTime(); nextTimeout = (now <= stop) ? (stop - now) : 0; #ifdef ENABLE_CSP if(gCSPReporter != NULL) { now = getMicroTime(); if(gCSPReporter->CSPReportTimer.TimeStamp >= now) { nextTimeout = min(nextTimeout, gCSPReporter->CSPReportTimer.TimeStamp - now); } else { nextTimeout = 0; } } #endif LOG_VERBOSE4 fprintf(stdlog, "poll() with timeout %d\n", (int)ceil((double)nextTimeout / 1000.0)); LOG_END result = ext_poll((struct pollfd*)&pollFDs, n, (int)ceil((double)nextTimeout / 1000.0)); #ifdef ENABLE_CSP if(gCSPReporter != NULL) { cspReporterHandleTimerDuringRegistrarSearch(gCSPReporter); } #endif LOG_VERBOSE4 fprintf(stdlog, "poll() result=%d\n", result); LOG_END } while( (result == 0) && (getMicroTime() < stop)); if((result < 0) && (errno == EINTR)) { LOG_VERBOSE3 fputs("Interrupted select() call -> returning immediately!\n", stdlog); LOG_END if(lastTransportAddressBlock) { transportAddressBlockDelete(lastTransportAddressBlock); free(lastTransportAddressBlock); } return(-1); } /* ====== Handle events ============================================ */ if(result != 0) { if((registrarTable->AnnounceSocket > 0) && (pollFDs[1].revents & POLLIN)) { handleRegistrarAnnounceCallback(registrarTable, registrarTable->AnnounceSocket); } if(pollFDs[0].revents & POLLIN) { flags = MSG_PEEK; received = messageBufferRead(registrarHuntMessageBuffer, registrarHuntFD, &flags, NULL, 0, NULL, &assocID, NULL, 0); if(received > 0) { if(flags & MSG_NOTIFICATION) { notification = (const union sctp_notification*)registrarHuntMessageBuffer->Buffer; /* ====== Notification received ======================== */ flags = 0; if( (messageBufferRead(registrarHuntMessageBuffer, registrarHuntFD, &flags, NULL, 0, NULL, NULL, NULL, 0) > 0) && (flags & MSG_NOTIFICATION) ) { registrarTableHandleNotificationOnRegistrarHuntSocket(registrarTable, registrarHuntFD, registrarHuntMessageBuffer, notification); if((notification->sn_assoc_change.sac_state == SCTP_COMM_LOST) || (notification->sn_assoc_change.sac_state == SCTP_CANT_STR_ASSOC) || (notification->sn_assoc_change.sac_state == SCTP_SHUTDOWN_COMP)) { if(registrarTable->OutstandingConnects > 0) { registrarTable->OutstandingConnects--; } LOG_VERBOSE3 fprintf(stdlog, "Failed to establish registrar connection, outstanding=%u\n", (unsigned int)registrarTable->OutstandingConnects); LOG_END } } else { LOG_ERROR fputs("Peeked notification but failed to read it\n", stdlog); LOG_END } /* ====== Is there a connection to a registrar? ======== */ /* This function will randomly chose a registrar from the registrar list. */ sd = selectRegistrar(registrarTable, registrarHuntFD, registrarHuntMessageBuffer, registrarIdentifier); if(sd >= 0) { if(lastTransportAddressBlock) { transportAddressBlockDelete(lastTransportAddressBlock); free(lastTransportAddressBlock); } return(sd); } } else { LOG_VERBOSE fprintf(stdlog, "Peeked data on assoc %u, but no association is listed\n", (unsigned int)assocID); LOG_END sd = registrarTablePeelOffRegistrarAssocID( registrarTable, registrarHuntFD, registrarHuntMessageBuffer, assocID); if(sd >= 0) { LOG_ACTION fprintf(stdlog, "Taking assoc %u as new registrar => socket %d\n", (unsigned int)assocID, sd); LOG_END return(sd); } } } } } } } rsplib-3.0.1/rsplib/registrartable.h0000664000175000017500000001346011777021056014421 00000000000000/* $Id: registrartable.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef REGISTRARTABLE_H #define REGISTRARTABLE_H #include "tdtypes.h" #include "tagitem.h" #include "sockaddrunion.h" #include "dispatcher.h" #include "timer.h" #include "messagebuffer.h" #include "poolhandlespacemanagement.h" #include "rserpoolmessage.h" #include #ifdef __cplusplus extern "C" { #endif struct RegistrarTable { struct Dispatcher* Dispatcher; struct ST_CLASS(PeerListManagement) RegistrarList; struct SimpleRedBlackTree RegistrarAssocIDList; int AnnounceSocket; union sockaddr_union AnnounceAddress; struct FDCallback AnnounceSocketFDCallback; unsigned long long LastAnnounceHeard; size_t OutstandingConnects; unsigned long long RegistrarAnnounceTimeout; unsigned long long RegistrarConnectTimeout; unsigned int RegistrarConnectMaxTrials; }; /** * Constructor. * * @param dispatcher Dispatcher. * @param enableAutoConfig true to use multicast announces; false otherwise. * @param registrarAnnounceAddress Multicast address for PR announces. * @param tags TagItem array. */ struct RegistrarTable* registrarTableNew(struct Dispatcher* dispatcher, const bool enableAutoConfig, const union sockaddr_union* registrarAnnounceAddress, struct TagItem* tags); /** * Destructor. * * @param registrarTable RegistrarTable. */ void registrarTableDelete(struct RegistrarTable* RegistrarTable); /** * Add static registrar entry. * * @param registrarTable RegistrarTable. * @param transportAddressBlock TransportAddressBlock. * @return Error code. */ unsigned int registrarTableAddStaticEntry( struct RegistrarTable* registrarTable, const struct TransportAddressBlock* transportAddressBlock); /** * Handle notification of registrar hunt socket. * * @param registrarTable RegistrarTable. * @param registrarHuntFD Socket descriptor for registrar hunt socket. * @param registrarHuntMessageBuffer MessageBuffer for registrar hunt socket. * @param notification Notification to be handled. */ void registrarTableHandleNotificationOnRegistrarHuntSocket(struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, const union sctp_notification* notification); /** * Peel off registrar assoc ID from registrar hunt socket. * * @param registrarTable RegistrarTable. * @param registrarHuntFD Socket descriptor for registrar hunt socket. * @param registrarHuntMessageBuffer MessageBuffer for registrar hunt socket. * @param assocID Association ID to peel off. * @return Socket descriptor for peeled-off registrar association. */ int registrarTablePeelOffRegistrarAssocID(struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, sctp_assoc_t assocID); /** * Do registrar hunt. * * @param registrarTable RegistrarTable. * @param registrarHuntFD Socket descriptor for registrar hunt socket. * @param registrarHuntMessageBuffer MessageBuffer for registrar hunt socket. * @param registrarIdentifier Reference to store new PR's identifier to. * @return Socket descriptor for peeled-off registrar association. */ int registrarTableGetRegistrar(struct RegistrarTable* registrarTable, int registrarHuntFD, struct MessageBuffer* registrarHuntMessageBuffer, RegistrarIdentifierType* registrarIdentifier); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/asapinterthreadmessage.c0000664000175000017500000000527311777021056016130 00000000000000/* $Id: asapinterthreadmessage.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "asapinterthreadmessage.h" #include "timeutilities.h" /* ###### Constructor #################################################### */ struct ASAPInterThreadMessage* asapInterThreadMessageNew( struct RSerPoolMessage* request, const bool responseExpected) { struct ASAPInterThreadMessage* aitm; aitm = (struct ASAPInterThreadMessage*)malloc(sizeof(struct ASAPInterThreadMessage)); if(aitm == NULL) { return(NULL); } aitm->Request = request; aitm->Response = NULL; aitm->ResponseExpected = responseExpected; /* Response from registrar? */ aitm->Error = RSPERR_OKAY; aitm->TransmissionTrials = 0; aitm->ResponseTimeoutTimeStamp = 0; aitm->ResponseTimeoutNeedsScheduling = false; aitm->CreationTimeStamp = getMicroTime(); aitm->TransmissionTimeStamp = 0; return(aitm); } /* ###### Destructor ##################################################### */ void asapInterThreadMessageDelete(struct ASAPInterThreadMessage* aitm) { if(aitm) { rserpoolMessageDelete(aitm->Request); aitm->Request = NULL; if(aitm->Response) { rserpoolMessageDelete(aitm->Response); aitm->Response = NULL; } free(aitm); } } rsplib-3.0.1/rsplib/asapinterthreadmessage.h0000664000175000017500000000447411777021056016137 00000000000000/* $Id: asapinterthreadmessage.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef ASAPINTERTHREADMESSAGE_H #define ASAPINTERTHREADMESSAGE_H #include "tdtypes.h" #include "interthreadmessageport.h" #include "rserpoolmessage.h" #ifdef __cplusplus extern "C" { #endif struct ASAPInterThreadMessage { struct InterThreadMessageNode Node; struct RSerPoolMessage* Request; struct RSerPoolMessage* Response; size_t TransmissionTrials; unsigned int Error; unsigned long long CreationTimeStamp; unsigned long long TransmissionTimeStamp; unsigned long long ResponseTimeoutTimeStamp; bool ResponseExpected; bool ResponseTimeoutNeedsScheduling; }; struct ASAPInterThreadMessage* asapInterThreadMessageNew( struct RSerPoolMessage* request, const bool responseExpected); void asapInterThreadMessageDelete(struct ASAPInterThreadMessage* aitm); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolhandlespacemanagement-basics.c0000664000175000017500000000505011777021056020036 00000000000000/* $Id: poolhandlespacemanagement-basics.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "poolhandlespacemanagement-basics.h" #include "stringutilities.h" #include "randomizer.h" const PoolElementSeqNumberType SeqNumberStart = (~0) ^ 0xf; /* ###### Get textual description of error code ########################## */ const char* poolHandlespaceManagementGetErrorDescription(const unsigned int errorCode) { return(rserpoolErrorGetDescription(errorCode)); } /* ###### Get pool element identifier #################################### */ PoolElementIdentifierType getPoolElementIdentifier() { PoolElementIdentifierType poolElementIdentifier = 1 + (random32() % 0xfffffffe); return(poolElementIdentifier); } /* ###### Compute a hash from PH and PE ID ############################### */ unsigned int computePHPEHash(const struct PoolHandle* poolHandle, const PoolElementIdentifierType identifier) { uint32_t hash = 0; uint32_t rest; const uint32_t* ph = (const uint32_t*)&poolHandle->Handle; ssize_t i = poolHandle->Size; while(i >= (ssize_t)sizeof(uint32_t)) { hash = hash ^ *ph; ph++; i -= sizeof(uint32_t); } if(i > 0) { rest = 0; memcpy(&rest, ph, i); hash = hash ^ rest; } hash = hash ^ (uint32_t)identifier; return(hash); } rsplib-3.0.1/rsplib/poolhandlespacemanagement-basics.h0000664000175000017500000000773211777021056020054 00000000000000/* $Id: poolhandlespacemanagement-basics.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef POOLHANDLESPACEMANAGEMENT_BASICS_H #define POOLHANDLESPACEMANAGEMENT_BASICS_H #include #include #include #include #include #include #include #include "rserpoolerror.h" #include "poolhandle.h" #ifdef __cplusplus extern "C" { #endif #define MAX_PE_TRANSPORTADDRESSES 64 typedef uint32_t RegistrarIdentifierType; typedef uint32_t PoolElementIdentifierType; typedef uint32_t PoolElementSeqNumberType; #define UNDEFINED_POOL_ELEMENT_IDENTIFIER 0 #define UNDEFINED_REGISTRAR_IDENTIFIER 0 #define PENPO_POLICYINFO (1 << 0) /* constants set by PE */ #define PENPO_POLICYSTATE (1 << 1) /* current policy state */ #define PENPO_HOME_PR (1 << 2) /* Home PR identifier */ #define PENPO_REGLIFE (1 << 3) /* Registration lifetime */ #define PENPO_UR_REPORTS (1 << 4) /* Unreachability reports */ #define PENPO_LASTUPDATE (1 << 5) /* Last update time stamp */ #define PENPO_USERTRANSPORT (1 << 6) /* User transport */ #define PENPO_REGISTRATORTRANSPORT (1 << 7) /* Registrator transport */ #define PENPO_CONNECTION (1 << 8) /* Connection (sd/assoc) */ #define PENPO_CHECKSUM (1 << 9) /* PE entry checksum */ #define PNPO_INDEX (1 << 16) /* PEs of pool by index */ #define PNPO_SELECTION (1 << 17) /* PEs of pool by selection */ #define PNNPO_POOLS_INDEX (1 << 24) #define PNNPO_POOLS_SELECTION (1 << 25) #define PNNPO_POOLS_OWNERSHIP (1 << 26) #define PNNPO_POOLS_CONNECTION (1 << 27) #define PNNPO_POOLS_TIMER (1 << 28) #define PENPO_FULL (~0) #define PENPO_ONLY_ID 0 #define PENPO_ONLY_POLICY (PENPO_POLICYINFO|PENPO_POLICYSTATE|PENPO_UR_REPORTS|PNNPO_POOLS_SELECTION) #define PLNPO_TRANSPORT (1 << 0) #define PLPO_PEERS_INDEX (1 << 10) #define PLPO_PEERS_TIMER (1 << 11) #define PLPO_FULL (~0) #define PLPO_ONLY_INDEX (PLPO_PEERS_INDEX) enum PoolNodeUpdateAction { PNUA_Create = 0x01, PNUA_Delete = 0x02, PNUA_Update = 0x03 }; const char* poolHandlespaceManagementGetErrorDescription(const unsigned int errorCode); PoolElementIdentifierType getPoolElementIdentifier(); unsigned int computePHPEHash(const struct PoolHandle* poolHandle, const PoolElementIdentifierType identifier); /* Starting value for seqence numbers. Set it to (~0) ^ 0xf to test sequence number warp. */ extern const PoolElementSeqNumberType SeqNumberStart; #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/sockaddrunion.h0000664000175000017500000000353411777021056014253 00000000000000/* $Id: sockaddrunion.h 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SOCKADDRUNION_H #define SOCKADDRUNION_H #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #ifdef HAVE_TEST #define AF_TEST AF_MAX struct sockaddr_testaddr { struct sockaddr _sockaddr; unsigned int ta_addr; uint16_t ta_port; }; #define ta_family _sockaddr.sa_family #endif union sockaddr_union { struct sockaddr sa; struct sockaddr_in in; struct sockaddr_in6 in6; #ifdef HAVE_TEST struct sockaddr_testaddr ta; #endif }; #endif rsplib-3.0.1/rsplib/fork.c0000664000175000017500000001653211777021056012346 00000000000000/* $Id: fork.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "timeutilities.h" #include "randomizer.h" #include #include #include #include #include #include #define MAX_PROCESSES 64 #define MAX_ARGS 128 #define MIN_RUNTIME 500000 #define INTERRUPT_TIMEOUT 5000000 enum ForkProcessStatus { FPS_Waiting = 0, FPS_Running = 1, FPS_Interrupted = 2 }; struct ForkProcess { unsigned long long Start; unsigned long long End; unsigned long long Kill; pid_t PID; enum ForkProcessStatus Status; }; #define DIST_UNIFORM 0 #define DIST_NEGEXP 1 /* ###### Get new random interval ######################################## */ unsigned long long getRandomInterval(const unsigned int distribution, const unsigned long long timeout) { unsigned long long newTimeout = 0; switch(distribution) { case DIST_UNIFORM: newTimeout = random64() % timeout; break; case DIST_NEGEXP: newTimeout = (unsigned long long)rint(randomExpDouble((double)timeout)); break; } if(newTimeout < MIN_RUNTIME) { newTimeout = MIN_RUNTIME; } return(newTimeout); } /* ###### Check whether process has terminated ########################### */ bool isExisting(pid_t pid) { const pid_t result = waitpid(pid, NULL, WNOHANG); return(result == 0); } /* ###### Main program ################################################### */ int main(int argc, char** argv) { struct ForkProcess process[MAX_PROCESSES]; char* argcopy[MAX_ARGS]; pid_t mainProgramPID; unsigned long long now; unsigned long long timeout; unsigned int distribution = DIST_UNIFORM; int termSignal = SIGINT; int progarg; size_t count; size_t i, j; if(argc < 3) { printf("Usage: %s [Count] [{exp|uniform}:Timeout(Microseconds)] {-int|-kill} [Program] {Parameter} ...\n",argv[0]); exit(1); } count = atol(argv[1]); if(count > MAX_PROCESSES) { count = MAX_PROCESSES; } if(sscanf(argv[2], "uniform:%llu", &timeout) == 1) { distribution = DIST_UNIFORM; } else if(sscanf(argv[2], "exp:%llu", &timeout) == 1) { distribution = DIST_NEGEXP; } else { fputs("ERROR: Invalid timeout specified!\n", stderr); exit(1); } for(progarg = 3;progarg < argc;progarg++) { if(argv[progarg][0] != '-') { break; } else if(!(strcmp(argv[progarg], "-int"))) { termSignal = SIGINT; } else if(!(strcmp(argv[progarg], "-kill"))) { termSignal = SIGKILL; } } puts("Fork - Version 1.0"); puts("==================\n"); printf("Term Signal = %s\n", (termSignal == SIGINT) ? "SIGINT" : "SIGKILL"); printf("Timeout = %llu [us]\n", timeout); printf("Timeout Dist. = "); switch(distribution) { case DIST_UNIFORM: puts("uniform"); break; case DIST_NEGEXP: puts("negative-exponential"); break; } printf("Program = %s\n", argv[progarg]); printf("Arguments = "); for(i = progarg + 1;i < (size_t)min(MAX_ARGS, argc);i++) { printf("%s ", argv[i]); } puts("\n"); now = getMicroTime(); mainProgramPID = getpid(); for(i = 0;i < count;i++) { process[i].Start = now; process[i].End = process[i].Start + getRandomInterval(distribution,timeout); process[i].Kill = process[i].End + INTERRUPT_TIMEOUT; process[i].PID = 0; process[i].Status = FPS_Waiting; } for(;;) { for(i = 0;i < count;i++) { now = getMicroTime(); switch(process[i].Status) { case FPS_Waiting: if(process[i].Start <= now) { process[i].Status = FPS_Running; process[i].PID = fork(); if(process[i].PID == 0) { for(j = progarg;j < (size_t)min(MAX_ARGS, argc);j++) { argcopy[j - progarg] = argv[j]; } argcopy[j - progarg] = NULL; printf("Executing"); j = 0; while(argcopy[j] != NULL) { printf(" %s",argcopy[j]); j++; } puts("..."); execvp(argv[progarg],argcopy); perror("Unable to start program -> exiting! Reason"); kill(mainProgramPID, SIGINT); exit(1); } else { printf("Started process #%d.\n", (int)process[i].PID); } } break; case FPS_Running: if(isExisting(process[i].PID)) { if(process[i].End <= now) { printf("Interrupting process #%d.\n", (int)process[i].PID); kill(process[i].PID, termSignal); process[i].Status = FPS_Interrupted; } } else { printf("Process #%d is no longer existing.\n", (int)process[i].PID); process[i].Status = FPS_Interrupted; } break; case FPS_Interrupted: if(isExisting(process[i].PID)) { if(process[i].Kill <= now) { printf("Killing process #%d.\n", (int)process[i].PID); kill(process[i].PID, SIGKILL); } } else { printf("Process #%d has terminated.\n", (int)process[i].PID); process[i].Start = now; process[i].End = now + getRandomInterval(distribution,timeout); process[i].Kill = process[i].End + INTERRUPT_TIMEOUT; process[i].PID = 0; process[i].Status = FPS_Waiting; } break; } } usleep(100000); } } rsplib-3.0.1/rsplib/Makefile.am0000664000175000017500000004270312065062260013265 00000000000000# $Id: Makefile.am 2700 2012-07-20 16:14:20Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de SUBDIRS = fgpconfig wireshark # NOTE: The order of the libraries is important! lib_LTLIBRARIES = \ libtdtimeutilities.la \ libtdrandomizer.la \ libtdstringutilities.la \ libtdthreadsafety.la \ libtdloglevel.la \ libtdstorage.la \ libtdnetutilities.la \ librsphsmgt.la \ librspmessaging.la \ libtdtagitem.la \ librspdispatcher.la \ librspcsp.la \ librsplib.la \ libtdbreakdetector.la \ libtdcppthread.la \ libcpprspserver.la # ###### tdtimeutilities library ############################################ # libtdtimeutilitiesincludedir = $(prefix)/include/tdutilities # libtdtimeutilitiesinclude_HEADERS = timeutilities.h libtdtimeutilities_la_SOURCES = timeutilities.c timeutilities.h libtdtimeutilities_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdrandomizer library ############################################ # libtdrandomizerincludedir = $(prefix)/include/tdutilities # libtdrandomizerinclude_HEADERS = randomizer.h libtdrandomizer_la_SOURCES = randomizer.c randomizer.h libtdrandomizer_la_LIBADD = libtdtimeutilities.la -lm libtdrandomizer_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdstringutilities library ########################################## # libtdstringutilitiesincludedir = $(prefix)/include/tdutilities # libtdstringutilitiesinclude_HEADERS = stringutilities.h libtdstringutilities_la_SOURCES = stringutilities.c stringutilities.h libtdstringutilities_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdloglevel library ################################################# # libtdloglevelincludedir = $(prefix)/include/tdutilities # libtdloglevelinclude_HEADERS = loglevel.h libtdloglevel_la_SOURCES = loglevel.c loglevel.h libtdloglevel_la_LIBADD = libtdtimeutilities.la libtdthreadsafety.la libtdloglevel_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdtagitem library ################################################## # libtdtagitemincludedir = $(prefix)/include/tdutilities # libtdtagiteminclude_HEADERS = tagitem.h libtdtagitem_la_SOURCES = tagitem.c tagitem.h libtdtagitem_la_LIBADD = libtdtimeutilities.la libtdloglevel.la libtdtagitem_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdbreakdetector library ############################################ # libtdbreakdetectorincludedir = $(prefix)/include/tdutilities # libtdbreakdetectorinclude_HEADERS = breakdetector.h libtdbreakdetector_la_SOURCES = breakdetector.c breakdetector.h libtdbreakdetector_la_LIBADD = libtdtimeutilities.la libtdbreakdetector_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdthreadsafety library ############################################# # libtdthreadsafetyincludedir = $(prefix)/include/tdutilities # libtdthreadsafetyinclude_HEADERS = threadsafety.h threadsignal.h libtdthreadsafety_la_SOURCES = \ threadsafety.c \ threadsafety.h \ threadsignal.c \ threadsignal.h libtdthreadsafety_la_LIBADD = $(thread_LIBS) libtdthreadsafety_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdcppthread library ############################################# # libtdcppthreadincludedir = $(prefix)/include/tdutilities # libtdcppthreadinclude_HEADERS = cppthread.h threadsignal.h libtdcppthread_la_SOURCES = \ mutex.cc \ mutex.h \ thread.cc \ thread.h libtdcppthread_la_LIBADD = libtdthreadsafety.la libtdcppthread_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) $(thread_LIBS) -lstdc++ # ###### tdstorage library ################################################## # libtdstorageincludedir = $(prefix)/include/tdutilities # libtdstorageinclude_HEADERS = doublelinkedringlist.h leaflinkedredblacktree.h simpleredblacktree.h libtdstorage_la_SOURCES = \ doublelinkedringlist.h \ doublelinkedringlist.c \ leaflinkedredblacktree.c \ leaflinkedredblacktree.h \ redblacktree.h \ redblacktree_impl.h \ simpleredblacktree.h \ simpleredblacktree.c libtdstorage_la_LIBADD = libtdstorage_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdnetutilities library ############################################# # libtdnetutilitiesincludedir = $(prefix)/include/tdutilities # libtdnetutilitiesinclude_HEADERS = ext_socket.h messagebuffer.h netutilities.h netdouble.h sockaddrunion.h libtdnetutilities_la_SOURCES = \ ext_socket.h \ messagebuffer.h \ messagebuffer.c \ netutilities.c \ netutilities.h \ netdouble.c \ netdouble.h \ sockaddrunion.h libtdnetutilities_la_LIBADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdloglevel.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) libtdnetutilities_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm # ###### rsphsmgt library ################################################### # librsphsmgtincludedir = $(prefix)/include/rserpool # librsphsmgtinclude_HEADERS = librsphsmgt_la_SOURCES = \ rserpoolerror.c \ rserpoolerror.h \ poolhandlespacechecksum.c \ poolhandlespacechecksum.h \ peerlistmanagement-template.h \ peerlistmanagement-template_impl.h \ peerlistnode-template.h \ peerlistnode-template_impl.h \ peerlist-template.h \ peerlist-template_impl.h \ poolelementnode-template.h \ poolelementnode-template_impl.h \ poolhandle.h \ poolhandle.c \ poolhandlespacemanagement-basics.c \ poolhandlespacemanagement-basics.h \ poolhandlespacemanagement.c \ poolhandlespacemanagement.h \ poolhandlespacemanagement-template.h \ poolhandlespacemanagement-template_impl.h \ poolhandlespacenode-template.h \ poolhandlespacenode-template_impl.h \ poolnode-template.h \ poolnode-template_impl.h \ poolpolicysettings.c \ poolpolicysettings.h \ poolpolicy-template.h \ poolpolicy-template_impl.h \ pooluserlist-template.h \ pooluserlist-template_impl.h \ poolusernode-template.h \ poolusernode-template_impl.h \ timestamphashtable.c \ timestamphashtable.h \ transportaddressblock.c \ transportaddressblock.h librsphsmgt_la_LIBADD = libtdstorage.la libtdrandomizer.la libtdstringutilities.la libtdnetutilities.la -lm librsphsmgt_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### rspmessaging library ############################################### # librspmessagingincludedir = $(prefix)/include/tdutilities # librspmessaginginclude_HEADERS = rserpoolmessage.h rserpoolmessagecreator.h rserpoolmessageparser.h librspmessaging_la_SOURCES = \ rserpoolmessage.c \ rserpoolmessage.h \ rserpoolmessagecreator.c \ rserpoolmessagecreator.h \ rserpoolmessageparser.c \ rserpoolmessageparser.h librspmessaging_la_LIBADD = libtdnetutilities.la libtdtimeutilities.la librsphsmgt.la libtdloglevel.la librspmessaging_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### rspdispatcher library ############################################# # librspdispatcherincludedir = $(prefix)/include/tdutilities # librspdispatcherinclude_HEADERS = ext_socket.h netutilities.h netdouble.h librspdispatcher_la_SOURCES = \ dispatcher.c \ dispatcher.h \ fdcallback.c \ fdcallback.h \ timer.c \ timer.h librspdispatcher_la_LIBADD = libtdtimeutilities.la libtdloglevel.la libtdnetutilities.la libtdstorage.la librspdispatcher_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm # ###### rspcsp library ##################################################### # librspcspincludedir = $(prefix)/include/tdutilities # librspcspinclude_HEADERS = ext_socket.h netutilities.h netdouble.h librspcsp_la_SOURCES = \ componentstatuspackets.h \ componentstatusreporter.h \ componentstatusreporter.c librspcsp_la_LIBADD = libtdtimeutilities.la libtdstringutilities.la libtdloglevel.la librspdispatcher.la libtdnetutilities.la librspcsp_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm # ###### rsplib library ##################################################### librsplibincludedir = $(prefix)/include/rserpool librsplibinclude_HEADERS = rserpool.h rserpool-policytypes.h rserpool-csp.h rserpool-internals.h tagitem.h librsplib_la_SOURCES = \ asapinstance.c \ asapinstance.h \ asapinterthreadmessage.c \ asapinterthreadmessage.h \ debug.h \ identifierbitmap.c \ identifierbitmap.h \ interthreadmessageport.c \ interthreadmessageport.h \ notificationqueue.c \ notificationqueue.h \ registrartable.c \ registrartable.h \ rserpool.h \ rserpool-internals.h \ rserpool-policytypes.h \ rserpoolsocket.c \ rserpoolsocket.h \ rspbasicmode.c \ rspenhancedmode.c \ rsputilities.c \ session.h \ sessionstorage.c \ sessionstorage.h \ sessioncontrol.c \ sessioncontrol.h \ tdtypes.h librsplib_la_LIBADD = libtdrandomizer.la libtdtimeutilities.la libtdstringutilities.la libtdnetutilities.la libtdthreadsafety.la libtdloglevel.la libtdtagitem.la libtdstorage.la librsphsmgt.la librspdispatcher.la librspmessaging.la librspcsp.la librsplib_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm $(socketapi_LIBS) $(sctplib_LIBS) $(thread_LIBS) # ###### cpprspserver library ############################################### libcpprspserverincludedir = $(prefix)/include/rserpool libcpprspserverinclude_HEADERS = mutex.h thread.h cpprspserver.h udplikeserver.h tcplikeserver.h libcpprspserver_la_SOURCES = \ cpprspserver.h \ tcplikeserver.cc \ tcplikeserver.h \ udplikeserver.cc \ udplikeserver.h libcpprspserver_la_LIBADD = libtdcppthread.la librsplib.la libtdthreadsafety.la libtdnetutilities.la libtdtimeutilities.la libtdloglevel.la libtdbreakdetector.la libcpprspserver_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lstdc++ # ###### Main programs ###################################################### if BUILD_QT_PROGRAMS bin_PROGRAMS = fractalpooluser rspregistrar rspserver rspterminal hsdump pingpongclient scriptingclient calcappclient cspmonitor EXTRA_DIST = add-dummy-interface else bin_PROGRAMS = rspregistrar rspserver rspterminal hsdump pingpongclient scriptingclient calcappclient cspmonitor EXTRA_DIST = fractalpooluser.cc fractalpooluser.h fractalpooluser_de_DE.ts fractalpooluser_nb_NO.ts add-dummy-interface endif if ENABLE_REGISTRAR_STATISTICS rspregistrar_SOURCES = rspregistrar.c rspregistrar.h rspregistrar-global.c rspregistrar-core.c rspregistrar-asap.c rspregistrar-enrp.c rspregistrar-takeover.c rspregistrar-security.c rspregistrar-misc.c takeoverprocess.c takeoverprocess.h rspregistrar_LDADD = libtdbreakdetector.la librspdispatcher.la librspcsp.la librsphsmgt.la librspmessaging.la libtdstorage.la libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la -lm $(bz2_LIBS) $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) else rspregistrar_SOURCES = rspregistrar.c rspregistrar.h rspregistrar-global.c rspregistrar-core.c rspregistrar-asap.c rspregistrar-enrp.c rspregistrar-takeover.c rspregistrar-security.c rspregistrar-misc.c takeoverprocess.c takeoverprocess.h rspregistrar_LDADD = libtdbreakdetector.la librspdispatcher.la librspcsp.la librsphsmgt.la librspmessaging.la libtdstorage.la libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) endif rspserver_SOURCES = rspserver.cc standardservices.cc standardservices.h fractalgeneratorservice.cc fractalgeneratorservice.h calcappservice.cc calcappservice.h pingpongpackets.h fractalgeneratorpackets.h calcapppackets.h scriptingservice.h scriptingservice.cc scriptingpackets.h environmentcache.cc environmentcache.h sha1.c sha1.h rspserver_LDADD = libtdcppthread.la libtdthreadsafety.la libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la libcpprspserver.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ rspterminal_SOURCES = rspterminal.c rspterminal_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) hsdump_SOURCES = hsdump.c hsdump_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsphsmgt.la librspmessaging.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) pingpongclient_SOURCES = pingpongclient.c pingpongclient_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) scriptingclient_SOURCES = scriptingclient.c sha1.c sha1.h scriptingclient_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) calcappclient_SOURCES = calcappclient.cc calcapppackets.h statistics.cc statistics.h calcappclient_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ cspmonitor_SOURCES = cspmonitor.c cspmonitor_LDADD = librspcsp.la libtdbreakdetector.la libtdtimeutilities.la libtdstringutilities.la libtdnetutilities.la libtdstorage.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ # ###### FractalPoolUser program ############################################ if BUILD_QT_PROGRAMS FRACTALPOOLUSERMOCHEADER = fractalpooluser.h FRACTALPOOLUSERMOCEDFILES = $(FRACTALPOOLUSERMOCHEADER:%.h=%_moc.cc) CLEANFILES = $(FRACTALPOOLUSERMOCEDFILES) %_moc.cc: %.h $(MOC) -o $@ $< # To compile (i.e. generate object files), first create MOC file. # This MOC file is included by fractalpooluser.cc, so no compile step is necessary. $(fractalpooluser_OBJECTS): $(FRACTALPOOLUSERMOCEDFILES) fractalpooluserdir = $(datadir)/fractalpooluser dist_fractalpooluser_DATA = fractalpooluser_de_DE.qm fractalpooluser_nb_NO.qm fractalpooluser_CXXFLAGS = $(QT_CXXFLAGS) "-DDEFAULT_FPU_CONFIGDIR=\"$(datadir)/fgpconfig\"" fractalpooluser_SOURCES = fractalpooluser.cc fractalpooluser.h fractalpooluser_LDADD = $(QT_LDADD) libtdrandomizer.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ endif # ###### Test programs ###################################################### if BUILD_TEST_PROGRAMS noinst_PROGRAMS = hrestest testregistrator fork gettimestamp exectime execalarm rootshell attacker else noinst_PROGRAMS = endif if BUILD_TEST_PROGRAMS hrestest_SOURCES = hrestest.c hrestest_LDADD = libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) testregistrator_SOURCES = testregistrator.c testregistrator_LDADD = libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) fork_SOURCES = fork.c fork_LDADD = libtdtimeutilities.la libtdrandomizer.la -lm exectime_SOURCES = exectime.cc exectime_LDADD = libtdcppthread.la libtdtimeutilities.la -lstdc++ execalarm_SOURCES = execalarm.cc execalarm_LDADD = libtdtimeutilities.la -lstdc++ gettimestamp_SOURCES = gettimestamp.c gettimestamp_LDADD = libtdtimeutilities.la rootshell_SOURCES = rootshell.c rootshell_LDADD = attacker_SOURCES = attacker.cc attacker_LDADD = libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ #t1_SOURCES = t1.c #t1_LDADD = librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ #t2_SOURCES = t2.cc environmentcache.cc environmentcache.h sha1.c sha1.h #t2_LDADD = librsplib.la libcpprspserver.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ endif # ###### Scripts ############################################################ dist_bin_SCRIPTS = scriptingcontrol scriptingserviceexample server terminal registrar # ###### Manual pages ####################################################### dist_man_MANS = rspregistrar.1 rspserver.1 rspterminal.1 cspmonitor.1 calcappclient.1 pingpongclient.1 hsdump.1 scriptingcontrol.1 scriptingserviceexample.1 scriptingclient.1 fractalpooluser.1 server.1 terminal.1 registrar.1 rsplib-3.0.1/rsplib/Makefile.in0000664000175000017500000025075412065103163013303 00000000000000# Makefile.in generated by automake 1.11.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. # 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@ # $Id: Makefile.am 2700 2012-07-20 16:14:20Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de VPATH = @srcdir@ 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@ @BUILD_QT_PROGRAMS_FALSE@bin_PROGRAMS = rspregistrar$(EXEEXT) \ @BUILD_QT_PROGRAMS_FALSE@ rspserver$(EXEEXT) \ @BUILD_QT_PROGRAMS_FALSE@ rspterminal$(EXEEXT) hsdump$(EXEEXT) \ @BUILD_QT_PROGRAMS_FALSE@ pingpongclient$(EXEEXT) \ @BUILD_QT_PROGRAMS_FALSE@ scriptingclient$(EXEEXT) \ @BUILD_QT_PROGRAMS_FALSE@ calcappclient$(EXEEXT) \ @BUILD_QT_PROGRAMS_FALSE@ cspmonitor$(EXEEXT) @BUILD_QT_PROGRAMS_TRUE@bin_PROGRAMS = fractalpooluser$(EXEEXT) \ @BUILD_QT_PROGRAMS_TRUE@ rspregistrar$(EXEEXT) \ @BUILD_QT_PROGRAMS_TRUE@ rspserver$(EXEEXT) \ @BUILD_QT_PROGRAMS_TRUE@ rspterminal$(EXEEXT) hsdump$(EXEEXT) \ @BUILD_QT_PROGRAMS_TRUE@ pingpongclient$(EXEEXT) \ @BUILD_QT_PROGRAMS_TRUE@ scriptingclient$(EXEEXT) \ @BUILD_QT_PROGRAMS_TRUE@ calcappclient$(EXEEXT) \ @BUILD_QT_PROGRAMS_TRUE@ cspmonitor$(EXEEXT) @BUILD_TEST_PROGRAMS_TRUE@noinst_PROGRAMS = hrestest$(EXEEXT) \ @BUILD_TEST_PROGRAMS_TRUE@ testregistrator$(EXEEXT) \ @BUILD_TEST_PROGRAMS_TRUE@ fork$(EXEEXT) gettimestamp$(EXEEXT) \ @BUILD_TEST_PROGRAMS_TRUE@ exectime$(EXEEXT) execalarm$(EXEEXT) \ @BUILD_TEST_PROGRAMS_TRUE@ rootshell$(EXEEXT) attacker$(EXEEXT) subdir = rsplib DIST_COMMON = $(am__dist_fractalpooluser_DATA_DIST) \ $(dist_bin_SCRIPTS) $(dist_man_MANS) \ $(libcpprspserverinclude_HEADERS) $(librsplibinclude_HEADERS) \ $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = 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__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \ "$(DESTDIR)$(fractalpooluserdir)" \ "$(DESTDIR)$(libcpprspserverincludedir)" \ "$(DESTDIR)$(librsplibincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) libcpprspserver_la_DEPENDENCIES = libtdcppthread.la librsplib.la \ libtdthreadsafety.la libtdnetutilities.la \ libtdtimeutilities.la libtdloglevel.la libtdbreakdetector.la am_libcpprspserver_la_OBJECTS = tcplikeserver.lo udplikeserver.lo libcpprspserver_la_OBJECTS = $(am_libcpprspserver_la_OBJECTS) libcpprspserver_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libcpprspserver_la_LDFLAGS) $(LDFLAGS) -o $@ librspcsp_la_DEPENDENCIES = libtdtimeutilities.la \ libtdstringutilities.la libtdloglevel.la librspdispatcher.la \ libtdnetutilities.la am_librspcsp_la_OBJECTS = componentstatusreporter.lo librspcsp_la_OBJECTS = $(am_librspcsp_la_OBJECTS) librspcsp_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(librspcsp_la_LDFLAGS) $(LDFLAGS) -o $@ librspdispatcher_la_DEPENDENCIES = libtdtimeutilities.la \ libtdloglevel.la libtdnetutilities.la libtdstorage.la am_librspdispatcher_la_OBJECTS = dispatcher.lo fdcallback.lo timer.lo librspdispatcher_la_OBJECTS = $(am_librspdispatcher_la_OBJECTS) librspdispatcher_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(librspdispatcher_la_LDFLAGS) $(LDFLAGS) -o $@ librsphsmgt_la_DEPENDENCIES = libtdstorage.la libtdrandomizer.la \ libtdstringutilities.la libtdnetutilities.la am_librsphsmgt_la_OBJECTS = rserpoolerror.lo \ poolhandlespacechecksum.lo poolhandle.lo \ poolhandlespacemanagement-basics.lo \ poolhandlespacemanagement.lo poolpolicysettings.lo \ timestamphashtable.lo transportaddressblock.lo librsphsmgt_la_OBJECTS = $(am_librsphsmgt_la_OBJECTS) librsphsmgt_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(librsphsmgt_la_LDFLAGS) $(LDFLAGS) -o $@ librsplib_la_DEPENDENCIES = libtdrandomizer.la libtdtimeutilities.la \ libtdstringutilities.la libtdnetutilities.la \ libtdthreadsafety.la libtdloglevel.la libtdtagitem.la \ libtdstorage.la librsphsmgt.la librspdispatcher.la \ librspmessaging.la librspcsp.la am_librsplib_la_OBJECTS = asapinstance.lo asapinterthreadmessage.lo \ identifierbitmap.lo interthreadmessageport.lo \ notificationqueue.lo registrartable.lo rserpoolsocket.lo \ rspbasicmode.lo rspenhancedmode.lo rsputilities.lo \ sessionstorage.lo sessioncontrol.lo librsplib_la_OBJECTS = $(am_librsplib_la_OBJECTS) librsplib_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(librsplib_la_LDFLAGS) $(LDFLAGS) -o $@ librspmessaging_la_DEPENDENCIES = libtdnetutilities.la \ libtdtimeutilities.la librsphsmgt.la libtdloglevel.la am_librspmessaging_la_OBJECTS = rserpoolmessage.lo \ rserpoolmessagecreator.lo rserpoolmessageparser.lo librspmessaging_la_OBJECTS = $(am_librspmessaging_la_OBJECTS) librspmessaging_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(librspmessaging_la_LDFLAGS) $(LDFLAGS) -o $@ libtdbreakdetector_la_DEPENDENCIES = libtdtimeutilities.la am_libtdbreakdetector_la_OBJECTS = breakdetector.lo libtdbreakdetector_la_OBJECTS = $(am_libtdbreakdetector_la_OBJECTS) libtdbreakdetector_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdbreakdetector_la_LDFLAGS) $(LDFLAGS) -o $@ libtdcppthread_la_DEPENDENCIES = libtdthreadsafety.la am_libtdcppthread_la_OBJECTS = mutex.lo thread.lo libtdcppthread_la_OBJECTS = $(am_libtdcppthread_la_OBJECTS) libtdcppthread_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libtdcppthread_la_LDFLAGS) $(LDFLAGS) -o $@ libtdloglevel_la_DEPENDENCIES = libtdtimeutilities.la \ libtdthreadsafety.la am_libtdloglevel_la_OBJECTS = loglevel.lo libtdloglevel_la_OBJECTS = $(am_libtdloglevel_la_OBJECTS) libtdloglevel_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdloglevel_la_LDFLAGS) $(LDFLAGS) -o $@ am__DEPENDENCIES_1 = libtdnetutilities_la_DEPENDENCIES = libtdrandomizer.la \ libtdstringutilities.la libtdtimeutilities.la libtdloglevel.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_libtdnetutilities_la_OBJECTS = messagebuffer.lo netutilities.lo \ netdouble.lo libtdnetutilities_la_OBJECTS = $(am_libtdnetutilities_la_OBJECTS) libtdnetutilities_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdnetutilities_la_LDFLAGS) $(LDFLAGS) -o $@ libtdrandomizer_la_DEPENDENCIES = libtdtimeutilities.la am_libtdrandomizer_la_OBJECTS = randomizer.lo libtdrandomizer_la_OBJECTS = $(am_libtdrandomizer_la_OBJECTS) libtdrandomizer_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdrandomizer_la_LDFLAGS) $(LDFLAGS) -o $@ libtdstorage_la_DEPENDENCIES = am_libtdstorage_la_OBJECTS = doublelinkedringlist.lo \ leaflinkedredblacktree.lo simpleredblacktree.lo libtdstorage_la_OBJECTS = $(am_libtdstorage_la_OBJECTS) libtdstorage_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdstorage_la_LDFLAGS) $(LDFLAGS) -o $@ libtdstringutilities_la_LIBADD = am_libtdstringutilities_la_OBJECTS = stringutilities.lo libtdstringutilities_la_OBJECTS = \ $(am_libtdstringutilities_la_OBJECTS) libtdstringutilities_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdstringutilities_la_LDFLAGS) $(LDFLAGS) -o $@ libtdtagitem_la_DEPENDENCIES = libtdtimeutilities.la libtdloglevel.la am_libtdtagitem_la_OBJECTS = tagitem.lo libtdtagitem_la_OBJECTS = $(am_libtdtagitem_la_OBJECTS) libtdtagitem_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdtagitem_la_LDFLAGS) $(LDFLAGS) -o $@ libtdthreadsafety_la_DEPENDENCIES = $(am__DEPENDENCIES_1) am_libtdthreadsafety_la_OBJECTS = threadsafety.lo threadsignal.lo libtdthreadsafety_la_OBJECTS = $(am_libtdthreadsafety_la_OBJECTS) libtdthreadsafety_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdthreadsafety_la_LDFLAGS) $(LDFLAGS) -o $@ libtdtimeutilities_la_LIBADD = am_libtdtimeutilities_la_OBJECTS = timeutilities.lo libtdtimeutilities_la_OBJECTS = $(am_libtdtimeutilities_la_OBJECTS) libtdtimeutilities_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libtdtimeutilities_la_LDFLAGS) $(LDFLAGS) -o $@ PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) am__attacker_SOURCES_DIST = attacker.cc @BUILD_TEST_PROGRAMS_TRUE@am_attacker_OBJECTS = attacker.$(OBJEXT) attacker_OBJECTS = $(am_attacker_OBJECTS) @BUILD_TEST_PROGRAMS_TRUE@attacker_DEPENDENCIES = \ @BUILD_TEST_PROGRAMS_TRUE@ libtdbreakdetector.la librsplib.la \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) am_calcappclient_OBJECTS = calcappclient.$(OBJEXT) \ statistics.$(OBJEXT) calcappclient_OBJECTS = $(am_calcappclient_OBJECTS) calcappclient_DEPENDENCIES = libtdrandomizer.la \ libtdstringutilities.la libtdtimeutilities.la \ libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la \ librsplib.la $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_cspmonitor_OBJECTS = cspmonitor.$(OBJEXT) cspmonitor_OBJECTS = $(am_cspmonitor_OBJECTS) cspmonitor_DEPENDENCIES = librspcsp.la libtdbreakdetector.la \ libtdtimeutilities.la libtdstringutilities.la \ libtdnetutilities.la libtdstorage.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am__execalarm_SOURCES_DIST = execalarm.cc @BUILD_TEST_PROGRAMS_TRUE@am_execalarm_OBJECTS = execalarm.$(OBJEXT) execalarm_OBJECTS = $(am_execalarm_OBJECTS) @BUILD_TEST_PROGRAMS_TRUE@execalarm_DEPENDENCIES = \ @BUILD_TEST_PROGRAMS_TRUE@ libtdtimeutilities.la am__exectime_SOURCES_DIST = exectime.cc @BUILD_TEST_PROGRAMS_TRUE@am_exectime_OBJECTS = exectime.$(OBJEXT) exectime_OBJECTS = $(am_exectime_OBJECTS) @BUILD_TEST_PROGRAMS_TRUE@exectime_DEPENDENCIES = libtdcppthread.la \ @BUILD_TEST_PROGRAMS_TRUE@ libtdtimeutilities.la am__fork_SOURCES_DIST = fork.c @BUILD_TEST_PROGRAMS_TRUE@am_fork_OBJECTS = fork.$(OBJEXT) fork_OBJECTS = $(am_fork_OBJECTS) @BUILD_TEST_PROGRAMS_TRUE@fork_DEPENDENCIES = libtdtimeutilities.la \ @BUILD_TEST_PROGRAMS_TRUE@ libtdrandomizer.la am__fractalpooluser_SOURCES_DIST = fractalpooluser.cc \ fractalpooluser.h @BUILD_QT_PROGRAMS_TRUE@am_fractalpooluser_OBJECTS = fractalpooluser-fractalpooluser.$(OBJEXT) fractalpooluser_OBJECTS = $(am_fractalpooluser_OBJECTS) @BUILD_QT_PROGRAMS_TRUE@fractalpooluser_DEPENDENCIES = \ @BUILD_QT_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_QT_PROGRAMS_TRUE@ libtdrandomizer.la \ @BUILD_QT_PROGRAMS_TRUE@ libtdtimeutilities.la \ @BUILD_QT_PROGRAMS_TRUE@ libtdnetutilities.la libtdloglevel.la \ @BUILD_QT_PROGRAMS_TRUE@ librsplib.la $(am__DEPENDENCIES_1) \ @BUILD_QT_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_QT_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) fractalpooluser_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ $(fractalpooluser_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ am__gettimestamp_SOURCES_DIST = gettimestamp.c @BUILD_TEST_PROGRAMS_TRUE@am_gettimestamp_OBJECTS = \ @BUILD_TEST_PROGRAMS_TRUE@ gettimestamp.$(OBJEXT) gettimestamp_OBJECTS = $(am_gettimestamp_OBJECTS) @BUILD_TEST_PROGRAMS_TRUE@gettimestamp_DEPENDENCIES = \ @BUILD_TEST_PROGRAMS_TRUE@ libtdtimeutilities.la am__hrestest_SOURCES_DIST = hrestest.c @BUILD_TEST_PROGRAMS_TRUE@am_hrestest_OBJECTS = hrestest.$(OBJEXT) hrestest_OBJECTS = $(am_hrestest_OBJECTS) @BUILD_TEST_PROGRAMS_TRUE@hrestest_DEPENDENCIES = \ @BUILD_TEST_PROGRAMS_TRUE@ libtdbreakdetector.la librsplib.la \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) am_hsdump_OBJECTS = hsdump.$(OBJEXT) hsdump_OBJECTS = $(am_hsdump_OBJECTS) hsdump_DEPENDENCIES = libtdrandomizer.la libtdstringutilities.la \ libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la \ libtdbreakdetector.la librsphsmgt.la librspmessaging.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_pingpongclient_OBJECTS = pingpongclient.$(OBJEXT) pingpongclient_OBJECTS = $(am_pingpongclient_OBJECTS) pingpongclient_DEPENDENCIES = libtdrandomizer.la \ libtdstringutilities.la libtdtimeutilities.la \ libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la \ librsplib.la $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am__rootshell_SOURCES_DIST = rootshell.c @BUILD_TEST_PROGRAMS_TRUE@am_rootshell_OBJECTS = rootshell.$(OBJEXT) rootshell_OBJECTS = $(am_rootshell_OBJECTS) rootshell_DEPENDENCIES = am__rspregistrar_SOURCES_DIST = rspregistrar.c rspregistrar.h \ rspregistrar-global.c rspregistrar-core.c rspregistrar-asap.c \ rspregistrar-enrp.c rspregistrar-takeover.c \ rspregistrar-security.c rspregistrar-misc.c takeoverprocess.c \ takeoverprocess.h @ENABLE_REGISTRAR_STATISTICS_FALSE@am_rspregistrar_OBJECTS = \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar-global.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar-core.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar-asap.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar-enrp.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar-takeover.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar-security.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ rspregistrar-misc.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ takeoverprocess.$(OBJEXT) @ENABLE_REGISTRAR_STATISTICS_TRUE@am_rspregistrar_OBJECTS = \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar-global.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar-core.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar-asap.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar-enrp.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar-takeover.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar-security.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ rspregistrar-misc.$(OBJEXT) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ takeoverprocess.$(OBJEXT) rspregistrar_OBJECTS = $(am_rspregistrar_OBJECTS) @ENABLE_REGISTRAR_STATISTICS_FALSE@rspregistrar_DEPENDENCIES = \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ libtdbreakdetector.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ librspdispatcher.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ librspcsp.la librsphsmgt.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ librspmessaging.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ libtdstorage.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ libtdrandomizer.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ libtdstringutilities.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ libtdtimeutilities.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ libtdnetutilities.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ libtdloglevel.la \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ $(am__DEPENDENCIES_1) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ $(am__DEPENDENCIES_1) \ @ENABLE_REGISTRAR_STATISTICS_FALSE@ $(am__DEPENDENCIES_1) @ENABLE_REGISTRAR_STATISTICS_TRUE@rspregistrar_DEPENDENCIES = \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ libtdbreakdetector.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ librspdispatcher.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ librspcsp.la librsphsmgt.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ librspmessaging.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ libtdstorage.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ libtdrandomizer.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ libtdstringutilities.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ libtdtimeutilities.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ libtdnetutilities.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ libtdloglevel.la \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ $(am__DEPENDENCIES_1) \ @ENABLE_REGISTRAR_STATISTICS_TRUE@ $(am__DEPENDENCIES_1) am_rspserver_OBJECTS = rspserver.$(OBJEXT) standardservices.$(OBJEXT) \ fractalgeneratorservice.$(OBJEXT) calcappservice.$(OBJEXT) \ scriptingservice.$(OBJEXT) environmentcache.$(OBJEXT) \ sha1.$(OBJEXT) rspserver_OBJECTS = $(am_rspserver_OBJECTS) rspserver_DEPENDENCIES = libtdcppthread.la libtdthreadsafety.la \ libtdrandomizer.la libtdstringutilities.la \ libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la \ libtdbreakdetector.la libcpprspserver.la librsplib.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_rspterminal_OBJECTS = rspterminal.$(OBJEXT) rspterminal_OBJECTS = $(am_rspterminal_OBJECTS) rspterminal_DEPENDENCIES = libtdrandomizer.la libtdstringutilities.la \ libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la \ libtdbreakdetector.la librsplib.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am_scriptingclient_OBJECTS = scriptingclient.$(OBJEXT) sha1.$(OBJEXT) scriptingclient_OBJECTS = $(am_scriptingclient_OBJECTS) scriptingclient_DEPENDENCIES = libtdrandomizer.la \ libtdstringutilities.la libtdtimeutilities.la \ libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la \ librsplib.la $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am__testregistrator_SOURCES_DIST = testregistrator.c @BUILD_TEST_PROGRAMS_TRUE@am_testregistrator_OBJECTS = \ @BUILD_TEST_PROGRAMS_TRUE@ testregistrator.$(OBJEXT) testregistrator_OBJECTS = $(am_testregistrator_OBJECTS) @BUILD_TEST_PROGRAMS_TRUE@testregistrator_DEPENDENCIES = \ @BUILD_TEST_PROGRAMS_TRUE@ libtdbreakdetector.la librsplib.la \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) \ @BUILD_TEST_PROGRAMS_TRUE@ $(am__DEPENDENCIES_1) SCRIPTS = $(dist_bin_SCRIPTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles 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) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libcpprspserver_la_SOURCES) $(librspcsp_la_SOURCES) \ $(librspdispatcher_la_SOURCES) $(librsphsmgt_la_SOURCES) \ $(librsplib_la_SOURCES) $(librspmessaging_la_SOURCES) \ $(libtdbreakdetector_la_SOURCES) $(libtdcppthread_la_SOURCES) \ $(libtdloglevel_la_SOURCES) $(libtdnetutilities_la_SOURCES) \ $(libtdrandomizer_la_SOURCES) $(libtdstorage_la_SOURCES) \ $(libtdstringutilities_la_SOURCES) $(libtdtagitem_la_SOURCES) \ $(libtdthreadsafety_la_SOURCES) \ $(libtdtimeutilities_la_SOURCES) $(attacker_SOURCES) \ $(calcappclient_SOURCES) $(cspmonitor_SOURCES) \ $(execalarm_SOURCES) $(exectime_SOURCES) $(fork_SOURCES) \ $(fractalpooluser_SOURCES) $(gettimestamp_SOURCES) \ $(hrestest_SOURCES) $(hsdump_SOURCES) \ $(pingpongclient_SOURCES) $(rootshell_SOURCES) \ $(rspregistrar_SOURCES) $(rspserver_SOURCES) \ $(rspterminal_SOURCES) $(scriptingclient_SOURCES) \ $(testregistrator_SOURCES) DIST_SOURCES = $(libcpprspserver_la_SOURCES) $(librspcsp_la_SOURCES) \ $(librspdispatcher_la_SOURCES) $(librsphsmgt_la_SOURCES) \ $(librsplib_la_SOURCES) $(librspmessaging_la_SOURCES) \ $(libtdbreakdetector_la_SOURCES) $(libtdcppthread_la_SOURCES) \ $(libtdloglevel_la_SOURCES) $(libtdnetutilities_la_SOURCES) \ $(libtdrandomizer_la_SOURCES) $(libtdstorage_la_SOURCES) \ $(libtdstringutilities_la_SOURCES) $(libtdtagitem_la_SOURCES) \ $(libtdthreadsafety_la_SOURCES) \ $(libtdtimeutilities_la_SOURCES) $(am__attacker_SOURCES_DIST) \ $(calcappclient_SOURCES) $(cspmonitor_SOURCES) \ $(am__execalarm_SOURCES_DIST) $(am__exectime_SOURCES_DIST) \ $(am__fork_SOURCES_DIST) $(am__fractalpooluser_SOURCES_DIST) \ $(am__gettimestamp_SOURCES_DIST) $(am__hrestest_SOURCES_DIST) \ $(hsdump_SOURCES) $(pingpongclient_SOURCES) \ $(am__rootshell_SOURCES_DIST) $(am__rspregistrar_SOURCES_DIST) \ $(rspserver_SOURCES) $(rspterminal_SOURCES) \ $(scriptingclient_SOURCES) $(am__testregistrator_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive man1dir = $(mandir)/man1 NROFF = nroff MANS = $(dist_man_MANS) am__dist_fractalpooluser_DATA_DIST = fractalpooluser_de_DE.qm \ fractalpooluser_nb_NO.qm DATA = $(dist_fractalpooluser_DATA) HEADERS = $(libcpprspserverinclude_HEADERS) \ $(librsplibinclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COLORGCC = @COLORGCC@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDADD = @QT_LDADD@ RANLIB = @RANLIB@ RSPLIB_AGE = @RSPLIB_AGE@ RSPLIB_CURRENT = @RSPLIB_CURRENT@ RSPLIB_RELEASE = @RSPLIB_RELEASE@ RSPLIB_REVISION = @RSPLIB_REVISION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ bz2_LIBS = @bz2_LIBS@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ glib_LIBS = @glib_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sctplib_LIBS = @sctplib_LIBS@ sharedstatedir = @sharedstatedir@ socketapi_LIBS = @socketapi_LIBS@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ thread_LIBS = @thread_LIBS@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = fgpconfig wireshark # NOTE: The order of the libraries is important! lib_LTLIBRARIES = \ libtdtimeutilities.la \ libtdrandomizer.la \ libtdstringutilities.la \ libtdthreadsafety.la \ libtdloglevel.la \ libtdstorage.la \ libtdnetutilities.la \ librsphsmgt.la \ librspmessaging.la \ libtdtagitem.la \ librspdispatcher.la \ librspcsp.la \ librsplib.la \ libtdbreakdetector.la \ libtdcppthread.la \ libcpprspserver.la # ###### tdtimeutilities library ############################################ # libtdtimeutilitiesincludedir = $(prefix)/include/tdutilities # libtdtimeutilitiesinclude_HEADERS = timeutilities.h libtdtimeutilities_la_SOURCES = timeutilities.c timeutilities.h libtdtimeutilities_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdrandomizer library ############################################ # libtdrandomizerincludedir = $(prefix)/include/tdutilities # libtdrandomizerinclude_HEADERS = randomizer.h libtdrandomizer_la_SOURCES = randomizer.c randomizer.h libtdrandomizer_la_LIBADD = libtdtimeutilities.la -lm libtdrandomizer_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdstringutilities library ########################################## # libtdstringutilitiesincludedir = $(prefix)/include/tdutilities # libtdstringutilitiesinclude_HEADERS = stringutilities.h libtdstringutilities_la_SOURCES = stringutilities.c stringutilities.h libtdstringutilities_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdloglevel library ################################################# # libtdloglevelincludedir = $(prefix)/include/tdutilities # libtdloglevelinclude_HEADERS = loglevel.h libtdloglevel_la_SOURCES = loglevel.c loglevel.h libtdloglevel_la_LIBADD = libtdtimeutilities.la libtdthreadsafety.la libtdloglevel_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdtagitem library ################################################## # libtdtagitemincludedir = $(prefix)/include/tdutilities # libtdtagiteminclude_HEADERS = tagitem.h libtdtagitem_la_SOURCES = tagitem.c tagitem.h libtdtagitem_la_LIBADD = libtdtimeutilities.la libtdloglevel.la libtdtagitem_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdbreakdetector library ############################################ # libtdbreakdetectorincludedir = $(prefix)/include/tdutilities # libtdbreakdetectorinclude_HEADERS = breakdetector.h libtdbreakdetector_la_SOURCES = breakdetector.c breakdetector.h libtdbreakdetector_la_LIBADD = libtdtimeutilities.la libtdbreakdetector_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdthreadsafety library ############################################# # libtdthreadsafetyincludedir = $(prefix)/include/tdutilities # libtdthreadsafetyinclude_HEADERS = threadsafety.h threadsignal.h libtdthreadsafety_la_SOURCES = \ threadsafety.c \ threadsafety.h \ threadsignal.c \ threadsignal.h libtdthreadsafety_la_LIBADD = $(thread_LIBS) libtdthreadsafety_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdcppthread library ############################################# # libtdcppthreadincludedir = $(prefix)/include/tdutilities # libtdcppthreadinclude_HEADERS = cppthread.h threadsignal.h libtdcppthread_la_SOURCES = \ mutex.cc \ mutex.h \ thread.cc \ thread.h libtdcppthread_la_LIBADD = libtdthreadsafety.la libtdcppthread_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) $(thread_LIBS) -lstdc++ # ###### tdstorage library ################################################## # libtdstorageincludedir = $(prefix)/include/tdutilities # libtdstorageinclude_HEADERS = doublelinkedringlist.h leaflinkedredblacktree.h simpleredblacktree.h libtdstorage_la_SOURCES = \ doublelinkedringlist.h \ doublelinkedringlist.c \ leaflinkedredblacktree.c \ leaflinkedredblacktree.h \ redblacktree.h \ redblacktree_impl.h \ simpleredblacktree.h \ simpleredblacktree.c libtdstorage_la_LIBADD = libtdstorage_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### tdnetutilities library ############################################# # libtdnetutilitiesincludedir = $(prefix)/include/tdutilities # libtdnetutilitiesinclude_HEADERS = ext_socket.h messagebuffer.h netutilities.h netdouble.h sockaddrunion.h libtdnetutilities_la_SOURCES = \ ext_socket.h \ messagebuffer.h \ messagebuffer.c \ netutilities.c \ netutilities.h \ netdouble.c \ netdouble.h \ sockaddrunion.h libtdnetutilities_la_LIBADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdloglevel.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) libtdnetutilities_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm # ###### rsphsmgt library ################################################### # librsphsmgtincludedir = $(prefix)/include/rserpool # librsphsmgtinclude_HEADERS = librsphsmgt_la_SOURCES = \ rserpoolerror.c \ rserpoolerror.h \ poolhandlespacechecksum.c \ poolhandlespacechecksum.h \ peerlistmanagement-template.h \ peerlistmanagement-template_impl.h \ peerlistnode-template.h \ peerlistnode-template_impl.h \ peerlist-template.h \ peerlist-template_impl.h \ poolelementnode-template.h \ poolelementnode-template_impl.h \ poolhandle.h \ poolhandle.c \ poolhandlespacemanagement-basics.c \ poolhandlespacemanagement-basics.h \ poolhandlespacemanagement.c \ poolhandlespacemanagement.h \ poolhandlespacemanagement-template.h \ poolhandlespacemanagement-template_impl.h \ poolhandlespacenode-template.h \ poolhandlespacenode-template_impl.h \ poolnode-template.h \ poolnode-template_impl.h \ poolpolicysettings.c \ poolpolicysettings.h \ poolpolicy-template.h \ poolpolicy-template_impl.h \ pooluserlist-template.h \ pooluserlist-template_impl.h \ poolusernode-template.h \ poolusernode-template_impl.h \ timestamphashtable.c \ timestamphashtable.h \ transportaddressblock.c \ transportaddressblock.h librsphsmgt_la_LIBADD = libtdstorage.la libtdrandomizer.la libtdstringutilities.la libtdnetutilities.la -lm librsphsmgt_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### rspmessaging library ############################################### # librspmessagingincludedir = $(prefix)/include/tdutilities # librspmessaginginclude_HEADERS = rserpoolmessage.h rserpoolmessagecreator.h rserpoolmessageparser.h librspmessaging_la_SOURCES = \ rserpoolmessage.c \ rserpoolmessage.h \ rserpoolmessagecreator.c \ rserpoolmessagecreator.h \ rserpoolmessageparser.c \ rserpoolmessageparser.h librspmessaging_la_LIBADD = libtdnetutilities.la libtdtimeutilities.la librsphsmgt.la libtdloglevel.la librspmessaging_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) # ###### rspdispatcher library ############################################# # librspdispatcherincludedir = $(prefix)/include/tdutilities # librspdispatcherinclude_HEADERS = ext_socket.h netutilities.h netdouble.h librspdispatcher_la_SOURCES = \ dispatcher.c \ dispatcher.h \ fdcallback.c \ fdcallback.h \ timer.c \ timer.h librspdispatcher_la_LIBADD = libtdtimeutilities.la libtdloglevel.la libtdnetutilities.la libtdstorage.la librspdispatcher_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm # ###### rspcsp library ##################################################### # librspcspincludedir = $(prefix)/include/tdutilities # librspcspinclude_HEADERS = ext_socket.h netutilities.h netdouble.h librspcsp_la_SOURCES = \ componentstatuspackets.h \ componentstatusreporter.h \ componentstatusreporter.c librspcsp_la_LIBADD = libtdtimeutilities.la libtdstringutilities.la libtdloglevel.la librspdispatcher.la libtdnetutilities.la librspcsp_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm # ###### rsplib library ##################################################### librsplibincludedir = $(prefix)/include/rserpool librsplibinclude_HEADERS = rserpool.h rserpool-policytypes.h rserpool-csp.h rserpool-internals.h tagitem.h librsplib_la_SOURCES = \ asapinstance.c \ asapinstance.h \ asapinterthreadmessage.c \ asapinterthreadmessage.h \ debug.h \ identifierbitmap.c \ identifierbitmap.h \ interthreadmessageport.c \ interthreadmessageport.h \ notificationqueue.c \ notificationqueue.h \ registrartable.c \ registrartable.h \ rserpool.h \ rserpool-internals.h \ rserpool-policytypes.h \ rserpoolsocket.c \ rserpoolsocket.h \ rspbasicmode.c \ rspenhancedmode.c \ rsputilities.c \ session.h \ sessionstorage.c \ sessionstorage.h \ sessioncontrol.c \ sessioncontrol.h \ tdtypes.h librsplib_la_LIBADD = libtdrandomizer.la libtdtimeutilities.la libtdstringutilities.la libtdnetutilities.la libtdthreadsafety.la libtdloglevel.la libtdtagitem.la libtdstorage.la librsphsmgt.la librspdispatcher.la librspmessaging.la librspcsp.la librsplib_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lm $(socketapi_LIBS) $(sctplib_LIBS) $(thread_LIBS) # ###### cpprspserver library ############################################### libcpprspserverincludedir = $(prefix)/include/rserpool libcpprspserverinclude_HEADERS = mutex.h thread.h cpprspserver.h udplikeserver.h tcplikeserver.h libcpprspserver_la_SOURCES = \ cpprspserver.h \ tcplikeserver.cc \ tcplikeserver.h \ udplikeserver.cc \ udplikeserver.h libcpprspserver_la_LIBADD = libtdcppthread.la librsplib.la libtdthreadsafety.la libtdnetutilities.la libtdtimeutilities.la libtdloglevel.la libtdbreakdetector.la libcpprspserver_la_LDFLAGS = \ -version-info $(RSPLIB_CURRENT):$(RSPLIB_REVISION):$(RSPLIB_AGE) -lstdc++ @BUILD_QT_PROGRAMS_FALSE@EXTRA_DIST = fractalpooluser.cc fractalpooluser.h fractalpooluser_de_DE.ts fractalpooluser_nb_NO.ts add-dummy-interface @BUILD_QT_PROGRAMS_TRUE@EXTRA_DIST = add-dummy-interface @ENABLE_REGISTRAR_STATISTICS_FALSE@rspregistrar_SOURCES = rspregistrar.c rspregistrar.h rspregistrar-global.c rspregistrar-core.c rspregistrar-asap.c rspregistrar-enrp.c rspregistrar-takeover.c rspregistrar-security.c rspregistrar-misc.c takeoverprocess.c takeoverprocess.h @ENABLE_REGISTRAR_STATISTICS_TRUE@rspregistrar_SOURCES = rspregistrar.c rspregistrar.h rspregistrar-global.c rspregistrar-core.c rspregistrar-asap.c rspregistrar-enrp.c rspregistrar-takeover.c rspregistrar-security.c rspregistrar-misc.c takeoverprocess.c takeoverprocess.h @ENABLE_REGISTRAR_STATISTICS_FALSE@rspregistrar_LDADD = libtdbreakdetector.la librspdispatcher.la librspcsp.la librsphsmgt.la librspmessaging.la libtdstorage.la libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) @ENABLE_REGISTRAR_STATISTICS_TRUE@rspregistrar_LDADD = libtdbreakdetector.la librspdispatcher.la librspcsp.la librsphsmgt.la librspmessaging.la libtdstorage.la libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la -lm $(bz2_LIBS) $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) rspserver_SOURCES = rspserver.cc standardservices.cc standardservices.h fractalgeneratorservice.cc fractalgeneratorservice.h calcappservice.cc calcappservice.h pingpongpackets.h fractalgeneratorpackets.h calcapppackets.h scriptingservice.h scriptingservice.cc scriptingpackets.h environmentcache.cc environmentcache.h sha1.c sha1.h rspserver_LDADD = libtdcppthread.la libtdthreadsafety.la libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la libcpprspserver.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ rspterminal_SOURCES = rspterminal.c rspterminal_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) hsdump_SOURCES = hsdump.c hsdump_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsphsmgt.la librspmessaging.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) pingpongclient_SOURCES = pingpongclient.c pingpongclient_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) scriptingclient_SOURCES = scriptingclient.c sha1.c sha1.h scriptingclient_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) calcappclient_SOURCES = calcappclient.cc calcapppackets.h statistics.cc statistics.h calcappclient_LDADD = libtdrandomizer.la libtdstringutilities.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la libtdbreakdetector.la librsplib.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ cspmonitor_SOURCES = cspmonitor.c cspmonitor_LDADD = librspcsp.la libtdbreakdetector.la libtdtimeutilities.la libtdstringutilities.la libtdnetutilities.la libtdstorage.la -lm $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ # ###### FractalPoolUser program ############################################ @BUILD_QT_PROGRAMS_TRUE@FRACTALPOOLUSERMOCHEADER = fractalpooluser.h @BUILD_QT_PROGRAMS_TRUE@FRACTALPOOLUSERMOCEDFILES = $(FRACTALPOOLUSERMOCHEADER:%.h=%_moc.cc) @BUILD_QT_PROGRAMS_TRUE@CLEANFILES = $(FRACTALPOOLUSERMOCEDFILES) @BUILD_QT_PROGRAMS_TRUE@fractalpooluserdir = $(datadir)/fractalpooluser @BUILD_QT_PROGRAMS_TRUE@dist_fractalpooluser_DATA = fractalpooluser_de_DE.qm fractalpooluser_nb_NO.qm @BUILD_QT_PROGRAMS_TRUE@fractalpooluser_CXXFLAGS = $(QT_CXXFLAGS) "-DDEFAULT_FPU_CONFIGDIR=\"$(datadir)/fgpconfig\"" @BUILD_QT_PROGRAMS_TRUE@fractalpooluser_SOURCES = fractalpooluser.cc fractalpooluser.h @BUILD_QT_PROGRAMS_TRUE@fractalpooluser_LDADD = $(QT_LDADD) libtdrandomizer.la libtdtimeutilities.la libtdnetutilities.la libtdloglevel.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ @BUILD_TEST_PROGRAMS_TRUE@hrestest_SOURCES = hrestest.c @BUILD_TEST_PROGRAMS_TRUE@hrestest_LDADD = libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) @BUILD_TEST_PROGRAMS_TRUE@testregistrator_SOURCES = testregistrator.c @BUILD_TEST_PROGRAMS_TRUE@testregistrator_LDADD = libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) @BUILD_TEST_PROGRAMS_TRUE@fork_SOURCES = fork.c @BUILD_TEST_PROGRAMS_TRUE@fork_LDADD = libtdtimeutilities.la libtdrandomizer.la -lm @BUILD_TEST_PROGRAMS_TRUE@exectime_SOURCES = exectime.cc @BUILD_TEST_PROGRAMS_TRUE@exectime_LDADD = libtdcppthread.la libtdtimeutilities.la -lstdc++ @BUILD_TEST_PROGRAMS_TRUE@execalarm_SOURCES = execalarm.cc @BUILD_TEST_PROGRAMS_TRUE@execalarm_LDADD = libtdtimeutilities.la -lstdc++ @BUILD_TEST_PROGRAMS_TRUE@gettimestamp_SOURCES = gettimestamp.c @BUILD_TEST_PROGRAMS_TRUE@gettimestamp_LDADD = libtdtimeutilities.la @BUILD_TEST_PROGRAMS_TRUE@rootshell_SOURCES = rootshell.c @BUILD_TEST_PROGRAMS_TRUE@rootshell_LDADD = @BUILD_TEST_PROGRAMS_TRUE@attacker_SOURCES = attacker.cc @BUILD_TEST_PROGRAMS_TRUE@attacker_LDADD = libtdbreakdetector.la librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ #t1_SOURCES = t1.c #t1_LDADD = librsplib.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ #t2_SOURCES = t2.cc environmentcache.cc environmentcache.h sha1.c sha1.h #t2_LDADD = librsplib.la libcpprspserver.la $(socketapi_LIBS) $(sctplib_LIBS) $(glib_LIBS) -lstdc++ # ###### Scripts ############################################################ dist_bin_SCRIPTS = scriptingcontrol scriptingserviceexample server terminal registrar # ###### Manual pages ####################################################### dist_man_MANS = rspregistrar.1 rspserver.1 rspterminal.1 cspmonitor.1 calcappclient.1 pingpongclient.1 hsdump.1 scriptingcontrol.1 scriptingserviceexample.1 scriptingclient.1 fractalpooluser.1 server.1 terminal.1 registrar.1 all: all-recursive .SUFFIXES: .SUFFIXES: .c .cc .lo .o .obj $(srcdir)/Makefile.in: $(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) --gnu rsplib/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu rsplib/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);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libcpprspserver.la: $(libcpprspserver_la_OBJECTS) $(libcpprspserver_la_DEPENDENCIES) $(EXTRA_libcpprspserver_la_DEPENDENCIES) $(libcpprspserver_la_LINK) -rpath $(libdir) $(libcpprspserver_la_OBJECTS) $(libcpprspserver_la_LIBADD) $(LIBS) librspcsp.la: $(librspcsp_la_OBJECTS) $(librspcsp_la_DEPENDENCIES) $(EXTRA_librspcsp_la_DEPENDENCIES) $(librspcsp_la_LINK) -rpath $(libdir) $(librspcsp_la_OBJECTS) $(librspcsp_la_LIBADD) $(LIBS) librspdispatcher.la: $(librspdispatcher_la_OBJECTS) $(librspdispatcher_la_DEPENDENCIES) $(EXTRA_librspdispatcher_la_DEPENDENCIES) $(librspdispatcher_la_LINK) -rpath $(libdir) $(librspdispatcher_la_OBJECTS) $(librspdispatcher_la_LIBADD) $(LIBS) librsphsmgt.la: $(librsphsmgt_la_OBJECTS) $(librsphsmgt_la_DEPENDENCIES) $(EXTRA_librsphsmgt_la_DEPENDENCIES) $(librsphsmgt_la_LINK) -rpath $(libdir) $(librsphsmgt_la_OBJECTS) $(librsphsmgt_la_LIBADD) $(LIBS) librsplib.la: $(librsplib_la_OBJECTS) $(librsplib_la_DEPENDENCIES) $(EXTRA_librsplib_la_DEPENDENCIES) $(librsplib_la_LINK) -rpath $(libdir) $(librsplib_la_OBJECTS) $(librsplib_la_LIBADD) $(LIBS) librspmessaging.la: $(librspmessaging_la_OBJECTS) $(librspmessaging_la_DEPENDENCIES) $(EXTRA_librspmessaging_la_DEPENDENCIES) $(librspmessaging_la_LINK) -rpath $(libdir) $(librspmessaging_la_OBJECTS) $(librspmessaging_la_LIBADD) $(LIBS) libtdbreakdetector.la: $(libtdbreakdetector_la_OBJECTS) $(libtdbreakdetector_la_DEPENDENCIES) $(EXTRA_libtdbreakdetector_la_DEPENDENCIES) $(libtdbreakdetector_la_LINK) -rpath $(libdir) $(libtdbreakdetector_la_OBJECTS) $(libtdbreakdetector_la_LIBADD) $(LIBS) libtdcppthread.la: $(libtdcppthread_la_OBJECTS) $(libtdcppthread_la_DEPENDENCIES) $(EXTRA_libtdcppthread_la_DEPENDENCIES) $(libtdcppthread_la_LINK) -rpath $(libdir) $(libtdcppthread_la_OBJECTS) $(libtdcppthread_la_LIBADD) $(LIBS) libtdloglevel.la: $(libtdloglevel_la_OBJECTS) $(libtdloglevel_la_DEPENDENCIES) $(EXTRA_libtdloglevel_la_DEPENDENCIES) $(libtdloglevel_la_LINK) -rpath $(libdir) $(libtdloglevel_la_OBJECTS) $(libtdloglevel_la_LIBADD) $(LIBS) libtdnetutilities.la: $(libtdnetutilities_la_OBJECTS) $(libtdnetutilities_la_DEPENDENCIES) $(EXTRA_libtdnetutilities_la_DEPENDENCIES) $(libtdnetutilities_la_LINK) -rpath $(libdir) $(libtdnetutilities_la_OBJECTS) $(libtdnetutilities_la_LIBADD) $(LIBS) libtdrandomizer.la: $(libtdrandomizer_la_OBJECTS) $(libtdrandomizer_la_DEPENDENCIES) $(EXTRA_libtdrandomizer_la_DEPENDENCIES) $(libtdrandomizer_la_LINK) -rpath $(libdir) $(libtdrandomizer_la_OBJECTS) $(libtdrandomizer_la_LIBADD) $(LIBS) libtdstorage.la: $(libtdstorage_la_OBJECTS) $(libtdstorage_la_DEPENDENCIES) $(EXTRA_libtdstorage_la_DEPENDENCIES) $(libtdstorage_la_LINK) -rpath $(libdir) $(libtdstorage_la_OBJECTS) $(libtdstorage_la_LIBADD) $(LIBS) libtdstringutilities.la: $(libtdstringutilities_la_OBJECTS) $(libtdstringutilities_la_DEPENDENCIES) $(EXTRA_libtdstringutilities_la_DEPENDENCIES) $(libtdstringutilities_la_LINK) -rpath $(libdir) $(libtdstringutilities_la_OBJECTS) $(libtdstringutilities_la_LIBADD) $(LIBS) libtdtagitem.la: $(libtdtagitem_la_OBJECTS) $(libtdtagitem_la_DEPENDENCIES) $(EXTRA_libtdtagitem_la_DEPENDENCIES) $(libtdtagitem_la_LINK) -rpath $(libdir) $(libtdtagitem_la_OBJECTS) $(libtdtagitem_la_LIBADD) $(LIBS) libtdthreadsafety.la: $(libtdthreadsafety_la_OBJECTS) $(libtdthreadsafety_la_DEPENDENCIES) $(EXTRA_libtdthreadsafety_la_DEPENDENCIES) $(libtdthreadsafety_la_LINK) -rpath $(libdir) $(libtdthreadsafety_la_OBJECTS) $(libtdthreadsafety_la_LIBADD) $(LIBS) libtdtimeutilities.la: $(libtdtimeutilities_la_OBJECTS) $(libtdtimeutilities_la_DEPENDENCIES) $(EXTRA_libtdtimeutilities_la_DEPENDENCIES) $(libtdtimeutilities_la_LINK) -rpath $(libdir) $(libtdtimeutilities_la_OBJECTS) $(libtdtimeutilities_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list attacker$(EXEEXT): $(attacker_OBJECTS) $(attacker_DEPENDENCIES) $(EXTRA_attacker_DEPENDENCIES) @rm -f attacker$(EXEEXT) $(CXXLINK) $(attacker_OBJECTS) $(attacker_LDADD) $(LIBS) calcappclient$(EXEEXT): $(calcappclient_OBJECTS) $(calcappclient_DEPENDENCIES) $(EXTRA_calcappclient_DEPENDENCIES) @rm -f calcappclient$(EXEEXT) $(CXXLINK) $(calcappclient_OBJECTS) $(calcappclient_LDADD) $(LIBS) cspmonitor$(EXEEXT): $(cspmonitor_OBJECTS) $(cspmonitor_DEPENDENCIES) $(EXTRA_cspmonitor_DEPENDENCIES) @rm -f cspmonitor$(EXEEXT) $(LINK) $(cspmonitor_OBJECTS) $(cspmonitor_LDADD) $(LIBS) execalarm$(EXEEXT): $(execalarm_OBJECTS) $(execalarm_DEPENDENCIES) $(EXTRA_execalarm_DEPENDENCIES) @rm -f execalarm$(EXEEXT) $(CXXLINK) $(execalarm_OBJECTS) $(execalarm_LDADD) $(LIBS) exectime$(EXEEXT): $(exectime_OBJECTS) $(exectime_DEPENDENCIES) $(EXTRA_exectime_DEPENDENCIES) @rm -f exectime$(EXEEXT) $(CXXLINK) $(exectime_OBJECTS) $(exectime_LDADD) $(LIBS) fork$(EXEEXT): $(fork_OBJECTS) $(fork_DEPENDENCIES) $(EXTRA_fork_DEPENDENCIES) @rm -f fork$(EXEEXT) $(LINK) $(fork_OBJECTS) $(fork_LDADD) $(LIBS) fractalpooluser$(EXEEXT): $(fractalpooluser_OBJECTS) $(fractalpooluser_DEPENDENCIES) $(EXTRA_fractalpooluser_DEPENDENCIES) @rm -f fractalpooluser$(EXEEXT) $(fractalpooluser_LINK) $(fractalpooluser_OBJECTS) $(fractalpooluser_LDADD) $(LIBS) gettimestamp$(EXEEXT): $(gettimestamp_OBJECTS) $(gettimestamp_DEPENDENCIES) $(EXTRA_gettimestamp_DEPENDENCIES) @rm -f gettimestamp$(EXEEXT) $(LINK) $(gettimestamp_OBJECTS) $(gettimestamp_LDADD) $(LIBS) hrestest$(EXEEXT): $(hrestest_OBJECTS) $(hrestest_DEPENDENCIES) $(EXTRA_hrestest_DEPENDENCIES) @rm -f hrestest$(EXEEXT) $(LINK) $(hrestest_OBJECTS) $(hrestest_LDADD) $(LIBS) hsdump$(EXEEXT): $(hsdump_OBJECTS) $(hsdump_DEPENDENCIES) $(EXTRA_hsdump_DEPENDENCIES) @rm -f hsdump$(EXEEXT) $(LINK) $(hsdump_OBJECTS) $(hsdump_LDADD) $(LIBS) pingpongclient$(EXEEXT): $(pingpongclient_OBJECTS) $(pingpongclient_DEPENDENCIES) $(EXTRA_pingpongclient_DEPENDENCIES) @rm -f pingpongclient$(EXEEXT) $(LINK) $(pingpongclient_OBJECTS) $(pingpongclient_LDADD) $(LIBS) rootshell$(EXEEXT): $(rootshell_OBJECTS) $(rootshell_DEPENDENCIES) $(EXTRA_rootshell_DEPENDENCIES) @rm -f rootshell$(EXEEXT) $(LINK) $(rootshell_OBJECTS) $(rootshell_LDADD) $(LIBS) rspregistrar$(EXEEXT): $(rspregistrar_OBJECTS) $(rspregistrar_DEPENDENCIES) $(EXTRA_rspregistrar_DEPENDENCIES) @rm -f rspregistrar$(EXEEXT) $(LINK) $(rspregistrar_OBJECTS) $(rspregistrar_LDADD) $(LIBS) rspserver$(EXEEXT): $(rspserver_OBJECTS) $(rspserver_DEPENDENCIES) $(EXTRA_rspserver_DEPENDENCIES) @rm -f rspserver$(EXEEXT) $(CXXLINK) $(rspserver_OBJECTS) $(rspserver_LDADD) $(LIBS) rspterminal$(EXEEXT): $(rspterminal_OBJECTS) $(rspterminal_DEPENDENCIES) $(EXTRA_rspterminal_DEPENDENCIES) @rm -f rspterminal$(EXEEXT) $(LINK) $(rspterminal_OBJECTS) $(rspterminal_LDADD) $(LIBS) scriptingclient$(EXEEXT): $(scriptingclient_OBJECTS) $(scriptingclient_DEPENDENCIES) $(EXTRA_scriptingclient_DEPENDENCIES) @rm -f scriptingclient$(EXEEXT) $(LINK) $(scriptingclient_OBJECTS) $(scriptingclient_LDADD) $(LIBS) testregistrator$(EXEEXT): $(testregistrator_OBJECTS) $(testregistrator_DEPENDENCIES) $(EXTRA_testregistrator_DEPENDENCIES) @rm -f testregistrator$(EXEEXT) $(LINK) $(testregistrator_OBJECTS) $(testregistrator_LDADD) $(LIBS) install-dist_binSCRIPTS: $(dist_bin_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asapinstance.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asapinterthreadmessage.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/attacker.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/breakdetector.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calcappclient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calcappservice.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/componentstatusreporter.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cspmonitor.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dispatcher.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/doublelinkedringlist.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/environmentcache.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/execalarm.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exectime.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fdcallback.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fork.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fractalgeneratorservice.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fractalpooluser-fractalpooluser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gettimestamp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hrestest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hsdump.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/identifierbitmap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interthreadmessageport.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/leaflinkedredblacktree.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loglevel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/messagebuffer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutex.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netdouble.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netutilities.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/notificationqueue.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pingpongclient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poolhandle.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poolhandlespacechecksum.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poolhandlespacemanagement-basics.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poolhandlespacemanagement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/poolpolicysettings.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/randomizer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/registrartable.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rootshell.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rserpoolerror.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rserpoolmessage.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rserpoolmessagecreator.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rserpoolmessageparser.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rserpoolsocket.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspbasicmode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspenhancedmode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar-asap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar-core.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar-enrp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar-global.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar-misc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar-security.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar-takeover.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspregistrar.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspserver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rspterminal.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rsputilities.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scriptingclient.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scriptingservice.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sessioncontrol.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sessionstorage.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sha1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simpleredblacktree.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/standardservices.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statistics.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stringutilities.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tagitem.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/takeoverprocess.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tcplikeserver.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testregistrator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/thread.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threadsafety.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threadsignal.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timestamphashtable.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeutilities.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transportaddressblock.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/udplikeserver.Plo@am__quote@ .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@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .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@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(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@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< .cc.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< fractalpooluser-fractalpooluser.o: fractalpooluser.cc @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fractalpooluser_CXXFLAGS) $(CXXFLAGS) -MT fractalpooluser-fractalpooluser.o -MD -MP -MF $(DEPDIR)/fractalpooluser-fractalpooluser.Tpo -c -o fractalpooluser-fractalpooluser.o `test -f 'fractalpooluser.cc' || echo '$(srcdir)/'`fractalpooluser.cc @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/fractalpooluser-fractalpooluser.Tpo $(DEPDIR)/fractalpooluser-fractalpooluser.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='fractalpooluser.cc' object='fractalpooluser-fractalpooluser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fractalpooluser_CXXFLAGS) $(CXXFLAGS) -c -o fractalpooluser-fractalpooluser.o `test -f 'fractalpooluser.cc' || echo '$(srcdir)/'`fractalpooluser.cc fractalpooluser-fractalpooluser.obj: fractalpooluser.cc @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fractalpooluser_CXXFLAGS) $(CXXFLAGS) -MT fractalpooluser-fractalpooluser.obj -MD -MP -MF $(DEPDIR)/fractalpooluser-fractalpooluser.Tpo -c -o fractalpooluser-fractalpooluser.obj `if test -f 'fractalpooluser.cc'; then $(CYGPATH_W) 'fractalpooluser.cc'; else $(CYGPATH_W) '$(srcdir)/fractalpooluser.cc'; fi` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/fractalpooluser-fractalpooluser.Tpo $(DEPDIR)/fractalpooluser-fractalpooluser.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='fractalpooluser.cc' object='fractalpooluser-fractalpooluser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(fractalpooluser_CXXFLAGS) $(CXXFLAGS) -c -o fractalpooluser-fractalpooluser.obj `if test -f 'fractalpooluser.cc'; then $(CYGPATH_W) 'fractalpooluser.cc'; else $(CYGPATH_W) '$(srcdir)/fractalpooluser.cc'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(dist_man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" @list=''; test -n "$(man1dir)" || exit 0; \ { for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-dist_fractalpooluserDATA: $(dist_fractalpooluser_DATA) @$(NORMAL_INSTALL) test -z "$(fractalpooluserdir)" || $(MKDIR_P) "$(DESTDIR)$(fractalpooluserdir)" @list='$(dist_fractalpooluser_DATA)'; test -n "$(fractalpooluserdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(fractalpooluserdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(fractalpooluserdir)" || exit $$?; \ done uninstall-dist_fractalpooluserDATA: @$(NORMAL_UNINSTALL) @list='$(dist_fractalpooluser_DATA)'; test -n "$(fractalpooluserdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(fractalpooluserdir)'; $(am__uninstall_files_from_dir) install-libcpprspserverincludeHEADERS: $(libcpprspserverinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(libcpprspserverincludedir)" || $(MKDIR_P) "$(DESTDIR)$(libcpprspserverincludedir)" @list='$(libcpprspserverinclude_HEADERS)'; test -n "$(libcpprspserverincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libcpprspserverincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(libcpprspserverincludedir)" || exit $$?; \ done uninstall-libcpprspserverincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(libcpprspserverinclude_HEADERS)'; test -n "$(libcpprspserverincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(libcpprspserverincludedir)'; $(am__uninstall_files_from_dir) install-librsplibincludeHEADERS: $(librsplibinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(librsplibincludedir)" || $(MKDIR_P) "$(DESTDIR)$(librsplibincludedir)" @list='$(librsplibinclude_HEADERS)'; test -n "$(librsplibincludedir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(librsplibincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(librsplibincludedir)" || exit $$?; \ done uninstall-librsplibincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(librsplibinclude_HEADERS)'; test -n "$(librsplibincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(librsplibincludedir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done 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 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ 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; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(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; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @list='$(MANS)'; if test -n "$$list"; then \ list=`for p in $$list; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ if test -n "$$list" && \ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ echo " typically \`make maintainer-clean' will remove them" >&2; \ exit 1; \ else :; fi; \ else :; fi @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 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \ $(HEADERS) install-binPROGRAMS: install-libLTLIBRARIES installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(fractalpooluserdir)" "$(DESTDIR)$(libcpprspserverincludedir)" "$(DESTDIR)$(librsplibincludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ clean-libtool clean-noinstPROGRAMS mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dist_fractalpooluserDATA \ install-libcpprspserverincludeHEADERS \ install-librsplibincludeHEADERS install-man install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-dist_binSCRIPTS \ install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-dist_binSCRIPTS \ uninstall-dist_fractalpooluserDATA uninstall-libLTLIBRARIES \ uninstall-libcpprspserverincludeHEADERS \ uninstall-librsplibincludeHEADERS uninstall-man uninstall-man: uninstall-man1 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstPROGRAMS ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-dist_binSCRIPTS \ install-dist_fractalpooluserDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-libLTLIBRARIES \ install-libcpprspserverincludeHEADERS \ install-librsplibincludeHEADERS install-man install-man1 \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-dist_binSCRIPTS uninstall-dist_fractalpooluserDATA \ uninstall-libLTLIBRARIES \ uninstall-libcpprspserverincludeHEADERS \ uninstall-librsplibincludeHEADERS uninstall-man uninstall-man1 @BUILD_QT_PROGRAMS_TRUE@%_moc.cc: %.h @BUILD_QT_PROGRAMS_TRUE@ $(MOC) -o $@ $< # To compile (i.e. generate object files), first create MOC file. # This MOC file is included by fractalpooluser.cc, so no compile step is necessary. @BUILD_QT_PROGRAMS_TRUE@$(fractalpooluser_OBJECTS): $(FRACTALPOOLUSERMOCEDFILES) # 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: rsplib-3.0.1/rsplib/cpprspserver.h0000664000175000017500000000270511777021056014145 00000000000000/* $Id: cpprspserver.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef CPPRSPSERVER_H #define CPPRSPSERVER_H #include "rserpool.h" enum EventHandlingResult { EHR_Okay = 0, EHR_Shutdown = 1, EHR_Abort = 2 }; #endif rsplib-3.0.1/rsplib/ext_socket.h0000664000175000017500000004140711777021056013561 00000000000000/* * $Id: ext_socket.h 2608 2011-11-23 07:52:38Z dreibh $ * * SocketAPI implementation for the sctplib. * Copyright (C) 1999-2012 by Thomas Dreibholz * * Realized in co-operation between * - Siemens AG * - University of Essen, Institute of Computer Networking Technology * - University of Applied Sciences, Muenster * * Acknowledgement * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany (Foerderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: discussion@sctp.de * dreibh@iem.uni-due.de * tuexen@fh-muenster.de * * Purpose: Extended Socket API * */ #ifndef EXTSOCKET_H #define EXTSOCKET_H #ifndef HAVE_KERNEL_SCTP #include #include #include #include #include #include #include #include #ifndef IPPROTO_SCTP #define IPPROTO_SCTP 132 #endif #define SOCKETAPI_MAJOR_VERSION 0x2 #define SOCKETAPI_MINOR_VERSION 0x2200 /* The socketapi library internally combines the flags and sinfo_flags fields! Here, it is ensured to define unique value. */ #define MSG_UNORDERED MSG_DONTROUTE #define MSG_UNBUNDLED MSG_CTRUNC #ifndef MSG_NOTIFICATION #define MSG_NOTIFICATION MSG_OOB #endif #ifndef MSG_EOF #define MSG_EOF MSG_FIN #endif #define MSG_SHUTDOWN MSG_EOF #define MSG_MULTIADDRS MSG_TRUNC #ifdef MSG_RST #define MSG_ABORT MSG_RST #define MSG_PR_SCTP_TTL MSG_ERRQUEUE #define MSG_ADDR_OVER MSG_MORE #define MSG_SEND_TO_ALL MSG_PROXY #else #define MSG_ABORT 0x200 #define MSG_PR_SCTP_TTL 0x400 #define MSG_ADDR_OVER 0x800 #define MSG_SEND_TO_ALL 0xc00 #endif #define SCTP_UNORDERED MSG_UNORDERED #define SCTP_UNBUNDLED MSG_UNBUNDLED #define SCTP_NOTIFICATION MSG_NOTIFICATION #define SCTP_ABORT MSG_ABORT #define SCTP_EOF MSG_EOF #define SCTP_ADDR_OVER MSG_ADDR_OVER #define SCTP_SEND_TO_ALL MSG_SEND_TO_ALL #define SCTP_MULTIADDRS MSG_MULTIADDRS typedef unsigned int sctp_assoc_t; typedef unsigned short sctp_stream_t; #define SCTP_UNDEFINED 0 #define SCTP_INIT 1 struct sctp_initmsg { uint16_t sinit_num_ostreams; uint16_t sinit_max_instreams; uint16_t sinit_max_attempts; uint16_t sinit_max_init_timeo; }; #define SCTP_SNDRCV 2 struct sctp_sndrcvinfo { uint16_t sinfo_stream; uint16_t sinfo_ssn; /* !!! 32 bits instead of 16 bits !!! */ uint32_t sinfo_flags; uint32_t sinfo_ppid; uint32_t sinfo_context; uint32_t sinfo_timetolive; uint32_t sinfo_tsn; uint32_t sinfo_cumtsn; sctp_assoc_t sinfo_assoc_id; }; #define SCTP_ASSOC_CHANGE 1 struct sctp_assoc_change { uint16_t sac_type; uint16_t sac_flags; uint32_t sac_length; uint16_t sac_state; uint16_t sac_error; uint16_t sac_outbound_streams; uint16_t sac_inbound_streams; sctp_assoc_t sac_assoc_id; }; #define SCTP_COMM_UP 11 #define SCTP_COMM_LOST 12 #define SCTP_RESTART 13 #define SCTP_SHUTDOWN_COMP 14 #define SCTP_CANT_STR_ASSOC 15 #define SCTP_PEER_ADDR_CHANGE 2 struct sctp_paddr_change { uint16_t spc_type; uint16_t spc_flags; uint32_t spc_length; struct sockaddr_storage spc_aaddr; int spc_state; int spc_error; sctp_assoc_t spc_assoc_id; }; #define SCTP_ADDR_REACHABLE 21 #define SCTP_ADDR_UNREACHABLE 22 #define SCTP_ADDR_REMOVED 23 #define SCTP_ADDR_ADDED 24 #define SCTP_ADDR_MADE_PRIM 25 #define SCTP_ADDR_CONFIRMED 26 #define SCTP_REMOTE_ERROR 3 struct sctp_remote_error { uint16_t sre_type; uint16_t sre_flags; uint32_t sre_length; uint16_t sre_error; sctp_assoc_t sre_assoc_id; uint8_t sre_data[0]; }; #define SCTP_SEND_FAILED 4 struct sctp_send_failed { uint16_t ssf_type; uint16_t ssf_flags; uint32_t ssf_length; uint32_t ssf_error; struct sctp_sndrcvinfo ssf_info; sctp_assoc_t ssf_assoc_id; uint8_t ssf_data[0]; }; #define SCTP_DATA_UNSENT 41 #define SCTP_DATA_SENT 42 #define SCTP_SHUTDOWN_EVENT 5 struct sctp_shutdown_event { uint16_t sse_type; uint16_t sse_flags; uint32_t sse_length; sctp_assoc_t sse_assoc_id; }; #define SCTP_ADAPTATION_INDICATION 6 struct sctp_adaptation_event { uint16_t sai_type; uint16_t sai_flags; uint32_t sai_length; uint32_t sai_adaptation_ind; sctp_assoc_t sai_assoc_id; }; #define SCTP_PARTIAL_DELIVERY_EVENT 7 #define SCTP_PARTIAL_DELIVERY_ABORTED 1 struct sctp_pdapi_event { uint16_t pdapi_type; uint16_t pdapi_flags; uint32_t pdapi_length; uint32_t pdapi_indication; sctp_assoc_t pdapi_assoc_id; }; /* For interal implementation usage only! */ #define SCTP_DATA_ARRIVE 8 #define SCTP_ARRIVE_UNORDERED (1 << 0) struct sctp_data_arrive { uint16_t sda_type; uint16_t sda_flags; uint32_t sda_length; sctp_assoc_t sda_assoc_id; sctp_stream_t sda_stream; uint32_t sda_ppid; uint32_t sda_bytes_arrived; }; union sctp_notification { struct { uint16_t sn_type; uint16_t sn_flags; uint32_t sn_length; } sn_header; struct sctp_assoc_change sn_assoc_change; struct sctp_paddr_change sn_paddr_change; struct sctp_remote_error sn_remote_error; struct sctp_send_failed sn_send_failed; struct sctp_shutdown_event sn_shutdown_event; struct sctp_adaptation_event sn_adaptation_event; struct sctp_pdapi_event sn_pdapi_event; struct sctp_data_arrive sn_data_arrive; }; struct sctp_rtoinfo { sctp_assoc_t srto_assoc_id; uint32_t srto_initial; uint32_t srto_max; uint32_t srto_min; }; struct sctp_assocparams { sctp_assoc_t sasoc_assoc_id; uint16_t sasoc_asocmaxrxt; uint16_t sasoc_number_peer_destinations; uint32_t sasoc_peer_rwnd; int32_t sasoc_local_rwnd; uint32_t sasoc_cookie_life; }; struct sctp_setprim { sctp_assoc_t ssp_assoc_id; struct sockaddr_storage ssp_addr; }; struct sctp_setpeerprim { sctp_assoc_t sspp_assoc_id; struct sockaddr_storage sspp_addr; }; struct sctp_setstrm_timeout { sctp_assoc_t ssto_assoc_id; uint32_t ssto_timeout; uint16_t ssto_streamid_start; uint16_t ssto_streamid_end; }; #define SPP_HB_ENABLE (1 << 0) #define SPP_HB_DISABLE (1 << 1) #define SPP_PMTUD_ENABLE (1 << 2) #define SPP_PMTUD_DISABLE (1 << 3) #define SPP_SACKDELAY_ENABLE (1 << 4) #define SPP_SACKDELAY_DISABLE (1 << 5) struct sctp_paddrparams { sctp_assoc_t spp_assoc_id; struct sockaddr_storage spp_address; uint32_t spp_hbinterval; uint16_t spp_pathmaxrxt; uint32_t spp_pathmtu; uint32_t spp_sackdelay; uint32_t spp_flags; }; struct sctp_paddrinfo { sctp_assoc_t spinfo_assoc_id; struct sockaddr_storage spinfo_address; int32_t spinfo_state; uint32_t spinfo_cwnd; uint32_t spinfo_srtt; uint32_t spinfo_rto; uint32_t spinfo_mtu; }; #define SCTP_INACTIVE 0 #define SCTP_ACTIVE 1 struct sctp_status { sctp_assoc_t sstat_assoc_id; int32_t sstat_state; uint32_t sstat_rwnd; uint16_t sstat_unackdata; uint16_t sstat_penddata; uint16_t sstat_instrms; uint16_t sstat_outstrms; uint32_t sstat_fragmentation_point; struct sctp_paddrinfo sstat_primary; }; struct sctp_event_subscribe { uint8_t sctp_data_io_event; uint8_t sctp_association_event; uint8_t sctp_address_event; uint8_t sctp_send_failure_event; uint8_t sctp_peer_error_event; uint8_t sctp_shutdown_event; uint8_t sctp_partial_delivery_event; uint8_t sctp_adaptation_layer_event; }; struct sctp_assoc_value { sctp_assoc_t assoc_id; uint32_t assoc_value; }; struct sctp_sack_info { sctp_assoc_t sack_assoc_id; uint32_t sack_delay; uint32_t sack_freq; }; #define SCTP_INITMSG 1000 #define SCTP_AUTOCLOSE 1001 #define SCTP_RTOINFO 1010 #define SCTP_ASSOCINFO 1011 #define SCTP_PRIMARY_ADDR 1012 #define SCTP_SET_PEER_PRIMARY_ADDR 1013 #define SCTP_SET_STREAM_TIMEOUTS 1014 #define SCTP_PEER_ADDR_PARAMS 1015 #define SCTP_STATUS 1016 #define SCTP_GET_PEER_ADDR_INFO 1017 #define SCTP_NODELAY 1018 #define SCTP_SET_DEFAULT_SEND_PARAM 1019 #define SCTP_EVENTS 1020 #define SCTP_DELAYED_SACK 1021 #define SCTP_FRAGMENT_INTERLEAVE 1022 #define SCTP_PARTIAL_DELIVERY_POINT 1023 #define SCTP_MAXSEG 1024 #define SCTP_I_WANT_MAPPED_V4_ADDR 1025 #ifdef __cplusplus extern "C" { #endif unsigned int socketAPIGetVersion(); int ext_socket(int domain, int type, int protocol); int ext_open(const char* pathname, int flags, mode_t mode); int ext_creat(const char* pathname, mode_t mode); int ext_bind(int sockfd, struct sockaddr* my_addr, socklen_t addrlen); int ext_connect(int sockfd, const struct sockaddr* serv_addr, socklen_t addrlen); int ext_listen(int s, int backlog); int ext_accept(int s, struct sockaddr * addr, socklen_t* addrlen); int ext_shutdown(int s, int how); int ext_close(int fd); int ext_getsockname(int sockfd, struct sockaddr* name, socklen_t* namelen); int ext_getpeername(int sockfd, struct sockaddr* name, socklen_t* namelen); int ext_fcntl(int fd, int cmd, ...); int ext_ioctl(int d, int request, const void* argp); int ext_getsockopt(int sockfd, int level, int optname, void* optval, socklen_t* optlen); int ext_setsockopt(int sockfd, int level, int optname, const void* optval, socklen_t optlen); ssize_t ext_recv(int s, void* buf, size_t len, int flags); ssize_t ext_recvfrom(int s, void * buf, size_t len, int flags, struct sockaddr* from, socklen_t* fromlen); ssize_t ext_recvmsg(int s, struct msghdr* msg, int flags); ssize_t ext_send(int s, const void* msg, size_t len, int flags); ssize_t ext_sendto(int s, const void* msg, size_t len, int flags, const struct sockaddr* to, socklen_t tolen); ssize_t ext_sendmsg(int s, const struct msghdr* msg, int flags); ssize_t ext_read(int fd, void* buf, size_t count); ssize_t ext_write(int fd, const void* buf, size_t count); int ext_select(int n, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout); int ext_poll(struct pollfd* fdlist, long unsigned int count, int time); /* For internal usage only! */ int ext_recvmsg2(int sockfd, struct msghdr* msg, int flags, const int receiveNotifications); #define SCTP_BINDX_ADD_ADDR 1 #define SCTP_BINDX_REM_ADDR 2 int sctp_bindx(int sockfd, struct sockaddr* addrs, int addrcnt, int flags); int ext_connectx(int sockfd, const struct sockaddr* addrs, int addrcnt, sctp_assoc_t* id); #define sctp_connectx ext_connectx int sctp_peeloff(int sockfd, sctp_assoc_t id); int sctp_getpaddrs(int sockfd, sctp_assoc_t id, struct sockaddr** addrs); void sctp_freepaddrs(struct sockaddr* addrs); int sctp_getladdrs(int sockfd, sctp_assoc_t id, struct sockaddr** addrs); void sctp_freeladdrs(struct sockaddr* addrs); int sctp_opt_info(int sd, sctp_assoc_t assocID, int opt, void* arg, socklen_t* size); ssize_t sctp_send(int s, const void* data, size_t len, const struct sctp_sndrcvinfo* sinfo, int flags); ssize_t sctp_sendx(int sd, const void* data, size_t len, const struct sockaddr* addrs, int addrcnt, const struct sctp_sndrcvinfo* sinfo, int flags); ssize_t sctp_sendmsg(int s, const void* data, size_t len, const struct sockaddr* to, socklen_t tolen, uint32_t ppid, uint32_t flags, uint16_t stream_no, uint32_t timetolive, uint32_t context); ssize_t sctp_recvmsg(int s, void* msg, size_t len, struct sockaddr* from, socklen_t* fromlen, struct sctp_sndrcvinfo* sinfo, int* msg_flags); int ext_pipe(int fds[2]); /** * Check, if SCTP support is available. * * @return true, if SCTP is available; false otherwise. */ int sctp_isavailable(); /** * Enable or disable OOTB handling. * * @param enable 0 to disable, <>0 to enable OOTB handling. * @return 0 for success, error code in case of error. */ int sctp_enableOOTBHandling(const unsigned int enable); /** * Enable or disable CRC32 checksum. * * @param enable 0 to disable (use Adler32), <>0 to enable CRC32. * @return 0 for success, error code in case of error. */ int sctp_enableCRC32(const unsigned int enable); #ifdef __cplusplus } #endif #else #ifdef __cplusplus #define ext_socket(a,b,c) ::socket(a,b,c) #define ext_bind(a,b,c) ::bind(a,b,c) #define ext_connect(a,b,c) ::connect(a,b,c) #define ext_listen(a,b) ::listen(a,b) #define ext_accept(a,b,c) ::accept(a,b,c) #define ext_shutdown(a,b) ::shutdown(a,b) #define ext_close(a) ::close(a) #define ext_getsockname(a,b,c) ::getsockname(a,b,c) #define ext_getpeername(a,b,c) ::getpeername(a,b,c) #define ext_fcntl(a,b,c) ::fcntl(a,b,c) #define ext_ioctl(a,b,c) ::ioctl(a,b,c) #define ext_getsockopt(a,b,c,d,e) ::getsockopt(a,b,c,d,e) #define ext_setsockopt(a,b,c,d,e) ::setsockopt(a,b,c,d,e) #define ext_recv(a,b,c,d) ::recv(a,b,c,d) #define ext_recvfrom(a,b,c,d,e,f) ::recvfrom(a,b,c,d,e,f) #define ext_recvmsg(a,b,c) ::recvmsg(a,b,c) #define ext_send(a,b,c,d) ::send(a,b,c,d) #define ext_sendto(a,b,c,d,e,f) ::sendto(a,b,c,d,e,f) #define ext_sendmsg(a,b,c) ::sendmsg(a,b,c) #define ext_read(a,b,c) ::read(a,b,c) #define ext_write(a,b,c) ::write(a,b,c) #define ext_select(a,b,c,d,e) ::select(a,b,c,d,e) #ifndef USE_SELECT #define ext_poll(a,b,c) ::poll(a,b,c) #endif #define ext_pipe(a) ::pipe(a) #else #define ext_socket(a,b,c) socket(a,b,c) #define ext_bind(a,b,c) bind(a,b,c) #define ext_connect(a,b,c) connect(a,b,c) #define ext_listen(a,b) listen(a,b) #define ext_accept(a,b,c) accept(a,b,c) #define ext_shutdown(a,b) shutdown(a,b) #define ext_close(a) close(a) #define ext_getsockname(a,b,c) getsockname(a,b,c) #define ext_getpeername(a,b,c) getpeername(a,b,c) #define ext_fcntl(a,b,c) fcntl(a,b,c) #define ext_ioctl(a,b,c) ioctl(a,b,c) #define ext_getsockopt(a,b,c,d,e) getsockopt(a,b,c,d,e) #define ext_setsockopt(a,b,c,d,e) setsockopt(a,b,c,d,e) #define ext_recv(a,b,c,d) recv(a,b,c,d) #define ext_recvfrom(a,b,c,d,e,f) recvfrom(a,b,c,d,e,f) #define ext_recvmsg(a,b,c) recvmsg(a,b,c) #define ext_send(a,b,c,d) send(a,b,c,d) #define ext_sendto(a,b,c,d,e,f) sendto(a,b,c,d,e,f) #define ext_sendmsg(a,b,c) sendmsg(a,b,c) #define ext_read(a,b,c) read(a,b,c) #define ext_write(a,b,c) write(a,b,c) #define ext_select(a,b,c,d,e) select(a,b,c,d,e) #ifndef USE_SELECT #define ext_poll(a,b,c) poll(a,b,c) #endif #define ext_pipe(a) pipe(a) #endif #include #include #include #include #include #ifndef SCTP_DELAYED_SACK #define SCTP_DELAYED_SACK SCTP_DELAYED_ACK_TIME #endif #endif #endif rsplib-3.0.1/rsplib/rserpoolsocket.c0000664000175000017500000003362511777021056014465 00000000000000/* $Id: rserpoolsocket.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "rserpoolsocket.h" #include "threadsafety.h" #include "netutilities.h" #include "rserpoolmessage.h" #include "loglevel.h" #include "debug.h" extern struct SimpleRedBlackTree gRSerPoolSocketSet; extern struct ThreadSafety gRSerPoolSocketSetMutex; /* ###### Print function ################################################# */ void rserpoolSocketPrint(const void* node, FILE* fd) { const struct RSerPoolSocket* rserpoolSocket = (const struct RSerPoolSocket*)node; fprintf(fd, "%d ", rserpoolSocket->Descriptor); } /* ###### Comparison function ############################################ */ int rserpoolSocketComparison(const void* node1, const void* node2) { const struct RSerPoolSocket* rserpoolSocket1 = (const struct RSerPoolSocket*)node1; const struct RSerPoolSocket* rserpoolSocket2 = (const struct RSerPoolSocket*)node2; if(rserpoolSocket1->Descriptor < rserpoolSocket2->Descriptor) { return(-1); } else if(rserpoolSocket1->Descriptor > rserpoolSocket2->Descriptor) { return(1); } return(0); } /* ###### Get RSerPool socket for given descriptor ####################### */ struct RSerPoolSocket* getRSerPoolSocketForDescriptor(int sd) { struct RSerPoolSocket* rserpoolSocket; struct RSerPoolSocket cmpSocket; cmpSocket.Descriptor = sd; threadSafetyLock(&gRSerPoolSocketSetMutex); rserpoolSocket = (struct RSerPoolSocket*)simpleRedBlackTreeFind(&gRSerPoolSocketSet, &cmpSocket.Node); threadSafetyUnlock(&gRSerPoolSocketSetMutex); if(rserpoolSocket == NULL) { LOG_ERROR fprintf(stdlog, "Bad RSerPool socket descriptor %d\n", sd); LOG_END_FATAL } return(rserpoolSocket); } /* ###### Wait until there is something to read ########################## */ bool waitForRead(struct RSerPoolSocket* rserpoolSocket, int timeout) { struct pollfd ufds[1]; ufds[0].fd = rserpoolSocket->Descriptor; ufds[0].events = POLLIN; int result = rsp_poll((struct pollfd*)&ufds, 1, timeout); if((result > 0) && (ufds[0].revents & POLLIN)) { return(true); } errno = EAGAIN; return(false); } /* ###### Delete pool element ############################################ */ void deletePoolElement(struct PoolElement* poolElement, int flags, struct TagItem* tags) { int result; /* Delete timer first; this ensures that the doRegistration() function will not be called while the PE is going to be deleted! */ timerDelete(&poolElement->ReregistrationTimer); threadSafetyLock(&poolElement->Mutex); if(poolElement->Identifier != 0x00000000) { result = rsp_pe_deregistration_tags((unsigned char*)&poolElement->Handle.Handle, poolElement->Handle.Size, poolElement->Identifier, flags, tags); if(result != RSPERR_OKAY) { LOG_ERROR fprintf(stdlog, "Deregistration failed: "); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } } threadSafetyUnlock(&poolElement->Mutex); threadSafetyDelete(&poolElement->Mutex); free(poolElement); } /* ###### Reregistration timer ########################################### */ void reregistrationTimer(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct RSerPoolSocket* rserpoolSocket = (struct RSerPoolSocket*)userData; LOG_VERBOSE3 fputs("Starting reregistration\n", stdlog); LOG_END /* ====== Do reregistration =========================================== */ /* Thread-Safety Notes: This function will only be called when the RSerPool socket is existing and it has a PoolElement entry. Therefore, locking the rserpoolSocket->Mutex is not necessary here. It is only necessary to ensure that the PE information is not altered by another thread while being extracted by doRegistration(). */ threadSafetyLock(&rserpoolSocket->PoolElement->Mutex); /* Do not wait for result here. This would deadlock, since this timer callback is called withing the MainLoop thread! */ doRegistration(rserpoolSocket, false); timerStart(&rserpoolSocket->PoolElement->ReregistrationTimer, getMicroTime() + ((unsigned long long)1000 * (unsigned long long)rserpoolSocket->PoolElement->ReregistrationInterval)); threadSafetyUnlock(&rserpoolSocket->PoolElement->Mutex); LOG_VERBOSE3 fputs("Reregistration completed\n", stdlog); LOG_END } /* ###### Reregistration ##################################################### */ bool doRegistration(struct RSerPoolSocket* rserpoolSocket, bool waitForRegistrationResult) { struct rsp_addrinfo* rspAddrInfo; struct rsp_addrinfo* rspAddrInfo2; struct rsp_addrinfo* next; size_t oldSctpLocalAddresses; size_t sctpLocalAddresses; union sockaddr_union* sctpLocalAddressArray = NULL; union sockaddr_union* localAddressArray = NULL; struct sockaddr* packedAddressArray = NULL; union sockaddr_union socketName; socklen_t socketNameLen; unsigned int localAddresses; unsigned int result; unsigned int i; CHECK(rserpoolSocket->PoolElement != NULL); /* ====== Create rsp_addrinfo structure ========================== */ rspAddrInfo = (struct rsp_addrinfo*)malloc(sizeof(struct rsp_addrinfo)); if(rspAddrInfo == NULL) { LOG_ERROR fputs("Out of memory\n", stdlog); LOG_END return(false); } rspAddrInfo->ai_family = rserpoolSocket->SocketDomain; rspAddrInfo->ai_socktype = rserpoolSocket->SocketType; rspAddrInfo->ai_protocol = rserpoolSocket->SocketProtocol; rspAddrInfo->ai_next = NULL; rspAddrInfo->ai_addr = NULL; rspAddrInfo->ai_addrs = 0; rspAddrInfo->ai_addrlen = sizeof(union sockaddr_union); rspAddrInfo->ai_pe_id = rserpoolSocket->PoolElement->Identifier; /* ====== Get local addresses by sctp_getladds() ====================== */ rspAddrInfo->ai_addrs = 0; if(rserpoolSocket->SocketProtocol == IPPROTO_SCTP) { sctpLocalAddresses = getladdrsplus(rserpoolSocket->Socket, 0, &sctpLocalAddressArray); if(sctpLocalAddresses <= 0) { LOG_WARNING fputs("Unable to obtain socket's local addresses using sctp_getladdrs\n", stdlog); LOG_END } else { /* --- Check for buggy SCTP implementation ----- */ if( (getPort(&sctpLocalAddressArray[0].sa) == 0) || ( ((sctpLocalAddressArray[0].sa.sa_family == AF_INET) && (sctpLocalAddressArray[0].in.sin_addr.s_addr == 0)) || ( ((sctpLocalAddressArray[0].sa.sa_family == AF_INET6) && (IN6_IS_ADDR_UNSPECIFIED(&sctpLocalAddressArray[0].in6.sin6_addr)))) ) ) { LOG_ERROR fputs("getladdrsplus() replied INADDR_ANY or port 0\n", stdlog); LOG_END_FATAL } /* --------------------------------------------- */ /* ====== Filter out link-local addresses ======================= */ oldSctpLocalAddresses = sctpLocalAddresses; sctpLocalAddresses = filterAddressesByScope(sctpLocalAddressArray, sctpLocalAddresses, AS_UNICAST_SITELOCAL); if(sctpLocalAddresses == 0) { LOG_ERROR fputs("No addresses of at least site-local scope found -> No registration possible. Addresses:\n", stdlog); for(i = 0; i < oldSctpLocalAddresses;i++) { fputs(" - ", stdlog); fputaddress(&sctpLocalAddressArray[i].sa, true, stdlog); fputs("\n", stdlog); } LOG_END return(false); } packedAddressArray = pack_sockaddr_union(sctpLocalAddressArray, sctpLocalAddresses); if(packedAddressArray != NULL) { rspAddrInfo->ai_addr = packedAddressArray; rspAddrInfo->ai_addrs = sctpLocalAddresses; } } } /* ====== Get local addresses by gathering interface addresses ======== */ if(rspAddrInfo->ai_addrs <= 0) { /* ====== Get addresses of all local interfaces ==================== */ localAddresses = gatherLocalAddresses(&localAddressArray); if(localAddresses == 0) { LOG_ERROR fputs("Unable to find out local addresses -> No registration possible\n", stdlog); LOG_END free(rspAddrInfo); return(false); } /* ====== Filter out link-local addresses ========================= */ localAddresses = filterAddressesByScope(localAddressArray, localAddresses, AS_UNICAST_SITELOCAL); if(localAddresses == 0) { LOG_ERROR fputs("No addresses of at least site-local scope available -> No registration possible\n", stdlog); LOG_END free(rspAddrInfo); return(false); } /* ====== Get local port number ==================================== */ socketNameLen = sizeof(socketName); if(ext_getsockname(rserpoolSocket->Socket, (struct sockaddr*)&socketName, &socketNameLen) == 0) { for(i = 0;i < localAddresses;i++) { setPort((struct sockaddr*)&localAddressArray[i], getPort((struct sockaddr*)&socketName)); } } else { LOG_ERROR logerror("getsockname() failed"); fputs("Unable to find out local port -> No registration possible\n", stdlog); LOG_END free(localAddressArray); free(rspAddrInfo); return(false); } /* ====== SCTP: add addresses to rsp_addrinfo structure ======= */ if(rserpoolSocket->SocketProtocol == IPPROTO_SCTP) { /* SCTP endpoints are described by a list of their transport addresses. */ rspAddrInfo->ai_addrs = localAddresses; rspAddrInfo->ai_addr = pack_sockaddr_union(localAddressArray, localAddresses); packedAddressArray = rspAddrInfo->ai_addr; } /* ====== TCP/UDP: add own rsp_addrinfo for each address ====== */ else { rspAddrInfo2 = rspAddrInfo; for(i = 0;i < localAddresses;i++) { rspAddrInfo2->ai_addrs = 1; rspAddrInfo2->ai_addr = (struct sockaddr*)&localAddressArray[i]; if(i < localAddresses - 1) { next = (struct rsp_addrinfo*)malloc(sizeof(struct rsp_addrinfo)); if(next == NULL) { break; } *next = *rspAddrInfo2; next->ai_next = NULL; rspAddrInfo2->ai_next = next; rspAddrInfo2 = next; } } } } /* ====== Set policy type and parameters ================================= */ int flags = 0; if(waitForRegistrationResult == false) { flags |= REGF_DONTWAIT; } if(rserpoolSocket->PoolElement->HasControlChannel) { flags |= REGF_CONTROLCHANNEL; } if(rserpoolSocket->PoolElement->InDaemonMode) { flags |= REGF_DAEMONMODE; } /* ====== Do registration ================================================ */ result = rsp_pe_registration( (unsigned char*)&rserpoolSocket->PoolElement->Handle.Handle, rserpoolSocket->PoolElement->Handle.Size, rspAddrInfo, &rserpoolSocket->PoolElement->LoadInfo, rserpoolSocket->PoolElement->RegistrationLife, flags); /* Keep identifier chosen by rsp_pe_registration()! */ rserpoolSocket->PoolElement->Identifier = rspAddrInfo->ai_pe_id; if(result == RSPERR_OKAY) { LOG_VERBOSE2 fprintf(stdlog, "(Re-)Registration successful, ID is $%08x\n", rserpoolSocket->PoolElement->Identifier); LOG_END /* printf("(Re-)Registration successful, ID is $%08x\n", rserpoolSocket->PoolElement->Identifier); */ } else { LOG_ERROR fprintf(stdlog, "(Re-)Registration failed: "); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } /* ====== Clean up ======================================================= */ if(sctpLocalAddressArray) { free(sctpLocalAddressArray); } if(localAddressArray) { free(localAddressArray); } if(packedAddressArray) { free(packedAddressArray); } while(rspAddrInfo != NULL) { next = rspAddrInfo->ai_next; free(rspAddrInfo); rspAddrInfo = next; } return(true); } rsplib-3.0.1/rsplib/rserpoolsocket.h0000664000175000017500000000742511777021056014471 00000000000000/* $Id: rserpoolsocket.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOLSOCKET_H #define RSERPOOLSOCKET_H #include "tdtypes.h" #include "rserpool-internals.h" #include "poolhandle.h" #include "identifierbitmap.h" #include "sessionstorage.h" #include "notificationqueue.h" #include "simpleredblacktree.h" #include "threadsafety.h" #include "netutilities.h" #include "timer.h" #include "tagitem.h" #include #ifdef __cplusplus extern "C" { #endif struct PoolElement { struct PoolHandle Handle; uint32_t Identifier; struct ThreadSafety Mutex; struct rsp_loadinfo LoadInfo; struct Timer ReregistrationTimer; unsigned int RegistrationLife; unsigned int ReregistrationInterval; bool HasControlChannel; bool InDaemonMode; }; struct RSerPoolSocket { struct SimpleRedBlackTreeNode Node; int Descriptor; struct ThreadSafety Mutex; int SocketDomain; int SocketType; int SocketProtocol; int Socket; struct MessageBuffer* MsgBuffer; struct PoolElement* PoolElement; /* PE mode */ struct Session* ConnectedSession; /* TCP-like PU mode */ struct SessionStorage SessionSet; /* UDP-like PU mode and PE mode */ struct TuneSCTPParameters AssocParameters; struct ThreadSafety SessionSetMutex; bool WaitingForFirstMsg; struct NotificationQueue Notifications; struct IdentifierBitmap* SessionAllocationBitmap; char* MessageBuffer; }; #define RSERPOOL_MESSAGE_BUFFER_SIZE 65536 void rserpoolSocketPrint(const void* node, FILE* fd); int rserpoolSocketComparison(const void* node1, const void* node2); struct RSerPoolSocket* getRSerPoolSocketForDescriptor(int sd); bool waitForRead(struct RSerPoolSocket* rserpoolSocket, int timeout); void deletePoolElement(struct PoolElement* poolElement, int flags, struct TagItem* tags); void reregistrationTimer(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); bool doRegistration(struct RSerPoolSocket* rserpoolSocket, bool waitForRegistrationResult); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/tcplikeserver.h0000664000175000017500000001305711777021056014273 00000000000000/* $Id: tcplikeserver.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2004-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TCPLIKESERVER_H #define TCPLIKESERVER_H #include "rserpool-internals.h" #include "cpprspserver.h" #include "thread.h" struct TagItem; class TCPLikeServer; class TCPLikeServerList : public TDMutex { public: TCPLikeServerList(size_t maxThreads, int systemNotificationPipe); ~TCPLikeServerList(); bool add(TCPLikeServer* thread); void remove(TCPLikeServer* thread); size_t handleRemovalsAndTimers(); void removeAll(); double getTotalLoad(); size_t getThreads(); inline size_t getMaxThreads() const { return(MaxThreads); } inline bool hasCapacity() const { return(Threads < MaxThreads); } private: friend class TCPLikeServer; struct ThreadListEntry { ThreadListEntry* Next; TCPLikeServer* Object; }; ThreadListEntry* ThreadList; size_t Threads; size_t MaxThreads; int SystemNotificationPipe; unsigned int LoadSum; }; class TCPLikeServer : public TDThread { friend class TCPLikeServerList; public: TCPLikeServer(int rserpoolSocketDescriptor); ~TCPLikeServer(); inline bool hasFinished() { lock(); const bool finished = Finished; unlock(); return(finished); } inline bool isShuttingDown() { lock(); const bool shutdown = Shutdown; unlock(); return(shutdown); } inline void setSyncTimer(const unsigned long long timeStamp) { lock(); SyncTimerTimeStamp = timeStamp; unlock(); } inline void setAsyncTimer(const unsigned long long timeStamp) { lock(); AsyncTimerTimeStamp = timeStamp; unlock(); } inline TCPLikeServerList* getServerList() const { return(ServerList); } inline void setServerList(TCPLikeServerList* serverList) { ServerList = serverList; } void shutdown(); double getLoad() const; void setLoad(double load); static void poolElement(const char* programTitle, const char* poolHandle, struct rsp_info* info, struct rsp_loadinfo* loadinfo, size_t maxThreads, TCPLikeServer* (*threadFactory)(int sd, void* userData, uint32_t peIdentifier), void (*printParameters)(const void* userData), void (*rejectNewSession)(int sd), bool (*initializeService)(void* userData), void (*finishService)(void* userData), double (*loadUpdateHook)(const double load), void* userData, const sockaddr* localAddressSet = NULL, const size_t localAddresses = 0, unsigned int reregInterval = 30000, unsigned int runtimeLimit = 0, const bool quiet = false, const bool daemonMode = false, struct TagItem* tags = NULL); protected: int RSerPoolSocketDescriptor; TCPLikeServerList* ServerList; protected: virtual EventHandlingResult initializeSession(); virtual void finishSession(EventHandlingResult result); virtual EventHandlingResult syncTimerEvent(const unsigned long long now); virtual void asyncTimerEvent(const unsigned long long now); virtual EventHandlingResult handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); virtual EventHandlingResult handleCookieEcho(const char* buffer, size_t bufferSize); virtual EventHandlingResult handleNotification(const union rserpool_notification* notification); private: void run(); unsigned int Load; bool IsNewSession; bool Shutdown; bool Finished; unsigned long long SyncTimerTimeStamp; unsigned long long AsyncTimerTimeStamp; }; #endif rsplib-3.0.1/rsplib/registrar.10000664000175000017500000000054711777021056013324 00000000000000.\" $Id: registrar.1 2682 2012-06-08 11:29:28Z dreibh $ .\" ###### Setup ############################################################ .Dd June 07, 2012 .Dt RspRegistrar 1 .Os RSerPool Registrar .\" ###### Note ############################################################# .Sh NAME .Nm registrar .Nd registrar has been renamed to rspregistrar in rsplib-3.0.0! rsplib-3.0.1/rsplib/rserpoolmessageparser.c0000664000175000017500000024023311777021056016031 00000000000000/* $Id: rserpoolmessageparser.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "netutilities.h" #include "rserpoolmessageparser.h" #include "rserpool.h" #include #include /* ###### Peek next TLV header type ###################################### */ static uint16_t peekNextTLVType(struct RSerPoolMessage* message) { const struct rserpool_tlv_header* header; header = (const struct rserpool_tlv_header*)getSpace(message, sizeof(struct rserpool_tlv_header)); if(header) { message->Position -= sizeof(struct rserpool_tlv_header); return(ntohs(header->atlv_type)); } return(0x00); } /* ###### Scan next TLV header ########################################### */ static bool getNextTLV(struct RSerPoolMessage* message, size_t* tlvPosition, struct rserpool_tlv_header** header, uint16_t* tlvType, size_t* tlvLength) { *tlvPosition = message->Position; message->OffendingParameterTLV = (char*)&message->Buffer[*tlvPosition]; message->OffendingParameterTLVLength = 0; *header = (struct rserpool_tlv_header*)getSpace(message, sizeof(struct rserpool_tlv_header)); if(*header == NULL) { message->Error = RSPERR_INVALID_MESSAGE; return(false); } *tlvType = ntohs((*header)->atlv_type); *tlvLength = (size_t)ntohs((*header)->atlv_length); LOG_VERBOSE5 fprintf(stdlog, "TLV: Type $%04x, length %u at position %u\n", *tlvType, (unsigned int)*tlvLength, (unsigned int)(message->Position - sizeof(struct rserpool_tlv_header))); LOG_END if(message->Position + *tlvLength - sizeof(struct rserpool_tlv_header) > message->BufferSize) { LOG_WARNING fprintf(stdlog, "TLV length exceeds message size!\n" "p=%u + l=%u > size=%u type=$%02x\n", (unsigned int)(message->Position - sizeof(struct rserpool_tlv_header)), (unsigned int)*tlvLength, (unsigned int)message->BufferSize, *tlvType); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } if(*tlvLength < sizeof(struct rserpool_tlv_header)) { LOG_WARNING fputs("TLV length too low!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } message->OffendingParameterTLVLength = *tlvLength; return(*tlvLength > 0); } /* ###### Handle unknown TLV ############################################# */ static bool handleUnknownTLV(struct RSerPoolMessage* message, const uint16_t tlvType, const size_t tlvLength) { void* ptr; if((tlvType & ATT_ACTION_MASK) == ATT_ACTION_CONTINUE) { ptr = getSpace(message, tlvLength - sizeof(struct rserpool_tlv_header)); if(ptr != NULL) { LOG_VERBOSE3 fprintf(stdlog, "Silently skipping TLV type $%02x at position %u\n", tlvType, (unsigned int)(message->Position - sizeof(struct rserpool_tlv_header))); LOG_END return(true); } } else if((tlvType & ATT_ACTION_MASK) == ATT_ACTION_CONTINUE_AND_REPORT) { ptr = getSpace(message, tlvLength - sizeof(struct rserpool_tlv_header)); if(ptr != NULL) { LOG_VERBOSE3 fprintf(stdlog, "Skipping TLV type $%02x at position %u\n", tlvType, (unsigned int)(message->Position - sizeof(struct rserpool_tlv_header))); LOG_END /* Implement Me: Build error table! */ return(true); } return(false); } else if((tlvType & ATT_ACTION_MASK) == ATT_ACTION_STOP) { LOG_VERBOSE1 fprintf(stdlog, "Silently stop processing for type $%02x at position %u\n", tlvType, (unsigned int)message->Position); LOG_END message->Position -= sizeof(struct rserpool_tlv_header); message->Error = RSPERR_UNRECOGNIZED_PARAMETER_SILENT; return(false); } else if((tlvType & ATT_ACTION_MASK) == ATT_ACTION_STOP_AND_REPORT) { LOG_VERBOSE1 fprintf(stdlog, "Stop processing for type $%02x at position %u\n", tlvType, (unsigned int)message->Position); LOG_END message->Position -= sizeof(struct rserpool_tlv_header); message->Error = RSPERR_UNRECOGNIZED_PARAMETER; return(false); } return(false); } /* ###### Check begin of message ######################################### */ static size_t checkBeginMessage(struct RSerPoolMessage* message, size_t* startPosition) { struct rserpool_header* header; size_t length; *startPosition = message->Position; message->OffendingParameterTLV = NULL; message->OffendingParameterTLV = 0; header = (struct rserpool_header*)getSpace(message, sizeof(struct rserpool_header)); if(header == NULL) { message->Error = RSPERR_INVALID_MESSAGE; return(0); } length = (size_t)ntohs(header->ah_length); if(message->Position + length - sizeof(struct rserpool_header) > message->BufferSize) { LOG_WARNING fprintf(stdlog, "Message length exceeds message size!\n" "p=%u + l=%u - 4 > size=%u\n", (unsigned int)message->Position, (unsigned int)length, (unsigned int)message->BufferSize); LOG_END message->Error = RSPERR_INVALID_MESSAGE; return(0); } if(length < sizeof(struct rserpool_tlv_header)) { LOG_WARNING fputs("Message length too low!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_MESSAGE; return(0); } message->Flags = header->ah_flags; return(length); } /* ###### Check finish of message ######################################## */ static bool checkFinishMessage(struct RSerPoolMessage* message, const size_t startPosition) { struct rserpool_header* header = (struct rserpool_header*)&message->Buffer[startPosition]; const size_t length = (size_t)ntohs(header->ah_length); const size_t endPos = startPosition + length; const size_t padding = getPadding(endPos, 4); if(message->Position != endPos + padding) { LOG_WARNING fputs("Message length invalid!\n", stdlog); fprintf(stdlog, "position=%u expected=%u padding=%u\n", (unsigned int)message->Position, (unsigned int)endPos, (unsigned int)padding); LOG_END if(message->Error == RSPERR_OKAY) { /* Error has not been set yet (first error occured) */ message->Error = RSPERR_INVALID_MESSAGE; } return(false); } message->OffendingParameterTLV = NULL; message->OffendingParameterTLVLength = 0; return(true); } /* ###### Check begin of TLV ############################################# */ static size_t checkBeginTLV(struct RSerPoolMessage* message, size_t* tlvPosition, const uint16_t expectedType, const bool checkType) { struct rserpool_tlv_header* header; uint16_t tlvType; size_t tlvLength; tlvLength = 0; tlvType = 0; while(getNextTLV(message, tlvPosition, &header, &tlvType, &tlvLength)) { if((!checkType) || (PURE_ATT_TYPE(tlvType) == (expectedType))) { break; } LOG_VERBOSE4 fprintf(stdlog, "Type $%04x, expected type $%04x!\n", PURE_ATT_TYPE(tlvType), PURE_ATT_TYPE(expectedType)); LOG_END if(handleUnknownTLV(message, tlvType, tlvLength) == false) { return(0); } } return(tlvLength); } /* ###### Check finish of TLV ############################################ */ static bool checkFinishTLV(struct RSerPoolMessage* message, const size_t tlvPosition) { struct rserpool_tlv_header* header = (struct rserpool_tlv_header*)&message->Buffer[tlvPosition]; const size_t length = (size_t)ntohs(header->atlv_length); const size_t endPos = tlvPosition + length + getPadding(length, 4); if(message->Position > endPos) { LOG_WARNING fputs("TLV length invalid!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } else if(message->Position < endPos) { LOG_VERBOSE4 fprintf(stdlog, "Skipping data: p=%u -> p=%u.\n", (unsigned int)message->Position, (unsigned int)endPos); LOG_END if(getSpace(message,endPos - message->Position) == NULL) { LOG_WARNING fputs("Unxpected end of message!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } } message->OffendingParameterTLV = NULL; message->OffendingParameterTLVLength = 0; return(true); } /* ###### Scan address parameter ######################################### */ static bool scanAddressParameter(struct RSerPoolMessage* message, const uint16_t port, union sockaddr_union* address) { struct sockaddr_in* in; uint16_t tlvType; char* space; struct sockaddr_in6* in6; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, 0, false); if(tlvLength == 0) { message->Error = RSPERR_BUFFERSIZE_EXCEEDED; return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); memset((void*)address, 0, sizeof(union sockaddr_union)); tlvType = ntohs(((struct rserpool_tlv_header*)&message->Buffer[tlvPosition])->atlv_type); switch(PURE_ATT_TYPE(tlvType)) { case ATT_IPv4_ADDRESS: if(tlvLength >= 4) { space = (char*)getSpace(message, 4); if(space == NULL) { LOG_WARNING fputs("Unexpected end of IPv4 address TLV!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } in = (struct sockaddr_in*)address; in->sin_family = AF_INET; in->sin_port = htons(port); #ifdef HAVE_SIN_LEN in->sin_len = sizeof(struct sockaddr_in); #endif memcpy((char*)&in->sin_addr, (char*)space, 4); } else { LOG_WARNING fputs("IPv4 address TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case ATT_IPv6_ADDRESS: if(tlvLength >= 16) { space = (char*)getSpace(message, 16); if(space == NULL) { LOG_WARNING fputs("Unexpected end of IPv6 address TLV!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } in6 = (struct sockaddr_in6*)address; in6->sin6_family = AF_INET6; in6->sin6_port = htons(port); in6->sin6_flowinfo = 0; in6->sin6_scope_id = 0; #ifdef HAVE_SIN6_LEN in6->sin6_len = sizeof(struct sockaddr_in6); #endif memcpy((char*)&in6->sin6_addr, (char*)space, 16); } else { LOG_WARNING fputs("IPv6 address TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; default: if(handleUnknownTLV(message, tlvType, tlvLength) == false) { return(false); } break; } return(checkFinishTLV(message, tlvPosition)); } /* ###### Scan user transport parameter ################################## */ static bool scanTransportParameter(struct RSerPoolMessage* message, struct TransportAddressBlock* transportAddressBlock) { size_t addresses; union sockaddr_union addressArray[MAX_PE_TRANSPORTADDRESSES]; struct rserpool_udptransportparameter* utp; struct rserpool_tcptransportparameter* ttp; struct rserpool_sctptransportparameter* stp; size_t tlvEndPos; uint16_t tlvType; uint16_t port = 0; int protocol = 0; bool hasControlChannel = false; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, 0, false); if(tlvLength < sizeof(struct rserpool_tlv_header)) { message->Error = RSPERR_INVALID_TLV; return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); tlvEndPos = message->Position + tlvLength; tlvType = ntohs(((struct rserpool_tlv_header*)&message->Buffer[tlvPosition])->atlv_type); switch(PURE_ATT_TYPE(tlvType)) { case ATT_SCTP_TRANSPORT: stp = (struct rserpool_sctptransportparameter*)getSpace(message, sizeof(struct rserpool_sctptransportparameter)); if(stp == NULL) { message->Error = RSPERR_INVALID_TLV; return(false); } port = ntohs(stp->stp_port); protocol = IPPROTO_SCTP; if(ntohs(stp->stp_transport_use) == UTP_DATA_PLUS_CONTROL) { hasControlChannel = true; } break; case ATT_TCP_TRANSPORT: ttp = (struct rserpool_tcptransportparameter*)getSpace(message, sizeof(struct rserpool_tcptransportparameter)); if(ttp == NULL) { message->Error = RSPERR_INVALID_TLV; return(false); } port = ntohs(ttp->ttp_port); protocol = IPPROTO_TCP; if(ntohs(ttp->ttp_transport_use) == UTP_DATA_PLUS_CONTROL) { hasControlChannel = true; } break; case ATT_UDP_TRANSPORT: utp = (struct rserpool_udptransportparameter*)getSpace(message, sizeof(struct rserpool_udptransportparameter)); if(utp == NULL) { message->Error = RSPERR_INVALID_TLV; return(false); } port = ntohs(utp->utp_port); protocol = IPPROTO_UDP; hasControlChannel = false; break; #if 0 case ATT_DCCP_TRANSPORT: dtp = (struct rserpool_dccptransportparameter*)getSpace(message, sizeof(struct rserpool_dccptransportparameter)); if(dtp == NULL) { message->Error = RSPERR_INVALID_TLV; return(false); } port = ntohs(dtp->dtp_port); protocol = IPPROTO_DCCP; hasControlChannel = false; break; #endif default: if(handleUnknownTLV(message, tlvType, tlvLength) == false) { return(false); } break; } addresses = 0; while(message->Position < tlvEndPos) { if(addresses >= MAX_PE_TRANSPORTADDRESSES) { LOG_WARNING fputs("Too many addresses, internal limit reached!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } if((tlvType != ATT_SCTP_TRANSPORT) && (addresses > 1)) { LOG_WARNING fputs("Multiple addresses for non-multihomed protocol!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } if(scanAddressParameter(message, port, &addressArray[addresses]) == false) { message->Error = RSPERR_OKAY; break; } /* Link-local scoped addresses will be skipped => it is not possible to determine the right network interface! */ if(getScope(&addressArray[addresses].sa) > AS_UNICAST_LINKLOCAL) { addresses++; } else { LOG_VERBOSE3 fputs("Skipping link-local address in Transport Parameter\n", stdlog); LOG_END } LOG_VERBOSE3 fprintf(stdlog, "Scanned address %u.\n", (unsigned int)addresses); LOG_END } if(addresses < 1) { LOG_WARNING fputs("No (usable) transport addresses given!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } transportAddressBlockNew(transportAddressBlock, protocol, port, (hasControlChannel == true) ? TABF_CONTROLCHANNEL : 0, (union sockaddr_union*)&addressArray, addresses, MAX_PE_TRANSPORTADDRESSES); LOG_VERBOSE3 fprintf(stdlog, "New TransportAddressBlock: "); transportAddressBlockPrint(transportAddressBlock, stdlog); fputs(".\n", stdlog); LOG_END if(checkFinishTLV(message, tlvPosition)) { return(true); } return(false); } /* ###### Scan Pool Policy parameter ##################################### */ static bool scanPolicyParameter(struct RSerPoolMessage* message, struct PoolPolicySettings* poolPolicySettings) { const struct rserpool_policy_roundrobin* rr; struct rserpool_policy_weighted_roundrobin* wrr; struct rserpool_policy_priority* p; struct rserpool_policy_leastused* lu; struct rserpool_policy_leastused_dpf* ludpf; struct rserpool_policy_leastused_degradation* lud; struct rserpool_policy_leastused_degradation_dpf* luddpf; struct rserpool_policy_priority_leastused* plu; struct rserpool_policy_priority_leastused_degradation* plud; struct rserpool_policy_random* rd; struct rserpool_policy_weighted_random* wrd; struct rserpool_policy_weighted_random_dpf* wrddpf; struct rserpool_policy_randomized_leastused* rlu; struct rserpool_policy_randomized_leastused_degradation* rlud; struct rserpool_policy_randomized_priority_leastused* rplu; struct rserpool_policy_randomized_priority_leastused_degradation* rplud; uint32_t policyType; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_POOL_POLICY, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { message->Error = RSPERR_INVALID_TLV; return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength < sizeof(policyType)) { LOG_WARNING fputs("TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } policyType = ntohl(*((uint32_t*)&message->Buffer[message->Position])); poolPolicySettingsNew(poolPolicySettings); switch(policyType) { case PPT_LEASTUSED: if(tlvLength >= sizeof(struct rserpool_policy_leastused)) { lu = (struct rserpool_policy_leastused*)getSpace(message, sizeof(struct rserpool_policy_leastused)); if(lu == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(lu->pp_lu_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(lu->pp_lu_load); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy LU, load=$%06x\n",poolPolicySettings->Load); LOG_END } else { LOG_WARNING fputs("LU TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_LEASTUSED_DPF: if(tlvLength >= sizeof(struct rserpool_policy_leastused_dpf)) { ludpf = (struct rserpool_policy_leastused_dpf*)getSpace(message, sizeof(struct rserpool_policy_leastused_dpf)); if(ludpf == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(ludpf->pp_ludpf_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(ludpf->pp_ludpf_load); poolPolicySettings->LoadDPF = ntohl(ludpf->pp_ludpf_load_dpf); poolPolicySettings->Distance = ntohl(ludpf->pp_ludpf_distance); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy LU-DPF, load=$%06x, ldpf=%1.3f%%, distance=%u\n", poolPolicySettings->Load, 100.0 * ((double)poolPolicySettings->LoadDPF / (double)PPV_MAX_LOADDPF), poolPolicySettings->Distance); LOG_END } else { LOG_WARNING fputs("LU-DPF TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_LEASTUSED_DEGRADATION: if(tlvLength >= sizeof(struct rserpool_policy_leastused_degradation)) { lud = (struct rserpool_policy_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_leastused_degradation)); if(lud == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(lud->pp_lud_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(lud->pp_lud_load); poolPolicySettings->LoadDegradation = ntohl(lud->pp_lud_loaddeg); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy LUD, load=$%06x loaddeg=$%06x\n", poolPolicySettings->Load, poolPolicySettings->LoadDegradation); LOG_END } else { LOG_WARNING fputs("LUD TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_LEASTUSED_DEGRADATION_DPF: if(tlvLength >= sizeof(struct rserpool_policy_leastused_degradation_dpf)) { luddpf = (struct rserpool_policy_leastused_degradation_dpf*)getSpace(message, sizeof(struct rserpool_policy_leastused_degradation_dpf)); if(luddpf == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(luddpf->pp_luddpf_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(luddpf->pp_luddpf_load); poolPolicySettings->LoadDegradation = ntohl(luddpf->pp_luddpf_loaddeg); poolPolicySettings->LoadDPF = ntohl(luddpf->pp_luddpf_load_dpf); poolPolicySettings->Distance = ntohl(luddpf->pp_luddpf_distance); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy LUD-DPF, load=$%06x, loaddeg=$%06x, ldpf=%1.3f%%, distance=%u\n", poolPolicySettings->Load, poolPolicySettings->LoadDegradation, 100.0 * ((double)poolPolicySettings->LoadDPF / (double)PPV_MAX_LOADDPF), poolPolicySettings->Distance); LOG_END } else { LOG_WARNING fputs("LUD-DPF TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_PRIORITY_LEASTUSED: if(tlvLength >= sizeof(struct rserpool_policy_priority_leastused)) { plu = (struct rserpool_policy_priority_leastused*)getSpace(message, sizeof(struct rserpool_policy_priority_leastused)); if(plu == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(plu->pp_plu_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(plu->pp_plu_load); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy PLU, load=$%06x\n",poolPolicySettings->Load); LOG_END } else { LOG_WARNING fputs("PLU TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_PRIORITY_LEASTUSED_DEGRADATION: if(tlvLength >= sizeof(struct rserpool_policy_priority_leastused_degradation)) { plud = (struct rserpool_policy_priority_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_priority_leastused_degradation)); if(plud == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(plud->pp_plud_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(plud->pp_plud_load); poolPolicySettings->LoadDegradation = ntohl(plud->pp_plud_loaddeg); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy PLUD, load=$%06x loaddeg=$%06x\n", poolPolicySettings->Load, poolPolicySettings->LoadDegradation); LOG_END } else { LOG_WARNING fputs("PLUD TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_RANDOM: if(tlvLength >= sizeof(struct rserpool_policy_random)) { rd = (struct rserpool_policy_random*)getSpace(message, sizeof(struct rserpool_policy_random)); if(rd == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(rd->pp_rd_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = 0; LOG_VERBOSE3 fputs("Scanned policy RAND\n", stdlog); LOG_END } else { LOG_WARNING fputs("RAND TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_WEIGHTED_RANDOM: if(tlvLength >= sizeof(struct rserpool_policy_weighted_random)) { wrd = (struct rserpool_policy_weighted_random*)getSpace(message, sizeof(struct rserpool_policy_weighted_random)); if(wrd == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(wrd->pp_wrd_policy); poolPolicySettings->Weight = ntohl(wrd->pp_wrd_weight); poolPolicySettings->Load = 0; LOG_VERBOSE3 fprintf(stdlog, "Scanned policy WRAND, weight=%u\n", poolPolicySettings->Weight); LOG_END } else { LOG_WARNING fputs("WRAND TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } break; case PPT_WEIGHTED_RANDOM_DPF: if(tlvLength >= sizeof(struct rserpool_policy_weighted_random_dpf)) { wrddpf = (struct rserpool_policy_weighted_random_dpf*)getSpace(message, sizeof(struct rserpool_policy_weighted_random_dpf)); if(wrddpf == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(wrddpf->pp_wrddpf_policy); poolPolicySettings->Weight = ntohl(wrddpf->pp_wrddpf_weight); poolPolicySettings->Load = 0; poolPolicySettings->WeightDPF = ntohl(wrddpf->pp_wrddpf_weight_dpf); poolPolicySettings->Distance = ntohl(wrddpf->pp_wrddpf_distance); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy WRAND-DPF, weight=%u, wdpf=%1.3f%%, distance=%u\n", poolPolicySettings->Weight, 100.0 * ((double)poolPolicySettings->WeightDPF / (double)PPV_MAX_WEIGHTDPF), poolPolicySettings->Distance); LOG_END } else { LOG_WARNING fputs("WRAND-DPF TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_ROUNDROBIN: if(tlvLength >= sizeof(struct rserpool_policy_roundrobin)) { rr = (struct rserpool_policy_roundrobin*)getSpace(message, sizeof(struct rserpool_policy_roundrobin)); if(rr == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(rr->pp_rr_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = 0; LOG_VERBOSE3 fputs("Scanned policy RR\n", stdlog); LOG_END } else { LOG_WARNING fputs("RR TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_WEIGHTED_ROUNDROBIN: if(tlvLength >= sizeof(struct rserpool_policy_weighted_roundrobin)) { wrr = (struct rserpool_policy_weighted_roundrobin*)getSpace(message, sizeof(struct rserpool_policy_weighted_roundrobin)); if(wrr == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(wrr->pp_wrr_policy); poolPolicySettings->Weight = ntohl(wrr->pp_wrr_weight); poolPolicySettings->Load = 0; LOG_VERBOSE3 fprintf(stdlog, "Scanned policy WRR, weight=%u\n",poolPolicySettings->Weight); LOG_END } else { LOG_WARNING fputs("WRR TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_PRIORITY: if(tlvLength >= sizeof(struct rserpool_policy_priority)) { p = (struct rserpool_policy_priority*)getSpace(message, sizeof(struct rserpool_policy_priority)); if(p == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } poolPolicySettings->PolicyType = ntohl(p->pp_p_policy); poolPolicySettings->Weight = ntohl(p->pp_p_priority); poolPolicySettings->Load = 0; LOG_VERBOSE3 fprintf(stdlog, "Scanned policy PRI, priority=%u\n",poolPolicySettings->Weight); LOG_END } else { LOG_WARNING fputs("PRI TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_RANDOMIZED_LEASTUSED: if(tlvLength >= sizeof(struct rserpool_policy_randomized_leastused)) { rlu = (struct rserpool_policy_randomized_leastused*)getSpace(message, sizeof(struct rserpool_policy_randomized_leastused)); if(rlu == NULL) { return(false); } poolPolicySettings->PolicyType = ntohl(rlu->pp_rlu_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(rlu->pp_rlu_load); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy RLU, load=$%06x\n",poolPolicySettings->Load); LOG_END } else { LOG_WARNING fputs("RLU TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } break; case PPT_RANDOMIZED_LEASTUSED_DEGRADATION: if(tlvLength >= sizeof(struct rserpool_policy_randomized_leastused_degradation)) { rlud = (struct rserpool_policy_randomized_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_randomized_leastused_degradation)); if(rlud == NULL) { return(false); } poolPolicySettings->PolicyType = ntohl(rlud->pp_rlud_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(rlud->pp_rlud_load); poolPolicySettings->LoadDegradation = ntohl(rlud->pp_rlud_loaddeg); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy RLUD, load=$%06x loaddeg=$%06x\n", poolPolicySettings->Load, poolPolicySettings->LoadDegradation); LOG_END } else { LOG_WARNING fputs("RLUD TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_RANDOMIZED_PRIORITY_LEASTUSED: if(tlvLength >= sizeof(struct rserpool_policy_randomized_priority_leastused)) { rplu = (struct rserpool_policy_randomized_priority_leastused*)getSpace(message, sizeof(struct rserpool_policy_randomized_priority_leastused)); if(rplu == NULL) { return(false); } poolPolicySettings->PolicyType = ntohl(rplu->pp_rplu_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(rplu->pp_rplu_load); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy PLU, load=$%06x\n",poolPolicySettings->Load); LOG_END } else { LOG_WARNING fputs("PLU TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; case PPT_RANDOMIZED_PRIORITY_LEASTUSED_DEGRADATION: if(tlvLength >= sizeof(struct rserpool_policy_randomized_priority_leastused_degradation)) { rplud = (struct rserpool_policy_randomized_priority_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_randomized_priority_leastused_degradation)); if(rplud == NULL) { return(false); } poolPolicySettings->PolicyType = ntohl(rplud->pp_rplud_policy); poolPolicySettings->Weight = 0; poolPolicySettings->Load = ntohl(rplud->pp_rplud_load); poolPolicySettings->LoadDegradation = ntohl(rplud->pp_rplud_loaddeg); LOG_VERBOSE3 fprintf(stdlog, "Scanned policy RPLUD, load=$%06x loaddeg=$%06x\n", poolPolicySettings->Load, poolPolicySettings->LoadDegradation); LOG_END } else { LOG_WARNING fputs("RPLUD TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } break; default: LOG_WARNING fprintf(stdlog, "Unsupported policy $%08x\n", policyType); LOG_END message->Error = RSPERR_UNSUPPORTED_POOL_POLICY; return(false); break; } return(checkFinishTLV(message, tlvPosition)); } /* ###### Scan pool element paramter ##################################### */ static struct ST_CLASS(PoolElementNode)* scanPoolElementParameter( struct RSerPoolMessage* message, const bool registratorTransportRequired, const bool mustHaveHomeRegistrar) { struct rserpool_poolelementparameter* pep; char userTransportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* userTransportAddressBlock = (struct TransportAddressBlock*)&userTransportAddressBlockBuffer; struct TransportAddressBlock* newUserTransportAddressBlock; char registratorTransportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* registratorTransportAddressBlock = (struct TransportAddressBlock*)®istratorTransportAddressBlockBuffer; struct TransportAddressBlock* newRegistratorTransportAddressBlock; bool hasRegistratorTransportAddressBlock = false; struct PoolPolicySettings poolPolicySettings; struct ST_CLASS(PoolElementNode)* poolElementNode; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_POOL_ELEMENT, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { message->Error = RSPERR_INVALID_TLV; return(NULL); } pep = (struct rserpool_poolelementparameter*)getSpace(message, sizeof(struct rserpool_poolelementparameter)); if(pep == NULL) { message->Error = RSPERR_INVALID_TLV; return(NULL); } if( (mustHaveHomeRegistrar) && (pep->pep_homeserverid == UNDEFINED_REGISTRAR_IDENTIFIER) ) { message->Error = RSPERR_INVALID_VALUE; return(NULL); } if(scanTransportParameter(message, userTransportAddressBlock) == false) { return(NULL); } if(scanPolicyParameter(message, &poolPolicySettings) == false) { return(NULL); } if(registratorTransportRequired) { if(scanTransportParameter(message, registratorTransportAddressBlock)) { hasRegistratorTransportAddressBlock = true; } } if(checkFinishTLV(message, tlvPosition) == false) { return(NULL); } poolElementNode = (struct ST_CLASS(PoolElementNode)*)malloc(sizeof(struct ST_CLASS(PoolElementNode))); if(poolElementNode == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; return(NULL); } newUserTransportAddressBlock = transportAddressBlockDuplicate(userTransportAddressBlock); if(newUserTransportAddressBlock == NULL) { free(poolElementNode); message->Error = RSPERR_OUT_OF_MEMORY; return(NULL); } if(hasRegistratorTransportAddressBlock) { newRegistratorTransportAddressBlock = transportAddressBlockDuplicate(registratorTransportAddressBlock); if(registratorTransportAddressBlock == NULL) { free(newUserTransportAddressBlock); free(poolElementNode); message->Error = RSPERR_OUT_OF_MEMORY; return(NULL); } } else { newRegistratorTransportAddressBlock = NULL; } ST_CLASS(poolElementNodeNew)(poolElementNode, ntohl(pep->pep_identifier), ntohl(pep->pep_homeserverid), ntohl(pep->pep_reg_life), &poolPolicySettings, newUserTransportAddressBlock, newRegistratorTransportAddressBlock, -1, 0); LOG_VERBOSE5 fputs("Successfully scanned pool element parameter: ", stdlog); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); LOG_END return(poolElementNode); } /* ###### Scan pool handle paramter ###################################### */ static bool scanPoolHandleParameter(struct RSerPoolMessage* message, struct PoolHandle* poolHandlePtr) { unsigned char* poolHandle; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_POOL_HANDLE, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength < 1) { LOG_WARNING fputs("Pool handle too short!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_TLV; return(false); } poolHandle = (unsigned char*)getSpace(message, tlvLength); if(poolHandle == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } if(tlvLength > MAX_POOLHANDLESIZE) { message->Error = RSPERR_INVALID_VALUE; } poolHandleNew(poolHandlePtr, poolHandle, tlvLength); LOG_VERBOSE3 fprintf(stdlog, "Scanned pool handle "); poolHandlePrint(poolHandlePtr, stdlog); fprintf(stdlog, ", length=%u.\n", (unsigned int)poolHandlePtr->Size); LOG_END return(checkFinishTLV(message, tlvPosition)); } /* ###### Scan pool element identifier parameter ######################### */ static bool scanPoolElementIdentifierParameter(struct RSerPoolMessage* message) { uint32_t* identifier; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_POOL_ELEMENT_IDENTIFIER, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength != sizeof(uint32_t)) { LOG_WARNING fputs("Pool element identifier too short!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } identifier = (uint32_t*)getSpace(message, tlvLength); if(identifier == NULL) { return(false); } message->Identifier = ntohl(*identifier); LOG_VERBOSE3 fprintf(stdlog, "Scanned pool element identifier $%08x\n", message->Identifier); LOG_END return(checkFinishTLV(message, tlvPosition)); } /* ###### Scan pool element checksum parameter ########################### */ static bool scanHandlespaceChecksumParameter(struct RSerPoolMessage* message) { uint16_t* checksum; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_POOL_ELEMENT_CHECKSUM, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength != sizeof(uint16_t)) { LOG_WARNING fputs("Pool element checksum too short!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } checksum = (uint16_t*)getSpace(message, tlvLength); if(checksum == NULL) { return(false); } message->Checksum = *checksum; LOG_VERBOSE3 fprintf(stdlog, "Scanned pool element checksum $%08x\n", message->Checksum); LOG_END return(checkFinishTLV(message, tlvPosition)); } /* ###### Scan error parameter ########################################### */ static bool scanErrorParameter(struct RSerPoolMessage* message) { struct rserpool_errorcause* aec; char* data; size_t dataLength; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_OPERATION_ERROR, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength < sizeof(struct rserpool_errorcause)) { LOG_WARNING fputs("Error parameter TLV too short\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } aec = (struct rserpool_errorcause*)&message->Buffer[message->Position]; message->OperationErrorCode = ntohs(aec->aec_cause); dataLength = ntohs(aec->aec_length); if(dataLength < sizeof(struct rserpool_errorcause)) { LOG_WARNING fputs("Cause length too short!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } dataLength -= sizeof(struct rserpool_errorcause); data = (char*)getSpace(message,dataLength); if(data == NULL) { return(false); } message->OperationErrorData = data; message->OperationErrorLength = dataLength; return(checkFinishTLV(message, tlvPosition)); } /* ###### Scan cookie parameter ########################################## */ static bool scanCookieParameter(struct RSerPoolMessage* message) { void* cookie; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_COOKIE, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength < 1) { LOG_WARNING fputs("Cookie too short!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } cookie = (void*)getSpace(message, tlvLength); if(cookie == NULL) { return(false); } message->CookiePtr = malloc(tlvLength); if(message->CookiePtr == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; return(false); } message->CookieSize = tlvLength; memcpy(message->CookiePtr,cookie, message->CookieSize); LOG_VERBOSE3 fprintf(stdlog, "Scanned cookie, length=%d\n",(int)message->CookieSize); LOG_END return(true); } /* ###### Scan server information paramter ############################### */ static struct ST_CLASS(PeerListNode)* scanServerInformationParameter(struct RSerPoolMessage* message) { char transportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* transportAddressBlock = (struct TransportAddressBlock*)&transportAddressBlockBuffer; struct TransportAddressBlock* newTransportAddressBlock; struct ST_CLASS(PeerListNode)* peerListNode; struct rserpool_serverinfoparameter* sip; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_SERVER_INFORMATION, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength < 1) { LOG_WARNING fputs("Server information too short!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } sip = (struct rserpool_serverinfoparameter*)getSpace(message, sizeof(struct rserpool_serverinfoparameter)); if(sip == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } if(scanTransportParameter(message, transportAddressBlock) == false) { message->Error = RSPERR_INVALID_VALUE; return(false); } peerListNode = (struct ST_CLASS(PeerListNode)*)malloc(sizeof(struct ST_CLASS(PeerListNode))); if(peerListNode == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; return(false); } newTransportAddressBlock = transportAddressBlockDuplicate(transportAddressBlock); if(newTransportAddressBlock == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; free(peerListNode); return(false); } ST_CLASS(peerListNodeNew)(peerListNode, ntohl(sip->sip_server_id), 0, newTransportAddressBlock); LOG_VERBOSE3 fprintf(stdlog, "Scanned server information parameter for registrar $%08x, flags=$%08x, address=", peerListNode->Identifier, peerListNode->Flags); transportAddressBlockPrint(transportAddressBlock, stdlog); fputs("\n", stdlog); LOG_END if(checkFinishTLV(message, tlvPosition) == false) { free(newTransportAddressBlock); free(peerListNode); return(false); } return(peerListNode); } /* ###### Scan pool element checksum parameter ########################### */ static bool scanHandleResolutionParameter(struct RSerPoolMessage* message) { struct rserpool_handleresolutionparameter* hrp; size_t tlvPosition = 0; size_t tlvLength = checkBeginTLV(message, &tlvPosition, ATT_HANDLE_RESOLUTION, true); if(tlvLength < sizeof(struct rserpool_tlv_header)) { return(false); } tlvLength -= sizeof(struct rserpool_tlv_header); if(tlvLength < sizeof(struct rserpool_handleresolutionparameter)) { LOG_WARNING fputs("Handle resolution parameter too short!\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } hrp = (struct rserpool_handleresolutionparameter*)getSpace(message, sizeof(struct rserpool_handleresolutionparameter)); if(hrp == NULL) { return(false); } if(hrp->hrp_items == 0xffffffff) { message->Addresses = RSPGETADDRS_MAX; } else { message->Addresses = ntohl(hrp->hrp_items); } LOG_VERBOSE3 fprintf(stdlog, "Scanned handle resolution parameter, items=%u\n", (unsigned int)message->Addresses); LOG_END return(checkFinishTLV(message, tlvPosition)); } /* ###### Scan endpoint keepalive message ################################ */ static bool scanEndpointKeepAliveMessage(struct RSerPoolMessage* message) { uint32_t* registrarIdentifier; registrarIdentifier = (uint32_t*)getSpace(message, sizeof(uint32_t)); if(registrarIdentifier == NULL) { return(false); } message->RegistrarIdentifier = ntohl(*registrarIdentifier); if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } /* ------ Custom parameter ------ */ if(scanPoolElementIdentifierParameter(message) == false) { message->Identifier = 0; } /* ------------------------------ */ return(true); } /* ###### Scan endpoint keepalive acknowledgement message ################ */ static bool scanEndpointKeepAliveAckMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanPoolElementIdentifierParameter(message) == false) { return(false); } return(true); } /* ###### Scan endpoint unreachable message ############################## */ static bool scanEndpointUnreachableMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanPoolElementIdentifierParameter(message) == false) { return(false); } return(true); } /* ###### Scan registration message ###################################### */ static bool scanRegistrationMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } message->PoolElementPtr = scanPoolElementParameter(message, false, false); if(message->PoolElementPtr == NULL) { return(false); } if(message->PoolElementPtr->RegistratorTransport != NULL) { message->Error = RSPERR_INVALID_REGISTRATOR; return(false); } return(true); } /* ###### Scan deregistration message #################################### */ static bool scanDeregistrationMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanPoolElementIdentifierParameter(message) == false) { return(false); } return(true); } /* ###### Scan registration response message ############################# */ static bool scanRegistrationResponseMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanPoolElementIdentifierParameter(message) == false) { return(false); } if(message->Position < message->BufferSize) { if(!scanErrorParameter(message)) { return(false); } } return(true); } /* ###### Scan deregistration response message ########################### */ static bool scanDeregistrationResponseMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanPoolElementIdentifierParameter(message) == false) { return(false); } if(message->Position < message->BufferSize) { if(!scanErrorParameter(message)) { return(false); } } return(true); } /* ###### Scan handle resolution message ################################# */ static bool scanHandleResolutionMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanHandleResolutionParameter(message) == false) { message->Addresses = 0; } return(true); } /* ###### Scan handle resolution response message ######################## */ static bool scanHandleResolutionResponseMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(!scanErrorParameter(message)) { if(scanPolicyParameter(message, &message->PolicySettings) == false) { return(false); } message->PoolElementPtrArraySize = 0; while(message->Position < message->BufferSize) { if(message->PoolElementPtrArraySize >= MAX_MAX_HANDLE_RESOLUTION_ITEMS) { LOG_WARNING fputs("Too many Pool Element Parameters in Handle Resolution Response\n", stdlog); LOG_END return(false); } message->PoolElementPtrArray[message->PoolElementPtrArraySize] = scanPoolElementParameter(message, false, false); if(message->PoolElementPtrArray[message->PoolElementPtrArraySize] == false) { break; } message->PoolElementPtrArraySize++; } } return(true); } /* ###### Scan handle resolution response message ######################## */ static bool scanServerAnnounceMessage(struct RSerPoolMessage* message) { uint32_t* registrarIdentifier; char transportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* transportAddressBlock = (struct TransportAddressBlock*)&transportAddressBlockBuffer; registrarIdentifier = (uint32_t*)getSpace(message, sizeof(uint32_t)); if(registrarIdentifier == NULL) { return(false); } message->RegistrarIdentifier = ntohl(*registrarIdentifier); /* ====== Try to read Server Information Parameter ==================== */ transportAddressBlock->Protocol = 0; while( (scanTransportParameter(message, transportAddressBlock) == true) && (transportAddressBlock->Protocol != IPPROTO_SCTP) ) { } if(transportAddressBlock->Protocol != IPPROTO_SCTP) { /* ====== Take address and port from UDP message =================== */ transportAddressBlockNew(&transportAddressBlock[0], IPPROTO_SCTP, getPort(&message->SourceAddress.sa), 0, &message->SourceAddress, 1, 1); } /* ====== Create PeerListNode ========================================= */ message->PeerListNodePtr = scanServerInformationParameter(message); if(message->PeerListNodePtr == NULL) { message->PeerListNodePtr = (struct ST_CLASS(PeerListNode)*)malloc(sizeof(struct ST_CLASS(PeerListNode))); if(message->PeerListNodePtr == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; return(false); } transportAddressBlock = transportAddressBlockDuplicate(transportAddressBlock); if(transportAddressBlock == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; free(message->PeerListNodePtr); message->PeerListNodePtr = NULL; return(false); } ST_CLASS(peerListNodeNew)(message->PeerListNodePtr, message->RegistrarIdentifier, PLNF_DYNAMIC, transportAddressBlock); } return(true); } /* ###### Scan cookie message ################################################ */ static bool scanCookieMessage(struct RSerPoolMessage* message) { if(scanCookieParameter(message) == false) { return(false); } return(true); } /* ###### Scan cookie echo message ########################################### */ static bool scanCookieEchoMessage(struct RSerPoolMessage* message) { if(scanCookieParameter(message) == false) { return(false); } return(true); } /* ###### Scan business card message ######################################### */ static bool scanBusinessCardMessage(struct RSerPoolMessage* message) { if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(scanPolicyParameter(message, &message->PolicySettings) == false) { return(false); } message->PoolElementPtrArraySize = 0; while(message->Position < message->BufferSize) { while(message->Position < message->BufferSize) { if(message->PoolElementPtrArraySize >= MAX_MAX_HANDLE_RESOLUTION_ITEMS) { LOG_WARNING fputs("Too many Pool Element Parameters in Business Card\n", stdlog); LOG_END return(false); } message->PoolElementPtrArray[message->PoolElementPtrArraySize] = scanPoolElementParameter(message, false, false); message->PoolElementPtrArraySize++; } } if(message->PoolElementPtrArraySize < 1) { LOG_WARNING fputs("Business Card contains no Pool Element Parameters\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } return(true); } /* ###### Scan peer presence message ##################################### */ static bool scanPresenceMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(sp->sp_sender_id); message->ReceiverID = ntohl(sp->sp_receiver_id); if(scanHandlespaceChecksumParameter(message) == false) { return(false); } message->PeerListNodePtr = scanServerInformationParameter(message); if(message->PeerListNodePtr == NULL) { return(false); } return(true); } /* ###### Scan peer list request message ################################# */ static bool scanListRequestMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(sp->sp_sender_id); message->ReceiverID = ntohl(sp->sp_receiver_id); return(true); } /* ###### Scan peer list response message ################################ */ static bool scanListResponseMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; struct ST_CLASS(PeerListNode)* peerListNode; struct ST_CLASS(PeerListNode)* newPeerListNode; unsigned int errorCode; sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(sp->sp_sender_id); message->ReceiverID = ntohl(sp->sp_receiver_id); if(!(message->Flags & EHF_LIST_RESPONSE_REJECT)) { while(message->Position < message->BufferSize) { peerListNode = scanServerInformationParameter(message); if(peerListNode == NULL) { break; } if(message->PeerListPtr == NULL) { message->PeerListPtr = (struct ST_CLASS(PeerListManagement)*)malloc(sizeof(struct ST_CLASS(PeerListManagement))); if(message->PeerListPtr == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; free(peerListNode); return(false); } ST_CLASS(peerListManagementNew)(message->PeerListPtr, 0, 0, NULL, NULL); } peerListNode->Flags |= PLNF_FROM_PEER; if(peerListNode->Identifier != UNDEFINED_REGISTRAR_IDENTIFIER) { peerListNode->Flags |= PLNF_DYNAMIC; } errorCode = ST_CLASS(peerListManagementRegisterPeerListNode)( message->PeerListPtr, peerListNode->Identifier, peerListNode->Flags, peerListNode->AddressBlock, 0, &newPeerListNode); if(errorCode != RSPERR_OKAY) { LOG_WARNING fputs("ListResponse contains bad peer ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, PLPO_FULL); fputs(". Unable to add it: ", stdlog); rserpoolErrorPrint(errorCode, stdlog); fputs("\n", stdlog); LOG_END ST_CLASS(peerListNodeDelete)(peerListNode); free(peerListNode); message->Error = (uint16_t)errorCode; return(false); } free(peerListNode->AddressBlock); peerListNode->AddressBlock = NULL; ST_CLASS(peerListNodeDelete)(peerListNode); free(peerListNode); } } return(true); } /* ###### Scan peer handle table request message ########################### */ static bool scanHandleTableRequestMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(sp->sp_sender_id); message->ReceiverID = ntohl(sp->sp_receiver_id); return(true); } /* ###### Scan peer handle table response message ########################## */ static bool scanHandleTableResponseMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* newPoolElementNode; size_t scannedPoolElementParameters; sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(sp->sp_sender_id); message->ReceiverID = ntohl(sp->sp_receiver_id); if(!(message->Flags & EHF_HANDLE_TABLE_RESPONSE_REJECT)) { message->HandlespacePtr = (struct ST_CLASS(PoolHandlespaceManagement)*)malloc(sizeof(struct ST_CLASS(PoolHandlespaceManagement))); if(message->HandlespacePtr == NULL) { message->Error = RSPERR_OUT_OF_MEMORY; return(false); } ST_CLASS(poolHandlespaceManagementNew)(message->HandlespacePtr, 0, NULL, NULL, NULL); while( (message->Error == RSPERR_OKAY) && (peekNextTLVType(message) == ATT_POOL_HANDLE) && ( ((scanPoolHandleParameter(message, &message->Handle)) == true) ) ) { scannedPoolElementParameters = 0; while( (message->Error == RSPERR_OKAY) && (peekNextTLVType(message) == ATT_POOL_ELEMENT) && ( (poolElementNode = scanPoolElementParameter(message, true, true)) != NULL ) ) { if(poolElementNode->RegistratorTransport == NULL) { free(poolElementNode->UserTransport); free(poolElementNode); message->Error = RSPERR_INVALID_REGISTRATOR; return(false); } scannedPoolElementParameters++; message->Error = ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( message->HandlespacePtr, &message->Handle, poolElementNode->HomeRegistrarIdentifier, poolElementNode->Identifier, poolElementNode->RegistrationLife, &poolElementNode->PolicySettings, poolElementNode->UserTransport, poolElementNode->RegistratorTransport, -1, 0, 0, &newPoolElementNode); /* These structures were used temporarily only */ free(poolElementNode->UserTransport); free(poolElementNode->RegistratorTransport); free(poolElementNode); if(message->Error != RSPERR_OKAY) { LOG_WARNING fputs("HandleTableResponse contains bad/inconsistent entry: ", stdlog); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); fputs(" - Unable to use it: ", stdlog); rserpoolErrorPrint(message->Error, stdlog); fputs("\n", stdlog); LOG_END return(false); } } if(message->Error != RSPERR_OKAY) { return(false); } if(scannedPoolElementParameters == 0) { LOG_WARNING fputs("HandleTableResponse contains empty pool\n", stdlog); LOG_END message->Error = RSPERR_INVALID_VALUE; return(false); } LOG_VERBOSE5 fputs("Successfully scanned data from HandleTableResponse:\n", stdlog); ST_CLASS(poolHandlespaceManagementPrint)(message->HandlespacePtr, stdlog, PENPO_FULL); LOG_END } } return(true); } /* ###### Scan peer handle table response message ########################## */ static bool scanHandleUpdateMessage(struct RSerPoolMessage* message) { struct rserpool_handleupdateparameter* pnup; pnup = (struct rserpool_handleupdateparameter*)getSpace(message, sizeof(struct rserpool_handleupdateparameter)); if(pnup == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(pnup->pnup_sender_id); message->ReceiverID = ntohl(pnup->pnup_receiver_id); message->Action = ntohs(pnup->pnup_update_action); if(scanPoolHandleParameter(message, &message->Handle) == false) { return(false); } message->PoolElementPtr = scanPoolElementParameter(message, true, true); if(message->PoolElementPtr == NULL) { return(false); } if(message->PoolElementPtr->RegistratorTransport == NULL) { message->Error = RSPERR_INVALID_REGISTRATOR; return(false); } return(true); } /* ###### Scan peer init takeover message ################################ */ static bool scanInitTakeoverMessage(struct RSerPoolMessage* message) { struct rserpool_targetparameter* tp; tp = (struct rserpool_targetparameter*)getSpace(message, sizeof(struct rserpool_targetparameter)); if(tp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(tp->tp_sender_id); message->ReceiverID = ntohl(tp->tp_receiver_id); message->RegistrarIdentifier = ntohl(tp->tp_target_id); return(true); } /* ###### Scan peer init takeover acknowledgement message ################ */ static bool scanInitTakeoverAckMessage(struct RSerPoolMessage* message) { struct rserpool_targetparameter* tp; tp = (struct rserpool_targetparameter*)getSpace(message, sizeof(struct rserpool_targetparameter)); if(tp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(tp->tp_sender_id); message->ReceiverID = ntohl(tp->tp_receiver_id); message->RegistrarIdentifier = ntohl(tp->tp_target_id); return(true); } /* ###### Scan peer takeover server message ############################## */ static bool scanTakeoverServerMessage(struct RSerPoolMessage* message) { struct rserpool_targetparameter* tp; tp = (struct rserpool_targetparameter*)getSpace(message, sizeof(struct rserpool_targetparameter)); if(tp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(tp->tp_sender_id); message->ReceiverID = ntohl(tp->tp_receiver_id); message->RegistrarIdentifier = ntohl(tp->tp_target_id); return(true); } /* ###### Scan ENRP error message ######################################## */ static bool scanENRPErrorMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { message->Error = RSPERR_INVALID_VALUE; return(false); } message->SenderID = ntohl(sp->sp_sender_id); message->ReceiverID = ntohl(sp->sp_receiver_id); if(!scanErrorParameter(message)) { return(false); } return(true); } /* ###### Scan ASAP error message ######################################## */ static bool scanASAPErrorMessage(struct RSerPoolMessage* message) { if(!scanErrorParameter(message)) { return(false); } return(true); } /* ###### Scan message ################################################### */ static bool scanMessage(struct RSerPoolMessage* message) { struct rserpool_header* header; size_t startPosition; size_t length; size_t i, j; LOG_VERBOSE5 fprintf(stdlog, "Incoming message (%u bytes):\n", (unsigned int)message->BufferSize); for(i = 0;i < message->BufferSize;i += 32) { fprintf(stdlog, "%4u: ", (unsigned int)i); for(j = 0;j < 32;j++) { if(i + j < message->BufferSize) { fprintf(stdlog, "%02x", (int)((unsigned char)message->Buffer[i + j])); } else { fputs(" ", stdlog); } if(((j + 1) % 4) == 0) fputs(" ", stdlog); } for(j = 0;j < 32;j++) { if(i + j < message->BufferSize) { if(isprint(message->Buffer[i + j])) { fprintf(stdlog, "%c", message->Buffer[i + j]); } else { fputs(".", stdlog); } } else { fputs(" ", stdlog); } } fputs("\n", stdlog); } LOG_END length = checkBeginMessage(message, &startPosition); if(length < sizeof(struct rserpool_header)) { return(false); } header = (struct rserpool_header*)&message->Buffer[startPosition]; message->Type = header->ah_type; if(message->PPID == PPID_ASAP) { message->Type |= AHT_ASAP_MODIFIER; } else if(message->PPID == PPID_ENRP) { message->Type |= EHT_ENRP_MODIFIER; } else { LOG_ERROR fprintf(stdlog, "Wrong PPID ($%08x), expected ASAP or ENRP\n", message->PPID); LOG_END return(false); } switch(message->Type) { /* ====== ASAP ===================================================== */ case AHT_HANDLE_RESOLUTION: LOG_VERBOSE2 fputs("Scanning HandleResolution message...\n", stdlog); LOG_END if(scanHandleResolutionMessage(message) == false) { return(false); } break; case AHT_HANDLE_RESOLUTION_RESPONSE: LOG_VERBOSE2 fputs("Scanning HandleResolutionResponse message...\n", stdlog); LOG_END if(scanHandleResolutionResponseMessage(message) == false) { return(false); } break; case AHT_ENDPOINT_KEEP_ALIVE: LOG_VERBOSE2 fputs("Scanning KeepAlive message...\n", stdlog); LOG_END if(scanEndpointKeepAliveMessage(message) == false) { return(false); } break; case AHT_ENDPOINT_KEEP_ALIVE_ACK: LOG_VERBOSE2 fputs("Scanning KeepAliveAck message...\n", stdlog); LOG_END if(scanEndpointKeepAliveAckMessage(message) == false) { return(false); } break; case AHT_SERVER_ANNOUNCE: LOG_VERBOSE2 fputs("Scanning ServerAnnounce message...\n", stdlog); LOG_END if(scanServerAnnounceMessage(message) == false) { return(false); } break; case AHT_COOKIE: LOG_VERBOSE2 fputs("Scanning Cookie message...\n", stdlog); LOG_END if(scanCookieMessage(message) == false) { return(false); } break; case AHT_COOKIE_ECHO: LOG_VERBOSE2 fputs("Scanning CookieEcho message...\n", stdlog); LOG_END if(scanCookieEchoMessage(message) == false) { return(false); } break; case AHT_BUSINESS_CARD: LOG_VERBOSE2 fputs("Scanning BusinessCard message...\n", stdlog); LOG_END if(scanBusinessCardMessage(message) == false) { return(false); } break; case AHT_ENDPOINT_UNREACHABLE: LOG_VERBOSE2 fputs("Scanning EndpointUnreachable message...\n", stdlog); LOG_END if(scanEndpointUnreachableMessage(message) == false) { return(false); } break; case AHT_REGISTRATION: LOG_VERBOSE2 fputs("Scanning Registration message...\n", stdlog); LOG_END if(scanRegistrationMessage(message) == false) { return(false); } break; case AHT_DEREGISTRATION: LOG_VERBOSE2 fputs("Scanning Deregistration message...\n", stdlog); LOG_END if(scanDeregistrationMessage(message) == false) { return(false); } break; case AHT_REGISTRATION_RESPONSE: LOG_VERBOSE2 fputs("Scanning RegistrationResponse message...\n", stdlog); LOG_END if(scanRegistrationResponseMessage(message) == false) { return(false); } break; case AHT_DEREGISTRATION_RESPONSE: LOG_VERBOSE2 fputs("Scanning DeregistrationResponse message...\n", stdlog); LOG_END if(scanDeregistrationResponseMessage(message) == false) { return(false); } break; case AHT_ERROR: LOG_VERBOSE2 fputs("Scanning Error (ASAP) message...\n", stdlog); LOG_END if(scanASAPErrorMessage(message) == false) { return(false); } break; /* ====== ENRP ==================================================== */ case EHT_PRESENCE: LOG_VERBOSE2 fputs("Scanning Presence message...\n", stdlog); LOG_END if(scanPresenceMessage(message) == false) { return(false); } break; case EHT_HANDLE_TABLE_REQUEST: LOG_VERBOSE2 fputs("Scanning HandleTableRequest message...\n", stdlog); LOG_END if(scanHandleTableRequestMessage(message) == false) { return(false); } break; case EHT_HANDLE_TABLE_RESPONSE: LOG_VERBOSE2 fputs("Scanning HandleTableResponse message...\n", stdlog); LOG_END if(scanHandleTableResponseMessage(message) == false) { return(false); } break; case EHT_HANDLE_UPDATE: LOG_VERBOSE2 fputs("Scanning HandleUpdate message...\n", stdlog); LOG_END if(scanHandleUpdateMessage(message) == false) { return(false); } break; case EHT_LIST_REQUEST: LOG_VERBOSE2 fputs("Scanning ListRequest message...\n", stdlog); LOG_END if(scanListRequestMessage(message) == false) { return(false); } break; case EHT_LIST_RESPONSE: LOG_VERBOSE2 fputs("Scanning ListResponse message...\n", stdlog); LOG_END if(scanListResponseMessage(message) == false) { return(false); } break; case EHT_INIT_TAKEOVER: LOG_VERBOSE2 fputs("Scanning InitTakeover message...\n", stdlog); LOG_END if(scanInitTakeoverMessage(message) == false) { return(false); } break; case EHT_INIT_TAKEOVER_ACK: LOG_VERBOSE2 fputs("Scanning InitTakeoverAck message...\n", stdlog); LOG_END if(scanInitTakeoverAckMessage(message) == false) { return(false); } break; case EHT_TAKEOVER_SERVER: LOG_VERBOSE2 fputs("Scanning TakeoverServer message...\n", stdlog); LOG_END if(scanTakeoverServerMessage(message) == false) { return(false); } break; case EHT_ERROR: LOG_VERBOSE2 fputs("Scanning Error (ENRP) message...\n", stdlog); LOG_END if(scanENRPErrorMessage(message) == false) { return(false); } break; /* ====== Unknown ================================================= */ default: LOG_WARNING fprintf(stdlog, "Unknown message type $%04x!\n", message->Type); LOG_END return(false); break; } return(checkFinishMessage(message,startPosition)); } /* ###### Convert packet to RSerPoolMessage ############################## */ unsigned int rserpoolPacket2Message(char* packet, const union sockaddr_union* sourceAddress, const sctp_assoc_t assocID, const uint32_t ppid, const size_t packetSize, const size_t minBufferSize, struct RSerPoolMessage** message) { *message = rserpoolMessageNew(packet, packetSize); if(*message != NULL) { if(sourceAddress) { memcpy(&(*message)->SourceAddress, sourceAddress, sizeof(*sourceAddress)); } else { memset(&(*message)->SourceAddress, 0, sizeof(*sourceAddress)); } (*message)->AssocID = assocID; (*message)->PPID = ppid; (*message)->OriginalBufferSize = max(packetSize, minBufferSize); (*message)->Position = 0; (*message)->PoolElementPtrAutoDelete = true; (*message)->CookiePtrAutoDelete = true; (*message)->PoolElementPtrArrayAutoDelete = true; (*message)->TransportAddressBlockListPtrAutoDelete = true; (*message)->HandlespacePtrAutoDelete = true; (*message)->PeerListNodePtrAutoDelete = true; (*message)->PeerListPtrAutoDelete = true; LOG_VERBOSE3 fprintf(stdlog, "Scanning message, size=%u...\n", (unsigned int)packetSize); LOG_END if(scanMessage(*message) == true) { LOG_VERBOSE3 fputs("Message successfully scanned!\n", stdlog); LOG_END (*message)->Error = (*message)->OperationErrorCode; return(RSPERR_OKAY); } LOG_WARNING fprintf(stdlog, "Error while parsing message at byte %u (TLV at position %lu, length %lu): ", (unsigned int)(*message)->Position, ((*message)->OffendingParameterTLV != NULL) ? ((unsigned long)(*message)->OffendingParameterTLV - (unsigned long)(*message)->Buffer) : 0, (unsigned long)(*message)->OffendingParameterTLVLength); rserpoolErrorPrint((*message)->Error, stdlog); fputs("\n", stdlog); LOG_END return(RSPERR_OKAY); } return(RSPERR_OUT_OF_MEMORY); } rsplib-3.0.1/rsplib/rserpoolmessageparser.h0000664000175000017500000000463111777021056016036 00000000000000/* $Id: rserpoolmessageparser.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOLMESSAGEPARSER_H #define RSERPOOLMESSAGEPARSER_H #include "tdtypes.h" #include "rserpoolmessage.h" #include "sockaddrunion.h" #ifdef __cplusplus extern "C" { #endif /** * Create RSerPoolMessage structure from ENRP packet. * * @param packet Packet. * @param sourceAddress Source address. * @param ppid PPID of the packet (ASAP or ENRP). * @param packetSize Size of packet. * @param minBufferSize Minimum size of RSerPoolMessage's buffer (e.g. for reply message). * @param message Reference to store RSerPoolMessage to. * @return Error code. */ unsigned int rserpoolPacket2Message(char* packet, const union sockaddr_union* sourceAddress, const sctp_assoc_t assocID, const uint32_t ppid, const size_t packetSize, const size_t minBufferSize, struct RSerPoolMessage** message); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/rspserver.cc0000664000175000017500000006243011777021056013601 00000000000000/* $Id: rspserver.cc 2682 2012-06-08 11:29:28Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "breakdetector.h" #include "tagitem.h" #include "netutilities.h" #include "stringutilities.h" #include "randomizer.h" #include "standardservices.h" #include "fractalgeneratorservice.h" #include "calcappservice.h" #include "scriptingservice.h" #include #include #include #include #include #include #include #define SERVICE_ECHO 1 #define SERVICE_DISCARD 2 #define SERVICE_DAYTIME 3 #define SERVICE_CHARGEN 4 #define SERVICE_PINGPONG 5 #define SERVICE_FRACTAL 6 #define SERVICE_CALCAPP 7 #define SERVICE_SCRIPTING 8 /* ###### Count the number of CPUs/cores ################################# */ static size_t getNumberOfCPUs() { const size_t numberOfCPUs = sysconf(_SC_NPROCESSORS_ONLN); return( (numberOfCPUs > 0) ? numberOfCPUs : 1 ); } #define MAX_PE_TRANSPORTADDRESSES 64 /* ###### Main program ################################################### */ int main(int argc, char** argv) { struct rsp_info info; struct rsp_loadinfo loadInfo; struct TagItem tags[8]; char localAddressBuffer[sizeof(union sockaddr_union) * MAX_PE_TRANSPORTADDRESSES]; struct sockaddr* localAddressSet = (struct sockaddr*)&localAddressBuffer; size_t localAddresses = 0; unsigned int reregInterval = 30000; unsigned int runtimeLimit = 0; unsigned int service = SERVICE_ECHO; const char* poolHandle = NULL; const char* daemonPIDFile = NULL; bool policyChanged = false; bool quiet = false; double uptime = 0.0; double downtime = 0.0; double degradation; unsigned int identifier; start: /* ====== Read parameters ============================================= */ rsp_initinfo(&info); tags[0].Tag = TAG_PoolElement_Identifier; tags[0].Data = 0; tags[1].Tag = TAG_DONE; #ifdef ENABLE_CSP info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLELEMENT, random32()); #endif memset(&loadInfo, 0, sizeof(loadInfo)); loadInfo.rli_policy = PPT_ROUNDROBIN; for(int i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } if(!(strncmp(argv[i], "-identifier=", 12))) { if(sscanf((const char*)&argv[i][12], "0x%x", &identifier) == 0) { if(sscanf((const char*)&argv[i][12], "%u", &identifier) == 0) { fputs("ERROR: Bad registrar ID given!\n", stderr); exit(1); } } tags[0].Data = identifier; #ifdef ENABLE_CSP info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLELEMENT, tags[0].Data); #endif } else if(!(strncmp(argv[i], "-local=" ,7))) { localAddresses = 0; sockaddr* addressPtr = localAddressSet; char* addressString = (char*)&argv[i][7]; while(localAddresses < MAX_PE_TRANSPORTADDRESSES) { char* idx = strindex(addressString, ','); if(idx) { *idx = 0x00; } if(!string2address(addressString, (union sockaddr_union*)addressPtr)) { fprintf(stderr, "ERROR: Bad local address %s! Use format .\n", addressString); exit(1); } localAddresses++; if(idx) { addressString = idx; addressString++; } else { break; } addressPtr = (struct sockaddr*)((long)addressPtr + (long)getSocklen(addressPtr)); } } else if(!(strncmp(argv[i], "-poolhandle=" ,12))) { poolHandle = (const char*)&argv[i][12]; } else if(!(strncmp(argv[i], "-rereginterval=" ,15))) { reregInterval = atol((const char*)&argv[i][15]); if(reregInterval < 10) { reregInterval = 10; } } else if(!(strncmp(argv[i], "-daemonpidfile=", 15))) { daemonPIDFile = (const char*)&argv[i][15]; } else if(!(strncmp(argv[i], "-policy=" ,8))) { double dpf; if(!(strcmp((const char*)&argv[i][8], "RoundRobin"))) { loadInfo.rli_policy = PPT_ROUNDROBIN; } else if(!(strcmp((const char*)&argv[i][8], "Random"))) { loadInfo.rli_policy = PPT_RANDOM; } else if(!(strcmp((const char*)&argv[i][8], "LeastUsed"))) { loadInfo.rli_policy = PPT_LEASTUSED; } else if(!(strcmp((const char*)&argv[i][8], "RandomizedLeastUsed"))) { loadInfo.rli_policy = PPT_RANDOMIZED_LEASTUSED; } else if(sscanf((const char*)&argv[i][8], "LeastUsedDegradation:%lf", °radation) == 1) { loadInfo.rli_load_degradation = (unsigned int)rint(degradation * (double)PPV_MAX_LOAD_DEGRADATION); if(loadInfo.rli_load_degradation < 0) { fputs("ERROR: Bad LUD degradation value!\n", stderr); exit(1); } else if(loadInfo.rli_load_degradation > PPV_MAX_LOAD_DEGRADATION) { fputs("ERROR: Bad LUD degradation value!\n", stderr); exit(1); } loadInfo.rli_policy = PPT_LEASTUSED_DEGRADATION; } else if(sscanf((const char*)&argv[i][8], "PriorityLeastUsed:%lf", °radation) == 1) { loadInfo.rli_load_degradation = (unsigned int)rint(degradation * (double)PPV_MAX_LOAD_DEGRADATION); if(loadInfo.rli_load_degradation < 0) { fputs("ERROR: Bad PLU degradation value!\n", stderr); exit(1); } else if(loadInfo.rli_load_degradation > PPV_MAX_LOAD_DEGRADATION) { fputs("ERROR: Bad PLU degradation value!\n", stderr); exit(1); } loadInfo.rli_policy = PPT_PRIORITY_LEASTUSED; } else if(!(strcmp((const char*)&argv[i][8], "RandomizedPriorityLeastUsed"))) { loadInfo.rli_policy = PPT_RANDOMIZED_PRIORITY_LEASTUSED; } else if(sscanf((const char*)&argv[i][8], "LeastUsedDPF:%lf", &dpf) == 1) { if((dpf < 0.0) || (dpf > 1.0)) { fputs("ERROR: Bad LU-DPF DPF value!\n", stderr); exit(1); } loadInfo.rli_load_dpf = (unsigned int)rint(dpf * (double)PPV_MAX_LOADDPF); loadInfo.rli_policy = PPT_LEASTUSED_DPF; } else if(sscanf((const char*)&argv[i][8], "LeastUsedDegradationDPF:%lf:%lf", °radation, &dpf) == 2) { if((dpf < 0.0) || (dpf > 1.0)) { fputs("ERROR: Bad LU-DPF DPF value!\n", stderr); exit(1); } loadInfo.rli_load_dpf = (unsigned int)rint(dpf * (double)PPV_MAX_LOADDPF); loadInfo.rli_load_degradation = (unsigned int)rint(degradation * (double)PPV_MAX_LOAD_DEGRADATION); if(loadInfo.rli_load_degradation < 0) { fputs("ERROR: Bad LU-DPF degradation value!\n", stderr); exit(1); } else if(loadInfo.rli_load_degradation > PPV_MAX_LOAD_DEGRADATION) { fputs("ERROR: Bad LU-DPF degradation value!\n", stderr); exit(1); } loadInfo.rli_policy = PPT_LEASTUSED_DEGRADATION_DPF; } else if(sscanf((const char*)&argv[i][8], "WeightedRoundRobin:%u", &loadInfo.rli_weight) == 1) { loadInfo.rli_policy = PPT_WEIGHTED_ROUNDROBIN; } else if(sscanf((const char*)&argv[i][8], "Priority:%u", &loadInfo.rli_weight) == 1) { loadInfo.rli_policy = PPT_PRIORITY; } else if(sscanf((const char*)&argv[i][8], "WeightedRandom:%u", &loadInfo.rli_weight) == 1) { loadInfo.rli_policy = PPT_WEIGHTED_RANDOM; } else if(sscanf((const char*)&argv[i][8], "WeightedRandomDPF:%u:%lf", &loadInfo.rli_weight, &dpf) == 2) { if((dpf < 0.0) || (dpf > 1.0)) { fputs("ERROR: Bad WRAND-DPF DPF value!\n", stderr); exit(1); } loadInfo.rli_weight_dpf = (unsigned int)rint(dpf * (double)PPV_MAX_WEIGHTDPF); loadInfo.rli_policy = PPT_WEIGHTED_RANDOM_DPF; } else { fprintf(stderr, "ERROR: Bad policy setting <%s>!\n", argv[i]); exit(1); } policyChanged = true; } else if(!(strncmp(argv[i], "-runtime=" ,9))) { runtimeLimit = atol((const char*)&argv[i][9]); } else if(!(strcmp(argv[i], "-echo"))) { service = SERVICE_ECHO; } else if(!(strcmp(argv[i], "-discard"))) { service = SERVICE_DISCARD; } else if(!(strcmp(argv[i], "-daytime"))) { service = SERVICE_DAYTIME; } else if(!(strcmp(argv[i], "-chargen"))) { service = SERVICE_CHARGEN; } else if(!(strcmp(argv[i], "-pingpong"))) { service = SERVICE_PINGPONG; } else if(!(strcmp(argv[i], "-fractal"))) { service = SERVICE_FRACTAL; } else if(!(strcmp(argv[i], "-calcapp"))) { service = SERVICE_CALCAPP; } else if(!(strcmp(argv[i], "-scripting"))) { service = SERVICE_SCRIPTING; } else if(!(strcmp(argv[i], "-quiet"))) { quiet = true; } else if(!(strncmp(argv[i], "-uptime=", 8))) { uptime = atof((const char*)&argv[i][8]); } else if(!(strncmp(argv[i], "-downtime=", 10))) { downtime = atof((const char*)&argv[i][10]); } } if(uptime > 0.000001) { runtimeLimit = (unsigned long long)rint(1000.0 * randomExpDouble(uptime)); } /* ====== Print startup message ======================================= */ if(!quiet) { if(uptime > 0.000001) { printf("Uptime = %1.3f [s]\n", uptime); printf("Downtime = %1.3f [s]\n", downtime); } printf("Starting service "); if(service == SERVICE_ECHO) { printf("Echo"); } else if(service == SERVICE_DISCARD) { printf("Discard"); } else if(service == SERVICE_DAYTIME) { printf("Daytime"); } else if(service == SERVICE_CHARGEN) { printf("Character Generator"); } puts("..."); } if(daemonPIDFile != NULL) { const pid_t childProcess = fork(); if(childProcess != 0) { FILE* fh = fopen(daemonPIDFile, "w"); if(fh) { fprintf(fh, "%d\n", childProcess); fclose(fh); } else { kill(childProcess, SIGKILL); fprintf(stderr, "ERROR: Unable to create PID file \"%s\"!\n", daemonPIDFile); } exit(0); } else { signal(SIGHUP, SIG_IGN); } } /* ====== Start requested service ===================================== */ if(service == SERVICE_ECHO) { EchoServer echoServer; echoServer.poolElement("Echo Server - Version 1.0", (poolHandle != NULL) ? poolHandle : "EchoPool", &info, &loadInfo, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); } else if(service == SERVICE_DISCARD) { DiscardServer discardServer; discardServer.poolElement("Discard Server - Version 1.0", (poolHandle != NULL) ? poolHandle : "DiscardPool", &info, &loadInfo, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); } else if(service == SERVICE_DAYTIME) { DaytimeServer daytimeServer; daytimeServer.poolElement("Daytime Server - Version 1.0", (poolHandle != NULL) ? poolHandle : "DaytimePool", &info, &loadInfo, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); } else if(service == SERVICE_CHARGEN) { size_t maxThreads = 4; for(int i = 1;i < argc;i++) { if(!(strncmp(argv[i], "-chargenmaxthreads=", 19))) { maxThreads = atol((const char*)&argv[i][19]); } } TCPLikeServer::poolElement("Character Generator Server - Version 1.0", (poolHandle != NULL) ? poolHandle : "CharGenPool", &info, &loadInfo, maxThreads, CharGenServer::charGenServerFactory, NULL, NULL, NULL, NULL, NULL, NULL, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); } else if(service == SERVICE_PINGPONG) { size_t maxThreads = 4; PingPongServer::PingPongServerSettings settings; settings.FailureAfter = 0; for(int i = 1;i < argc;i++) { if(!(strncmp(argv[i], "-pppfailureafter=", 17))) { settings.FailureAfter = atol((const char*)&argv[i][17]); } else if(!(strncmp(argv[i], "-pppmaxthreads=", 15))) { maxThreads = atol((const char*)&argv[i][15]); } } TCPLikeServer::poolElement("Ping Pong Server - Version 1.0", (poolHandle != NULL) ? poolHandle : "PingPongPool", &info, &loadInfo, maxThreads, PingPongServer::pingPongServerFactory, NULL, NULL, NULL, NULL, NULL, (void*)&settings, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); } else if(service == SERVICE_FRACTAL) { size_t maxThreads = 4; FractalGeneratorServer::FractalGeneratorServerSettings settings; settings.TestMode = false; settings.FailureAfter = 0; settings.TransmitTimeout = 2500; settings.DataMaxTime = 1000000; settings.CookieMaxTime = 1000000; settings.CookieMaxPackets = 10; for(int i = 1;i < argc;i++) { if(!(strcmp(argv[i], "-fgptestmode"))) { settings.TestMode = true; } else if(!(strncmp(argv[i], "-fgptransmittimeout=", 20))) { settings.TransmitTimeout = atol((const char*)&argv[i][20]); } else if(!(strncmp(argv[i], "-fgpdatamaxtime=", 16))) { settings.DataMaxTime = 1000ULL * atol((const char*)&argv[i][16]); if(settings.DataMaxTime < 100000) { settings.DataMaxTime = 100000; } } else if(!(strncmp(argv[i], "-fgpcookiemaxtime=", 18))) { settings.CookieMaxTime = 1000ULL * atol((const char*)&argv[i][18]); if(settings.CookieMaxTime < 100000) { settings.CookieMaxTime = 100000; } } else if(!(strncmp(argv[i], "-fgpcookiemaxpackets=", 21))) { settings.CookieMaxPackets = atol((const char*)&argv[i][21]); if(settings.CookieMaxPackets < 1) { settings.CookieMaxPackets = 1; } } else if(!(strncmp(argv[i], "-fgpmaxthreads=", 15))) { maxThreads = atol((const char*)&argv[i][15]); } else if(!(strncmp(argv[i], "-fgpfailureafter=", 17))) { settings.FailureAfter = atol((const char*)&argv[i][17]); } } TCPLikeServer::poolElement("Fractal Generator Server - Version 1.0", (poolHandle != NULL) ? poolHandle : "FractalGeneratorPool", &info, &loadInfo, maxThreads, FractalGeneratorServer::fractalGeneratorServerFactory, FractalGeneratorServer::fractalGeneratorPrintParameters, NULL, NULL, NULL, NULL, (void*)&settings, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); } else if(service == SERVICE_CALCAPP) { static CalcAppServer::CalcAppServerStatistics stats; static bool resetStatistics = true; const char* objectName = "scenario.calcapppoolelement[0]"; const char* vectorFileName = "calcapppoolelement.vec"; const char* scalarFileName = "calcapppoolelement.sca"; double capacity = 1000000.0; unsigned long long keepAliveTransmissionInterval = 2500000; unsigned long long keepAliveTimeoutInterval = 2500000; unsigned long long cookieMaxTime = 5000000; double cookieMaxCalculations = 5000000.0; double cleanShutdownProbability = 1.0; size_t maxJobs = 10; for(int i = 1;i < argc;i++) { if(!(strncmp(argv[i], "-capobject=" ,11))) { objectName = (const char*)&argv[i][11]; } else if(!(strncmp(argv[i], "-capvector=" ,11))) { vectorFileName = (const char*)&argv[i][11]; } else if(!(strncmp(argv[i], "-capscalar=" ,11))) { scalarFileName = (const char*)&argv[i][11]; } else if(!(strncmp(argv[i], "-capmaxjobs=" ,12))) { maxJobs = atol((const char*)&argv[i][12]); if(maxJobs < 1) { maxJobs = 1; } } else if(!(strncmp(argv[i], "-capkeepalivetransmissioninterval=" ,34))) { keepAliveTransmissionInterval = 1000ULL * atol((const char*)&argv[i][34]); if(keepAliveTransmissionInterval < 100000) { keepAliveTransmissionInterval = 100000; } } else if(!(strncmp(argv[i], "-capkeepalivetimeoutinterval=" ,29))) { keepAliveTimeoutInterval = 1000ULL * atol((const char*)&argv[i][29]); if(keepAliveTimeoutInterval < 100000) { keepAliveTimeoutInterval = 100000; } } else if(!(strncmp(argv[i], "-capcapacity=" ,13))) { capacity = atof((const char*)&argv[i][13]); if(capacity < 1.0) { capacity = 1.0; } } else if(!(strncmp(argv[i], "-capcookiemaxcalculations=" ,26))) { cookieMaxCalculations = atof((const char*)&argv[i][26]); if(cookieMaxCalculations < 1.0) { cookieMaxCalculations = 1.0; } } else if(!(strncmp(argv[i], "-capcookiemaxtime=" ,18))) { cookieMaxTime = (unsigned long long)rint(1000000.0 * atof((const char*)&argv[i][18])); if(cookieMaxTime < 100000) { cookieMaxTime = 100000; } } else if(!(strncmp(argv[i], "-capcleanshutdownprobability=" , 29))) { cleanShutdownProbability = atof((const char*)&argv[i][29]); if(cleanShutdownProbability < 0.0) { cleanShutdownProbability = 0.0; } else if(cleanShutdownProbability > 1.0) { cleanShutdownProbability = 1.0; } } } CalcAppServer calcAppServer(maxJobs, objectName, vectorFileName, scalarFileName, capacity, keepAliveTransmissionInterval, keepAliveTimeoutInterval, cookieMaxTime, cookieMaxCalculations, cleanShutdownProbability, &stats, resetStatistics); calcAppServer.poolElement("CalcApp Server - Version 1.0", (poolHandle != NULL) ? poolHandle : "CalcAppPool", &info, &loadInfo, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); resetStatistics = false; } else if(service == SERVICE_SCRIPTING) { size_t maxThreads = getNumberOfCPUs(); ScriptingServer::ScriptingServerSettings settings; settings.KeepTempDirs = false; settings.VerboseMode = false; settings.TransmitTimeout = 30000; settings.KeepAliveInterval = 15000; settings.KeepAliveTimeout = 10000; settings.CacheMaxSize = 128*1024*1024; settings.CacheMaxEntries = 16; settings.CacheDirectory = ""; for(int i = 1;i < argc;i++) { if(!(strncmp(argv[i], "-ssmaxthreads=", 14))) { maxThreads = atol((const char*)&argv[i][14]); if(maxThreads < 1) { maxThreads = 1; } } else if(!(strcmp(argv[i], "-sskeeptempdirs"))) { settings.KeepTempDirs = true; } else if(!(strcmp(argv[i], "-ssverbose"))) { settings.VerboseMode = true; } else if(!(strncmp(argv[i], "-sstransmittimeout=", 19))) { settings.TransmitTimeout = atol((const char*)&argv[i][19]); } else if(!(strncmp(argv[i], "-sskeepaliveinterval=", 21))) { settings.KeepAliveInterval = atol((const char*)&argv[i][21]); } else if(!(strncmp(argv[i], "-sskeepalivetimeout=", 20))) { settings.KeepAliveTimeout = atol((const char*)&argv[i][20]); } else if(!(strncmp(argv[i], "-sscachemaxsize=", 16))) { settings.CacheMaxSize = 1024ULL * atoll((const char*)&argv[i][16]); if(settings.CacheMaxSize < 128*1024) { settings.CacheMaxSize = 128*1024; } } else if(!(strncmp(argv[i], "-sscachemaxentries=", 19))) { settings.CacheMaxEntries = atol((const char*)&argv[i][19]); if(settings.CacheMaxEntries < 1) { settings.CacheMaxEntries = 1; } } else if(!(strncmp(argv[i], "-sscachedirectory=", 18))) { settings.CacheDirectory = (const char*)&argv[i][18]; } } if(!policyChanged) { loadInfo.rli_load_degradation = (unsigned int)rint((1.0 / maxThreads) * (double)PPV_MAX_LOAD_DEGRADATION); loadInfo.rli_policy = PPT_LEASTUSED_DEGRADATION; } TCPLikeServer::poolElement("Scripting Server - Version 2.0", (poolHandle != NULL) ? poolHandle : "ScriptingPool", &info, &loadInfo, maxThreads, ScriptingServer::scriptingServerFactory, ScriptingServer::scriptingPrintParameters, ScriptingServer::rejectNewSession, ScriptingServer::initializeService, ScriptingServer::finishService, NULL, (void*)&settings, localAddressSet, localAddresses, reregInterval, runtimeLimit, quiet, (daemonPIDFile != NULL), (struct TagItem*)&tags); } rsp_freeinfo(&info); // ====== Restart ======================================================== if((uptime > 0.000001) && (!breakDetected())) { const double t = randomExpDouble(downtime); printf("\nWaiting for %1.3fs ...\n", t); usleep((unsigned long long)rint(t * 1000000.0)); if(!breakDetected()) { goto start; } } return(0); } rsplib-3.0.1/rsplib/tdtypes.h0000664000175000017500000000340512065067646013107 00000000000000/* $Id: tdtypes.h 2733 2012-12-21 14:17:35Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TDTYPES_H #define TDTYPES_H #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef NDEBUG #include "config.h" #endif #include #include #ifdef FreeBSD #include #endif #ifdef DARWIN #include #endif #ifndef max #define max(a, b) ((a) < (b) ? (b) : (a)) #endif #ifndef min #define min(a, b) ((a) > (b) ? (b) : (a)) #endif #ifndef __cplusplus typedef unsigned char bool; #define true 1 #define false 0 #endif #endif rsplib-3.0.1/rsplib/rspregistrar-asap.c0000664000175000017500000011502611777021056015054 00000000000000/* $Id: rspregistrar-asap.c 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" #include "poolhandle.h" /* ###### ASAP Announce timer ############################################ */ void registrarHandleASAPAnnounceTimer(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct Registrar* registrar = (struct Registrar*)userData; struct RSerPoolMessage* message; size_t messageLength; CHECK(registrar->ASAPSendAnnounces == true); CHECK(registrar->ASAPAnnounceSocket >= 0); message = rserpoolMessageNew(NULL, 65536); if(message) { message->Type = AHT_SERVER_ANNOUNCE; message->Flags = 0x00; message->RegistrarIdentifier = registrar->ServerID; messageLength = rserpoolMessage2Packet(message); if(messageLength > 0) { #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "MulticastASAP", "Announce", "", 0, 0, 0, NULL, 0, message->RegistrarIdentifier, 0, 0, 0); #endif if(sendmulticast( registrar->ASAPAnnounceSocket, registrar->ASAPAnnounceSocketFamily, message->Buffer, messageLength, 0, (struct sockaddr*)®istrar->ASAPAnnounceAddress, getSocklen((struct sockaddr*)®istrar->ASAPAnnounceAddress), registrar->AnnounceTTL) <= 0) { LOG_WARNING logerror("Unable to send announce"); LOG_END } } rserpoolMessageDelete(message); } timerStart(timer, getMicroTime() + registrarRandomizeCycle(registrar->ServerAnnounceCycle)); } /* ###### Handle handlespace management timers ########################### */ void registrarHandlePoolElementEvent(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct Registrar* registrar = (struct Registrar*)userData; struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* nextPoolElementNode; unsigned int result; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)( ®istrar->Handlespace.Handlespace); while((poolElementNode != NULL) && (poolElementNode->TimerTimeStamp <= getMicroTime())) { nextPoolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementTimerNode)( ®istrar->Handlespace.Handlespace, poolElementNode); if(poolElementNode->TimerCode == PENT_KEEPALIVE_TRANSMISSION) { ST_CLASS(poolHandlespaceNodeDeactivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode); #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ASAP", "EndpointKeepAlive", "KeepAliveTransmissionTimer", 0, 0, registrar->EndpointKeepAliveTimeoutInterval, &poolElementNode->OwnerPoolNode->Handle,poolElementNode->Identifier, registrar->ServerID, 0, 0, 0); #endif registrarSendASAPEndpointKeepAlive(registrar, poolElementNode, false); poolElementNode->LastKeepAliveTransmission = getMicroTime(); ST_CLASS(poolHandlespaceNodeActivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode, PENT_KEEPALIVE_TIMEOUT, poolElementNode->LastKeepAliveTransmission + registrar->EndpointKeepAliveTimeoutInterval); } else if( (poolElementNode->TimerCode == PENT_KEEPALIVE_TIMEOUT) || (poolElementNode->TimerCode == PENT_EXPIRY) ) { if(poolElementNode->TimerCode == PENT_KEEPALIVE_TIMEOUT) { LOG_ACTION fprintf(stdlog, "Keep-alive timeout expired for pool element $%08x of pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs(" -> removing it\n", stdlog); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ASAP", "Deregistration", "KeepAliveTimeoutTimer", 0, 0, registrar->EndpointKeepAliveTimeoutInterval, &poolElementNode->OwnerPoolNode->Handle, poolElementNode->Identifier, registrar->ServerID, 0, 0, 0); #endif /* Send SCTP ABORT to PE! */ sendabort(poolElementNode->ConnectionSocketDescriptor, poolElementNode->ConnectionAssocID); } else { LOG_ACTION fprintf(stdlog, "Expiry timeout expired for pool element $%08x of pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs(" -> removing it\n", stdlog); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ASAP", "Deregistration", "ExpiryTimer", 0, 0, registrar->TakeoverExpiryInterval, &poolElementNode->OwnerPoolNode->Handle, poolElementNode->Identifier, registrar->ServerID, 0, 0, 0); #endif } if(poolElementNode->HomeRegistrarIdentifier == registrar->ServerID) { /* We own this PE -> send HandleUpdate for its removal. */ registrarSendENRPHandleUpdate(registrar, poolElementNode, PNUP_DEL_PE); } registrarDeregistrationHook(registrar, poolElementNode); result = ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( ®istrar->Handlespace, poolElementNode); if(result == RSPERR_OKAY) { LOG_ACTION fputs("Deregistration successfully completed\n", stdlog); LOG_END LOG_VERBOSE3 fputs("Handlespace content:\n", stdlog); registrarDumpHandlespace(registrar); LOG_END } else { LOG_ERROR fprintf(stdlog, "Failed to deregister for pool element $%08x of pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END_FATAL } } else { LOG_ERROR fputs("Unexpected timer\n", stdlog); LOG_END_FATAL } poolElementNode = nextPoolElementNode; } timerRestart(®istrar->HandlespaceActionTimer, ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( ®istrar->Handlespace)); } /* ###### Remove all PEs registered via a given connection ############### */ void registrarRemovePoolElementsOfConnection(struct Registrar* registrar, const int sd, const sctp_assoc_t assocID) { struct ST_CLASS(PoolElementNode)* nextPoolElementNode; struct ST_CLASS(PoolElementNode)* poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNodeForConnection)( ®istrar->Handlespace.Handlespace, sd, assocID); unsigned int result; if(poolElementNode) { LOG_ACTION fprintf(stdlog, "Removing all pool elements registered by user socket %u, assoc %u...\n", sd, (unsigned int)assocID); LOG_END do { nextPoolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNodeForSameConnection)( ®istrar->Handlespace.Handlespace, poolElementNode); LOG_VERBOSE fprintf(stdlog, "Removing pool element $%08x of pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs("\n", stdlog); LOG_END if(poolElementNode->HomeRegistrarIdentifier == registrar->ServerID) { /* We own this PE -> send HandleUpdate for its removal. */ registrarSendENRPHandleUpdate(registrar, poolElementNode, PNUP_DEL_PE); } #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ASAP", "Deregistration", "Disconnect", 0, 0, 0, &poolElementNode->OwnerPoolNode->Handle, poolElementNode->Identifier, registrar->ServerID, 0, 0, 0); #endif registrarDeregistrationHook(registrar, poolElementNode); result = ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( ®istrar->Handlespace, poolElementNode); if(result == RSPERR_OKAY) { LOG_VERBOSE2 fputs("Pool element successfully removed\n", stdlog); LOG_END } else { LOG_ERROR fprintf(stdlog, "Failed to deregister for pool element $%08x of pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END_FATAL } poolElementNode = nextPoolElementNode; } while(poolElementNode != NULL); LOG_VERBOSE3 fputs("Handlespace content:\n", stdlog); registrarDumpHandlespace(registrar); LOG_END } } /* ###### Handle ASAP Registration ####################################### */ void registrarHandleASAPRegistration(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message) { char remoteAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* remoteAddressBlock = (struct TransportAddressBlock*)&remoteAddressBlockBuffer; char asapTransportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* asapTransportAddressBlock = (struct TransportAddressBlock*)&asapTransportAddressBlockBuffer; char userTransportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* userTransportAddressBlock = (struct TransportAddressBlock*)&userTransportAddressBlockBuffer; struct ST_CLASS(PoolElementNode)* poolElementNode; struct PoolPolicySettings updatedPolicySettings; unsigned int distance; LOG_ACTION fputs("Registration request for ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x\n", message->PoolElementPtr->Identifier); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ASAP", "Registration", "Requested", 0, 0, 0, &message->Handle, message->PoolElementPtr->Identifier, registrar->ServerID, 0, 0, 0); #endif message->Type = AHT_REGISTRATION_RESPONSE; message->Flags = 0x00; message->Error = RSPERR_OKAY; message->Identifier = message->PoolElementPtr->Identifier; /* ====== Get peer addresses ========================================== */ if(transportAddressBlockGetAddressesFromSCTPSocket(remoteAddressBlock, fd, assocID, MAX_PE_TRANSPORTADDRESSES, false) > 0) { LOG_VERBOSE2 fputs("SCTP association's valid peer addresses: ", stdlog); transportAddressBlockPrint(remoteAddressBlock, stdlog); fputs("\n", stdlog); LOG_END /* ====== Filter addresses ========================================= */ if(transportAddressBlockFilter(message->PoolElementPtr->UserTransport, remoteAddressBlock, userTransportAddressBlock, MAX_PE_TRANSPORTADDRESSES, false, registrar->MinEndpointAddressScope) > 0) { LOG_VERBOSE2 fputs("Filtered user transport addresses: ", stdlog); transportAddressBlockPrint(userTransportAddressBlock, stdlog); fputs("\n", stdlog); LOG_END if(transportAddressBlockFilter(remoteAddressBlock, NULL, asapTransportAddressBlock, MAX_PE_TRANSPORTADDRESSES, true, registrar->MinEndpointAddressScope) > 0) { LOG_VERBOSE2 fputs("Filtered ASAP transport addresses: ", stdlog); transportAddressBlockPrint(asapTransportAddressBlock, stdlog); fputs("\n", stdlog); LOG_END /* ====== Set distance for distance-sensitive policies ======= */ distance = 0xffffffff; registrarUpdateDistance(registrar, fd, assocID, message->PoolElementPtr, &updatedPolicySettings, false, &distance); message->Error = ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( ®istrar->Handlespace, &message->Handle, registrar->ServerID, message->PoolElementPtr->Identifier, message->PoolElementPtr->RegistrationLife, &updatedPolicySettings, userTransportAddressBlock, asapTransportAddressBlock, fd, assocID, getMicroTime(), &poolElementNode); if(message->Error == RSPERR_OKAY) { /* ====== Successful registration ============================ */ registrarRegistrationHook(registrar, poolElementNode); LOG_ACTION fputs("Successfully registered ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x\n", poolElementNode->Identifier); LOG_END LOG_VERBOSE2 fputs("Registered pool element: ", stdlog); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END #if 0 /* ====== Tune SCTP association ============================== */ tags[0].Tag = TAG_TuneSCTP_MinRTO; tags[0].Data = 500; tags[1].Tag = TAG_TuneSCTP_MaxRTO; tags[1].Data = 1000; tags[2].Tag = TAG_TuneSCTP_InitialRTO; tags[2].Data = 750; tags[3].Tag = TAG_TuneSCTP_Heartbeat; tags[3].Data = (registrar->EndpointMonitoringHeartbeatInterval / 1000); tags[4].Tag = TAG_TuneSCTP_PathMaxRXT; tags[4].Data = 3; tags[5].Tag = TAG_TuneSCTP_AssocMaxRXT; tags[5].Data = 9; tags[6].Tag = TAG_DONE; if(!tuneSCTP(fd, assocID, (struct TagItem*)&tags)) { LOG_WARNING fprintf(stdlog, "Unable to tune SCTP association %u's parameters\n", (unsigned int)assocID); LOG_END } #endif /* ====== Activate keep alive timer ========================== */ if(STN_METHOD(IsLinked)(&poolElementNode->PoolElementTimerStorageNode)) { ST_CLASS(poolHandlespaceNodeDeactivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode); #ifdef ENABLE_REGISTRAR_STATISTICS registrar->Stats.ReregistrationCount++; /* We have a re-registration here */ #endif } #ifdef ENABLE_REGISTRAR_STATISTICS registrar->Stats.RegistrationCount++; /* New registration or re-registration */ #endif ST_CLASS(poolHandlespaceNodeActivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode, PENT_KEEPALIVE_TRANSMISSION, getMicroTime() + registrar->EndpointKeepAliveTransmissionInterval); timerRestart(®istrar->HandlespaceActionTimer, ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( ®istrar->Handlespace)); /* ====== Print debug information ============================ */ LOG_VERBOSE3 fputs("Handlespace content:\n", stdlog); registrarDumpHandlespace(registrar); LOG_END /* ====== Send update to peers =============================== */ registrarSendENRPHandleUpdate(registrar, poolElementNode, PNUP_ADD_PE); } else { LOG_WARNING fputs("Failed to register to pool ", stdlog); poolHandlePrint(&message->Handle, stdlog); fputs(" pool element ", stdlog); ST_CLASS(poolElementNodePrint)(message->PoolElementPtr, stdlog, PENPO_FULL); fputs(": ", stdlog); rserpoolErrorPrint(message->Error, stdlog); fputs("\n", stdlog); LOG_END } } else { LOG_WARNING fprintf(stdlog, "Registration request for "); poolHandlePrint(&message->Handle, stdlog); fputs(" of pool element ", stdlog); ST_CLASS(poolElementNodePrint)(message->PoolElementPtr, stdlog, PENPO_FULL); fputs(" was not possible, since no usable ASAP transport addresses are available\n", stdlog); fputs("Addresses from association: ", stdlog); transportAddressBlockPrint(remoteAddressBlock, stdlog); fputs("\n", stdlog); LOG_END message->Error = RSPERR_NO_USABLE_ASAP_ADDRESSES; } } else { LOG_WARNING fprintf(stdlog, "Registration request to pool "); poolHandlePrint(&message->Handle, stdlog); fputs(" of pool element ", stdlog); ST_CLASS(poolElementNodePrint)(message->PoolElementPtr, stdlog, PENPO_FULL); fputs(" was not possible, since no usable user transport addresses are available\n", stdlog); fputs("Addresses from message: ", stdlog); transportAddressBlockPrint(message->PoolElementPtr->UserTransport, stdlog); fputs("\n", stdlog); fputs("Addresses from association: ", stdlog); transportAddressBlockPrint(remoteAddressBlock, stdlog); fputs("\n", stdlog); LOG_END message->Error = RSPERR_NO_USABLE_USER_ADDRESSES; } if(message->Error) { message->Flags |= AHF_REGISTRATION_REJECT; } #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ASAP", "RegistrationResponse", "Requested", 0, 0, 0, &message->Handle, message->PoolElementPtr->Identifier, registrar->ServerID, 0, 0, message->Error); #endif if(rserpoolMessageSend(IPPROTO_SCTP, fd, assocID, 0, 0, 0, message) == false) { LOG_WARNING logerror("Sending RegistrationResponse failed"); LOG_END sendabort(fd, assocID); } } else { LOG_ERROR fprintf(stdlog, "Unable to obtain peer addresses of FD %d, assoc %u\n", fd, (unsigned int)assocID); LOG_END } } /* ###### Handle ASAP Deregistration ##################################### */ void registrarHandleASAPDeregistration(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode) delPoolElementNode; struct ST_CLASS(PoolNode) delPoolNode; LOG_ACTION fputs("Deregistration request for ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x\n", message->Identifier); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ASAP", "Deregistration", "Requested", 0, 0, 0, &message->Handle, message->Identifier, registrar->ServerID, 0, 0, 0); #endif message->Type = AHT_DEREGISTRATION_RESPONSE; message->Flags = 0x00; poolElementNode = ST_CLASS(poolHandlespaceManagementFindPoolElement)( ®istrar->Handlespace, &message->Handle, message->Identifier); if(poolElementNode != NULL) { /* The ASAP draft says that HandleUpdate has to include a full Pool Element Parameter, even if this is unnecessary for a removal (ID would be sufficient). Since we cannot guarantee that deregistration in the handlespace is successful, we have to copy all data before! Obviously, this is a waste of CPU cycles, memory and bandwidth... */ memset(&delPoolNode, 0, sizeof(delPoolNode)); memset(&delPoolElementNode, 0, sizeof(delPoolElementNode)); delPoolNode = *(poolElementNode->OwnerPoolNode); delPoolElementNode = *poolElementNode; delPoolElementNode.OwnerPoolNode = &delPoolNode; delPoolElementNode.RegistratorTransport = transportAddressBlockDuplicate(poolElementNode->RegistratorTransport); delPoolElementNode.UserTransport = transportAddressBlockDuplicate(poolElementNode->UserTransport); if((delPoolElementNode.UserTransport != NULL) && (delPoolElementNode.RegistratorTransport != NULL)) { registrarDeregistrationHook(registrar, poolElementNode); message->Error = ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( ®istrar->Handlespace, poolElementNode); if(message->Error == RSPERR_OKAY) { message->Flags = 0x00; delPoolElementNode.HomeRegistrarIdentifier = registrar->ServerID; registrarSendENRPHandleUpdate(registrar, &delPoolElementNode, PNUP_DEL_PE); LOG_ACTION fputs("Deregistration successfully completed\n", stdlog); LOG_END LOG_VERBOSE3 fputs("Handlespace content:\n", stdlog); registrarDumpHandlespace(registrar); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrar->Stats.DeregistrationCount++; #endif } else { LOG_WARNING fprintf(stdlog, "Failed to deregister pool element $%08x of pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs(": ", stdlog); rserpoolErrorPrint(message->Error, stdlog); fputs("\n", stdlog); LOG_END } transportAddressBlockDelete(delPoolElementNode.UserTransport); free(delPoolElementNode.UserTransport); delPoolElementNode.UserTransport = NULL; transportAddressBlockDelete(delPoolElementNode.RegistratorTransport); free(delPoolElementNode.RegistratorTransport); } else { if(delPoolElementNode.UserTransport) { transportAddressBlockDelete(delPoolElementNode.UserTransport); free(delPoolElementNode.UserTransport); } if(delPoolElementNode.RegistratorTransport) { transportAddressBlockDelete(delPoolElementNode.RegistratorTransport); free(delPoolElementNode.RegistratorTransport); } message->Error = RSPERR_OUT_OF_MEMORY; } } else { message->Error = RSPERR_OKAY; LOG_WARNING fprintf(stdlog, "Deregistration request for non-existing pool element $%08x of pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs(". Reporting success, since it seems to be already gone.\n", stdlog); LOG_END } #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ASAP", "DeregistrationResponse", "Requested", message->Flags, 0, 0, &message->Handle, message->Identifier, registrar->ServerID, 0, 0, message->Error); #endif if(rserpoolMessageSend(IPPROTO_SCTP, fd, assocID, 0, 0, 0, message) == false) { LOG_WARNING logerror("Sending DeregistrationResponse failed"); LOG_END sendabort(fd, assocID); } } /* ###### Handle ASAP Handle Resolution ################################## */ void registrarHandleASAPHandleResolution(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PoolElementNode)* poolElementNodeArray[MAX_MAX_HANDLE_RESOLUTION_ITEMS]; size_t poolElementNodes = MAX_MAX_HANDLE_RESOLUTION_ITEMS; size_t items; size_t i; items = message->Addresses; if(items == 0) { items = registrar->MaxHandleResolutionItems; } items = min(items, MAX_MAX_HANDLE_RESOLUTION_ITEMS); LOG_ACTION fputs("Handle Resolution request for pool ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, " for %u items (%u requested)\n", (unsigned int)items, (unsigned int)message->Addresses); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ASAP", "HandleResolution", "Requested", 0, items, 0, &message->Handle, 0, 0, 0, 0, 0); registrar->Stats.HandleResolutionCount++; #endif message->Type = AHT_HANDLE_RESOLUTION_RESPONSE; message->Flags = 0x00; if( (registrar->MaxHRRate > 0.0) && (!registrarPoolUserHasPermissionFor(registrar, fd, assocID, AHT_HANDLE_RESOLUTION, &message->Handle, 0)) ) { LOG_WARNING fprintf(stdlog, "Refusing handle resolution for assoc %u\n", assocID); LOG_END poolElementNodes = 0; message->Error = RSPERR_NOT_FOUND; } else { message->Error = ST_CLASS(poolHandlespaceManagementHandleResolution)( ®istrar->Handlespace, &message->Handle, (struct ST_CLASS(PoolElementNode)**)&poolElementNodeArray, &poolElementNodes, items, registrar->MaxIncrement); } if(message->Error == RSPERR_OKAY) { LOG_VERBOSE1 fprintf(stdlog, "Selected %u element%s\n", (unsigned int)poolElementNodes, (poolElementNodes == 1) ? "" : "s"); LOG_END LOG_VERBOSE2 fputs("Selected pool elements:\n", stdlog); for(i = 0;i < poolElementNodes;i++) { fprintf(stdlog, "#%02u: PE ", (unsigned int)i + 1); ST_CLASS(poolElementNodePrint)(poolElementNodeArray[i], stdlog, PENPO_USERTRANSPORT|PENPO_POLICYINFO|PENPO_POLICYSTATE|PENPO_UR_REPORTS|PENPO_HOME_PR); fputs("\n", stdlog); } LOG_END if(poolElementNodes > 0) { message->PolicySettings = poolElementNodeArray[0]->PolicySettings; } message->PoolElementPtrArrayAutoDelete = false; message->PoolElementPtrArraySize = poolElementNodes; for(i = 0;i < poolElementNodes;i++) { message->PoolElementPtrArray[i] = poolElementNodeArray[i]; } } else { LOG_WARNING fprintf(stdlog, "Handle Resolution request for pool "); poolHandlePrint(&message->Handle, stdlog); fputs(" failed: ", stdlog); rserpoolErrorPrint(message->Error, stdlog); fputs("\n", stdlog); LOG_END } #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ASAP", "HandleResolutionResponse", "Requested", 0, poolElementNodes, 0, &message->Handle, (poolElementNodes > 0) ? poolElementNodeArray[0]->Identifier : 0, 0, 0, 0, message->Error); #endif if(rserpoolMessageSend(IPPROTO_SCTP, fd, assocID, 0, 0, 0, message) == false) { LOG_WARNING logerror("Sending handle resolution response failed"); LOG_END sendabort(fd, assocID); } } /* ###### Handle ASAP Endpoint Keep-Alive Ack ############################ */ void registrarHandleASAPEndpointKeepAliveAck(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PoolElementNode)* poolElementNode; const unsigned long long now = getMicroTime(); LOG_VERBOSE2 fprintf(stdlog, "Got EndpointKeepAliveAck for pool element $%08x of pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs("\n", stdlog); LOG_END poolElementNode = ST_CLASS(poolHandlespaceManagementFindPoolElement)( ®istrar->Handlespace, &message->Handle, message->Identifier); if(poolElementNode != NULL) { LOG_VERBOSE2 fputs("EndpointKeepAlive successful, resetting timer\n", stdlog); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ASAP", "EndpointKeepAliveAck", "InTime", 0, 0, now - poolElementNode->LastKeepAliveTransmission, &message->Handle, message->Identifier, 0, 0, 0, 0); #endif ST_CLASS(poolHandlespaceNodeDeactivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode); ST_CLASS(poolHandlespaceNodeActivateTimer)( ®istrar->Handlespace.Handlespace, poolElementNode, PENT_KEEPALIVE_TRANSMISSION, getMicroTime() + registrar->EndpointKeepAliveTransmissionInterval); timerRestart(®istrar->HandlespaceActionTimer, ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( ®istrar->Handlespace)); } else { #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ASAP", "EndpointKeepAliveAck", "TooLateAlreadyRemoved", 0, 0, 0, &message->Handle, message->Identifier, 0, 0, 0, 0); #endif LOG_WARNING fprintf(stdlog, "EndpointKeepAliveAck for not-existing pool element $%08x of pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs("\n", stdlog); LOG_END } } /* ###### Send ASAP Endpoint Keep-Alive ################################## */ void registrarSendASAPEndpointKeepAlive(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode, const bool newHomeRegistrar) { struct RSerPoolMessage* message; bool result; message = rserpoolMessageNew(NULL, 1024); if(message != NULL) { LOG_VERBOSE2 fprintf(stdlog, "Sending EndpointKeepAlive for pool element $%08x in pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs("\n", stdlog); LOG_END message->Handle = poolElementNode->OwnerPoolNode->Handle; message->RegistrarIdentifier = registrar->ServerID; message->Identifier = poolElementNode->Identifier; message->Type = AHT_ENDPOINT_KEEP_ALIVE; message->Flags = newHomeRegistrar ? AHF_ENDPOINT_KEEP_ALIVE_HOME : 0x00; if(poolElementNode->ConnectionSocketDescriptor >= 0) { LOG_VERBOSE3 fprintf(stdlog, "Sending via association %u...\n", (unsigned int)poolElementNode->ConnectionAssocID); LOG_END result = rserpoolMessageSend(IPPROTO_SCTP, poolElementNode->ConnectionSocketDescriptor, poolElementNode->ConnectionAssocID, 0, 0, 0, message); } else { message->AddressArray = poolElementNode->RegistratorTransport->AddressArray; message->Addresses = poolElementNode->RegistratorTransport->Addresses; LOG_VERBOSE3 fputs("Sending to ", stdlog); transportAddressBlockPrint(poolElementNode->RegistratorTransport, stdlog); fputs("...\n", stdlog); LOG_END result = rserpoolMessageSend(IPPROTO_SCTP, registrar->ASAPSocket, 0, 0, 0, 0, message); } if(result == false) { LOG_WARNING fprintf(stdlog, "Sending EndpointKeepAlive for pool element $%08x in pool ", poolElementNode->Identifier); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fputs(" failed\n", stdlog); LOG_END sendabort(registrar->ASAPSocket, 0); } #ifdef ENABLE_REGISTRAR_STATISTICS registrar->Stats.EndpointKeepAliveCount++; #endif rserpoolMessageDelete(message); } } /* ###### Handle ASAP Endpoint Unreachable ############################### */ void registrarHandleASAPEndpointUnreachable(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PoolElementNode)* poolElementNode; unsigned int result; LOG_ACTION fprintf(stdlog, "Got EndpointUnreachable for pool element $%08x of pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs("\n", stdlog); LOG_END if( (registrar->MaxEURate > 0.0) && (!registrarPoolUserHasPermissionFor(registrar, fd, assocID, AHT_ENDPOINT_UNREACHABLE, &message->Handle, 0 /* === only pool! === */)) ) { LOG_WARNING fprintf(stdlog, "Refusing EndpointUnreachable for pool element $%08x of pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, " from assoc %u\n", assocID); LOG_END return; } #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ASAP", "EndpointUnreachable", "", 0, registrar->Stats.FailureReportCount, 0, &message->Handle, message->Identifier, 0, 0, 0, 0); registrar->Stats.FailureReportCount++; #endif poolElementNode = ST_CLASS(poolHandlespaceManagementFindPoolElement)( ®istrar->Handlespace, &message->Handle, message->Identifier); if(poolElementNode != NULL) { poolElementNode->UnreachabilityReports++; if(poolElementNode->UnreachabilityReports >= registrar->MaxBadPEReports) { LOG_WARNING fprintf(stdlog, "%u unreachability reports for pool element ", poolElementNode->UnreachabilityReports); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); fputs(" of pool ", stdlog); poolHandlePrint(&message->Handle, stdlog); fputs(" -> limit reached, removing it\n", stdlog); LOG_END if(poolElementNode->HomeRegistrarIdentifier == registrar->ServerID) { /* We own this PE -> send HandleUpdate for its removal. */ registrarSendENRPHandleUpdate(registrar, poolElementNode, PNUP_DEL_PE); } registrarDeregistrationHook(registrar, poolElementNode); result = ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( ®istrar->Handlespace, poolElementNode); if(message->Error == RSPERR_OKAY) { LOG_ACTION fputs("Successfully deregistered ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x\n", message->Identifier); LOG_END } else { LOG_WARNING fprintf(stdlog, "Failed to deregister pool element $%08x from pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } } } else { LOG_WARNING fprintf(stdlog, "EndpointUnreachable for non-existing pool element $%08x of pool ", message->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs("\n", stdlog); LOG_END } } rsplib-3.0.1/rsplib/terminal.10000664000175000017500000000054111777021056013127 00000000000000.\" $Id: terminal.1 2682 2012-06-08 11:29:28Z dreibh $ .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt RspTerminal 1 .Os RSerPool Terminal .\" ###### Note ############################################################# .Sh NAME .Nm terminal .Nd terminal has been renamed to rspterminal in rsplib-3.0.0! rsplib-3.0.1/rsplib/poolpolicysettings.c0000664000175000017500000001074311777021056015355 00000000000000/* $Id: poolpolicysettings.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "poolpolicysettings.h" /* ###### Initialize ##################################################### */ void poolPolicySettingsNew(struct PoolPolicySettings* pps) { pps->PolicyType = 0; pps->Weight = 0; pps->Load = 0; pps->LoadDegradation = 0; pps->LoadDPF = 0; pps->WeightDPF = 0; pps->Distance = 0; } /* ###### Invalidate ##################################################### */ void poolPolicySettingsDelete(struct PoolPolicySettings* pps) { pps->PolicyType = 0; pps->Weight = 0; pps->Load = 0; pps->LoadDegradation = 0; pps->LoadDPF = 0; pps->WeightDPF = 0; pps->Distance = 0; } /* ###### Comparison ##################################################### */ int poolPolicySettingsComparison(const struct PoolPolicySettings* pps1, const struct PoolPolicySettings* pps2) { return((pps1->Weight != pps2->Weight) || (pps1->Load != pps2->Load) || (pps1->LoadDegradation != pps2->LoadDegradation) || (pps1->LoadDPF != pps2->LoadDPF) || (pps1->WeightDPF != pps2->WeightDPF) || (pps1->Distance != pps2->Distance)); } /* ###### Check, if settings are valid ################################### */ int poolPolicySettingsIsValid(const struct PoolPolicySettings* pps) { return( (pps->Weight >= PPV_MIN_WEIGHT) && (pps->Weight <= PPV_MAX_WEIGHT) && (pps->Load >= PPV_MIN_LOAD) && (pps->Load <= PPV_MAX_LOAD) && (pps->LoadDegradation >= PPV_MIN_LOAD_DEGRADATION) && (pps->LoadDegradation <= PPV_MAX_LOAD_DEGRADATION) ); } /* ###### Pool Policy adaptation ######################################### */ int poolPolicySettingsAdapt(struct PoolPolicySettings* pps, const unsigned int destinationType) { return(pps->PolicyType == destinationType); } /* ###### Get textual description ######################################## */ void poolPolicySettingsGetDescription(const struct PoolPolicySettings* pps, char* buffer, const size_t bufferSize) { snprintf(buffer, bufferSize, "t=$%02x [w=%u l=%1.3f%%($%08x) ldeg=%1.3f%%($%08x) ldpf=%1.6f($%08x) wdpf=%1.6f($%08x) dist=%u]", pps->PolicyType, pps->Weight, (100.0 * pps->Load) / (double)(long long)PPV_MAX_LOAD, pps->Load, (100.0 * pps->LoadDegradation) / (double)(long long)PPV_MAX_LOAD_DEGRADATION, pps->LoadDegradation, pps->LoadDPF / (double)(long long)PPV_MAX_LOAD, pps->LoadDPF, pps->WeightDPF / (double)PPV_MAX_WEIGHTDPF, pps->WeightDPF, pps->Distance); } /* ###### Print ########################################################## */ void poolPolicySettingsPrint(const struct PoolPolicySettings* pps, FILE* fd) { char buffer[256]; poolPolicySettingsGetDescription(pps, (char*)&buffer, sizeof(buffer)); fputs(buffer, fd); } rsplib-3.0.1/rsplib/poolpolicysettings.h0000664000175000017500000000504011777021056015354 00000000000000/* $Id: poolpolicysettings.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef POOLELEMENTPOLICYSETTINGS_H #define POOLELEMENTPOLICYSETTINGS_H #include #include "rserpool-policytypes.h" #ifdef __cplusplus extern "C" { #endif struct PoolPolicySettings { unsigned int PolicyType; unsigned int Weight; unsigned int Load; unsigned int LoadDegradation; unsigned int LoadDPF; unsigned int WeightDPF; unsigned int Distance; }; void poolPolicySettingsNew(struct PoolPolicySettings* pps); void poolPolicySettingsDelete(struct PoolPolicySettings* pps); void poolPolicySettingsPrint(const struct PoolPolicySettings* pps, FILE* fd); void poolPolicySettingsGetDescription(const struct PoolPolicySettings* pps, char* buffer, const size_t bufferSize); int poolPolicySettingsComparison(const struct PoolPolicySettings* pps1, const struct PoolPolicySettings* pps2); int poolPolicySettingsIsValid(const struct PoolPolicySettings* pps); int poolPolicySettingsAdapt(struct PoolPolicySettings* pps, const unsigned int destinationType); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/rspregistrar-core.c0000664000175000017500000003320511777021056015056 00000000000000/* $Id: rspregistrar-core.c 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" /* ###### Dump handlespace ################################################# */ void registrarDumpHandlespace(struct Registrar* registrar) { fputs("*************** Handlespace Dump ***************\n", stdlog); printTimeStamp(stdlog); fputs("\n", stdlog); ST_CLASS(poolHandlespaceManagementPrint)(®istrar->Handlespace, stdlog, PNNPO_POOLS_INDEX|PNNPO_POOLS_SELECTION|PNNPO_POOLS_TIMER|PENPO_USERTRANSPORT|PENPO_POLICYINFO|PENPO_POLICYSTATE|PENPO_UR_REPORTS|PENPO_HOME_PR); fputs("**********************************************\n", stdlog); } /* ###### Dump peers ##################################################### */ void registrarDumpPeers(struct Registrar* registrar) { fputs("*************** Peers ************************\n", stdlog); ST_CLASS(peerListManagementPrint)(®istrar->Peers, stdlog, PLPO_FULL); fputs("**********************************************\n", stdlog); } /* ###### Initialization is complete ##################################### */ void registrarBeginNormalOperation(struct Registrar* registrar, const bool initializedFromMentor) { LOG_NOTE if(initializedFromMentor) { fputs("Initialization phase ended after obtaining handlespace from mentor server. The registrar is ready!\n", stdlog); } else { fputs("Initialization phase ended after ENRP mentor discovery timeout. The registrar is ready!\n", stdlog); } LOG_END registrar->InStartupPhase = false; if(registrar->ASAPSendAnnounces) { LOG_ACTION fputs("Starting to send ASAP announcements\n", stdlog); LOG_END timerStart(®istrar->ASAPAnnounceTimer, 0); } } /* ###### Handle incoming message ######################################## */ void registrarHandleMessage(struct Registrar* registrar, struct RSerPoolMessage* message, int sd) { #ifdef ENABLE_REGISTRAR_STATISTICS unsigned long long now; #endif if(sd == registrar->ENRPMulticastInputSocket) { if(message->Type == EHT_PRESENCE) { registrarHandleENRPPresence(registrar, sd, 0, message); } else { LOG_WARNING fprintf(stdlog, "Got unsupported message type $%02x on ENRP multicast socket\n", message->Type); LOG_END } } else if(sd == registrar->ASAPSocket) { switch(message->Type) { case AHT_REGISTRATION: registrarHandleASAPRegistration(registrar, sd, message->AssocID, message); break; case AHT_HANDLE_RESOLUTION: registrarHandleASAPHandleResolution(registrar, sd, message->AssocID, message); break; case AHT_DEREGISTRATION: registrarHandleASAPDeregistration(registrar, sd, message->AssocID, message); break; case AHT_ENDPOINT_KEEP_ALIVE_ACK: registrarHandleASAPEndpointKeepAliveAck(registrar, sd, message->AssocID, message); break; case AHT_ENDPOINT_UNREACHABLE: registrarHandleASAPEndpointUnreachable(registrar, sd, message->AssocID, message); break; default: LOG_WARNING fprintf(stdlog, "Got unsupported message type $%02x on ASAP unicast socket\n", message->Type); LOG_END break; } } else if(sd == registrar->ENRPUnicastSocket) { switch(message->Type) { case EHT_PRESENCE: registrarHandleENRPPresence(registrar, sd, message->AssocID, message); break; case EHT_HANDLE_UPDATE: registrarHandleENRPHandleUpdate(registrar, sd, message->AssocID, message); break; case EHT_LIST_REQUEST: registrarHandleENRPListRequest(registrar, sd, message->AssocID, message); break; case EHT_LIST_RESPONSE: registrarHandleENRPListResponse(registrar, sd, message->AssocID, message); break; case EHT_HANDLE_TABLE_REQUEST: registrarHandleENRPHandleTableRequest(registrar, sd, message->AssocID, message); break; case EHT_HANDLE_TABLE_RESPONSE: registrarHandleENRPHandleTableResponse(registrar, sd, message->AssocID, message); break; case EHT_INIT_TAKEOVER: registrarHandleENRPInitTakeover(registrar, sd, message->AssocID, message); break; case EHT_INIT_TAKEOVER_ACK: registrarHandleENRPInitTakeoverAck(registrar, sd, message->AssocID, message); break; case EHT_TAKEOVER_SERVER: registrarHandleENRPTakeoverServer(registrar, sd, message->AssocID, message); break; default: LOG_WARNING fprintf(stdlog, "Got unsupported message type $%02x on ENRP unicast socket\n", message->Type); LOG_END break; } } #ifdef ENABLE_REGISTRAR_STATISTICS if(registrar->Stats.NeedsWeightedStatValues) { now = getMicroTime(); updateWeightedStatValue(®istrar->Stats.PoolsCount, now, ST_CLASS(poolHandlespaceManagementGetPools)(®istrar->Handlespace)); updateWeightedStatValue(®istrar->Stats.PoolElementsCount, now, ST_CLASS(poolHandlespaceManagementGetPoolElements)(®istrar->Handlespace)); updateWeightedStatValue(®istrar->Stats.OwnedPoolElementsCount, now, ST_CLASS(poolHandlespaceManagementGetOwnedPoolElements)(®istrar->Handlespace)); updateWeightedStatValue(®istrar->Stats.PeersCount, now, ST_CLASS(peerListManagementGetPeers)(®istrar->Peers)); } #endif } /* ###### Handle events on sockets ####################################### */ void registrarHandleSocketEvent(struct Dispatcher* dispatcher, int fd, unsigned int eventMask, void* userData) { struct Registrar* registrar = (struct Registrar*)userData; struct RSerPoolMessage* message; union sctp_notification* notification; union sockaddr_union remoteAddress; socklen_t remoteAddressLength; struct MessageBuffer* messageBuffer; int flags; uint32_t ppid; sctp_assoc_t assocID; unsigned short streamID; ssize_t received; unsigned int result; CHECK((fd == registrar->ASAPSocket) || (fd == registrar->ENRPUnicastSocket) || ((registrar->ENRPMulticastInputSocket >= 0) && (fd == registrar->ENRPMulticastInputSocket))); LOG_VERBOSE3 fprintf(stdlog, "Event on socket %d...\n", fd); LOG_END if(fd == registrar->ASAPSocket) { messageBuffer = registrar->ASAPMessageBuffer; } else if(fd == registrar->ENRPUnicastSocket) { messageBuffer = registrar->ENRPUnicastMessageBuffer; } else { messageBuffer = registrar->UDPMessageBuffer; } flags = 0; remoteAddressLength = sizeof(remoteAddress); received = messageBufferRead(messageBuffer, fd, &flags, (struct sockaddr*)&remoteAddress, &remoteAddressLength, &ppid, &assocID, &streamID, 0); if(received > 0) { if(!(flags & MSG_NOTIFICATION)) { if(!( (((ppid == PPID_ASAP) && (fd != registrar->ASAPSocket)) || ((ppid == PPID_ENRP) && (fd != registrar->ENRPUnicastSocket))) )) { if(fd == registrar->ENRPMulticastInputSocket) { /* ENRP via UDP -> Set PPID so that rserpoolPacket2Message can correctly decode the packet */ ppid = PPID_ENRP; } result = rserpoolPacket2Message(messageBuffer->Buffer, &remoteAddress, assocID, ppid, received, messageBuffer->BufferSize, &message); if(message != NULL) { if((result == RSPERR_OKAY) && (message->Error == RSPERR_OKAY)) { message->BufferAutoDelete = false; LOG_VERBOSE3 fprintf(stdlog, "Got %u bytes message from ", (unsigned int)message->BufferSize); fputaddress((struct sockaddr*)&remoteAddress, true, stdlog); fprintf(stdlog, ", assoc #%u, PPID $%x\n", (unsigned int)message->AssocID, message->PPID); LOG_END registrarHandleMessage(registrar, message, fd); } else if( (message->Error != RSPERR_UNRECOGNIZED_PARAMETER_SILENT) && ( (fd == registrar->ASAPSocket) || (fd == registrar->ENRPUnicastSocket) ) && (message->Type != AHT_ERROR) && (message->Type != EHT_ERROR) ) { LOG_WARNING fprintf(stdlog, "Sending %s Error message in reply to message type $%02x: ", (message->PPID == PPID_ASAP) ? "ASAP" : "ENRP", message->Type & 0xff); rserpoolErrorPrint(message->Error, stdlog); fputs("\n", stdlog); LOG_END if((ppid == PPID_ASAP) || (ppid == PPID_ENRP)) { if(message->OffendingParameterTLV) { message->ErrorCauseParameterTLV = (char*)memdup(message->OffendingParameterTLV, message->OffendingParameterTLVLength); message->ErrorCauseParameterTLVLength = message->OffendingParameterTLVLength; message->ErrorCauseParameterTLVAutoDelete = true; } /* For ASAP or ENRP messages, we can reply error message */ if(message->PPID == PPID_ASAP) { message->Type = AHT_ERROR; } else if(message->PPID == PPID_ENRP) { message->Type = EHT_ERROR; } rserpoolMessageSend(IPPROTO_SCTP, fd, assocID, 0, 0, 0, message); } } rserpoolMessageDelete(message); } } else { LOG_WARNING fprintf(stdlog, "Received PPID $%08x on wrong socket -> Sending ABORT to assoc %u!\n", ppid, (unsigned int)assocID); LOG_END sendabort(fd, assocID); } } else { notification = (union sctp_notification*)messageBuffer->Buffer; switch(notification->sn_header.sn_type) { case SCTP_ASSOC_CHANGE: if(notification->sn_assoc_change.sac_state == SCTP_COMM_LOST) { LOG_ACTION fprintf(stdlog, "Association communication lost for socket %d, assoc %u\n", registrar->ASAPSocket, (unsigned int)notification->sn_assoc_change.sac_assoc_id); LOG_END registrarRemovePoolElementsOfConnection(registrar, fd, notification->sn_assoc_change.sac_assoc_id); } else if(notification->sn_assoc_change.sac_state == SCTP_SHUTDOWN_COMP) { LOG_ACTION fprintf(stdlog, "Association shutdown completed for socket %d, assoc %u\n", registrar->ASAPSocket, (unsigned int)notification->sn_assoc_change.sac_assoc_id); LOG_END registrarRemovePoolElementsOfConnection(registrar, fd, notification->sn_assoc_change.sac_assoc_id); } break; case SCTP_SHUTDOWN_EVENT: LOG_ACTION fprintf(stdlog, "Shutdown event for socket %d, assoc %u\n", registrar->ASAPSocket, (unsigned int)notification->sn_shutdown_event.sse_assoc_id); LOG_END registrarRemovePoolElementsOfConnection(registrar, fd, notification->sn_shutdown_event.sse_assoc_id); break; } } } else if(received != MBRead_Partial) { LOG_WARNING logerror("Unable to read from registrar socket"); LOG_END } } rsplib-3.0.1/rsplib/mutex.h0000664000175000017500000000311311777021056012543 00000000000000/* $Id: mutex.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef MUTEX_H #define MUTEX_H #include "threadsafety.h" class TDMutex { public: TDMutex(); virtual ~TDMutex(); inline void lock() { threadSafetyLock(&MyMutex); } inline void unlock() { threadSafetyUnlock(&MyMutex); } private: struct ThreadSafety MyMutex; }; #endif rsplib-3.0.1/rsplib/fractalpooluser_nb_NO.qm0000664000175000017500000000345112016624170016045 00000000000000 FractalCalculationThread Requesting calculation ... Ber beregning ... Processed packet # Behandlet pakke # of PE av PE Image completed! Bildet ferdigstilt! Image calculation failed! Beregning av bildet er mislykket! FractalPU Welcome to FractalPoolUser! Velkommen til FractalPoolUser! Starting job distribution ... Starter jobb distribusjon ... Waiting for job completion ... Venter på jobb ferdigstillelse ... Image completed Bildet ferdigstilt Image calculation failed Beregning av bildet er mislykket Waiting for Venter på seconds ... sekunder ... Show &Failovers Viser &failoverer Show &Sessions Viser &sesjoner Sessions Sesjoner &Next Image &Neste bilde &About &Om &Quit &Avslutt About Fractal Pool User Om Fractal Pool User rsplib-3.0.1/rsplib/threadsafety.c0000664000175000017500000000611511777021056014064 00000000000000/* $Id: threadsafety.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "threadsafety.h" #include #include /* ###### Constructor #################################################### */ void threadSafetyNew(struct ThreadSafety* threadSafety, const char* name) { #if !defined(__APPLE__) && !defined(__FreeBSD__) pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); pthread_mutex_init(&threadSafety->Mutex, &attr); pthread_mutexattr_destroy(&attr); #else threadSafety->MutexOwner = 0; threadSafety->MutexRecursionLevel = 0; pthread_mutex_init(&threadSafety->Mutex, NULL); #endif } /* ###### Destructor ##################################################### */ void threadSafetyDelete(struct ThreadSafety* threadSafety) { pthread_mutex_destroy(&threadSafety->Mutex); } /* ###### Lock ########################################################### */ void threadSafetyLock(struct ThreadSafety* threadSafety) { #ifndef __APPLE__ pthread_mutex_lock(&threadSafety->Mutex); #else if(!pthread_equal(threadSafety->MutexOwner, pthread_self())) { pthread_mutex_lock(&threadSafety->Mutex); threadSafety->MutexOwner = pthread_self(); } threadSafety->MutexRecursionLevel++; #endif } /* ###### Unlock ######################################################### */ void threadSafetyUnlock(struct ThreadSafety* threadSafety) { #ifndef __APPLE__ pthread_mutex_unlock(&threadSafety->Mutex); #else assert(threadSafety->MutexRecursionLevel > 0); assert(pthread_equal(threadSafety->MutexOwner, pthread_self())); threadSafety->MutexRecursionLevel--; if(threadSafety->MutexRecursionLevel == 0) { threadSafety->MutexOwner = 0; pthread_mutex_unlock(&threadSafety->Mutex); } #endif } rsplib-3.0.1/rsplib/threadsafety.h0000664000175000017500000000437211777021056014074 00000000000000/* $Id: threadsafety.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef THREADSAFETY_H #define THREADSAFETY_H #include "tdtypes.h" #include #ifdef __cplusplus extern "C" { #endif struct ThreadSafety { pthread_mutex_t Mutex; #if defined(__APPLE__) || defined(__FreeBSD__) pthread_t MutexOwner; unsigned int MutexRecursionLevel; #endif }; /** * Create new recursive mutex. * * @param threadSafety ThreadSafety. * @param name Mutex name for debugging purposes or NULL. */ void threadSafetyNew(struct ThreadSafety* threadSafety, const char* name); /** * Delete recursive mutex. * * @param threadSafety ThreadSafety. */ void threadSafetyDelete(struct ThreadSafety* threadSafety); /** * Lock mutex. * * @param threadSafety ThreadSafety. */ void threadSafetyLock(struct ThreadSafety* threadSafety); /** * Unlock mutex. * * @param threadSafety ThreadSafety. */ void threadSafetyUnlock(struct ThreadSafety* threadSafety); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/fractalpooluser.cc0000664000175000017500000010525311777021056014754 00000000000000/* $Id: fractalpooluser.cc 2696 2012-07-03 20:56:06Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "fractalpooluser.h" #include "fractalpooluser_moc.cc" #ifdef FRACTALPOOLUSER_USE_KDE #include #include #include #include #endif #include "tdtypes.h" #include "rserpool.h" #include "fractalgeneratorpackets.h" #include "timeutilities.h" #include "randomizer.h" #include "netutilities.h" #include "loglevel.h" #include "debug.h" #define DEFAULT_FPU_WIDTH 400 #define DEFAULT_FPU_HEIGHT 250 #define DEFAULT_FPU_SEND_TIMEOUT 5000 #define DEFAULT_FPU_RECV_TIMEOUT 5000 #define DEFAULT_FPU_INTER_IMAGE_TIME 5 #define DEFAULT_FPU_THREADS 1 #define DEFAULT_FPU_CAPTION NULL #define DEFAULT_FPU_POOLHANDLE "FractalGeneratorPool" #ifndef DEFAULT_FPU_CONFIGDIR #define DEFAULT_FPU_CONFIGDIR "fgpconfig" #endif #define DEFAULT_FPU_IMAGEPREFIX "" #define DEFAULT_FPU_SHOWCOLORMARKS TRUE #define DEFAULT_FPU_SHOWSESSIONS TRUE /* ###### Constructor #################################################### */ FractalPU::FractalPU(const size_t width, const size_t height, const char* poolHandle, const char* configDirName, const unsigned int sendTimeout, const unsigned int recvTimeout, const unsigned int interImageTime, const char* imageStoragePrefix, const bool showFailoverMarks, const bool showSessions, const size_t threads, QWidget* parent) #ifdef FRACTALPOOLUSER_USE_KDE : KMainWindow(parent) #else : QMainWindow(parent) #endif { Display = new ImageDisplay(this); Q_CHECK_PTR(Display); Display->setMinimumSize(width, height); setCentralWidget(Display); PoolHandle = (const unsigned char*)poolHandle; PoolHandleSize = strlen((const char*)PoolHandle); RecvTimeout = sendTimeout; SendTimeout = recvTimeout; InterImageTime = interImageTime; ImageStoragePrefix = QString(imageStoragePrefix); ShowFailoverMarks = showFailoverMarks; ShowSessions = showSessions; ConfiguredThreads = threads; RunningThreads = 0; FileNumber = 0; Run = 0; // ====== Initialize file and directory names ============================ ConfigDirectory = QDir(configDirName, "*.fsf", QDir::Name, QDir::Files); if(ConfigDirectory.exists() != TRUE) { std::cerr << "WARNING: Configuration directory " << configDirName << " does not exist!" << std::endl; ConfigDirectory = QDir::current(); } else { QStringList contents = ConfigDirectory.entryList(); for(QStringList::Iterator iterator = contents.begin();iterator != contents.end();++iterator) { // std::cout << *iterator << std::endl; ConfigList.append(*iterator); } } // ====== Initialize widget and PU thread ================================ setWindowTitle("Fractal Pool User"); statusBar()->showMessage(tr("Welcome to FractalPoolUser!"), 3000); show(); QTimer::singleShot(100, this, SLOT(startNextJob())); } /* ###### Destructor ##################################################### */ FractalPU::~FractalPU() { setStatus(FPU_Shutdown); if(CalculationThreadArray) { for(size_t i = 0;i < CurrentThreads;i++) { CalculationThreadArray[i]->wait(); delete CalculationThreadArray[i]; CalculationThreadArray[i] = NULL; } delete [] CalculationThreadArray; CalculationThreadArray = NULL; } delete Display; Display = NULL; CurrentThreads = 0; } /* ###### Handle Close event ############################################# */ void FractalPU::closeEvent(QCloseEvent* closeEvent) { quit(); } /* ###### Handle Resize event ############################################ */ void FractalPU::resizeEvent(QResizeEvent* resizeEvent) { setStatus(FPU_CalcAborted); } /* ###### Get parameters from config file ################################ */ void FractalPU::getNextParameters() { if(ConfigList.count() == 0) { // cerr << "Config file list empty" << endl; return; } const size_t element = random32() % ConfigList.count(); QString parameterFileName(ConfigList[element]); QDomDocument doc("XMLFractalSave"); std::cout << "Getting parameters from " << (const char*)(ConfigDirectory.filePath(parameterFileName).toLocal8Bit().constData()) << "..." << std::endl; QFile parameterFile(ConfigDirectory.filePath(parameterFileName)); if(!parameterFile.open(QIODevice::ReadOnly)) { std::cerr << "WARNING: Cannot open parameter file " << (const char*)(parameterFileName.toLocal8Bit().constData()) << "!" << std::endl; return; } QString error; int line, column; if(!doc.setContent(¶meterFile, false, &error, &line, &column)) { parameterFile.close(); std::cerr << "WARNING: Error in parameter file " << (const char*)(parameterFileName.toLocal8Bit().constData()) << ":" << std::endl << (const char*)(error.toLocal8Bit().constData()) << " in line " << line << ", column " << column << std::endl; return; } parameterFile.close(); QDomElement algorithm = doc.elementsByTagName("AlgorithmName").item(0).toElement(); const QString algorithmName = algorithm.firstChild().toText().data(); if(algorithmName == "MandelbrotN") { Parameter.AlgorithmID = FGPA_MANDELBROTN; } else if(algorithmName == "Mandelbrot") { Parameter.AlgorithmID = FGPA_MANDELBROT; } else { std::cerr << "WARNING: Unknown algorithm name in parameter file " << (const char*)(parameterFileName.toLocal8Bit().constData()) << "!" << std::endl << "Assuming Mandelbrot..." << std::endl; Parameter.AlgorithmID = FGPA_MANDELBROT; } Parameter.C1Real = doc.elementsByTagName("C1Real").item(0).firstChild().toText().data().toDouble(); Parameter.C1Imag = doc.elementsByTagName("C1Imag").item(0).firstChild().toText().data().toDouble(); Parameter.C2Real = doc.elementsByTagName("C2Real").item(0).firstChild().toText().data().toDouble(); Parameter.C2Imag = doc.elementsByTagName("C2Imag").item(0).firstChild().toText().data().toDouble(); // Defaults; will be overwritten if specified in the parameter file. Parameter.N = 2.0; Parameter.MaxIterations = 123; QDomElement userOptions = doc.elementsByTagName("Useroptions").item(0).toElement(); QDomNode child = userOptions.firstChild(); while(!child.isNull()) { const QString name = child.nodeName(); const QString value = child.firstChild().toText().data(); if(name == "MaxIterations") { Parameter.MaxIterations = value.toInt(); } else if(name == "N") { Parameter.N = value.toDouble(); } child = child.nextSibling(); } } /* ###### Start next fractal PU job ###################################### */ void FractalPU::startNextJob() { Q_ASSERT(getStatus() != FPU_CalcInProgress); Q_ASSERT(RunningThreads == 0); // ====== Initialize image object and timeout timer ====================== Run++; Display->initialize(Display->width(), Display->height()); Parameter.Width = Display->width(); Parameter.Height = Display->height(); Parameter.C1Real = -1.5; Parameter.C1Imag = 1.5; Parameter.C2Real = 1.5; Parameter.C2Imag = -1.5; Parameter.N = 2.0; Parameter.MaxIterations = 1024; Parameter.AlgorithmID = FGPA_MANDELBROT; getNextParameters(); // ====== Start job distribution ========================================= setStatus(FPU_CalcInProgress); // std::cout << "Starting job distribution ..." << std::endl; Display->setCursor(Qt::WaitCursor); statusBar()->showMessage(tr("Starting job distribution ...")); CurrentThreads = ConfiguredThreads; CalculationThreadArray = new FractalCalculationThread*[CurrentThreads]; Q_CHECK_PTR(CalculationThreadArray); for(size_t i = 0;i < CurrentThreads;i++) { CalculationThreadArray[i] = NULL; } // ====== Initialize configured number of sessions ======================= Display->lock(); QColor color; const size_t yCount = (size_t)floor(sqrt((double)CurrentThreads)); const size_t yStep = (size_t)rint((double)Parameter.Height / yCount); size_t remaining = CurrentThreads; for(size_t yPosition = 0;yPosition < yCount;yPosition++) { const size_t xCount = (yPosition < yCount - 1) ? min(remaining, yCount) : remaining; if(xCount > 0) { const size_t xStep = (size_t)rint(Parameter.Width / xCount); remaining -= xCount; // ====== Initialize rectange for next session ===================== const QPen numberPen(Qt::red); QPainter painter; painter.begin(Display->getImage()); painter.setPen(numberPen); for(size_t xPosition = 0;xPosition < xCount;xPosition++) { // ====== Mark rectange for next session ======================== if(CurrentThreads > 1) { if(ShowFailoverMarks) { color.setHsv((((5 * RunningThreads) % 72) * 5) % 256, 100, 255); Display->fillRect(xPosition * xStep, yPosition * yStep, xStep, yStep, color.rgb()); } char str[64]; snprintf((char*)&str, sizeof(str), "%u", (unsigned int)RunningThreads + 1); const QString numberString(str); painter.drawText(xPosition * xStep, yPosition * yStep, xStep, yStep, Qt::AlignCenter, numberString); } // ====== Start new session ===================================== CalculationThreadArray[RunningThreads] = new FractalCalculationThread(this, RunningThreads, xPosition * xStep, yPosition * yStep, xStep, yStep, (CurrentThreads == 1)); Q_CHECK_PTR(CalculationThreadArray[RunningThreads]); connect(CalculationThreadArray[RunningThreads], SIGNAL(updateImage(int, int)), this, SLOT(redrawImage(int, int))); connect(CalculationThreadArray[RunningThreads], SIGNAL(updateStatus(QString)), this, SLOT(changeStatus(QString))); connect(CalculationThreadArray[RunningThreads], SIGNAL(finished()), this, SLOT(handleCompletedSession())); CalculationThreadArray[RunningThreads]->start(); RunningThreads++; } painter.end(); } } Q_ASSERT(RunningThreads == CurrentThreads); // ====== Make everything visible ======================================== Display->update(); Display->unlock(); // ====== Wait for job completion ======================================== // std::cout << "Waiting for job completion ..." << std::endl; if(CurrentThreads > 1) { statusBar()->showMessage(tr("Waiting for job completion ...")); } } /* ###### Session has completed ########################################## */ void FractalPU::handleCompletedSession() { if(CalculationThreadArray) { // ====== All sessions have finished ================================== Q_ASSERT(RunningThreads > 0); RunningThreads--; if(RunningThreads == 0) { Display->setCursor(Qt::ArrowCursor); Success = true; for(size_t i = 0;i < CurrentThreads;i++) { CalculationThreadArray[i]->wait(); if(!CalculationThreadArray[i]->getSuccess()) { Success = false; } delete CalculationThreadArray[i]; CalculationThreadArray[i] = NULL; } delete [] CalculationThreadArray; CalculationThreadArray = NULL; // ====== Pause before next image ================================== if(getStatus() == FPU_CalcInProgress) { setStatus(FPU_Completed); CountDown = InterImageTime; QTimer::singleShot(0, this, SLOT(countDown())); } else if(getStatus() == FPU_CalcAborted) { setStatus(FPU_Completed); statusBar()->showMessage("Restarting ..."); QTimer::singleShot(500, this, SLOT(startNextJob())); } } } } /* ###### Wait until start of next job ################################### */ void FractalPU::countDown() { const QString status = ((Success == true) ? tr("Image completed") : tr("Image calculation failed")) + " - " + tr("Waiting for ") + QString::number(CountDown) + tr(" seconds ..."); statusBar()->showMessage(status); if(CountDown > 0) { CountDown--; QTimer::singleShot(1000, this, SLOT(countDown())); } else { QTimer::singleShot(1000, this, SLOT(startNextJob())); } } /* ###### Redraw image ################################################### */ void FractalPU::redrawImage(int start, int end) { // Only update the lines which have changed. Display->update(0, start, width(), end + 1 - start); } /* ###### Change text of status bar ###################################### */ void FractalPU::changeStatus(QString statusText) { statusBar()->showMessage(statusText); } /* ###### Context menu ################################################### */ void FractalPU::contextMenuEvent(QContextMenuEvent* event) { QMenu menu(this); static unsigned int sessionsEntries[] = {1, 0, 2, 3, 4, 6, 8, 0, 9, 16, 25, 36, 49, 64, 81, 100, 0, 144, 225, 256, 400}; QAction* showFailovers = menu.addAction(tr("Show &Failovers")); Q_CHECK_PTR(showFailovers); showFailovers->setCheckable(true); showFailovers->setChecked(ShowFailoverMarks); connect(showFailovers, SIGNAL(toggled(bool)), this, SLOT(changeShowFailoverMarks(bool))); QAction* showSessions = menu.addAction(tr("Show &Sessions")); Q_CHECK_PTR(showSessions); showSessions->setCheckable(true); showSessions->setChecked(ShowSessions); connect(showSessions, SIGNAL(toggled(bool)), this, SLOT(changeShowSessions(bool))); QMenu* sessionsMenu = menu.addMenu(tr("Sessions")); Q_CHECK_PTR(sessionsMenu); for(size_t i = 0;i < sizeof(sessionsEntries) / sizeof(sessionsEntries[0]);i++) { if(sessionsEntries[i] > 0) { QAction* action = sessionsMenu->addAction(QString::number(sessionsEntries[i])); Q_CHECK_PTR(action); action->setCheckable(true); if(sessionsEntries[i] == ConfiguredThreads) { action->setChecked(true); } action->setData(sessionsEntries[i]); } else { sessionsMenu->addSeparator(); } } connect(sessionsMenu, SIGNAL(triggered(QAction*)), this, SLOT(changeThreads(QAction*))); menu.addSeparator(); menu.addAction(tr("&Next Image"), this, SLOT(restart())); menu.addAction(tr("&About"), this, SLOT(about())); menu.addSeparator(); menu.addAction(tr("&Quit"), this, SLOT(quit())); menu.exec(event->globalPos()); } /* ###### Change FailoverMarks setting ################################### */ void FractalPU::changeShowFailoverMarks(bool checked) { ShowFailoverMarks = checked; } /* ###### Change FailoverMarks setting ################################### */ void FractalPU::changeShowSessions(bool checked) { ShowSessions = checked; } /* ###### Change Threads setting ######################################### */ void FractalPU::changeThreads(QAction* action) { const unsigned int newThreads = action->data().toInt(); if(newThreads >= 1) { ConfiguredThreads = newThreads; setStatus(FPU_CalcAborted); } } /* ###### Next Image ##################################################### */ void FractalPU::restart() { setStatus(FPU_CalcAborted); CountDown = 0; } /* ###### About ########################################################## */ void FractalPU::about() { QMessageBox::about(this, tr("About Fractal Pool User"), "
" "Fractal Pool User
" "Copyright (C) 2002-2012 by Thomas Dreibholz" "
"); } /* ###### Quit ########################################################### */ void FractalPU::quit() { setStatus(FPU_Shutdown); qApp->exit(0); } /* ###### Fractal PU thread constructor ################################## */ FractalCalculationThread::FractalCalculationThread(FractalPU* fractalPU, const unsigned int threadID, const size_t viewX, const size_t viewY, const size_t viewWidth, const size_t viewHeight, const bool showStatus) { ThreadID = threadID; Master = fractalPU; ViewX = viewX; ViewY = viewY; ViewWidth = viewWidth; ViewHeight = viewHeight; ShowStatus = showStatus; Session = -1; Success = false; } /* ###### Send Parameter message ######################################### */ bool FractalCalculationThread::sendParameterMessage() { FGPParameter parameter; ssize_t sent; const double c1real = Master->getParameters().C1Real + (double)ViewX * (Master->getParameters().C2Real - Master->getParameters().C1Real) / (double)Master->getParameters().Width; const double c1imag = Master->getParameters().C1Imag + (double)ViewY * (Master->getParameters().C2Imag - Master->getParameters().C1Imag) / (double)Master->getParameters().Height; const double c2real = Master->getParameters().C1Real + (double)(ViewX + ViewWidth) * (Master->getParameters().C2Real - Master->getParameters().C1Real) / (double)Master->getParameters().Width; const double c2imag = Master->getParameters().C1Imag + (double)(ViewY + ViewHeight) * (Master->getParameters().C2Imag - Master->getParameters().C1Imag) / (double)Master->getParameters().Height; parameter.Header.Type = FGPT_PARAMETER; parameter.Header.Flags = 0x00; parameter.Header.Length = htons(sizeof(parameter)); parameter.Width = htonl(ViewWidth); parameter.Height = htonl(ViewHeight); parameter.AlgorithmID = htonl(Master->getParameters().AlgorithmID); parameter.MaxIterations = htonl(Master->getParameters().MaxIterations); parameter.C1Real = doubleToNetwork(c1real); parameter.C1Imag = doubleToNetwork(c1imag); parameter.C2Real = doubleToNetwork(c2real); parameter.C2Imag = doubleToNetwork(c2imag); parameter.N = doubleToNetwork(Master->getParameters().N); sent = rsp_sendmsg(Session, (char*)¶meter, sizeof(parameter), 0, 0, htonl(PPID_FGP), 0, 0, 0, Master->getSendTimeout()); return(sent > 0); } /* ###### Handle Data message ############################################ */ FractalCalculationThread::DataStatus FractalCalculationThread::handleDataMessage( const FGPData* data, const size_t size) { if(size < getFGPDataSize(0)) { return(Invalid); } size_t p = 0; size_t x = ntohl(data->StartX); size_t y = ntohl(data->StartY); size_t points = ntohl(data->Points); if((points == 0) && (x == 0xffffffff) && (y == 0xffffffff)) { return(Finalizer); } if(size < getFGPDataSize(points)) { return(Invalid); } if(x >= ViewWidth) { return(Invalid); } if(y >= ViewHeight) { return(Invalid); } if(points > FGD_MAX_POINTS) { return(Invalid); } Master->getDisplay()->lock(); QColor color; while(y < ViewHeight) { while(x < ViewWidth) { if(p >= points) { goto finished; } uint32_t point = ntohl(data->Buffer[p]); if(Master->getShowFailoverMarks()) { point += (2 * Master->getRun()) + (5 * PoolElementUsages); } if(Master->getShowSessions()) { point += (3 * ThreadID); } point = ((point % 72) * 5) % 360; color.setHsv(point, 255, 255); Master->getDisplay()->setPixel(x + ViewX, y + ViewY, color.rgb()); p++; x++; } x = 0; y++; } finished: Master->getDisplay()->unlock(); emit updateImage(ntohl(data->StartY) + ViewY, y + ViewY); return(Okay); } /* ###### Fractal PU thread implementation ############################### */ void FractalCalculationThread::run() { PoolElementUsages = 0; Session = rsp_socket(0, SOCK_SEQPACKET, IPPROTO_SCTP); if(Session >= 0) { if(rsp_connect(Session, Master->getPoolHandle(), Master->getPoolHandleSize(), 0) == 0) { // ====== Begin image calculation ================================== do { if(ShowStatus) { const QString status = tr("Requesting calculation ..."); rsp_csp_setstatus(Session, 0, status.toLocal8Bit().data()); // cout << "Sending parameter command ..." << endl; emit updateStatus(status); } if(sendParameterMessage()) { do { // ====== Handle received result chunks =================== rsp_sndrcvinfo rinfo; char buffer[max(sizeof(FGPData), sizeof(rsp_sndrcvinfo))]; int flags = 0; size_t packets = 0; ssize_t received; received = rsp_recvfullmsg(Session, (char*)&buffer, sizeof(buffer), &rinfo, &flags, Master->getRecvTimeout()); while(received > 0) { // ====== Handle notification ========================== if(flags & MSG_RSERPOOL_NOTIFICATION) { const union rserpool_notification* notification = (const union rserpool_notification*)&buffer; printTimeStamp(stdout); printf("Notification: "); rsp_print_notification(notification, stdout); puts(""); if(notification->rn_header.rn_type == RSERPOOL_FAILOVER) { if(notification->rn_failover.rf_state == RSERPOOL_FAILOVER_NECESSARY) { break; } else if(notification->rn_failover.rf_state == RSERPOOL_FAILOVER_COMPLETE) { PoolElementUsages++; } } } // ====== Handle Data ================================== else { const FGPData* data = (const FGPData*)&buffer; if((received >= (ssize_t)sizeof(FGPCommonHeader)) && (data->Header.Type == FGPT_DATA)) { const DataStatus status = handleDataMessage(data, received); switch(status) { case Finalizer: Success = true; goto finish; break; case Invalid: std::cerr << "ERROR: Invalid data block received!" << std::endl; break; default: packets++; if(ShowStatus) { char statusText[128]; snprintf((char*)&statusText, sizeof(statusText), "%s%u %s $%08x", tr("Processed packet #").toLocal8Bit().data(), (unsigned int)packets, tr("of PE").toLocal8Bit().data(), rinfo.rinfo_pe_id); rsp_csp_setstatus(Session, 0, statusText); emit updateStatus(QString(statusText)); } break; } } } if(Master->getStatus() != FractalPU::FPU_CalcInProgress) { goto finish; } flags = 0; received = rsp_recvfullmsg(Session, (char*)&buffer, sizeof(buffer), &rinfo, &flags, Master->getRecvTimeout()); } if(Success == false) { printTimeStamp(stdout); printf("FAILOVER (cookie=%s)...\n", (rsp_has_cookie(Session)) ? "yes" : "NO!"); rsp_forcefailover(Session, FFF_NONE, 0); } } while(rsp_has_cookie(Session)); } else { printTimeStamp(stdout); printf("FAILOVER AFTER FAILED sendParameterMessage() (cookie=%s)...\n", (rsp_has_cookie(Session)) ? "yes" : "NO!"); rsp_forcefailover(Session, FFF_UNREACHABLE, 0); } } while(Success == false); // ====== Image calculation completed ============================== if(ShowStatus) { const QString status = (Success == true) ? tr("Image completed!") : tr("Image calculation failed!"); rsp_csp_setstatus(Session, 0, status.toLocal8Bit().data()); } } else { logerror("rsp_connect() failed"); } } else { logerror("rsp_socket() failed"); } finish: rsp_close(Session); } /* ###### Imaay constructor ####################################### */ ImageDisplay::ImageDisplay(QWidget* parent) : QWidget(parent) { Image = NULL; } /* ###### ImageDisplay destructor ######################################## */ ImageDisplay::~ImageDisplay() { destroy(); } /* ###### Initialize ImageDisplay ######################################## */ void ImageDisplay::initialize(const size_t width, const size_t height) { destroy(); if(Image == NULL) { Image = new QImage(width, height, QImage::Format_RGB32); Q_CHECK_PTR(Image); Image->fill(qRgb(200, 200, 200)); } } /* ###### Destroy ImageDisplay ########################################### */ void ImageDisplay::destroy() { if(Image) { delete Image; Image = NULL; } } /* ###### Handle Paint event ############################################# */ void ImageDisplay::paintEvent(QPaintEvent* paintEvent) { if(Image) { ImageMutex.lock(); QPainter p; p.begin(this); p.drawImage(paintEvent->rect().left(), paintEvent->rect().top(), *Image, paintEvent->rect().left(), paintEvent->rect().top(), paintEvent->rect().width(), paintEvent->rect().height()); p.end(); ImageMutex.unlock(); } } // ###### Main program ###################################################### int main(int argc, char** argv) { struct rsp_info info; const char* caption = DEFAULT_FPU_CAPTION; size_t threads = DEFAULT_FPU_THREADS; const char* poolHandle = DEFAULT_FPU_POOLHANDLE; const char* configDirName = DEFAULT_FPU_CONFIGDIR; int width = DEFAULT_FPU_WIDTH; int height = DEFAULT_FPU_HEIGHT; unsigned int sendTimeout = DEFAULT_FPU_SEND_TIMEOUT; unsigned int recvTimeout = DEFAULT_FPU_RECV_TIMEOUT; unsigned int interImageTime = DEFAULT_FPU_INTER_IMAGE_TIME; const char* imageStoragePrefix = DEFAULT_FPU_IMAGEPREFIX; bool showFailoverMarks = DEFAULT_FPU_SHOWCOLORMARKS; bool showSessions = DEFAULT_FPU_SHOWSESSIONS; unsigned int identifier; int i; rsp_initinfo(&info); #ifdef ENABLE_CSP info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, 0); #endif for(i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } #ifdef ENABLE_CSP else if(!(strncmp(argv[i], "-identifier=", 12))) { if(sscanf((const char*)&argv[i][12], "0x%x", &identifier) == 0) { if(sscanf((const char*)&argv[i][12], "%u", &identifier) == 0) { fputs("ERROR: Bad registrar ID given!\n", stderr); exit(1); } } info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, identifier); } #endif else if(!(strncmp(argv[i],"-configdir=",11))) { configDirName = (const char*)&argv[i][11]; } else if(!(strncmp(argv[i],"-caption=",9))) { caption = (const char*)&argv[i][9]; } else if(!(strncmp(argv[i], "-poolhandle=" ,12))) { poolHandle = (const char*)&argv[i][12]; } else if(!(strncmp(argv[i], "-width=" ,7))) { width = atol((char*)&argv[i][7]); } else if(!(strncmp(argv[i], "-height=" ,8))) { height = atol((char*)&argv[i][8]); } else if(!(strncmp(argv[i], "-threads=" ,9))) { threads = atol((char*)&argv[i][9]); } else if(!(strncmp(argv[i], "-sendtimeout=" ,13))) { sendTimeout = atol((char*)&argv[i][13]); } else if(!(strncmp(argv[i], "-recvtimeout=" ,13))) { recvTimeout = atol((char*)&argv[i][13]); } else if(!(strncmp(argv[i], "-interimagetime=" ,16))) { interImageTime = atol((char*)&argv[i][16]); } else if(!(strncmp(argv[i], "-imagestorageprefix=" ,20))) { imageStoragePrefix = (const char*)&argv[i][20]; } else if(!(strcmp(argv[i], "-sessions"))) { showSessions = TRUE; } else if(!(strcmp(argv[i], "-nosessions"))) { showSessions = TRUE; } else if(!(strcmp(argv[i], "-colormarks"))) { showFailoverMarks = TRUE; } else if(!(strcmp(argv[i], "-nocolormarks"))) { showFailoverMarks = FALSE; } else { printf("ERROR: Bad argument %s\n", argv[i]); exit(1); } } #ifdef ENABLE_CSP if(CID_OBJECT(info.ri_csp_identifier) == 0ULL) { info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, random64()); } #endif if(threads < 1) { threads = 1; } else if(threads > 512) { threads = 512; } if(width < 64) { width = 64; } else if(width > 8192) { width = 8192; } if(height < 64) { height = 64; } else if(height > 4096) { height = 4096; } puts("Fractal Pool User - Version 2.0"); puts("===============================\n"); printf("Pool Handle = %s\n", poolHandle); printf("Width = %u\n", width); printf("Height = %u\n", height); printf("Config Directory = %s\n", configDirName); printf("Send Timeout = %u [ms]\n", sendTimeout); printf("Receive Timeout = %u [ms]\n", recvTimeout); printf("Inter Image Time = %u [s]\n", interImageTime); printf("Image Storage Prefix = %s\n", imageStoragePrefix); printf("Show Color Marks = %s\n", (showFailoverMarks == TRUE) ? "on" : "off"); printf("Show Sessions = %s\n", (showSessions == TRUE) ? "on" : "off"); printf("Threads = %u\n\n", (unsigned int)threads); if(rsp_initialize(&info) < 0) { logerror("Unable to initialize rsplib"); exit(1); } #ifdef FRACTALPOOLUSER_USE_KDE KAboutData about("fractalpooluser", "fractalpooluser", ki18n("Fractal Pool User"), "2.0kde", ki18n("A KDE/RSerPool Fractal Generator Pool User"), KAboutData::License_GPL_V3, ki18n("Copyright (C) 2009-2012 Thomas Dreibholz")); KCmdLineArgs::init(argc, argv, &about); KApplication application; #else QApplication application(argc, argv); QTranslator applicationTranslator; applicationTranslator.load("fractalpooluser_" + QLocale::system().name(), "/usr/share/fractalpooluser"); application.installTranslator(&applicationTranslator); #endif FractalPU* fractalPU = new FractalPU(width, height, poolHandle, configDirName, sendTimeout, recvTimeout, interImageTime, imageStoragePrefix, showFailoverMarks, showSessions, threads); Q_CHECK_PTR(fractalPU); if(caption) { fractalPU->setWindowTitle(caption); } fractalPU->show(); const int result = application.exec(); delete fractalPU; puts("\nTerminated!"); rsp_cleanup(); rsp_freeinfo(&info); return(result); } rsplib-3.0.1/rsplib/rspregistrar-enrp.c0000664000175000017500000016124411777021056015077 00000000000000/* $Id: rspregistrar-enrp.c 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" /* ###### ENRP Presence timer callback ################################### */ void registrarHandleENRPAnnounceTimer(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct Registrar* registrar = (struct Registrar*)userData; /* ====== Leave startup phase ========================================= */ if(registrar->InStartupPhase) { registrarBeginNormalOperation(registrar, false); } /* ====== Send Presence as multicast announce ========================= */ if(registrar->ENRPAnnounceViaMulticast) { if(multicastGroupControl(registrar->ENRPMulticastInputSocket, ®istrar->ENRPMulticastAddress, true) == false) { LOG_WARNING fputs("Unable to join multicast group ", stdlog); fputaddress(®istrar->ENRPMulticastAddress.sa, true, stdlog); fputs(". Registrar will probably be unable to detect peers!\n", stdlog); LOG_END; } registrarSendENRPPresence(registrar, registrar->ENRPMulticastOutputSocket, 0, 0, (union sockaddr_union*)®istrar->ENRPMulticastAddress, 1, 0, false); } /* ====== Send Presence to peers ====================================== */ registrarSendENRPPresenceToAllPeers(registrar); /* ====== Restart heartbeat cycle timer =============================== */ unsigned long long n = getMicroTime() + registrarRandomizeCycle(registrar->PeerHeartbeatCycle); timerStart(timer, n); } /* ###### Handle peer management timers ################################## */ void registrarHandlePeerEvent(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct Registrar* registrar = (struct Registrar*)userData; struct ST_CLASS(PeerListNode)* peerListNode; struct ST_CLASS(PeerListNode)* nextPeerListNode; size_t outstandingAcks; size_t i; peerListNode = ST_CLASS(peerListManagementGetFirstPeerListNodeFromTimerStorage)( ®istrar->Peers); while((peerListNode != NULL) && (peerListNode->TimerTimeStamp <= getMicroTime())) { nextPeerListNode = ST_CLASS(peerListManagementGetNextPeerListNodeFromTimerStorage)( ®istrar->Peers, peerListNode); /* ====== Max-time-last-heard timer ================================ */ if(peerListNode->TimerCode == PLNT_MAX_TIME_LAST_HEARD) { LOG_ACTION fputs("Peer ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, PLPO_FULL); fprintf(stdlog, " not head since MaxTimeLastHeard=%lluus -> requesting immediate Presence\n", registrar->PeerMaxTimeLastHeard); LOG_END registrarSendENRPPresence(registrar, registrar->ENRPUnicastSocket, 0, 0, peerListNode->AddressBlock->AddressArray, peerListNode->AddressBlock->Addresses, peerListNode->Identifier, true); ST_CLASS(peerListManagementDeactivateTimer)( ®istrar->Peers, peerListNode); ST_CLASS(peerListManagementActivateTimer)( ®istrar->Peers, peerListNode, PLNT_MAX_TIME_NO_RESPONSE, getMicroTime() + registrar->PeerMaxTimeNoResponse); } /* ====== Max-time-no-response timer =============================== */ else if(peerListNode->TimerCode == PLNT_MAX_TIME_NO_RESPONSE) { LOG_ACTION fputs("Peer ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, PLPO_FULL); fprintf(stdlog, " did not answer in MaxTimeNoResponse=%lluus -> removing it\n", registrar->PeerMaxTimeLastHeard); LOG_END CHECK(peerListNode->TakeoverProcess == NULL); if(peerListNode->TakeoverRegistrarID == UNDEFINED_REGISTRAR_IDENTIFIER) { /* Nobody else seems to have started a takeover yet ... */ if(ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( ®istrar->Handlespace.Handlespace, peerListNode->Identifier) != NULL) { peerListNode->TakeoverProcess = takeoverProcessNew( peerListNode->Identifier, ®istrar->Peers); if(peerListNode->TakeoverProcess) { LOG_ACTION fprintf(stdlog, "Initiating takeover of dead peer $%08x\n", peerListNode->Identifier); LOG_END registrarSendENRPInitTakeoverToAllPeers(registrar, peerListNode->Identifier); ST_CLASS(peerListManagementDeactivateTimer)( ®istrar->Peers, peerListNode); ST_CLASS(peerListManagementActivateTimer)( ®istrar->Peers, peerListNode, PLNT_TAKEOVER_EXPIRY, getMicroTime() + registrar->TakeoverExpiryInterval); } } else { LOG_ACTION fprintf(stdlog, "Dead peer $%08x has no PEs -> no takeover procedure necessary\n", peerListNode->Identifier); LOG_END ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( ®istrar->Peers, peerListNode); } } else { LOG_ACTION fprintf(stdlog, "Dead peer $%08x. Removing it from the peer list\n", peerListNode->Identifier); LOG_END ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( ®istrar->Peers, peerListNode); } } /* ====== Takeover expiry timer ==================================== */ else if(peerListNode->TimerCode == PLNT_TAKEOVER_EXPIRY) { CHECK(peerListNode->TakeoverProcess != NULL); outstandingAcks = takeoverProcessGetOutstandingAcks(peerListNode->TakeoverProcess); LOG_WARNING fprintf(stdlog, "Takeover of peer $%08x has expired, %u outstanding acknowledgements:\n", peerListNode->Identifier, (unsigned int)outstandingAcks); for(i = 0;i < outstandingAcks;i++) { fprintf(stdlog, "- $%08x (%s)\n", peerListNode->TakeoverProcess->PeerIDArray[i], (ST_CLASS(peerListManagementFindPeerListNode)( ®istrar->Peers, peerListNode->TakeoverProcess->PeerIDArray[i], NULL) == NULL) ? "not found!" : "still available"); } LOG_END takeoverProcessDelete(peerListNode->TakeoverProcess); peerListNode->TakeoverProcess = NULL; ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( ®istrar->Peers, peerListNode); } /* ====== Bad timer ================================================ */ else { LOG_ERROR fputs("Unexpected timer\n", stdlog); LOG_END_FATAL } peerListNode = nextPeerListNode; } timerRestart(®istrar->PeerActionTimer, ST_CLASS(peerListManagementGetNextTimerTimeStamp)( ®istrar->Peers)); } /* ###### Handle ENRP Handle Update ###################################### */ void registrarHandleENRPHandleUpdate(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PoolElementNode)* delPoolElementNode; struct ST_CLASS(PoolElementNode)* newPoolElementNode; struct PoolPolicySettings updatedPolicySettings; unsigned int distance; int result; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own HandleUpdate message\n", stdlog); LOG_END return; } #ifdef ENABLE_REGISTRAR_STATISTICS registrar->Stats.HandleUpdateCount++; #endif LOG_VERBOSE fputs("Got HandleUpdate for ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x, action $%04x\n", message->PoolElementPtr->Identifier, message->Action); LOG_END LOG_VERBOSE2 fputs("Updated pool element: ", stdlog); ST_CLASS(poolElementNodePrint)(message->PoolElementPtr, stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END if(message->Action == PNUP_ADD_PE) { if(message->PoolElementPtr->HomeRegistrarIdentifier != registrar->ServerID) { /* ====== Set distance for distance-sensitive policies ======= */ distance = 0xffffffff; registrarUpdateDistance(registrar, fd, assocID, message->PoolElementPtr, &updatedPolicySettings, true, &distance); result = ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( ®istrar->Handlespace, &message->Handle, message->PoolElementPtr->HomeRegistrarIdentifier, message->PoolElementPtr->Identifier, message->PoolElementPtr->RegistrationLife, &updatedPolicySettings, message->PoolElementPtr->UserTransport, message->PoolElementPtr->RegistratorTransport, -1, 0, getMicroTime(), &newPoolElementNode); if(result == RSPERR_OKAY) { registrarRegistrationHook(registrar, newPoolElementNode); LOG_VERBOSE fputs("Successfully registered ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x\n", newPoolElementNode->Identifier); LOG_END LOG_VERBOSE2 fputs("Registered pool element: ", stdlog); ST_CLASS(poolElementNodePrint)(newPoolElementNode, stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END if(STN_METHOD(IsLinked)(&newPoolElementNode->PoolElementTimerStorageNode)) { ST_CLASS(poolHandlespaceNodeDeactivateTimer)( ®istrar->Handlespace.Handlespace, newPoolElementNode); } ST_CLASS(poolHandlespaceNodeActivateTimer)( ®istrar->Handlespace.Handlespace, newPoolElementNode, PENT_EXPIRY, getMicroTime() + (1000ULL * newPoolElementNode->RegistrationLife)); timerRestart(®istrar->HandlespaceActionTimer, ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( ®istrar->Handlespace)); LOG_VERBOSE3 fputs("Handlespace content:\n", stdlog); registrarDumpHandlespace(registrar); LOG_END /* ====== Takeover suggestion ================================ */ if( (message->Flags & EHF_TAKEOVER_SUGGESTED) && (registrar->ENRPSupportTakeoverSuggestion) && (newPoolElementNode->HomeRegistrarIdentifier != registrar->ServerID) ) { LOG_ACTION fprintf(stdlog, "Trying to take over PE $%08x from peer $%08x upon its suggestion\n", newPoolElementNode->Identifier, newPoolElementNode->HomeRegistrarIdentifier); LOG_END registrarSendASAPEndpointKeepAlive(registrar, newPoolElementNode, true); } /* =========================================================== */ } else { LOG_WARNING fputs("Failed to register to pool ", stdlog); poolHandlePrint(&message->Handle, stdlog); fputs(" pool element ", stdlog); ST_CLASS(poolElementNodePrint)(message->PoolElementPtr, stdlog, PENPO_FULL); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "Update", "AddPE", 0, 0, 0, &message->Handle, message->PoolElementPtr->Identifier, message->SenderID, message->ReceiverID, 0, result); #endif } else { LOG_WARNING fprintf(stdlog, "PR $%08x sent me a HandleUpdate for a PE owned by myself!\n", message->SenderID); LOG_END } } else if(message->Action == PNUP_DEL_PE) { delPoolElementNode = ST_CLASS(poolHandlespaceManagementFindPoolElement)( ®istrar->Handlespace, &message->Handle, message->PoolElementPtr->Identifier); if(delPoolElementNode != NULL) { registrarDeregistrationHook(registrar, delPoolElementNode); result = ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( ®istrar->Handlespace, delPoolElementNode); if(result == RSPERR_OKAY) { LOG_ACTION fputs("Successfully deregistered ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x\n", message->PoolElementPtr->Identifier); LOG_END } else { LOG_WARNING fprintf(stdlog, "Failed to deregister pool element $%08x from pool ", message->PoolElementPtr->Identifier); poolHandlePrint(&message->Handle, stdlog); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "Update", "DelPE", 0, 0, 0, &message->Handle, message->PoolElementPtr->Identifier, message->SenderID, message->ReceiverID, 0, result); #endif } } else { LOG_WARNING fprintf(stdlog, "Got HandleUpdate with invalid action $%04x\n", message->Action); LOG_END } } /* ###### Send peer name update ########################################## */ void registrarSendENRPHandleUpdate(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode, const uint16_t action) { #ifndef MSG_SEND_TO_ALL struct ST_CLASS(PeerListNode)* peerListNode; #endif struct ST_CLASS(PeerListNode)* betterPeerListNode = NULL; struct RSerPoolMessage* message; message = rserpoolMessageNew(NULL, 65536); if(message != NULL) { message->Type = EHT_HANDLE_UPDATE; message->Flags = 0x00; message->Action = action; message->SenderID = registrar->ServerID; message->Handle = poolElementNode->OwnerPoolNode->Handle; message->PoolElementPtr = poolElementNode; message->PoolElementPtrAutoDelete = false; LOG_VERBOSE fputs("Sending HandleUpdate for ", stdlog); poolHandlePrint(&poolElementNode->OwnerPoolNode->Handle, stdlog); fprintf(stdlog, "/$%08x, action $%04x\n", poolElementNode->Identifier, action); LOG_END LOG_VERBOSE2 fputs("Updated pool element: ", stdlog); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END /* ====== Takeover suggestion ====================================== */ if( (action == PNUP_ADD_PE) && (registrar->ENRPSupportTakeoverSuggestion) && (poolElementNode->HomeRegistrarIdentifier == registrar->ServerID) ) { betterPeerListNode = ST_CLASS(peerListManagementGetUsefulPeerForPE)(®istrar->Peers, poolElementNode->Identifier); if(betterPeerListNode) { LOG_ACTION fprintf(stdlog, "Found better peer $%08x for PE $%08x\n", betterPeerListNode->Identifier, poolElementNode->Identifier); LOG_END } } /* ================================================================= */ #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "Update", ((message->Action == PNUP_ADD_PE) ? "AddPE" : "DelPE"), 0, 0, 0, &message->Handle, message->PoolElementPtr->Identifier, message->SenderID, message->ReceiverID, 0, 0); #endif #ifndef MSG_SEND_TO_ALL peerListNode = ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)(®istrar->Peers); while(peerListNode != NULL) { message->ReceiverID = peerListNode->Identifier; message->AddressArray = peerListNode->AddressBlock->AddressArray; message->Addresses = peerListNode->AddressBlock->Addresses; LOG_VERBOSE fprintf(stdlog, "Sending HandleUpdate to unicast peer $%08x...\n", peerListNode->Identifier); LOG_END rserpoolMessageSend(IPPROTO_SCTP, registrar->ENRPUnicastSocket, 0, 0, 0, 0, message); peerListNode = ST_CLASS(peerListManagementGetNextPeerListNodeFromIndexStorage)( ®istrar->Peers, peerListNode); } #else #warning Using MSG_SEND_TO_ALL! rserpoolMessageSend(IPPROTO_SCTP, registrar->ENRPUnicastSocket, 0, MSG_SEND_TO_ALL, 0, 0, message); #endif if(betterPeerListNode) { message->Flags |= EHF_TAKEOVER_SUGGESTED; message->ReceiverID = betterPeerListNode->Identifier; message->AddressArray = betterPeerListNode->AddressBlock->AddressArray; message->Addresses = betterPeerListNode->AddressBlock->Addresses; LOG_VERBOSE1 fprintf(stdlog, "Sending HandleUpdate to unicast peer $%08x with TakeoverSuggested flag...\n", betterPeerListNode->Identifier); LOG_END rserpoolMessageSend(IPPROTO_SCTP, registrar->ENRPUnicastSocket, 0, 0, 0, 0, message); } rserpoolMessageDelete(message); } } /* ###### Handle ENRP List Request ####################################### */ void registrarHandleENRPListRequest(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct RSerPoolMessage* response; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own ListRequest message\n", stdlog); LOG_END return; } LOG_VERBOSE fprintf(stdlog, "Got ListRequest from peer $%08x\n", message->SenderID); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "ListRequest", "", 0, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif response = rserpoolMessageNew(NULL, 65536); if(response != NULL) { response->Type = EHT_LIST_RESPONSE; response->AssocID = assocID; response->Flags = 0x00; response->SenderID = registrar->ServerID; response->ReceiverID = message->SenderID; response->PeerListPtr = ®istrar->Peers; response->PeerListPtrAutoDelete = false; LOG_VERBOSE fprintf(stdlog, "Sending ListResponse to peer $%08x...\n", message->SenderID); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "ListResponse", "", message->Flags, ST_CLASS(peerListGetPeerListNodes)(&response->PeerListPtr->List), 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif if(rserpoolMessageSend(IPPROTO_SCTP, fd, assocID, 0, 0, 0, response) == false) { LOG_WARNING fputs("Sending ListResponse failed\n", stdlog); LOG_END } rserpoolMessageDelete(response); } } /* ###### Send ENRP List Request ######################################### */ void registrarSendENRPListRequest(struct Registrar* registrar, int sd, const sctp_assoc_t assocID, int msgSendFlags, const union sockaddr_union* destinationAddressList, const size_t destinationAddresses, RegistrarIdentifierType receiverID) { struct RSerPoolMessage* message; message = rserpoolMessageNew(NULL, 65536); if(message) { message->Type = EHT_LIST_REQUEST; message->PPID = PPID_ENRP; message->AssocID = assocID; message->AddressArray = (union sockaddr_union*)destinationAddressList; message->Addresses = destinationAddresses; message->Flags = 0x00; message->SenderID = registrar->ServerID; message->ReceiverID = receiverID; #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "ListRequest", "", 0, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif if(rserpoolMessageSend(IPPROTO_SCTP, sd, assocID, msgSendFlags, 0, 0, message) == false) { LOG_WARNING fputs("Sending ListRequest failed\n", stdlog); LOG_END } rserpoolMessageDelete(message); } } /* ###### Handle ENRP List Response ###################################### */ void registrarHandleENRPListResponse(struct Registrar* registrar, int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PeerListNode)* peerListNode; struct ST_CLASS(PeerListNode)* newPeerListNode; int result; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own ListResponse message\n", stdlog); LOG_END return; } LOG_VERBOSE fprintf(stdlog, "Got ListResponse from peer $%08x\n", message->SenderID); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "ListResponse", "", message->Flags, (message->PeerListPtr != NULL) ? ST_CLASS(peerListGetPeerListNodes)(&message->PeerListPtr->List) : 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif /* ====== Handle response ============================================= */ if(!(message->Flags & EHF_LIST_RESPONSE_REJECT)) { if(message->PeerListPtr) { peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)( &message->PeerListPtr->List); while(peerListNode) { LOG_VERBOSE2 fputs("Trying to add peer ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, ~0); fputs(" to peer list\n", stdlog); LOG_END if(peerListNode->Identifier != UNDEFINED_REGISTRAR_IDENTIFIER) { result = ST_CLASS(peerListManagementRegisterPeerListNode)( ®istrar->Peers, peerListNode->Identifier, peerListNode->Flags, peerListNode->AddressBlock, getMicroTime(), &newPeerListNode); if((result == RSPERR_OKAY) && (!STN_METHOD(IsLinked)(&newPeerListNode->PeerListTimerStorageNode))) { /* ====== Activate keep alive timer ==================== */ ST_CLASS(peerListManagementActivateTimer)( ®istrar->Peers, newPeerListNode, PLNT_MAX_TIME_LAST_HEARD, getMicroTime() + registrar->PeerMaxTimeLastHeard); /* ====== New peer -> Send Peer Presence =============== */ registrarSendENRPPresence(registrar, registrar->ENRPUnicastSocket, 0, 0, newPeerListNode->AddressBlock->AddressArray, newPeerListNode->AddressBlock->Addresses, newPeerListNode->Identifier, false); } } else { LOG_ACTION fputs("Skipping unknown peer (due to ID=0) from ListResponse: ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, ~0); fputs("\n", stdlog); LOG_END } peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)( &message->PeerListPtr->List, peerListNode); } } timerRestart(®istrar->PeerActionTimer, ST_CLASS(peerListManagementGetNextTimerTimeStamp)( ®istrar->Peers)); /* ====== Print debug information ============================ */ LOG_VERBOSE3 fputs("Peers:\n", stdlog); registrarDumpPeers(registrar); LOG_END } else { LOG_ACTION fprintf(stdlog, "Rejected ListResponse from peer $%08x\n", message->SenderID); LOG_END } } /* ###### Handle ENRP Handle Table Request ############################### */ void registrarHandleENRPHandleTableRequest(struct Registrar* registrar, int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct RSerPoolMessage* response; struct ST_CLASS(PeerListNode)* peerListNode; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own HandleTableRequest message\n", stdlog); LOG_END return; } LOG_VERBOSE2 fprintf(stdlog, "Got HandleTableRequest from peer $%08x\n", message->SenderID); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "HandleTableRequest", "", message->Flags, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); registrar->Stats.SynchronizationCount++; #endif peerListNode = ST_CLASS(peerListManagementFindPeerListNode)( ®istrar->Peers, message->SenderID, NULL); /* We allow only 1400 bytes per HandleTableResponse... */ response = rserpoolMessageNew(NULL, 1400); if(response != NULL) { response->Type = EHT_HANDLE_TABLE_RESPONSE; response->AssocID = assocID; response->Flags = 0x00; response->SenderID = registrar->ServerID; response->ReceiverID = message->SenderID; response->Action = message->Flags; response->PeerListNodePtr = peerListNode; response->PeerListNodePtrAutoDelete = false; response->HandlespacePtr = ®istrar->Handlespace; response->HandlespacePtrAutoDelete = false; response->MaxElementsPerHTRequest = registrar->MaxElementsPerHTRequest; if(peerListNode == NULL) { response->Flags |= EHF_HANDLE_TABLE_RESPONSE_REJECT; LOG_WARNING fprintf(stdlog, "HandleTableRequest from peer $%08x -> This peer is unknown, rejecting request!\n", message->SenderID); LOG_END } LOG_VERBOSE fprintf(stdlog, "Sending HandleTableResponse to peer $%08x...\n", message->SenderID); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "HandleTableResponse", "", message->Flags, (response->HandlespacePtr != NULL) ? ST_CLASS(poolHandlespaceManagementGetPoolElements)(response->HandlespacePtr) : 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif if(rserpoolMessageSend(IPPROTO_SCTP, fd, assocID, 0, 0, 0, response) == false) { LOG_WARNING fputs("Sending HandleTableResponse failed\n", stdlog); LOG_END } rserpoolMessageDelete(response); } } /* ###### Send ENRP Handle Table Request ################################# */ void registrarSendENRPHandleTableRequest(struct Registrar* registrar, int sd, const sctp_assoc_t assocID, int msgSendFlags, const union sockaddr_union* destinationAddressList, const size_t destinationAddresses, RegistrarIdentifierType receiverID, unsigned int flags) { struct RSerPoolMessage* message; message = rserpoolMessageNew(NULL, 65536); if(message) { message->Type = EHT_HANDLE_TABLE_REQUEST; message->PPID = PPID_ENRP; message->AssocID = assocID; message->AddressArray = (union sockaddr_union*)destinationAddressList; message->Addresses = destinationAddresses; message->Flags = flags; message->SenderID = registrar->ServerID; message->ReceiverID = receiverID; #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "HandleTableRequest", "", message->Flags, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif if(rserpoolMessageSend(IPPROTO_SCTP, sd, assocID, msgSendFlags, 0, 0, message) == false) { LOG_WARNING fputs("Sending HandleTableRequest failed\n", stdlog); LOG_END } rserpoolMessageDelete(message); } } /* ###### Handle ENRP Handle Table Response ############################## */ void registrarHandleENRPHandleTableResponse(struct Registrar* registrar, int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message) { struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* newPoolElementNode; struct ST_CLASS(PeerListNode)* peerListNode; struct PoolPolicySettings updatedPolicySettings; unsigned int distance; unsigned int result; size_t purged; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own HandleTableResponse message\n", stdlog); LOG_END return; } LOG_ACTION fprintf(stdlog, "Got HandleTableResponse from peer $%08x\n", message->SenderID); LOG_END #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "HandleTableResponse", "", message->Flags, (message->HandlespacePtr != NULL) ? ST_CLASS(poolHandlespaceManagementGetPoolElements)(message->HandlespacePtr) : 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif /* ====== Find peer list node ========================================= */ peerListNode = ST_CLASS(peerListManagementFindPeerListNode)( ®istrar->Peers, message->SenderID, NULL); if(peerListNode == NULL) { LOG_WARNING fprintf(stdlog, "Got HandleTableResponse from peer $%08x which is not in peer list\n", message->SenderID); LOG_END return; } /* ====== Propagate response data into the registrarHandlespace ================ */ if(!(message->Flags & EHF_HANDLE_TABLE_RESPONSE_REJECT)) { if(message->HandlespacePtr) { distance = 0xffffffff; poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNode)(&message->HandlespacePtr->Handlespace); while(poolElementNode != NULL) { /* ====== Set distance for distance-sensitive policies ======= */ registrarUpdateDistance(registrar, fd, assocID, poolElementNode, &updatedPolicySettings, true, &distance); if(poolElementNode->HomeRegistrarIdentifier != registrar->ServerID) { result = ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( ®istrar->Handlespace, &poolElementNode->OwnerPoolNode->Handle, poolElementNode->HomeRegistrarIdentifier, poolElementNode->Identifier, poolElementNode->RegistrationLife, &updatedPolicySettings, poolElementNode->UserTransport, poolElementNode->RegistratorTransport, -1, 0, getMicroTime(), &newPoolElementNode); if(result == RSPERR_OKAY) { registrarRegistrationHook(registrar, newPoolElementNode); LOG_VERBOSE fputs("Successfully registered ", stdlog); poolHandlePrint(&message->Handle, stdlog); fprintf(stdlog, "/$%08x\n", poolElementNode->Identifier); LOG_END LOG_VERBOSE2 fputs("Registered pool element: ", stdlog); ST_CLASS(poolElementNodePrint)(newPoolElementNode, stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END if(!STN_METHOD(IsLinked)(&newPoolElementNode->PoolElementTimerStorageNode)) { ST_CLASS(poolHandlespaceNodeActivateTimer)( ®istrar->Handlespace.Handlespace, newPoolElementNode, PENT_EXPIRY, getMicroTime() + (1000ULL * newPoolElementNode->RegistrationLife)); } } else { LOG_WARNING fputs("Failed to register to pool ", stdlog); poolHandlePrint(&message->Handle, stdlog); fputs(" pool element ", stdlog); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } } else { LOG_WARNING fprintf(stdlog, "PR $%08x sent me a HandleTableResponse containing a PE owned by myself!\n", message->SenderID); ST_CLASS(poolElementNodePrint)(poolElementNode, stdlog, PENPO_FULL); fputs("\n", stdlog); LOG_END } poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNode)(&message->HandlespacePtr->Handlespace, poolElementNode); } timerRestart(®istrar->HandlespaceActionTimer, ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( ®istrar->Handlespace)); LOG_VERBOSE3 fputs("Handlespace content:\n", stdlog); registrarDumpHandlespace(registrar); fputs("Peers:\n", stdlog); registrarDumpPeers(registrar); LOG_END if(message->Flags & EHF_HANDLE_TABLE_RESPONSE_MORE_TO_SEND) { LOG_ACTION fprintf(stdlog, "HandleTableResponse has MoreToSend flag set -> sending HandleTableRequest to peer $%08x to get more data\n", message->SenderID); LOG_END registrarSendENRPHandleTableRequest(registrar, fd, message->AssocID, 0, NULL, 0, message->SenderID, (peerListNode->Status & PLNS_MENTOR) ? 0x00 : EHF_HANDLE_TABLE_REQUEST_OWN_CHILDREN_ONLY); } else { peerListNode->Status &= ~(PLNS_MENTOR|PLNS_HTSYNC); /* Synchronization completed */ purged = ST_CLASS(poolHandlespaceManagementPurgeMarkedPoolElementNodes)( ®istrar->Handlespace, message->SenderID); if(purged) { LOG_ACTION fprintf(stdlog, "Purged %u PEs after last Handle Table Response from $%08x\n", (unsigned int)purged, message->SenderID); LOG_END } if( (registrar->InStartupPhase) && (registrar->MentorServerID == message->SenderID) ) { registrarBeginNormalOperation(registrar, true); } } } else { peerListNode->Status &= ~(PLNS_MENTOR|PLNS_HTSYNC); /* Synchronization completed */ } } else { LOG_ACTION fprintf(stdlog, "Peer $%08x has rejected the HandleTableRequest\n", message->SenderID); LOG_END peerListNode->Status &= ~(PLNS_MENTOR|PLNS_HTSYNC); /* Synchronization completed */ } } /* ###### Handle ENRP Presence ########################################### */ void registrarHandleENRPPresence(struct Registrar* registrar, int fd, sctp_assoc_t assocID, struct RSerPoolMessage* message) { HandlespaceChecksumType checksum; struct ST_CLASS(PeerListNode)* peerListNode; char remoteAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* remoteAddressBlock = (struct TransportAddressBlock*)&remoteAddressBlockBuffer; char enrpTransportAddressBlockBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* enrpTransportAddressBlock = (struct TransportAddressBlock*)&enrpTransportAddressBlockBuffer; int result; if(message->SenderID == registrar->ServerID) { /* This is our own message -> skip it! */ LOG_VERBOSE5 fputs("Skipping our own Presence message\n", stdlog); LOG_END return; } LOG_VERBOSE2 fprintf(stdlog, "Got Presence from peer $%08x", message->PeerListNodePtr->Identifier); if(message->PeerListNodePtr) { fputs(" at address ", stdlog); transportAddressBlockPrint(message->PeerListNodePtr->AddressBlock, stdlog); } fputs("\n", stdlog); LOG_END /* ====== Filter addresses ============================================ */ if(fd == registrar->ENRPMulticastInputSocket) { transportAddressBlockNew(enrpTransportAddressBlock, IPPROTO_SCTP, (message->PeerListNodePtr->AddressBlock) ? message->PeerListNodePtr->AddressBlock->Port : getPort(&message->SourceAddress.sa), 0, &message->SourceAddress, 1, MAX_PE_TRANSPORTADDRESSES); #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "MulticastENRP", "Presence", "", message->Flags, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif } else { #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Recv", "ENRP", "Presence", "", message->Flags, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif if(transportAddressBlockGetAddressesFromSCTPSocket(remoteAddressBlock, fd, assocID, MAX_PE_TRANSPORTADDRESSES, false) > 0) { LOG_VERBOSE3 fputs("SCTP association's valid peer addresses: ", stdlog); transportAddressBlockPrint(remoteAddressBlock, stdlog); fputs("\n", stdlog); LOG_END /* ====== Filter addresses ====================================== */ if(transportAddressBlockFilter(message->PeerListNodePtr->AddressBlock, remoteAddressBlock, enrpTransportAddressBlock, MAX_PE_TRANSPORTADDRESSES, true, registrar->MinEndpointAddressScope) == 0) { LOG_WARNING fprintf(stdlog, "Presence from peer $%08x contains no usable ENRP endpoint addresses\n", message->PeerListNodePtr->Identifier); fputs("Addresses from message: ", stdlog); transportAddressBlockPrint(message->PeerListNodePtr->AddressBlock, stdlog); fputs("\n", stdlog); fputs("Addresses from association: ", stdlog); transportAddressBlockPrint(remoteAddressBlock, stdlog); fputs("\n", stdlog); LOG_END return; } } else { LOG_ERROR fprintf(stdlog, "Unable to obtain peer addresses of FD %d, assoc %u\n", fd, (unsigned int)assocID); LOG_END return; } } LOG_VERBOSE2 fprintf(stdlog, "Using the following ENRP endpoint addresses for peer $%08x: ", message->PeerListNodePtr->Identifier); transportAddressBlockPrint(enrpTransportAddressBlock, stdlog); fputs("\n", stdlog); LOG_END /* ====== Add/update peer ============================================= */ if(message->PeerListNodePtr) { result = ST_CLASS(peerListManagementRegisterPeerListNode)( ®istrar->Peers, message->PeerListNodePtr->Identifier, PLNF_DYNAMIC|PLNF_NEW, /* The entry is assumed to be new */ enrpTransportAddressBlock, getMicroTime(), &peerListNode); if(result == RSPERR_OKAY) { /* ====== Send Presence to new peer ============================= */ /* PLNF_NEW will be removed when the entry was not new. If it is still set, there is a new PR -> send him a Presence */ if(peerListNode->Flags & PLNF_NEW) { LOG_ACTION fputs("Sending Presence to new peer ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, PLPO_FULL); fputs("\n", stdlog); LOG_END registrarSendENRPPresence(registrar, registrar->ENRPUnicastSocket, 0, 0, peerListNode->AddressBlock->AddressArray, peerListNode->AddressBlock->Addresses, peerListNode->Identifier, true); } /* ====== Mentor query ========================================== */ if( (registrar->InStartupPhase) && (registrar->MentorServerID == UNDEFINED_REGISTRAR_IDENTIFIER) ) { LOG_ACTION fputs("Trying ", stdlog); ST_CLASS(peerListNodePrint)(peerListNode, stdlog, PLPO_FULL); fputs(" as mentor server...\n", stdlog); LOG_END peerListNode->Status |= PLNS_LISTSYNC|PLNS_HTSYNC|PLNS_MENTOR; registrar->MentorServerID = peerListNode->Identifier; registrarSendENRPListRequest(registrar, registrar->ENRPUnicastSocket, 0, 0, peerListNode->AddressBlock->AddressArray, peerListNode->AddressBlock->Addresses, peerListNode->Identifier); registrarSendENRPHandleTableRequest(registrar, registrar->ENRPUnicastSocket, 0, 0, peerListNode->AddressBlock->AddressArray, peerListNode->AddressBlock->Addresses, peerListNode->Identifier, 0x00); } /* ====== Check if synchronization is necessary ================= */ if(assocID != 0) { if(!(peerListNode->Status & PLNS_HTSYNC)) { /* Attention: We only synchronize on SCTP-received Presence messages! */ checksum = ST_CLASS(peerListNodeGetOwnershipChecksum)( peerListNode); if(checksum != message->Checksum) { LOG_ACTION fprintf(stdlog, "Handle Table synchronization with peer $%08x is necessary -> requesting it...\n", peerListNode->Identifier); LOG_END LOG_VERBOSE fprintf(stdlog, "Checksum is $%x, should be $%x\n", checksum, message->Checksum); LOG_END peerListNode->Status |= PLNS_HTSYNC; registrarSendENRPHandleTableRequest(registrar, fd, assocID, 0, NULL, 0, peerListNode->Identifier, EHF_HANDLE_TABLE_REQUEST_OWN_CHILDREN_ONLY); ST_CLASS(poolHandlespaceManagementMarkPoolElementNodes)(®istrar->Handlespace, message->SenderID); } } else { LOG_ACTION fprintf(stdlog, "Synchronization with peer $%08x is still in progress -> no new synchronization\n", peerListNode->Identifier); LOG_END } if(!(peerListNode->Status & PLNS_LISTSYNC)) { LOG_ACTION fprintf(stdlog, "Peer List synchronization with peer $%08x is necessary -> requesting it...\n", peerListNode->Identifier); LOG_END peerListNode->Status |= PLNS_LISTSYNC; registrarSendENRPListRequest(registrar, fd, assocID, 0, NULL, 0, peerListNode->Identifier); } } /* ====== Activate keep alive timer ============================= */ if(STN_METHOD(IsLinked)(&peerListNode->PeerListTimerStorageNode)) { ST_CLASS(peerListManagementDeactivateTimer)( ®istrar->Peers, peerListNode); } ST_CLASS(peerListManagementActivateTimer)( ®istrar->Peers, peerListNode, PLNT_MAX_TIME_LAST_HEARD, getMicroTime() + registrar->PeerMaxTimeLastHeard); timerRestart(®istrar->PeerActionTimer, ST_CLASS(peerListManagementGetNextTimerTimeStamp)( ®istrar->Peers)); /* ====== Print debug information =============================== */ LOG_VERBOSE3 fputs("Peers:\n", stdlog); registrarDumpPeers(registrar); LOG_END if((message->Flags & EHF_PRESENCE_REPLY_REQUIRED) && (fd != registrar->ENRPMulticastOutputSocket) && (message->SenderID != UNDEFINED_REGISTRAR_IDENTIFIER)) { LOG_VERBOSE fputs("Presence with ReplyRequired flag set -> Sending reply...\n", stdlog); LOG_END registrarSendENRPPresence(registrar, fd, message->AssocID, 0, NULL, 0, message->SenderID, false); } } else { LOG_WARNING fputs("Failed to add peer ", stdlog); ST_CLASS(peerListNodePrint)(message->PeerListNodePtr, stdlog, PLPO_FULL); fputs(": ", stdlog); rserpoolErrorPrint(result, stdlog); fputs("\n", stdlog); LOG_END } /* ====== Takeover handling ======================================== */ peerListNode->TakeoverRegistrarID = UNDEFINED_REGISTRAR_IDENTIFIER; if(peerListNode->TakeoverProcess) { takeoverProcessDelete(peerListNode->TakeoverProcess); peerListNode->TakeoverProcess = NULL; } } } /* ###### Send ENRP Presence ############################################# */ void registrarSendENRPPresence(struct Registrar* registrar, int sd, const sctp_assoc_t assocID, int msgSendFlags, const union sockaddr_union* destinationAddressList, const size_t destinationAddresses, const RegistrarIdentifierType receiverID, const bool replyRequired) { struct RSerPoolMessage* message; size_t messageLength; struct ST_CLASS(PeerListNode) peerListNode; char localAddressArrayBuffer[transportAddressBlockGetSize(MAX_PE_TRANSPORTADDRESSES)]; struct TransportAddressBlock* localAddressArray = (struct TransportAddressBlock*)&localAddressArrayBuffer; message = rserpoolMessageNew(NULL, 65536); if(message) { message->Type = EHT_PRESENCE; message->PPID = PPID_ENRP; message->AssocID = assocID; message->AddressArray = (union sockaddr_union*)destinationAddressList; message->Addresses = destinationAddresses; message->Flags = replyRequired ? EHF_PRESENCE_REPLY_REQUIRED : 0x00; message->PeerListNodePtr = &peerListNode; message->PeerListNodePtrAutoDelete = false; message->SenderID = registrar->ServerID; message->ReceiverID = receiverID; message->Checksum = ST_CLASS(poolHandlespaceManagementGetOwnershipChecksum)(®istrar->Handlespace); if(transportAddressBlockGetAddressesFromSCTPSocket(localAddressArray, registrar->ENRPUnicastSocket, assocID, MAX_PE_TRANSPORTADDRESSES, true) > 0) { ST_CLASS(peerListNodeNew)(&peerListNode, registrar->ServerID, 0, localAddressArray); LOG_VERBOSE3 fputs("Sending Presence using peer list entry: \n", stdlog); ST_CLASS(peerListNodePrint)(&peerListNode, stdlog, ~0); fputs("\n", stdlog); LOG_END messageLength = rserpoolMessage2Packet(message); if(messageLength > 0) { if(sd == registrar->ENRPMulticastOutputSocket) { #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "MulticastENRP", "Presence", "", message->Flags, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif if(sendmulticast( registrar->ENRPMulticastOutputSocket, registrar->ENRPMulticastOutputSocketFamily, message->Buffer, messageLength, 0, &destinationAddressList->sa, getSocklen(&destinationAddressList->sa), registrar->AnnounceTTL) <= 0) { LOG_WARNING fputs("Sending Presence via multicast failed\n", stdlog); LOG_END } } else { #ifdef ENABLE_REGISTRAR_STATISTICS registrarWriteActionLog(registrar, "Send", "ENRP", "Presence", "", message->Flags, 0, 0, NULL, 0, message->SenderID, message->ReceiverID, 0, 0); #endif if(rserpoolMessageSend(IPPROTO_SCTP, sd, assocID, msgSendFlags, 0, 0, message) == false) { LOG_WARNING fputs("Sending Presence via unicast failed\n", stdlog); LOG_END } } rserpoolMessageDelete(message); } } else { LOG_ERROR fputs("Unable to obtain local ASAP socket addresses\n", stdlog); LOG_END } } } /* ###### Send ENRP Presence to all peers ################################ */ void registrarSendENRPPresenceToAllPeers(struct Registrar* registrar) { struct ST_CLASS(PeerListNode)* peerListNode; peerListNode = ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)(®istrar->Peers); while(peerListNode != NULL) { /* If MSG_SEND_TO_ALL is available, unicast messages must only be sent to static peers not yet connected. That is, their ID is 0. */ #ifdef MSG_SEND_TO_ALL if(peerListNode->Identifier == UNDEFINED_REGISTRAR_IDENTIFIER) { #else { #endif LOG_VERBOSE2 fprintf(stdlog, "Sending Presence to unicast peer $%08x...\n", peerListNode->Identifier); LOG_END registrarSendENRPPresence(registrar, registrar->ENRPUnicastSocket, 0, 0, peerListNode->AddressBlock->AddressArray, peerListNode->AddressBlock->Addresses, peerListNode->Identifier, false); } peerListNode = ST_CLASS(peerListManagementGetNextPeerListNodeFromIndexStorage)( ®istrar->Peers, peerListNode); } #ifdef MSG_SEND_TO_ALL #warning Using MSG_SEND_TO_ALL! registrarSendENRPPresence(registrar, registrar->ENRPUnicastSocket, 0, MSG_SEND_TO_ALL, NULL, 0, 0, false); #endif } rsplib-3.0.1/rsplib/pingpongclient.10000664000175000017500000001253511777021056014342 00000000000000.\" $Id: pingpongclient.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt PingPongClient 1 .Os PingPong Client .\" ###### Name ############################################################# .Sh NAME .Nm pingpongclient .Nd RSerPool Client (PU) for the PingPong service .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm pingpongclient .Op Fl poolhandle=pool_handle .Op Fl interval=milliseconds .Op Fl cspinterval=milliseconds .Op Fl cspserver=address:port .Op Fl logappend=filename .Op Fl logcolor=on|off .Op Fl logfile=filename .Op Fl loglevel=0-9 .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm pingpongclient is a Reliable Server Pooling (RSerPool) pool user (PU) for the PingPong service. It is a simple example service for testing RSerPool and its failover functionalities. .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It Fl poolhandle=pool_handle Sets the PH to a non-default value; otherwise, the default setting is "PingPongPool". .\" ====== Service parameters =============================================== .It Service Parameters: .Bl -tag -width indent .It Fl interval=milliseconds Sets the request interval in milliseconds. .El .\" ====== ASAP Protocol ==================================================== .It ASAP Protocol Parameters: .Bl -tag -width indent .It Fl registrar=address:port Adds a static PR entry into the Registrar Table. It is possible to add multiple entries. .It Fl registrarannouncetimeout=milliseconds Sets the timeout for ASAP announces via multicast. .It Fl registrarconnecttimeout=milliseconds Sets the timeout for ASAP connection establishment. .It Fl registrarconnectmaxtrials=trials Sets the maximum number of ASAP connection establishment trials. .It Fl registrarrequesttimeout=milliseconds Sets the timeout for ASAP requests. .It Fl registrarresponsetimeout=milliseconds Sets the timeout for waiting to receive ASAP responses. .It Fl registrarrequestmaxtrials=trials Sets the maximum number of ASAP request trials. .El .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. By default, the content of the environment variable CSP_INTERVAL is used. If not defined, no CSP status reports will be sent. .It Fl cspserver=address:port Sets the address of a CSP monitor server. By default, the content of the environment variable CSP_SERVER is used. If not defined, no CSP status reports will be sent. .El .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm pingpongclient uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/pingpongclient.c0000664000175000017500000001617211777021056014425 00000000000000/* $Id: pingpongclient.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "pingpongpackets.h" #include "breakdetector.h" #include "timeutilities.h" #include "netutilities.h" #include "randomizer.h" #include "netutilities.h" #ifdef ENABLE_CSP #include "componentstatuspackets.h" #endif #include #include #include /* ###### Main program ################################################### */ int main(int argc, char** argv) { const char* poolHandle = "PingPongPool"; unsigned long long pingInterval = 500000; union rserpool_notification* notification; struct rsp_info info; struct rsp_sndrcvinfo rinfo; char buffer[65536 + 4]; char str[128]; struct pollfd ufds; struct Ping* ping; const struct Pong* pong; unsigned long long now; unsigned long long nextPing; uint64_t messageNo; uint64_t lastReplyNo; uint64_t recvMessageNo; uint64_t recvReplyNo; unsigned long long lastPing; ssize_t received; ssize_t sent; int result; int flags; int sd; int i; rsp_initinfo(&info); for(i = 1;i < argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } else if(!(strncmp(argv[i], "-poolhandle=" ,12))) { poolHandle = (char*)&argv[i][12]; } else if(!(strncmp(argv[i], "-interval=" ,10))) { pingInterval = 1000ULL * atol((const char*)&argv[i][10]); } else { fprintf(stderr, "ERROR: Bad argument %s\n", argv[i]); exit(1); } } #ifdef ENABLE_CSP info.ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLUSER, random64()); #endif puts("Ping Pong Pool User - Version 1.0"); puts("=================================\n"); printf("Pool Handle = %s\n", poolHandle); printf("Ping Interval = %llums\n\n", pingInterval / 1000); if(rsp_initialize(&info) < 0) { fputs("ERROR: Unable to initialize rsplib\n", stderr); exit(1); } sd = rsp_socket(0, SOCK_SEQPACKET, IPPROTO_SCTP); if(sd < 0) { perror("Unable to create RSerPool socket"); exit(1); } if(rsp_connect(sd, (unsigned char*)poolHandle, strlen(poolHandle), 0) < 0) { perror("Unable to connect to pool element"); exit(1); } messageNo = 1; lastReplyNo = 0; lastPing = 0; installBreakDetector(); while(!breakDetected()) { ufds.fd = sd; ufds.events = POLLIN; nextPing = lastPing + pingInterval; now = getMicroTime(); result = rsp_poll(&ufds, 1, (nextPing <= now) ? 0 : (int)ceil((double)(nextPing - now) / 1000.0)); /* ###### Handle Pong message ###################################### */ if(result > 0) { if(ufds.revents & POLLIN) { flags = 0; received = rsp_recvmsg(sd, (char*)&buffer, sizeof(buffer), &rinfo, &flags, 0); if(received > 0) { if(flags & MSG_RSERPOOL_NOTIFICATION) { notification = (union rserpool_notification*)&buffer; printf("\x1b[39;47mNotification: "); rsp_print_notification(notification, stdout); puts("\x1b[0m"); if((notification->rn_header.rn_type == RSERPOOL_FAILOVER) && (notification->rn_failover.rf_state == RSERPOOL_FAILOVER_NECESSARY)) { puts("FAILOVER..."); rsp_forcefailover(sd, FFF_NONE, 0); } } else { pong = (const struct Pong*)&buffer; if((pong->Header.Type == PPPT_PONG) && (ntohs(pong->Header.Length) >= (ssize_t)sizeof(struct Pong))) { recvMessageNo = ntoh64(pong->MessageNo); recvReplyNo = ntoh64(pong->ReplyNo); printf("\x1b[34m"); printTimeStamp(stdout); printf("Ack #%llu from PE $%08x (reply #%llu)\x1b[0m\n", (unsigned long long)recvMessageNo, rinfo.rinfo_pe_id, (unsigned long long)recvReplyNo); if(recvReplyNo - lastReplyNo != 1) { printTimeStamp(stdout); printf("*** Detected gap of %lld! ***\n", (unsigned long long)recvReplyNo - (unsigned long long)lastReplyNo); } lastReplyNo = recvReplyNo; } } } } } /* ###### Send Ping message ###################################### */ if(getMicroTime() - lastPing >= pingInterval) { lastPing = getMicroTime(); snprintf((char*)&str,sizeof(str), "Nachricht: %llu, Zeitstempel: %llu", (unsigned long long)messageNo, (unsigned long long)lastPing); size_t dataLength = strlen(str); ping = (struct Ping*)&buffer; ping->Header.Type = PPPT_PING; ping->Header.Flags = 0x00; ping->Header.Length = htons(sizeof(struct Ping) + dataLength); ping->MessageNo = hton64(messageNo); memcpy(&ping->Data, str, dataLength); sent = rsp_sendmsg(sd, (char*)ping, sizeof(struct Ping) + dataLength, 0, 0, htonl(PPID_PPP), 0, 0, 0, 0); if(sent > 0) { printf("Message #%Ld sent\n", (unsigned long long)messageNo); messageNo++; } } } puts("\x1b[0m\nTerminated!"); rsp_close(sd); rsp_cleanup(); rsp_freeinfo(&info); return 0; } rsplib-3.0.1/rsplib/standardservices.h0000664000175000017500000000736211777021056014757 00000000000000/* $Id: standardservices.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef STANDARDSERVICES_H #define STANDARDSERVICES_H #include "rserpool.h" #include "tcplikeserver.h" #include "udplikeserver.h" class EchoServer : public UDPLikeServer { public: EchoServer(); virtual ~EchoServer(); protected: virtual EventHandlingResult handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); }; class DiscardServer : public UDPLikeServer { public: DiscardServer(); virtual ~DiscardServer(); protected: virtual EventHandlingResult handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); }; class DaytimeServer : public UDPLikeServer { public: DaytimeServer(); virtual ~DaytimeServer(); protected: virtual void handleNotification(const union rserpool_notification* notification); }; class CharGenServer : public TCPLikeServer { public: struct CharGenServerSettings { size_t FailureAfter; }; CharGenServer(int rserpoolSocketDescriptor); ~CharGenServer(); static TCPLikeServer* charGenServerFactory(int sd, void* userData, const uint32_t peIdentifier); protected: virtual EventHandlingResult initializeSession(); }; class PingPongServer : public TCPLikeServer { public: struct PingPongServerSettings { size_t FailureAfter; }; PingPongServer(int rserpoolSocketDescriptor, PingPongServer::PingPongServerSettings* settings); ~PingPongServer(); static TCPLikeServer* pingPongServerFactory(int sd, void* userData, const uint32_t peIdentifier); protected: EventHandlingResult handleCookieEcho(const char* buffer, size_t bufferSize); EventHandlingResult handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); private: PingPongServerSettings Settings; uint64_t ReplyNo; size_t Replies; }; #endif rsplib-3.0.1/rsplib/simpleredblacktree.c0000664000175000017500000000255011777021056015241 00000000000000/* $Id: simpleredblacktree.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "simpleredblacktree.h" #include "redblacktree_impl.h" rsplib-3.0.1/rsplib/simpleredblacktree.h0000664000175000017500000000263211777021056015247 00000000000000/* $Id: simpleredblacktree.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SIMPLEREDBLACKTREE_H #define SIMPLEREDBLACKTREE_H #undef USE_LEAFLINKED #include "redblacktree.h" #endif rsplib-3.0.1/rsplib/poolhandlespacemanagement-template.h0000664000175000017500000003363711777021056020426 00000000000000/* $Id: poolhandlespacemanagement-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PoolHandlespaceManagement) { struct ST_CLASS(PoolHandlespaceNode) Handlespace; struct ST_CLASS(PoolNode)* NewPoolNode; struct ST_CLASS(PoolElementNode)* NewPoolElementNode; void (*PoolNodeUserDataDisposer)(struct ST_CLASS(PoolNode)* poolNode, void* userData); void (*PoolElementNodeUserDataDisposer)(struct ST_CLASS(PoolElementNode)* poolElementNode, void* userData); void* DisposerUserData; void (*PoolNodeUpdateNotification)(struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, enum PoolNodeUpdateAction updateAction, HandlespaceChecksumAccumulatorType preUpdateChecksum, RegistrarIdentifierType preUpdateHomeRegistrar, void* userData); void* NotificationUserData; }; void ST_CLASS(poolHandlespaceManagementNew)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType homeRegistrarIdentifier, void (*poolNodeUserDataDisposer)(struct ST_CLASS(PoolNode)* poolElementNode, void* userData), void (*poolElementNodeUserDataDisposer)(struct ST_CLASS(PoolElementNode)* poolElementNode, void* userData), void* disposerUserData); void ST_CLASS(poolHandlespaceManagementDelete)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); void ST_CLASS(poolHandlespaceManagementGetDescription)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, char* buffer, const size_t bufferSize); void ST_CLASS(poolHandlespaceManagementPrint)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, FILE* fd, const unsigned int fields); void ST_CLASS(poolHandlespaceManagementVerify)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); void ST_CLASS(poolHandlespaceManagementClear)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); HandlespaceChecksumType ST_CLASS(poolHandlespaceManagementGetHandlespaceChecksum)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); HandlespaceChecksumType ST_CLASS(poolHandlespaceManagementGetOwnershipChecksum)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); size_t ST_CLASS(poolHandlespaceManagementGetPools)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); size_t ST_CLASS(poolHandlespaceManagementGetPoolElements)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); size_t ST_CLASS(poolHandlespaceManagementGetOwnedPoolElements)( const struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); size_t ST_CLASS(poolHandlespaceManagementGetPoolElementsOfPool)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle); size_t ST_CLASS(poolHandlespaceManagementGetPoolElementsOfConnection)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const int socketDescriptor, const sctp_assoc_t assocID); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetFirstPoolElementOwnershipNodeForIdentifier)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType homeRegistrarIdentifier); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementGetNextPoolElementOwnershipNodeForSameIdentifier)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode); unsigned int ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const RegistrarIdentifierType homeRegistrarIdentifier, const PoolElementIdentifierType poolElementIdentifier, const unsigned int registrationLife, const struct PoolPolicySettings* poolPolicySettings, const struct TransportAddressBlock* userTransport, const struct TransportAddressBlock* registratorTransport, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID, const unsigned long long currentTimeStamp, struct ST_CLASS(PoolElementNode)** poolElementNode); unsigned int ST_CLASS(poolHandlespaceManagementRegisterPoolElementByPtr)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const struct ST_CLASS(PoolElementNode)* originalPoolElementNode, const unsigned long long currentTimeStamp, struct ST_CLASS(PoolElementNode)** poolElementNode); void ST_CLASS(poolHandlespaceManagementUpdateOwnershipOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, const RegistrarIdentifierType newHomeRegistrarIdentifier); void ST_CLASS(poolHandlespaceManagementUpdateConnectionOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID); unsigned long long ST_CLASS(poolHandlespaceManagementGetNextTimerTimeStamp)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); void ST_CLASS(poolHandlespaceManagementRestartPoolElementExpiryTimer)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode, const unsigned long long expiryTimeout); size_t ST_CLASS(poolHandlespaceManagementPurgeExpiredPoolElements)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const unsigned long long currentTimeStamp); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceManagementFindPoolElement)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier); unsigned int ST_CLASS(poolHandlespaceManagementDeregisterPoolElementByPtr)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, struct ST_CLASS(PoolElementNode)* poolElementNode); unsigned int ST_CLASS(poolHandlespaceManagementDeregisterPoolElement)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier); unsigned int ST_CLASS(poolHandlespaceManagementHandleResolution)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const struct PoolHandle* poolHandle, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, size_t* poolElementNodes, const size_t maxHandleResolutionItems, const size_t maxIncrement); /* Maximum amount of Pool Element Parameters in ASAP/ENRP message: Per PE Transport Parameter: - 20 for Header + PE-ID + Home-PR-ID + Reg.Life - 8+8 for User Transport Parameter with single IPv4 address - 8+8 for ASAP Transport Parameter with single IPv4 address - 8 for Policy Parameter => 60 Bytes. => About ~1090 PE Parameters per message (depending on other overhead, e.g. PH Parameter) */ #define NTE_MAX_POOL_ELEMENT_NODES 1024 #define HTEF_START (1 << 0) #define HTEF_OWNCHILDSONLY (1 << 1) struct ST_CLASS(HandleTableExtract) { struct PoolHandle LastPoolHandle; PoolElementIdentifierType LastPoolElementIdentifier; size_t PoolElementNodes; struct ST_CLASS(PoolElementNode)* PoolElementNodeArray[NTE_MAX_POOL_ELEMENT_NODES]; }; int ST_CLASS(poolHandlespaceManagementGetHandleTable)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType homeRegistrarIdentifier, struct ST_CLASS(HandleTableExtract)* handleTableExtract, const unsigned int flags, size_t maxElements); void ST_CLASS(poolHandlespaceManagementMarkPoolElementNodes)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType ownerID); size_t ST_CLASS(poolHandlespaceManagementPurgeMarkedPoolElementNodes)( struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType ownerID); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/timestamphashtable.c0000664000175000017500000001442011777021056015256 00000000000000/* $Id: timestamphashtable.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "timestamphashtable.h" #include /* ###### Constructor #################################################### */ struct TimeStampHashTable* timeStampHashTableNew(const size_t buckets, const size_t maxEntries) { struct TimeStampHashTable* timeStampHashTable; const size_t totalSize = sizeof(struct TimeStampHashTable) + buckets * (sizeof(timeStampHashTable->BucketArray[0]) + sizeof(struct TimeStampBucket) + (maxEntries * sizeof(timeStampHashTable->BucketArray[0]->TimeStamp[0]))); if((buckets < 1) || (maxEntries < 1)) { return(NULL); } timeStampHashTable = (struct TimeStampHashTable*)malloc(totalSize); if(timeStampHashTable) { timeStampHashTable->Buckets = buckets; timeStampHashTable->MaxEntries = maxEntries; timeStampHashTableClear(timeStampHashTable); } return(timeStampHashTable); } /* ###### Destructor ##################################################### */ void timeStampHashTableDelete(struct TimeStampHashTable* timeStampHashTable) { free(timeStampHashTable); } /* ###### Clear all ###################################################### */ void timeStampHashTableClear(struct TimeStampHashTable* timeStampHashTable) { struct TimeStampBucket* bucket; size_t i; bucket = (struct TimeStampBucket*)((long)&timeStampHashTable->BucketArray + ((long)timeStampHashTable->Buckets * (long)sizeof(timeStampHashTable->BucketArray[0]))); for(i = 0;i < timeStampHashTable->Buckets;i++) { bucket->Entries = 0; timeStampHashTable->BucketArray[i] = bucket; bucket = (struct TimeStampBucket*)((long)bucket + (long)sizeof(struct TimeStampBucket) + ((long)sizeof(bucket->TimeStamp[0]) * (long)timeStampHashTable->MaxEntries)); } } /* ###### Print ########################################################## */ void timeStampHashTablePrint(struct TimeStampHashTable* timeStampHashTable, FILE* fd) { size_t i, j; fputs("TimeStampHashTable:\n", fd); fprintf(fd, " - Buckets = %u\n", (unsigned int)timeStampHashTable->Buckets); fprintf(fd, " - MaxEntries = %u\n", (unsigned int)timeStampHashTable->MaxEntries); for(i = 0;i < timeStampHashTable->Buckets;i++) { fprintf(fd, " - Bucket #%u (%u entries)\n", (unsigned int)i + 1, (unsigned int)timeStampHashTable->BucketArray[i]->Entries); for(j = 0;j < timeStampHashTable->BucketArray[i]->Entries;j++) { fprintf(fd, " + %llu\n", timeStampHashTable->BucketArray[i]->TimeStamp[j]); } } } /* ###### Append a new time stamp ######################################## */ bool timeStampHashTableAddTimeStamp(struct TimeStampHashTable* timeStampHashTable, const unsigned long hashValue, const unsigned long long newTimeStamp) { const size_t bucket = (size_t)hashValue % timeStampHashTable->Buckets; size_t i; if(timeStampHashTable->BucketArray[bucket]->Entries < timeStampHashTable->MaxEntries) { if( (timeStampHashTable->BucketArray[bucket]->Entries == 0) || (timeStampHashTable->BucketArray[bucket]->TimeStamp[timeStampHashTable->BucketArray[bucket]->Entries - 1] <= newTimeStamp) ) { timeStampHashTable->BucketArray[bucket]->TimeStamp[timeStampHashTable->BucketArray[bucket]->Entries] = newTimeStamp; timeStampHashTable->BucketArray[bucket]->Entries++; } else { /* Non-monotonic time stamp order! */ return(false); } } else { if(timeStampHashTable->BucketArray[bucket]->TimeStamp[timeStampHashTable->BucketArray[bucket]->Entries - 1] <= newTimeStamp) { for(i = 1;i < timeStampHashTable->BucketArray[bucket]->Entries;i++) { timeStampHashTable->BucketArray[bucket]->TimeStamp[i - 1] = timeStampHashTable->BucketArray[bucket]->TimeStamp[i]; } timeStampHashTable->BucketArray[bucket]->TimeStamp[timeStampHashTable->BucketArray[bucket]->Entries - 1] = newTimeStamp; } else { /* Non-monotonic time stamp order! */ return(false); } } return(true); } /* ###### Get time stamp rate ############################################ */ double timeStampHashTableGetRate(const struct TimeStampHashTable* timeStampHashTable, const unsigned long hashValue) { const size_t bucket = (size_t)hashValue % timeStampHashTable->Buckets; if(timeStampHashTable->BucketArray[bucket]->Entries > 1) { const unsigned long long duration = timeStampHashTable->BucketArray[bucket]->TimeStamp[timeStampHashTable->BucketArray[bucket]->Entries - 1] - timeStampHashTable->BucketArray[bucket]->TimeStamp[0]; return((double)timeStampHashTable->BucketArray[bucket]->Entries / (duration / 1000000.0)); } return(0.0); } rsplib-3.0.1/rsplib/timestamphashtable.h0000664000175000017500000000503211777021056015262 00000000000000/* $Id: timestamphashtable.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TIMESTAMPHASHTABLE_H #define TIMESTAMPHASHTABLE_H #include "tdtypes.h" #include #ifdef __cplusplus extern "C" { #endif struct TimeStampBucket { size_t Entries; unsigned long long TimeStamp[0]; }; struct TimeStampHashTable { size_t Buckets; size_t MaxEntries; struct TimeStampBucket* BucketArray[0]; }; struct TimeStampHashTable* timeStampHashTableNew(const size_t buckets, const size_t maxEntries); void timeStampHashTableDelete(struct TimeStampHashTable* timeStampHashTable); void timeStampHashTableClear(struct TimeStampHashTable* timeStampHashTable); void timeStampHashTablePrint(struct TimeStampHashTable* timeStampHashTable, FILE* fd); bool timeStampHashTableAddTimeStamp(struct TimeStampHashTable* timeStampHashTable, const unsigned long hashValue, const unsigned long long newTimeStamp); double timeStampHashTableGetRate(const struct TimeStampHashTable* timeStampHashTable, const unsigned long hashValue); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolhandlespacemanagement.c0000664000175000017500000000435011777021056016576 00000000000000/* $Id: poolhandlespacemanagement.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #define INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolhandlespacemanagement.h" /* ###### Get policy Type of policy name ################################### */ unsigned int poolPolicyGetPoolPolicyTypeByName(const char* policyName) { size_t i; for(i = 0;i < TMPL_CLASS(PoolPolicies,SimpleRedBlackTree);i++) { if(strcmp(TMPL_CLASS(PoolPolicyArray,SimpleRedBlackTree)[i].Name, policyName) == 0) { return(TMPL_CLASS(PoolPolicyArray,SimpleRedBlackTree)[i].Type); } } return(PPT_UNDEFINED); } /* ###### Get policy name of policy Type ################################### */ const char* poolPolicyGetPoolPolicyNameByType(const unsigned int policyType) { size_t i; for(i = 0;i < TMPL_CLASS(PoolPolicies,SimpleRedBlackTree);i++) { if(TMPL_CLASS(PoolPolicyArray,SimpleRedBlackTree)[i].Type == policyType) { return(TMPL_CLASS(PoolPolicyArray,SimpleRedBlackTree)[i].Name); } } return(NULL); } rsplib-3.0.1/rsplib/poolhandlespacemanagement.h0000664000175000017500000003035211777021056016604 00000000000000/* $Id: poolhandlespacemanagement.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef POOLNAMESPACEMANAGEMENT_H #define POOLNAMESPACEMANAGEMENT_H #include "config.h" #include "debug.h" #include "rserpoolerror.h" #include "poolhandlespacechecksum.h" #include "poolhandlespacemanagement-basics.h" #include "poolhandle.h" #include "poolpolicysettings.h" #include "transportaddressblock.h" #include "stringutilities.h" #include #ifdef INCLUDE_LINEARLIST #include "linearlist.h" #endif #ifdef INCLUDE_SIMPLEBINARYTREE #include "simplebinarytree.h" #endif #ifdef INCLUDE_LEAFLINKEDBINARYTREE #include "leaflinkedbinarytree.h" #endif #ifdef INCLUDE_SIMPLETREAP #include "simpletreap.h" #endif #ifdef INCLUDE_LEAFLINKEDTREAP #include "leaflinkedtreap.h" #endif #ifdef INCLUDE_SIMPLEREDBLACKTREE #include "simpleredblacktree.h" #endif #ifdef INCLUDE_LEAFLINKEDREDBLACKTREE #include "leaflinkedredblacktree.h" #endif #define INTERNAL_POOLTEMPLATE #ifdef INCLUDE_LINEARLIST #define STN_CLASSNAME LinearListNode #define STN_METHOD(x) linearListNode##x #define ST_CLASSNAME LinearList #define ST_CLASS(x) x##_LinearList #define ST_METHOD(x) linearList##x #include "poolpolicy-template.h" #include "poolelementnode-template.h" #include "poolnode-template.h" #include "poolhandlespacenode-template.h" #include "poolhandlespacemanagement-template.h" #include "peerlistnode-template.h" #include "peerlist-template.h" #include "peerlistmanagement-template.h" #include "poolusernode-template.h" #include "pooluserlist-template.h" #ifdef INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolpolicy-template_impl.h" #include "poolelementnode-template_impl.h" #include "poolnode-template_impl.h" #include "poolhandlespacenode-template_impl.h" #include "poolhandlespacemanagement-template_impl.h" #include "peerlistnode-template_impl.h" #include "peerlist-template_impl.h" #include "peerlistmanagement-template_impl.h" #include "poolusernode-template_impl.h" #include "pooluserlist-template_impl.h" #endif #undef STN_CLASSNAME #undef STN_METHOD #undef ST_CLASSNAME #undef ST_CLASS #undef ST_METHOD #endif #ifdef INCLUDE_SIMPLEBINARYTREE #define STN_CLASSNAME SimpleBinaryTreeNode #define STN_METHOD(x) simpleBinaryTreeNode##x #define ST_CLASSNAME SimpleBinaryTree #define ST_CLASS(x) x##_SimpleBinaryTree #define ST_METHOD(x) simpleBinaryTree##x #include "poolpolicy-template.h" #include "poolelementnode-template.h" #include "poolnode-template.h" #include "poolhandlespacenode-template.h" #include "poolhandlespacemanagement-template.h" #include "peerlistnode-template.h" #include "peerlist-template.h" #include "peerlistmanagement-template.h" #include "poolusernode-template.h" #include "pooluserlist-template.h" #ifdef INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolpolicy-template_impl.h" #include "poolelementnode-template_impl.h" #include "poolnode-template_impl.h" #include "poolhandlespacenode-template_impl.h" #include "poolhandlespacemanagement-template_impl.h" #include "peerlistnode-template_impl.h" #include "peerlist-template_impl.h" #include "peerlistmanagement-template_impl.h" #include "poolusernode-template_impl.h" #include "pooluserlist-template_impl.h" #endif #undef STN_CLASSNAME #undef STN_METHOD #undef ST_CLASSNAME #undef ST_CLASS #undef ST_METHOD #endif #ifdef INCLUDE_LEAFLINKEDBINARYTREE #define STN_CLASSNAME LeafLinkedBinaryTreeNode #define STN_METHOD(x) leafLinkedBinaryTreeNode##x #define ST_CLASSNAME LeafLinkedBinaryTree #define ST_CLASS(x) x##_LeafLinkedBinaryTree #define ST_METHOD(x) leafLinkedBinaryTree##x #include "poolpolicy-template.h" #include "poolelementnode-template.h" #include "poolnode-template.h" #include "poolhandlespacenode-template.h" #include "poolhandlespacemanagement-template.h" #include "peerlistnode-template.h" #include "peerlist-template.h" #include "peerlistmanagement-template.h" #include "poolusernode-template.h" #include "pooluserlist-template.h" #ifdef INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolpolicy-template_impl.h" #include "poolelementnode-template_impl.h" #include "poolnode-template_impl.h" #include "poolhandlespacenode-template_impl.h" #include "poolhandlespacemanagement-template_impl.h" #include "peerlistnode-template_impl.h" #include "peerlist-template_impl.h" #include "peerlistmanagement-template_impl.h" #include "poolusernode-template_impl.h" #include "pooluserlist-template_impl.h" #endif #undef STN_CLASSNAME #undef STN_METHOD #undef ST_CLASSNAME #undef ST_CLASS #undef ST_METHOD #endif #ifdef INCLUDE_SIMPLETREAP #define STN_CLASSNAME SimpleTreapNode #define STN_METHOD(x) simpleTreapNode##x #define ST_CLASSNAME SimpleTreap #define ST_CLASS(x) x##_SimpleTreap #define ST_METHOD(x) simpleTreap##x #include "poolpolicy-template.h" #include "poolelementnode-template.h" #include "poolnode-template.h" #include "poolhandlespacenode-template.h" #include "poolhandlespacemanagement-template.h" #include "peerlistnode-template.h" #include "peerlist-template.h" #include "peerlistmanagement-template.h" #include "poolusernode-template.h" #include "pooluserlist-template.h" #ifdef INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolpolicy-template_impl.h" #include "poolelementnode-template_impl.h" #include "poolnode-template_impl.h" #include "poolhandlespacenode-template_impl.h" #include "poolhandlespacemanagement-template_impl.h" #include "peerlistnode-template_impl.h" #include "peerlist-template_impl.h" #include "peerlistmanagement-template_impl.h" #include "poolusernode-template_impl.h" #include "pooluserlist-template_impl.h" #endif #undef STN_CLASSNAME #undef STN_METHOD #undef ST_CLASSNAME #undef ST_CLASS #undef ST_METHOD #endif #ifdef INCLUDE_LEAFLINKEDTREAP #define STN_CLASSNAME LeafLinkedTreapNode #define STN_METHOD(x) leafLinkedTreapNode##x #define ST_CLASSNAME LeafLinkedTreap #define ST_CLASS(x) x##_LeafLinkedTreap #define ST_METHOD(x) leafLinkedTreap##x #include "poolpolicy-template.h" #include "poolelementnode-template.h" #include "poolnode-template.h" #include "poolhandlespacenode-template.h" #include "poolhandlespacemanagement-template.h" #include "peerlistnode-template.h" #include "peerlist-template.h" #include "peerlistmanagement-template.h" #include "poolusernode-template.h" #include "pooluserlist-template.h" #ifdef INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolpolicy-template_impl.h" #include "poolelementnode-template_impl.h" #include "poolnode-template_impl.h" #include "poolhandlespacenode-template_impl.h" #include "poolhandlespacemanagement-template_impl.h" #include "peerlistnode-template_impl.h" #include "peerlist-template_impl.h" #include "peerlistmanagement-template_impl.h" #include "poolusernode-template_impl.h" #include "pooluserlist-template_impl.h" #endif #undef STN_CLASSNAME #undef STN_METHOD #undef ST_CLASSNAME #undef ST_CLASS #undef ST_METHOD #endif #ifdef INCLUDE_SIMPLEREDBLACKTREE #define STN_CLASSNAME SimpleRedBlackTreeNode #define STN_METHOD(x) simpleRedBlackTreeNode##x #define ST_CLASSNAME SimpleRedBlackTree #define ST_CLASS(x) x##_SimpleRedBlackTree #define ST_METHOD(x) simpleRedBlackTree##x #include "poolpolicy-template.h" #include "poolelementnode-template.h" #include "poolnode-template.h" #include "poolhandlespacenode-template.h" #include "poolhandlespacemanagement-template.h" #include "peerlistnode-template.h" #include "peerlist-template.h" #include "peerlistmanagement-template.h" #include "poolusernode-template.h" #include "pooluserlist-template.h" #ifdef INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolpolicy-template_impl.h" #include "poolelementnode-template_impl.h" #include "poolnode-template_impl.h" #include "poolhandlespacenode-template_impl.h" #include "poolhandlespacemanagement-template_impl.h" #include "peerlistnode-template_impl.h" #include "peerlist-template_impl.h" #include "peerlistmanagement-template_impl.h" #include "poolusernode-template_impl.h" #include "pooluserlist-template_impl.h" #endif #undef STN_CLASSNAME #undef STN_METHOD #undef ST_CLASSNAME #undef ST_CLASS #undef ST_METHOD #endif #ifdef INCLUDE_LEAFLINKEDREDBLACKTREE #define STN_CLASSNAME LeafLinkedRedBlackTreeNode #define STN_METHOD(x) leafLinkedRedBlackTreeNode##x #define ST_CLASSNAME LeafLinkedRedBlackTree #define ST_CLASS(x) x##_LeafLinkedRedBlackTree #define ST_METHOD(x) leafLinkedRedBlackTree##x #include "poolpolicy-template.h" #include "poolelementnode-template.h" #include "poolnode-template.h" #include "poolhandlespacenode-template.h" #include "poolhandlespacemanagement-template.h" #include "peerlistnode-template.h" #include "peerlist-template.h" #include "peerlistmanagement-template.h" #include "poolusernode-template.h" #include "pooluserlist-template.h" #ifdef INTERNAL_POOLTEMPLATE_IMPLEMENT_IT #include "poolpolicy-template_impl.h" #include "poolelementnode-template_impl.h" #include "poolnode-template_impl.h" #include "poolhandlespacenode-template_impl.h" #include "poolhandlespacemanagement-template_impl.h" #include "peerlistnode-template_impl.h" #include "peerlist-template_impl.h" #include "peerlistmanagement-template_impl.h" #include "poolusernode-template_impl.h" #include "pooluserlist-template_impl.h" #endif #undef STN_CLASSNAME #undef STN_METHOD #undef ST_CLASSNAME #undef ST_CLASS #undef ST_METHOD #endif #define TMPL_CLASS(x, c) x##_##c #define TMPL_METHOD(x, c) c##x #ifdef USE_LIST #define STN_CLASSNAME LinearListNode #define STN_METHOD(x) linearListNode##x #define ST_CLASSNAME LinearList #define ST_CLASS(x) x##_LinearList #define ST_METHOD(x) linearList##x #endif #ifdef USE_SIMPLEBINARYTREE #define STN_CLASSNAME SimpleBinaryTreeNode #define STN_METHOD(x) simpleBinaryTreeNode##x #define ST_CLASSNAME SimpleBinaryTree #define ST_CLASS(x) x##_SimpleBinaryTree #define ST_METHOD(x) simpleBinaryTree##x #endif #ifdef USE_LEAFLINKEDBINARYTREE #define STN_CLASSNAME LeafLinkedBinaryTreeNode #define STN_METHOD(x) leafLinkedBinaryTreeNode##x #define ST_CLASSNAME LeafLinkedBinaryTree #define ST_CLASS(x) x##_LeafLinkedBinaryTree #define ST_METHOD(x) leafLinkedBinaryTree##x #endif #ifdef USE_SIMPLETREAP #define STN_CLASSNAME SimpleTreapNode #define STN_METHOD(x) simpleTreapNode##x #define ST_CLASSNAME SimpleTreap #define ST_CLASS(x) x##_SimpleTreap #define ST_METHOD(x) simpleTreap##x #endif #ifdef USE_LEAFLINKEDTREAP #define STN_CLASSNAME LeafLinkedTreapNode #define STN_METHOD(x) leafLinkedTreapNode##x #define ST_CLASSNAME LeafLinkedTreap #define ST_CLASS(x) x##_LeafLinkedTreap #define ST_METHOD(x) leafLinkedTreap##x #endif #ifdef USE_SIMPLEREDBLACKTREE #define STN_CLASSNAME SimpleRedBlackTreeNode #define STN_METHOD(x) simpleRedBlackTreeNode##x #define ST_CLASSNAME SimpleRedBlackTree #define ST_CLASS(x) x##_SimpleRedBlackTree #define ST_METHOD(x) simpleRedBlackTree##x #endif #ifdef USE_LEAFLINKEDREDBLACKTREE #define STN_CLASSNAME LeafLinkedRedBlackTreeNode #define STN_METHOD(x) leafLinkedRedBlackTreeNode##x #define ST_CLASSNAME LeafLinkedRedBlackTree #define ST_CLASS(x) x##_LeafLinkedRedBlackTree #define ST_METHOD(x) leafLinkedRedBlackTree##x #endif #ifdef __cplusplus extern "C" { #endif unsigned int poolPolicyGetPoolPolicyTypeByName(const char* policyName); const char* poolPolicyGetPoolPolicyNameByType(const unsigned int policyType); #ifdef __cplusplus } #endif #undef INTERNAL_POOLTEMPLATE #endif rsplib-3.0.1/rsplib/scriptingcontrol0000775000175000017500000000653611777021056014575 00000000000000#!/bin/sh # $Id: scriptingcontrol 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de # ====== Preparation ======================================================== if [ $# -lt 1 ] ; then echo >2 "Usage: scriptingcontrol {[run] [Directory] [Input] [Output] [Status] [Environment]} {[cleanup] [Directory] [PID] {keeptempdirs}}" exit 1 fi MODE="$1" # ====== Work mode ========================================================== if [ "$MODE" = "run" ] ; then if [ $# -lt 4 ] ; then echo >2 "Usage: scriptingcontrol [run] [Directory] [Input] [Output] [Status]" exit 1 fi DIRECTORY="$2" INPUT_NAME="$3" OUTPUT_NAME="$4" STATUS_NAME="$5" ENVIRONMENT_NAME="$6" # ====== Extract input =================================================== cd $DIRECTORY || exit 1 # Extract the input file: # - First, try plain Tar # - If it does not work, try Tar/GZip # - If it does not work, try Tar/BZip2 # - If it does not work, return an error tar xf $INPUT_NAME || tar xzf $INPUT_NAME || tar xjf $INPUT_NAME || exit 1 # ====== Do the actual work ============================================== chmod 700 ssrun && \ ./ssrun $OUTPUT_NAME $ENVIRONMENT_NAME || exit 1 # ====== Clean up directory ================================================= elif [ "$MODE" = "cleanup" ] ; then if [ $# -lt 3 ] ; then echo >2 "Usage: scriptingcontrol [cleanup] [Directory] [PID] {keeptempdirs}" exit 1 fi DIRECTORY="$2" PID="$3" KEEPTEMPDIRS="$4" # ------ Send SIGKILL to worker process and all of its childs ------------ if [ $PID -ne 0 ] ; then CHILD_PIDS="" find_child_pids() { for pid in `pgrep -P $1` ; do CHILD_PIDS="$CHILD_PIDS $pid" find_child_pids $pid done } find_child_pids $PID echo "Terminating$CHILD_PIDS $PID ..." kill -KILL $CHILD_PIDS $PID fi # ------ Remove temporary directory -------------------------------------- if [ "$KEEPTEMPDIRS" != "keeptempdirs" ] ; then rm -rf "$DIRECTORY" fi # ====== Bad mode =========================================================== else echo "ERROR: Bad mode setting $MODE!" exit 1 fi exit 0 rsplib-3.0.1/rsplib/rserpoolmessagecreator.c0000664000175000017500000014740411777021056016202 00000000000000/* $Id: rserpoolmessagecreator.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "netutilities.h" #include "rserpoolmessagecreator.h" #include "rserpool.h" #include #include /* ###### Begin message ################################################## */ static struct rserpool_header* beginMessage(struct RSerPoolMessage* message, const unsigned int type, const uint8_t flags, const uint32_t ppid) { struct rserpool_header* header = (struct rserpool_header*)getSpace(message,sizeof(struct rserpool_header)); if(header == NULL) { return(NULL); } message->PPID = ppid; header->ah_type = (uint8_t)(type & 0xff); header->ah_flags = flags; header->ah_length = 0xffff; return(header); } /* ###### Finish message ################################################# */ static bool finishMessage(struct RSerPoolMessage* message) { char* pad; size_t padding = getPadding(message->Position,4); struct rserpool_header* header = (struct rserpool_header*)message->Buffer; if(message->BufferSize >= sizeof(struct rserpool_header)) { header->ah_length = htons((uint16_t)message->Position); pad = (char*)getSpace(message, padding); memset(pad, 0, padding); return(true); } return(false); } /* ###### Begin TLV ###################################################### */ static bool beginTLV(struct RSerPoolMessage* message, size_t* tlvPosition, const uint16_t type) { struct rserpool_tlv_header* header; *tlvPosition = message->Position; header = (struct rserpool_tlv_header*)getSpace(message, sizeof(struct rserpool_tlv_header)); if(header == NULL) { return(false); } header->atlv_type = htons(type); header->atlv_length = 0xffff; return(true); } /* ###### Finish TLV ##################################################### */ static bool finishTLV(struct RSerPoolMessage* message, const size_t tlvPosition) { struct rserpool_tlv_header* header = (struct rserpool_tlv_header*)&message->Buffer[tlvPosition]; size_t length = message->Position - tlvPosition; size_t padding = getPadding(length,4); char* pad; if(message->BufferSize >= sizeof(struct rserpool_tlv_header)) { header->atlv_length = htons(length); pad = (char*)getSpace(message, padding); memset(pad, 0, padding); return(true); } return(false); } /* ###### Create pool handle parameter ################################### */ static bool createPoolHandleParameter(struct RSerPoolMessage* message, const struct PoolHandle* poolHandle) { char* handle; size_t tlvPosition = 0; if(poolHandle == NULL) { LOG_ERROR fputs("Invalid parameters\n", stdlog); LOG_END_FATAL return(false); } if(beginTLV(message, &tlvPosition, ATT_POOL_HANDLE) == false) { return(false); } handle = (char*)getSpace(message, poolHandle->Size); if(handle == NULL) { return(false); } memcpy(handle, &poolHandle->Handle, poolHandle->Size); return(finishTLV(message, tlvPosition)); } /* ###### Create address parameter ####################################### */ static bool createAddressParameter(struct RSerPoolMessage* message, const struct sockaddr* address) { size_t tlvPosition = 0; char* output; const struct sockaddr_in* in; const struct sockaddr_in6* in6; switch(address->sa_family) { case AF_INET: if(beginTLV(message, &tlvPosition, ATT_IPv4_ADDRESS) == false) { return(false); } in = (struct sockaddr_in*)address; output = (char*)getSpace(message, 4); if(output == NULL) { return(false); } memcpy(output, &in->sin_addr, 4); break; case AF_INET6: in6 = (const struct sockaddr_in6*)address; if(!IN6_IS_ADDR_V4MAPPED((const struct in6_addr*)&(in6->sin6_addr))) { if(beginTLV(message, &tlvPosition, ATT_IPv6_ADDRESS) == false) { return(false); } output = (char*)getSpace(message, 16); if(output == NULL) { return(false); } memcpy(output, &in6->sin6_addr, 16); } else { if(beginTLV(message, &tlvPosition, ATT_IPv4_ADDRESS) == false) { return(false); } output = (char*)getSpace(message, 4); if(output == NULL) { return(false); } #if defined SOLARIS memcpy(output, &in6->sin6_addr._S6_un._S6_u32[3], 4); #elif defined LINUX memcpy(output, &in6->sin6_addr.s6_addr32[3], 4); #else memcpy(output, &in6->sin6_addr.__u6_addr.__u6_addr32[3], 4); #endif } break; default: LOG_ERROR fprintf(stdlog, "Unknown address family %u\n", address->sa_family); LOG_END_FATAL return(false); break; } return(finishTLV(message, tlvPosition)); } /* ###### Create transport parameter ###################################### */ static bool createTransportParameter(struct RSerPoolMessage* message, const struct TransportAddressBlock* transportAddressBlock) { size_t tlvPosition = 0; struct rserpool_udptransportparameter* utp; struct rserpool_tcptransportparameter* ttp; struct rserpool_sctptransportparameter* stp; uint16_t type; uint16_t transportUse; size_t i; if(transportAddressBlock == NULL) { LOG_ERROR fputs("Invalid parameters\n", stdlog); LOG_END_FATAL return(false); } switch(transportAddressBlock->Protocol) { case IPPROTO_SCTP: type = ATT_SCTP_TRANSPORT; break; case IPPROTO_TCP: type = ATT_TCP_TRANSPORT; break; case IPPROTO_UDP: type = ATT_UDP_TRANSPORT; break; #if 0 case IPPROTO_DCCP: type = ATT_DCCP_TRANSPORT; break; #endif default: LOG_ERROR fprintf(stdlog,"Unknown protocol #%d\n", transportAddressBlock->Protocol); LOG_END_FATAL return(false); break; } if(transportAddressBlock->Flags & TABF_CONTROLCHANNEL) { transportUse = UTP_DATA_PLUS_CONTROL; } else { transportUse = UTP_DATA_ONLY; } if(beginTLV(message, &tlvPosition, type) == false) { return(false); } switch(type) { case ATT_SCTP_TRANSPORT: stp = (struct rserpool_sctptransportparameter*)getSpace(message, sizeof(struct rserpool_sctptransportparameter)); if(stp == NULL) { return(false); } stp->stp_port = htons(transportAddressBlock->Port); stp->stp_transport_use = htons(transportUse); break; case ATT_TCP_TRANSPORT: ttp = (struct rserpool_tcptransportparameter*)getSpace(message, sizeof(struct rserpool_tcptransportparameter)); if(ttp == NULL) { return(false); } ttp->ttp_port = htons(transportAddressBlock->Port); ttp->ttp_transport_use = htons(transportUse); break; case ATT_UDP_TRANSPORT: utp = (struct rserpool_udptransportparameter*)getSpace(message, sizeof(struct rserpool_udptransportparameter)); if(utp == NULL) { return(false); } utp->utp_port = htons(transportAddressBlock->Port); utp->utp_reserved = 0; break; #if 0 case ATT_DCCP_TRANSPORT: dtp = (struct rserpool_dccptransportparameter*)getSpace(message, sizeof(struct rserpool_dccptransportparameter)); if(dtp == NULL) { return(false); } dtp->dtp_port = htons(transportAddressBlock->Port); dtp->dtp_scode = 0; dtp->dtp_reserved = 0; break; #endif } for(i = 0;i < transportAddressBlock->Addresses;i++) { if(createAddressParameter(message, (struct sockaddr*)&transportAddressBlock->AddressArray[i]) == false) { return(false); } if((i > 0) && (type != ATT_SCTP_TRANSPORT)) { LOG_ERROR fputs("Multiple addresses for non-multihomed protocol\n", stdlog); LOG_END_FATAL return(false); } } return(finishTLV(message, tlvPosition)); } /* ###### Create policy parameter ######################################## */ static bool createPolicyParameter(struct RSerPoolMessage* message, const struct PoolPolicySettings* poolPolicySettings) { size_t tlvPosition = 0; struct rserpool_policy_roundrobin* rr; struct rserpool_policy_weighted_roundrobin* wrr; struct rserpool_policy_priority* p; struct rserpool_policy_leastused* lu; struct rserpool_policy_leastused_dpf* ludpf; struct rserpool_policy_leastused_degradation* lud; struct rserpool_policy_leastused_degradation_dpf* luddpf; struct rserpool_policy_priority_leastused* plu; struct rserpool_policy_priority_leastused_degradation* plud; struct rserpool_policy_random* rd; struct rserpool_policy_weighted_random* wrd; struct rserpool_policy_weighted_random_dpf* wrddpf; struct rserpool_policy_randomized_leastused* rlu; struct rserpool_policy_randomized_leastused_degradation* rlud; struct rserpool_policy_randomized_priority_leastused* rplu; struct rserpool_policy_randomized_priority_leastused_degradation* rplud; if(beginTLV(message, &tlvPosition, ATT_POOL_POLICY) == false) { return(false); } if(poolPolicySettings == NULL) { LOG_ERROR fputs("Invalid parameters\n", stdlog); LOG_END_FATAL return(false); } switch(poolPolicySettings->PolicyType) { case PPT_RANDOM: rd = (struct rserpool_policy_random*)getSpace(message, sizeof(struct rserpool_policy_random)); if(rd == NULL) { return(false); } rd->pp_rd_policy = htonl(poolPolicySettings->PolicyType); break; case PPT_WEIGHTED_RANDOM: wrd = (struct rserpool_policy_weighted_random*)getSpace(message, sizeof(struct rserpool_policy_weighted_random)); if(wrd == NULL) { return(false); } wrd->pp_wrd_policy = htonl(poolPolicySettings->PolicyType); wrd->pp_wrd_weight = htonl(poolPolicySettings->Weight); break; case PPT_WEIGHTED_RANDOM_DPF: wrddpf = (struct rserpool_policy_weighted_random_dpf*)getSpace(message, sizeof(struct rserpool_policy_weighted_random_dpf)); if(wrddpf == NULL) { return(false); } wrddpf->pp_wrddpf_policy = htonl(poolPolicySettings->PolicyType); wrddpf->pp_wrddpf_weight = htonl(poolPolicySettings->Weight); wrddpf->pp_wrddpf_weight_dpf = htonl(poolPolicySettings->WeightDPF); wrddpf->pp_wrddpf_distance = htonl(poolPolicySettings->Distance); break; case PPT_ROUNDROBIN: rr = (struct rserpool_policy_roundrobin*)getSpace(message, sizeof(struct rserpool_policy_roundrobin)); if(rr == NULL) { return(false); } rr->pp_rr_policy = htonl(poolPolicySettings->PolicyType); break; case PPT_WEIGHTED_ROUNDROBIN: wrr = (struct rserpool_policy_weighted_roundrobin*)getSpace(message, sizeof(struct rserpool_policy_weighted_roundrobin)); if(wrr == NULL) { return(false); } wrr->pp_wrr_policy = htonl(poolPolicySettings->PolicyType); wrr->pp_wrr_weight = htonl(poolPolicySettings->Weight); break; case PPT_PRIORITY: p = (struct rserpool_policy_priority*)getSpace(message, sizeof(struct rserpool_policy_priority)); if(p == NULL) { return(false); } p->pp_p_policy = htonl(poolPolicySettings->PolicyType); p->pp_p_priority = htonl(poolPolicySettings->Weight); break; case PPT_LEASTUSED: lu = (struct rserpool_policy_leastused*)getSpace(message, sizeof(struct rserpool_policy_leastused)); if(lu == NULL) { return(false); } lu->pp_lu_policy = htonl(poolPolicySettings->PolicyType); lu->pp_lu_load = htonl(poolPolicySettings->Load); break; case PPT_LEASTUSED_DPF: ludpf = (struct rserpool_policy_leastused_dpf*)getSpace(message, sizeof(struct rserpool_policy_leastused_dpf)); if(ludpf == NULL) { return(false); } ludpf->pp_ludpf_policy = htonl(poolPolicySettings->PolicyType); ludpf->pp_ludpf_load = htonl(poolPolicySettings->Load); ludpf->pp_ludpf_load_dpf = htonl(poolPolicySettings->LoadDPF); ludpf->pp_ludpf_distance = htonl(poolPolicySettings->Distance); break; case PPT_LEASTUSED_DEGRADATION: lud = (struct rserpool_policy_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_leastused_degradation)); if(lud == NULL) { return(false); } lud->pp_lud_policy = htonl(poolPolicySettings->PolicyType); lud->pp_lud_load = htonl(poolPolicySettings->Load); lud->pp_lud_loaddeg = htonl(poolPolicySettings->LoadDegradation); break; case PPT_LEASTUSED_DEGRADATION_DPF: luddpf = (struct rserpool_policy_leastused_degradation_dpf*)getSpace(message, sizeof(struct rserpool_policy_leastused_degradation_dpf)); if(luddpf == NULL) { return(false); } luddpf->pp_luddpf_policy = htonl(poolPolicySettings->PolicyType); luddpf->pp_luddpf_load = htonl(poolPolicySettings->Load); luddpf->pp_luddpf_loaddeg = htonl(poolPolicySettings->LoadDegradation); luddpf->pp_luddpf_load_dpf = htonl(poolPolicySettings->LoadDPF); luddpf->pp_luddpf_distance = htonl(poolPolicySettings->Distance); break; case PPT_PRIORITY_LEASTUSED: plu = (struct rserpool_policy_priority_leastused*)getSpace(message, sizeof(struct rserpool_policy_priority_leastused)); if(plu == NULL) { return(false); } plu->pp_plu_policy = htonl(poolPolicySettings->PolicyType); plu->pp_plu_load = htonl(poolPolicySettings->Load); break; case PPT_PRIORITY_LEASTUSED_DEGRADATION: plud = (struct rserpool_policy_priority_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_priority_leastused_degradation)); if(plud == NULL) { return(false); } plud->pp_plud_policy = htonl(poolPolicySettings->PolicyType); plud->pp_plud_load = htonl(poolPolicySettings->Load); plud->pp_plud_loaddeg = htonl(poolPolicySettings->LoadDegradation); break; case PPT_RANDOMIZED_LEASTUSED: rlu = (struct rserpool_policy_randomized_leastused*)getSpace(message, sizeof(struct rserpool_policy_randomized_leastused)); if(rlu == NULL) { return(false); } rlu->pp_rlu_policy = htonl(poolPolicySettings->PolicyType); rlu->pp_rlu_load = htonl(poolPolicySettings->Load); break; case PPT_RANDOMIZED_LEASTUSED_DEGRADATION: rlud = (struct rserpool_policy_randomized_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_randomized_leastused_degradation)); if(rlud == NULL) { return(false); } rlud->pp_rlud_policy = htonl(poolPolicySettings->PolicyType); rlud->pp_rlud_load = htonl(poolPolicySettings->Load); rlud->pp_rlud_loaddeg = htonl(poolPolicySettings->LoadDegradation); break; case PPT_RANDOMIZED_PRIORITY_LEASTUSED: rplu = (struct rserpool_policy_randomized_priority_leastused*)getSpace(message, sizeof(struct rserpool_policy_randomized_priority_leastused)); if(rplu == NULL) { return(false); } rplu->pp_rplu_policy = htonl(poolPolicySettings->PolicyType); rplu->pp_rplu_load = htonl(poolPolicySettings->Load); break; case PPT_RANDOMIZED_PRIORITY_LEASTUSED_DEGRADATION: rplud = (struct rserpool_policy_randomized_priority_leastused_degradation*)getSpace(message, sizeof(struct rserpool_policy_randomized_priority_leastused_degradation)); if(rplud == NULL) { return(false); } rplud->pp_rplud_policy = htonl(poolPolicySettings->PolicyType); rplud->pp_rplud_load = htonl(poolPolicySettings->Load); rplud->pp_rplud_loaddeg = htonl(poolPolicySettings->LoadDegradation); break; default: LOG_ERROR fprintf(stdlog, "Unknown policy #$%02x\n", poolPolicySettings->PolicyType); LOG_END_FATAL return(false); break; } return(finishTLV(message, tlvPosition)); } /* ###### Create pool element parameter ################################## */ static bool createPoolElementParameter( struct RSerPoolMessage* message, const struct ST_CLASS(PoolElementNode)* poolElement, const bool includeRegistratorTransport) { size_t tlvPosition = 0; struct rserpool_poolelementparameter* pep; if(poolElement == NULL) { LOG_ERROR fputs("Invalid parameters\n", stdlog); LOG_END_FATAL return(false); } if(beginTLV(message, &tlvPosition, ATT_POOL_ELEMENT) == false) { return(false); } pep = (struct rserpool_poolelementparameter*)getSpace(message, sizeof(struct rserpool_poolelementparameter)); if(pep == NULL) { return(false); } pep->pep_identifier = htonl(poolElement->Identifier); pep->pep_homeserverid = htonl(poolElement->HomeRegistrarIdentifier); pep->pep_reg_life = htonl(poolElement->RegistrationLife); if(createTransportParameter(message, poolElement->UserTransport) == false) { return(false); } if(createPolicyParameter(message, &poolElement->PolicySettings) == false) { return(false); } if(includeRegistratorTransport) { CHECK(poolElement->RegistratorTransport); if(createTransportParameter(message, poolElement->RegistratorTransport) == false) { return(false); } } return(finishTLV(message, tlvPosition)); } /* ###### Create pool element identifier parameter ####################### */ static bool createPoolElementIdentifierParameter( struct RSerPoolMessage* message, const PoolElementIdentifierType poolElementIdentifier) { uint32_t* identifier; size_t tlvPosition; if(beginTLV(message, &tlvPosition, ATT_POOL_ELEMENT_IDENTIFIER) == false) { return(false); } identifier = (uint32_t*)getSpace(message, sizeof(uint32_t)); if(identifier == NULL) { return(false); } *identifier = htonl(poolElementIdentifier); return(finishTLV(message, tlvPosition)); } /* ###### Create pool element checksum parameter ####################### */ static bool createHandlespaceChecksumParameter( struct RSerPoolMessage* message, const HandlespaceChecksumType poolElementChecksum) { uint16_t* checksum; size_t tlvPosition = 0; if(beginTLV(message, &tlvPosition, ATT_POOL_ELEMENT_CHECKSUM) == false) { return(false); } checksum = (uint16_t*)getSpace(message, sizeof(uint16_t)); if(checksum == NULL) { return(false); } *checksum = poolElementChecksum; return(finishTLV(message, tlvPosition)); } /* ###### Create error parameter ######################################### */ static bool createErrorParameter(struct RSerPoolMessage* message) { struct rserpool_errorcause* aec; size_t tlvPosition = 0; uint16_t cause; char* data; size_t dataLength; if(beginTLV(message, &tlvPosition, ATT_OPERATION_ERROR) == false) { return(false); } if(message->ErrorCauseParameterTLV == NULL) { CHECK(message->ErrorCauseParameterTLVLength == 0); } cause = message->Error; switch(cause) { case RSPERR_UNRECOGNIZED_PARAMETER: case RSPERR_INVALID_TLV: case RSPERR_INVALID_VALUE: data = message->ErrorCauseParameterTLV; dataLength = message->ErrorCauseParameterTLVLength; break; default: data = NULL; dataLength = 0; break; } if(data == NULL) { dataLength = 0; } aec = (struct rserpool_errorcause*)getSpace(message,sizeof(struct rserpool_errorcause) + dataLength); if(aec == NULL) { return(false); } aec->aec_cause = htons(cause); aec->aec_length = htons(sizeof(struct rserpool_errorcause) + dataLength); memcpy((char*)&aec->aec_data, data, dataLength); return(finishTLV(message, tlvPosition)); } /* ###### Create cookie parameter ######################################### */ static bool createCookieParameter(struct RSerPoolMessage* message, void* cookie, const size_t cookieSize) { void* buffer; size_t tlvPosition = 0; if(beginTLV(message, &tlvPosition, ATT_COOKIE) == false) { return(false); } buffer = (void*)getSpace(message, cookieSize); if(buffer == NULL) { return(false); } memcpy(buffer, cookie, cookieSize); return(finishTLV(message, tlvPosition)); } /* ###### Create server information parameter ############################## */ static bool createServerInformationParameter(struct RSerPoolMessage* message, struct ST_CLASS(PeerListNode)* peerListNode) { struct rserpool_serverinfoparameter* sip; size_t tlvPosition = 0; if(beginTLV(message, &tlvPosition, ATT_SERVER_INFORMATION) == false) { return(false); } sip = (struct rserpool_serverinfoparameter*)getSpace(message, sizeof(struct rserpool_serverinfoparameter)); if(sip == NULL) { return(false); } sip->sip_server_id = htonl(peerListNode->Identifier); if(createTransportParameter(message, peerListNode->AddressBlock) == false) { return(false); } return(finishTLV(message, tlvPosition)); } /* ###### Create handle resolution parameter ############################# */ static bool createHandleResolutionParameter( struct RSerPoolMessage* message, const size_t items) { struct rserpool_handleresolutionparameter* hrp; size_t tlvPosition = 0; if(beginTLV(message, &tlvPosition, ATT_HANDLE_RESOLUTION|ATT_ACTION_CONTINUE) == false) { return(false); } hrp = (struct rserpool_handleresolutionparameter*)getSpace(message, sizeof(struct rserpool_handleresolutionparameter)); if(hrp == NULL) { return(false); } if(items == RSPGETADDRS_MAX) { hrp->hrp_items = 0xffffffff; } else { hrp->hrp_items = htonl((uint32_t)items); } return(finishTLV(message, tlvPosition)); } /* ###### Create endpoint keepalive message ############################## */ static bool createEndpointKeepAliveMessage(struct RSerPoolMessage* message) { uint32_t* identifier; if(beginMessage(message, AHT_ENDPOINT_KEEP_ALIVE, message->Flags & AHF_ENDPOINT_KEEP_ALIVE_HOME, PPID_ASAP) == NULL) { return(false); } identifier = (uint32_t*)getSpace(message, sizeof(uint32_t)); if(identifier == NULL) { return(false); } *identifier = htonl(message->RegistrarIdentifier); if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } /* ------ Custom parameter ------ */ if(message->Identifier != 0) { if(createPoolElementIdentifierParameter(message, message->Identifier) == false) { return(false); } } /* ------------------------------ */ return(finishMessage(message)); } /* ###### Create endpoint keepalive acknowledgement message ############## */ static bool createEndpointKeepAliveAckMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_ENDPOINT_KEEP_ALIVE_ACK, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPoolElementIdentifierParameter(message, message->Identifier) == false) { return(false); } return(finishMessage(message)); } /* ###### Create endpoint keepalive message ############################## */ static bool createEndpointUnreachableMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_ENDPOINT_UNREACHABLE, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPoolElementIdentifierParameter(message, message->Identifier) == false) { return(false); } return(finishMessage(message)); } /* ###### Create registration message #################################### */ static bool createRegistrationMessage(struct RSerPoolMessage* message) { CHECK(message->PoolElementPtr->RegistratorTransport == NULL); if(beginMessage(message, AHT_REGISTRATION, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPoolElementParameter(message, message->PoolElementPtr, false) == false) { return(false); } if(message->Error != 0x00) { if(createErrorParameter(message) == false) { return(false); } } return(finishMessage(message)); } /* ###### Create registration response message ########################### */ static bool createRegistrationResponseMessage(struct RSerPoolMessage* message) { if(message->PoolElementPtr == NULL) { LOG_ERROR fputs("Invalid parameters\n", stdlog); LOG_END_FATAL return(false); } if(beginMessage(message, AHT_REGISTRATION_RESPONSE, message->Flags & AHF_REGISTRATION_REJECT, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPoolElementIdentifierParameter(message, message->Identifier) == false) { return(false); } if(message->Error != 0x00) { if(createErrorParameter(message) == false) { return(false); } } return(finishMessage(message)); } /* ###### Create deregistration message ################################## */ static bool createDeregistrationMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_DEREGISTRATION, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPoolElementIdentifierParameter(message, message->Identifier) == false) { return(false); } return(finishMessage(message)); } /* ###### Create deregistration response message ######################### */ static bool createDeregistrationResponseMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_DEREGISTRATION_RESPONSE, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPoolElementIdentifierParameter(message, message->Identifier) == false) { return(false); } if(message->Error != 0x00) { if(createErrorParameter(message) == false) { return(false); } } return(finishMessage(message)); } /* ###### Create handle resolution message ################################# */ static bool createHandleResolutionMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_HANDLE_RESOLUTION, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(message->Addresses != 0) { if(createHandleResolutionParameter(message, message->Addresses) == false) { return(false); } } return(finishMessage(message)); } /* ###### Create handle resolution response message ######################## */ static bool createHandleResolutionResponseMessage(struct RSerPoolMessage* message) { size_t i; CHECK(message->PoolElementPtrArraySize <= MAX_MAX_HANDLE_RESOLUTION_ITEMS); if(beginMessage(message, AHT_HANDLE_RESOLUTION_RESPONSE, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(message->Error == 0x00) { if(createPolicyParameter(message, &message->PolicySettings) == false) { return(false); } for(i = 0;i < message->PoolElementPtrArraySize;i++) { if(createPoolElementParameter(message, message->PoolElementPtrArray[i], false) == false) { return(false); } } } else { if(createErrorParameter(message) == false) { return(false); } } return(finishMessage(message)); } /* ###### Create business card message #################################### */ static bool createBusinessCardMessage(struct RSerPoolMessage* message) { size_t i; CHECK(message->PoolElementPtrArraySize > 0); CHECK(message->PoolElementPtrArraySize < MAX_MAX_HANDLE_RESOLUTION_ITEMS); if(beginMessage(message, AHT_BUSINESS_CARD, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPolicyParameter(message, &message->PolicySettings) == false) { return(false); } for(i = 0;i < message->PoolElementPtrArraySize;i++) { if(createPoolElementParameter(message, message->PoolElementPtrArray[i], false) == false) { return(false); } } return(finishMessage(message)); } /* ###### Create server announce message ################################## */ static bool createServerAnnounceMessage(struct RSerPoolMessage* message) { uint32_t* identifier; if(beginMessage(message, AHT_SERVER_ANNOUNCE, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } identifier = (uint32_t*)getSpace(message, sizeof(uint32_t)); if(identifier == NULL) { return(false); } *identifier = htonl(message->RegistrarIdentifier); return(finishMessage(message)); } /* ###### Create cookie message ########################################### */ static bool createCookieMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_COOKIE, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createCookieParameter(message, message->CookiePtr, message->CookieSize) == false) { return(false); } return(finishMessage(message)); } /* ###### Create cookie echo message ###################################### */ static bool createCookieEchoMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_COOKIE_ECHO, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createCookieParameter(message, message->CookiePtr, message->CookieSize) == false) { return(false); } return(finishMessage(message)); } /* ###### Create peer presence ########################################### */ static bool createPresenceMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; if(beginMessage(message, EHT_PRESENCE, message->Flags & EHF_PRESENCE_REPLY_REQUIRED, PPID_ENRP) == NULL) { return(false); } sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { return(false); } sp->sp_sender_id = htonl(message->SenderID); sp->sp_receiver_id = htonl(message->ReceiverID); if(createHandlespaceChecksumParameter(message, message->Checksum) == false) { return(false); } if(createServerInformationParameter(message, message->PeerListNodePtr) == false) { return(false); } return(finishMessage(message)); } /* ###### Create peer list request ####################################### */ static bool createListRequestMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; if(beginMessage(message, EHT_LIST_REQUEST, message->Flags & 0x00, PPID_ENRP) == NULL) { return(false); } sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { return(false); } sp->sp_sender_id = htonl(message->SenderID); sp->sp_receiver_id = htonl(message->ReceiverID); return(finishMessage(message)); } /* ###### Create peer list response ###################################### */ static bool createListResponseMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; struct ST_CLASS(PeerListNode)* peerListNode; size_t oldPosition; if(message->PeerListPtr == NULL) { LOG_ERROR fputs("Invalid parameters\n", stdlog); LOG_END_FATAL return(false); } if(beginMessage(message, EHT_LIST_RESPONSE, message->Flags & EHF_LIST_RESPONSE_REJECT, PPID_ENRP) == NULL) { return(false); } sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { return(false); } sp->sp_sender_id = htonl(message->SenderID); sp->sp_receiver_id = htonl(message->ReceiverID); peerListNode = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)( &message->PeerListPtr->List); while(peerListNode != NULL) { /* The draft does not say what to do when the number of peers exceeds the message size -> We fill as much entries as possible and reply this partial list. This is better than to do nothing! */ oldPosition = message->Position; if(createServerInformationParameter(message, peerListNode) == false) { message->Position = oldPosition; break; } peerListNode = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)( &message->PeerListPtr->List, peerListNode); } return(finishMessage(message)); } /* ###### Create peer handle table request ################################# */ static bool createHandleTableRequestMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; if(beginMessage(message, EHT_HANDLE_TABLE_REQUEST, message->Flags & EHF_HANDLE_TABLE_REQUEST_OWN_CHILDREN_ONLY, PPID_ENRP) == NULL) { return(false); } sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { return(false); } sp->sp_sender_id = htonl(message->SenderID); sp->sp_receiver_id = htonl(message->ReceiverID); return(finishMessage(message)); } /* ###### Create peer handle table response ################################ */ static bool createHandleTableResponseMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; struct ST_CLASS(HandleTableExtract)* hte = NULL; struct PoolHandle* lastPoolHandle; unsigned int flags; int result; size_t i; size_t oldPosition; struct rserpool_header* header; header = beginMessage(message, EHT_HANDLE_TABLE_RESPONSE, message->Flags & EHF_HANDLE_TABLE_RESPONSE_REJECT, PPID_ENRP); if(header == NULL) { return(false); } sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { return(false); } sp->sp_sender_id = htonl(message->SenderID); sp->sp_receiver_id = htonl(message->ReceiverID); if(message->PeerListNodePtr) { flags = (message->Action & EHF_HANDLE_TABLE_REQUEST_OWN_CHILDREN_ONLY) ? HTEF_OWNCHILDSONLY : 0; hte = (struct ST_CLASS(HandleTableExtract)*)message->PeerListNodePtr->UserData; if(hte == NULL) { flags |= HTEF_START; hte = (struct ST_CLASS(HandleTableExtract)*)malloc(sizeof(struct ST_CLASS(HandleTableExtract))); if(hte == NULL) { return(false); } message->PeerListNodePtr->UserData = hte; } oldPosition = message->Position; result = ST_CLASS(poolHandlespaceManagementGetHandleTable)( message->HandlespacePtr, message->HandlespacePtr->Handlespace.HomeRegistrarIdentifier, hte,flags, message->MaxElementsPerHTRequest); if(result > 0) { lastPoolHandle = NULL; for(i = 0;i < hte->PoolElementNodes;i++) { LOG_VERBOSE2 ST_CLASS(poolElementNodePrint)(hte->PoolElementNodeArray[i], stdlog, ~0); fputs("\n", stdlog); LOG_END if(lastPoolHandle != &hte->PoolElementNodeArray[i]->OwnerPoolNode->Handle) { lastPoolHandle = &hte->PoolElementNodeArray[i]->OwnerPoolNode->Handle; oldPosition = message->Position; if(createPoolHandleParameter(message, lastPoolHandle) == false) { if(i < 1) { return(false); } message->Position = oldPosition; header->ah_flags |= EHF_HANDLE_TABLE_RESPONSE_MORE_TO_SEND; break; } } CHECK(hte->PoolElementNodeArray[i]->RegistratorTransport != NULL); if(createPoolElementParameter(message, hte->PoolElementNodeArray[i], true) == false) { if(i < 1) { return(false); } message->Position = oldPosition; header->ah_flags |= EHF_HANDLE_TABLE_RESPONSE_MORE_TO_SEND; break; } oldPosition = message->Position; hte->LastPoolHandle = hte->PoolElementNodeArray[i]->OwnerPoolNode->Handle; hte->LastPoolElementIdentifier = hte->PoolElementNodeArray[i]->Identifier; } if((hte->PoolElementNodes == min(message->MaxElementsPerHTRequest, NTE_MAX_POOL_ELEMENT_NODES)) || (i != hte->PoolElementNodes)) { header->ah_flags |= EHF_HANDLE_TABLE_RESPONSE_MORE_TO_SEND; } } if(!(header->ah_flags & EHF_HANDLE_TABLE_RESPONSE_MORE_TO_SEND)) { free(message->PeerListNodePtr->UserData); message->PeerListNodePtr->UserData = NULL; } } return(finishMessage(message)); } /* ###### Create peer name update ######################################## */ static bool createHandleUpdateMessage(struct RSerPoolMessage* message) { struct rserpool_handleupdateparameter* pnup; CHECK(message->PoolElementPtr->RegistratorTransport != NULL); if(beginMessage(message, EHT_HANDLE_UPDATE, message->Flags & EHF_TAKEOVER_SUGGESTED, PPID_ENRP) == NULL) { return(false); } pnup = (struct rserpool_handleupdateparameter*)getSpace(message, sizeof(struct rserpool_handleupdateparameter)); if(pnup == NULL) { return(false); } pnup->pnup_sender_id = htonl(message->SenderID); pnup->pnup_receiver_id = htonl(message->ReceiverID); pnup->pnup_update_action = htons(message->Action); pnup->pnup_pad = 0x0000; if(createPoolHandleParameter(message, &message->Handle) == false) { return(false); } if(createPoolElementParameter(message, message->PoolElementPtr, true) == false) { return(false); } return(finishMessage(message)); } /* ###### Create peer init takeover ###################################### */ static bool createInitTakeoverMessage(struct RSerPoolMessage* message) { struct rserpool_targetparameter* tp; if(beginMessage(message, EHT_INIT_TAKEOVER, message->Flags & 0x00, PPID_ENRP) == NULL) { return(false); } tp = (struct rserpool_targetparameter*)getSpace(message, sizeof(struct rserpool_targetparameter)); if(tp == NULL) { return(false); } tp->tp_sender_id = htonl(message->SenderID); tp->tp_receiver_id = htonl(message->ReceiverID); tp->tp_target_id = htonl(message->RegistrarIdentifier); return(finishMessage(message)); } /* ###### Create peer init takeover acknowledgement ###################### */ static bool createInitTakeoverAckMessage(struct RSerPoolMessage* message) { struct rserpool_targetparameter* tp; if(beginMessage(message, EHT_INIT_TAKEOVER_ACK, message->Flags & 0x00, PPID_ENRP) == NULL) { return(false); } tp = (struct rserpool_targetparameter*)getSpace(message, sizeof(struct rserpool_targetparameter)); if(tp == NULL) { return(false); } tp->tp_sender_id = htonl(message->SenderID); tp->tp_receiver_id = htonl(message->ReceiverID); tp->tp_target_id = htonl(message->RegistrarIdentifier); return(finishMessage(message)); } /* ###### Create peer takeover server #################################### */ static bool createTakeoverServerMessage(struct RSerPoolMessage* message) { struct rserpool_targetparameter* tp; if(beginMessage(message, EHT_TAKEOVER_SERVER, message->Flags & 0x00, PPID_ENRP) == NULL) { return(false); } tp = (struct rserpool_targetparameter*)getSpace(message, sizeof(struct rserpool_targetparameter)); if(tp == NULL) { return(false); } tp->tp_sender_id = htonl(message->SenderID); tp->tp_receiver_id = htonl(message->ReceiverID); tp->tp_target_id = htonl(message->RegistrarIdentifier); return(finishMessage(message)); } /* ###### Create peer error ############################################## */ static bool createENRPErrorMessage(struct RSerPoolMessage* message) { struct rserpool_serverparameter* sp; if(beginMessage(message, EHT_ERROR, message->Flags & 0x00, PPID_ENRP) == NULL) { return(false); } sp = (struct rserpool_serverparameter*)getSpace(message, sizeof(struct rserpool_serverparameter)); if(sp == NULL) { return(false); } sp->sp_sender_id = htonl(message->SenderID); sp->sp_receiver_id = htonl(message->ReceiverID); if(createErrorParameter(message) == false) { return(false); } return(finishMessage(message)); } /* ###### Create peer error ############################################## */ static bool createASAPErrorMessage(struct RSerPoolMessage* message) { if(beginMessage(message, AHT_ERROR, message->Flags & 0x00, PPID_ASAP) == NULL) { return(false); } if(createErrorParameter(message) == false) { return(false); } return(finishMessage(message)); } /* ###### Convert RSerPoolMessage to packet ############################## */ size_t rserpoolMessage2Packet(struct RSerPoolMessage* message) { rserpoolMessageClearBuffer(message); switch(message->Type) { /* ====== ASAP ===================================================== */ case AHT_HANDLE_RESOLUTION: LOG_VERBOSE2 fputs("Creating HandleResolution message...\n", stdlog); LOG_END if(createHandleResolutionMessage(message) == true) { return(message->Position); } break; case AHT_HANDLE_RESOLUTION_RESPONSE: LOG_VERBOSE2 fputs("Creating HandleResolutionResponse message...\n", stdlog); LOG_END if(createHandleResolutionResponseMessage(message) == true) { return(message->Position); } break; case AHT_ENDPOINT_KEEP_ALIVE: LOG_VERBOSE2 fputs("Creating EndpointKeepAlive message...\n", stdlog); LOG_END if(createEndpointKeepAliveMessage(message) == true) { return(message->Position); } break; case AHT_ENDPOINT_KEEP_ALIVE_ACK: LOG_VERBOSE2 fputs("Creating EndpointKeepAliveAck message...\n", stdlog); LOG_END if(createEndpointKeepAliveAckMessage(message) == true) { return(message->Position); } break; case AHT_SERVER_ANNOUNCE: LOG_VERBOSE2 fputs("Creating ServerAnnounce message...\n", stdlog); LOG_END if(createServerAnnounceMessage(message) == true) { return(message->Position); } break; case AHT_REGISTRATION: LOG_VERBOSE2 fputs("Creating Registration message...\n", stdlog); LOG_END if(createRegistrationMessage(message) == true) { return(message->Position); } break; case AHT_REGISTRATION_RESPONSE: LOG_VERBOSE2 fputs("Creating RegistrationResponse message...\n", stdlog); LOG_END if(createRegistrationResponseMessage(message) == true) { return(message->Position); } break; case AHT_DEREGISTRATION: LOG_VERBOSE2 fputs("Creating Deregistration message...\n", stdlog); LOG_END if(createDeregistrationMessage(message) == true) { return(message->Position); } break; case AHT_DEREGISTRATION_RESPONSE: LOG_VERBOSE2 fputs("Creating DeregistrationResponse message...\n", stdlog); LOG_END if(createDeregistrationResponseMessage(message) == true) { return(message->Position); } break; case AHT_COOKIE: LOG_VERBOSE2 fputs("Creating Cookie message...\n", stdlog); LOG_END if(createCookieMessage(message) == true) { return(message->Position); } break; case AHT_COOKIE_ECHO: LOG_VERBOSE2 fputs("Creating CookieEcho message...\n", stdlog); LOG_END if(createCookieEchoMessage(message) == true) { return(message->Position); } break; case AHT_BUSINESS_CARD: LOG_VERBOSE2 fputs("Creating BusinessCard message...\n", stdlog); LOG_END if(createBusinessCardMessage(message) == true) { return(message->Position); } break; case AHT_ENDPOINT_UNREACHABLE: LOG_VERBOSE2 fputs("Creating EndpointUnreachable message...\n", stdlog); LOG_END if(createEndpointUnreachableMessage(message) == true) { return(message->Position); } break; case AHT_ERROR: LOG_VERBOSE2 fputs("Creating Error (ASAP) message...\n", stdlog); LOG_END if(createASAPErrorMessage(message) == true) { return(message->Position); } break; /* ====== ENRP ==================================================== */ case EHT_PRESENCE: LOG_VERBOSE2 fputs("Creating PeerPresence message...\n", stdlog); LOG_END if(createPresenceMessage(message) == true) { return(message->Position); } break; case EHT_HANDLE_TABLE_REQUEST: LOG_VERBOSE2 fputs("Creating HandleTableRequest message...\n", stdlog); LOG_END if(createHandleTableRequestMessage(message) == true) { return(message->Position); } break; case EHT_HANDLE_TABLE_RESPONSE: LOG_VERBOSE2 fputs("Creating HandleTableResponse message...\n", stdlog); LOG_END if(createHandleTableResponseMessage(message) == true) { return(message->Position); } break; case EHT_HANDLE_UPDATE: LOG_VERBOSE2 fputs("Creating HandleUpdate message...\n", stdlog); LOG_END if(createHandleUpdateMessage(message) == true) { return(message->Position); } break; case EHT_LIST_REQUEST: LOG_VERBOSE2 fputs("Creating ListRequest message...\n", stdlog); LOG_END if(createListRequestMessage(message) == true) { return(message->Position); } break; case EHT_LIST_RESPONSE: LOG_VERBOSE2 fputs("Creating ListResponse message...\n", stdlog); LOG_END if(createListResponseMessage(message) == true) { return(message->Position); } break; case EHT_INIT_TAKEOVER: LOG_VERBOSE2 fputs("Creating PeerInitTakeover message...\n", stdlog); LOG_END if(createInitTakeoverMessage(message) == true) { return(message->Position); } break; case EHT_INIT_TAKEOVER_ACK: LOG_VERBOSE2 fputs("Creating PeerInitTakeoverAck message...\n", stdlog); LOG_END if(createInitTakeoverAckMessage(message) == true) { return(message->Position); } break; case EHT_TAKEOVER_SERVER: LOG_VERBOSE2 fputs("Creating PeerTakeoverServer message...\n", stdlog); LOG_END if(createTakeoverServerMessage(message) == true) { return(message->Position); } break; case EHT_ERROR: LOG_VERBOSE2 fputs("Creating Error (ENRP) message...\n", stdlog); LOG_END if(createENRPErrorMessage(message) == true) { return(message->Position); } break; /* ====== Unknown ================================================= */ default: LOG_ERROR fprintf(stdlog, "Unknown message type $%04x\n", message->Type); LOG_END_FATAL break; } LOG_ERROR fputs("Message creation failed\n", stdlog); LOG_END_FATAL return(0); } rsplib-3.0.1/rsplib/rserpoolmessagecreator.h0000664000175000017500000000327511777021056016204 00000000000000/* $Id: rserpoolmessagecreator.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOLMESSAGECREATOR_H #define RSERPOOLMESSAGECREATOR_H #include "tdtypes.h" #include "rserpoolmessage.h" #ifdef __cplusplus extern "C" { #endif /** * Create packet from RSerPoolMessage structure. * * @param message RSerPoolMessage. * @return Size of packet or 0 in case of error. */ size_t rserpoolMessage2Packet(struct RSerPoolMessage* message); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/netdouble.c0000664000175000017500000001204011777021056013354 00000000000000/* $Id: netdouble.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include #include "netdouble.h" #include "netutilities.h" #include "debug.h" #ifndef HAVE_IEEE_FP #warning Is this code really working correctly? #define DBL_EXP_BITS 11 #define DBL_EXP_BIAS 1023 #define DBL_EXP_MAX ((1L << DBL_EXP_BITS) - 1 - DBL_EXP_BIAS) #define DBL_EXP_MIN (1 - DBL_EXP_BIAS) #define DBL_FRC1_BITS 20 #define DBL_FRC2_BITS 32 #define DBL_FRC_BITS (DBL_FRC1_BITS + DBL_FRC2_BITS) struct IeeeDouble { #if __BYTE_ORDER == __BIG_ENDIAN unsigned int s : 1; unsigned int e : 11; unsigned int f1 : 20; unsigned int f2 : 32; #elif __BYTE_ORDER == __LITTLE_ENDIAN unsigned int f2 : 32; unsigned int f1 : 20; unsigned int e : 11; unsigned int s : 1; #else #error Unknown byteorder settings! #endif }; /* ###### Convert double to machine-independent form ##################### */ network_double_t doubleToNetwork(const double d) { struct IeeeDouble ieee; if(isnan(d)) { // NaN ieee.s = 0; ieee.e = DBL_EXP_MAX + DBL_EXP_BIAS; ieee.f1 = 1; ieee.f2 = 1; } else if(isinf(d)) { // +/- infinity ieee.s = (d < 0); ieee.e = DBL_EXP_MAX + DBL_EXP_BIAS; ieee.f1 = 0; ieee.f2 = 0; } else if(d == 0.0) { // zero ieee.s = 0; ieee.e = 0; ieee.f1 = 0; ieee.f2 = 0; } else { // finite number int exp; double frac = frexp (fabs (d), &exp); while (frac < 1.0 && exp >= DBL_EXP_MIN) { frac = ldexp (frac, 1); --exp; } if (exp < DBL_EXP_MIN) { // denormalized number (or zero) frac = ldexp (frac, exp - DBL_EXP_MIN); exp = 0; } else { // normalized number CHECK((1.0 <= frac) && (frac < 2.0)); CHECK((DBL_EXP_MIN <= exp) && (exp <= DBL_EXP_MAX)); exp += DBL_EXP_BIAS; frac -= 1.0; } ieee.s = (d < 0); ieee.e = exp; ieee.f1 = (unsigned long)ldexp (frac, DBL_FRC1_BITS); ieee.f2 = (unsigned long)ldexp (frac, DBL_FRC_BITS); } return(hton64(*((network_double_t*)&ieee))); } /* ###### Convert machine-independent form to double ##################### */ double networkToDouble(network_double_t value) { network_double_t hValue; struct IeeeDouble* ieee; double d; hValue = ntoh64(value); ieee = (struct IeeeDouble*)&hValue; if(ieee->e == 0) { if((ieee->f1 == 0) && (ieee->f2 == 0)) { // zero d = 0.0; } else { // denormalized number d = ldexp((double)ieee->f1, -DBL_FRC1_BITS + DBL_EXP_MIN); d += ldexp((double)ieee->f2, -DBL_FRC_BITS + DBL_EXP_MIN); if (ieee->s) { d = -d; } } } else if(ieee->e == DBL_EXP_MAX + DBL_EXP_BIAS) { if((ieee->f1 == 0) && (ieee->f2 == 0)) { // +/- infinity d = (ieee->s) ? -INFINITY : INFINITY; } else { // not a number d = NAN; } } else { // normalized number d = ldexp(ldexp((double)ieee->f1, -DBL_FRC1_BITS) + ldexp((double)ieee->f2, -DBL_FRC_BITS) + 1.0, ieee->e - DBL_EXP_BIAS); if(ieee->s) { d = -d; } } return(d); } #else union DoubleIntUnion { double Double; unsigned long long Integer; }; /* ###### Convert double to machine-independent form ##################### */ network_double_t doubleToNetwork(const double d) { union DoubleIntUnion valueUnion; valueUnion.Double = d; return(hton64(valueUnion.Integer)); } /* ###### Convert machine-independent form to double ##################### */ double networkToDouble(network_double_t value) { union DoubleIntUnion valueUnion; valueUnion.Integer = ntoh64(value); return(valueUnion.Double); } #endif rsplib-3.0.1/rsplib/netdouble.h0000664000175000017500000000304411777021056013365 00000000000000/* $Id: netdouble.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef NETDOUBLE_H #define NETDOUBLE_H #ifdef __cplusplus extern "C" { #endif typedef unsigned long long network_double_t; network_double_t doubleToNetwork(double value); double networkToDouble(const network_double_t value); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/rserpool-internals.h0000664000175000017500000001155211777021056015251 00000000000000/* $Id: rserpool-internals.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOLINTERNALS_H #define RSERPOOLINTERNALS_H #include "rserpool.h" #ifdef __cplusplus extern "C" { #endif struct TagItem; #define TAG_PoolElement_Identifier (TAG_USER + 1000) #define TAG_RspSession_ConnectTimeout (TAG_USER + 2000) #define TAG_RspSession_HandleResolutionRetryDelay (TAG_USER + 2001) #define TAG_RspLib_CacheElementTimeout (TAG_USER + 4000) #define TAG_RspLib_RegistrarAnnounceAddress (TAG_USER + 4001) #define TAG_RspLib_RegistrarAnnounceTimeout (TAG_USER + 4002) #define TAG_RspLib_RegistrarConnectMaxTrials (TAG_USER + 4003) #define TAG_RspLib_RegistrarConnectTimeout (TAG_USER + 4004) #define TAG_RspLib_RegistrarRequestMaxTrials (TAG_USER + 4005) #define TAG_RspLib_RegistrarRequestTimeout (TAG_USER + 4006) #define TAG_RspLib_RegistrarResponseTimeout (TAG_USER + 4007) unsigned int rsp_pe_registration_tags(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo* rspAddrInfo, const struct rsp_loadinfo* rspLoadInfo, const unsigned int registrationLife, const int flags, struct TagItem* tags); unsigned int rsp_pe_deregistration_tags(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier, const int flags, struct TagItem* tags); unsigned int rsp_pe_failure_tags(const unsigned char* poolHandle, const size_t poolHandleSize, const uint32_t identifier, struct TagItem* tags); int rsp_getaddrinfo_tags(const unsigned char* poolHandle, const size_t poolHandleSize, struct rsp_addrinfo** rserpoolAddrInfo, const size_t items, const unsigned int staleCacheValue, struct TagItem* tags); int rsp_register_tags(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const struct rsp_loadinfo* loadinfo, const unsigned int reregistrationInterval, const int flags, struct TagItem* tags); int rsp_deregister_tags(int sd, int flags, struct TagItem* tags); int rsp_accept_tags(int sd, int timeout, struct TagItem* tags); int rsp_connect_tags(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const unsigned int staleCacheValue, struct TagItem* tags); int rsp_forcefailover_tags(int sd, const unsigned int flags, const unsigned int staleCacheValue, struct TagItem* tags); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/tagitem.c0000664000175000017500000001646511777021056013044 00000000000000/* $Id: tagitem.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "tagitem.h" /* ###### Allocate tag items ############################################# */ struct TagItem* tagListAllocate(const size_t items) { return((struct TagItem*)calloc(items,sizeof(struct TagItem))); } /* ###### Free tag items ################################################# */ void tagListFree(struct TagItem* tagList) { if(tagList != NULL) { free(tagList); } } /* ###### Count tag items ################################################ */ size_t tagListGetSize(struct TagItem* tagList) { size_t count = 0; if(tagList != NULL) { while(tagList[count].Tag != TAG_DONE) { count++; } return(count + 1); } return(0); } /* ###### Duplicate tag items ############################################ */ struct TagItem* tagListDuplicate(struct TagItem* tagList) { const size_t count = tagListGetSize(tagList); struct TagItem* copy = tagListAllocate(count); size_t i; if(copy) { for(i = 0;i < count;i++) { copy[i].Tag = tagList[i].Tag; copy[i].Data = tagList[i].Data; } } return(copy); } /* ###### Duplicate tag items with filtering ############################# */ struct TagItem* tagListDuplicateFilter(struct TagItem* tagList, const tag_t* filterArray) { const size_t count = tagListGetSize(tagList); struct TagItem* copy = tagListAllocate(count); size_t i, j, k=0; if(copy) { LOG_VERBOSE5 fputs("Filter-copying tag list...\n", stdlog); LOG_END for(i = 0, j = 0;i < count;i++) { while(filterArray[k] != TAG_DONE) { if(tagList[i].Tag == filterArray[k]) { LOG_VERBOSE5 fprintf(stdlog,"Copying tag #%u\n", tagList[i].Tag); LOG_END copy[j].Tag = tagList[i].Tag; copy[j].Data = tagList[i].Data; j++; break; } k++; } } copy[j++].Tag = TAG_DONE; if(j < count) { free((void*)©[j]); } } return(copy); } /** * Create a new tag item array containing all tag items of * the given list which belong to any tag given in the filter * array. * * @param tagList TagItem array. * @return TagItem array or NULL in case of error. */ struct TagItem* tagListDuplicateFilter(struct TagItem* tagList, const tag_t* filterArray); /* ###### Get next tag item ############################################## */ struct TagItem* tagListNext(struct TagItem* tagList) { struct TagItem* tagListPtr = tagList; bool updated = false; while(true) { if(tagListPtr == NULL) { return(NULL); } switch (tagListPtr->Tag) { case TAG_MORE: if(!(tagListPtr = (struct TagItem *)tagListPtr->Data)) { return(NULL); } continue; break; case TAG_IGNORE: break; case TAG_END: return(NULL); break; case TAG_SKIP: tagListPtr += (long)tagListPtr->Data; break; default: if(updated) { return(tagListPtr); } break; } tagListPtr++; updated = true; } } /* ###### Find tag item ################################################## */ struct TagItem* tagListFind(struct TagItem* tagList, const tag_t tag) { struct TagItem* tagListPtr = tagList; LOG_VERBOSE5 fprintf(stdlog,"Looking for tag #%u...\n",tag); LOG_END while(tagListPtr != NULL) { if(tagListPtr->Tag == tag) { LOG_VERBOSE5 fputs("Tag found\n",stdlog); LOG_END return(tagListPtr); } tagListPtr = tagListNext(tagListPtr); } LOG_VERBOSE5 fputs("Tag not found\n",stdlog); LOG_END return(NULL); } /* ###### Get tag data ################################################### */ tagdata_t tagListGetData(struct TagItem* tagList, const tag_t tag, const tagdata_t defaultValue) { struct TagItem* found; found = tagListFind(tagList,tag); if(found != NULL) { LOG_VERBOSE5 fprintf(stdlog,"Get value %u ($%x) for tag #%u\n", (unsigned int)found->Data, (unsigned int)found->Data, tag); LOG_END return(found->Data); } LOG_VERBOSE5 fprintf(stdlog,"Using default value %u ($%x) for tag #%u\n", (unsigned int)defaultValue, (unsigned int)defaultValue, tag); LOG_END return(defaultValue); } /* ###### Set tag data ################################################### */ struct TagItem* tagListSetData(struct TagItem* tagList, const tag_t tag, const tagdata_t value) { struct TagItem* found; found = tagListFind(tagList,tag); if(found != NULL) { LOG_VERBOSE5 fprintf(stdlog,"Set value %u ($%x) for tag #%u\n", (unsigned int)value, (unsigned int)value, tag); LOG_END found->Data = value; } return(found); } /* ###### Print tag items ################################################ */ void tagListPrint(struct TagItem* tagList, FILE* fd) { struct TagItem* tagListPtr = tagList; unsigned int number = 1; fputs("TagList: ",fd); if(tagListPtr != NULL) { fputs("\n",fd); while(tagListPtr != NULL) { fprintf(fd," %5d: tag %9d -> %9d ($%08x)\n", number++, tagListPtr->Tag, (unsigned int)tagListPtr->Data, (unsigned int)tagListPtr->Data); tagListPtr = tagListNext(tagListPtr); } } else { fputs("(empty)\n",fd); } } rsplib-3.0.1/rsplib/tagitem.h0000664000175000017500000001213711777021056013041 00000000000000/* $Id: tagitem.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef TAGITEM_H #define TAGITEM_H #include #include #ifdef __cplusplus extern "C" { #endif #define TAG_DONE 0 /* Terminates array of TagItems. */ #define TAG_END 0 /* Synonym for TAG_DONE. */ #define TAG_IGNORE 1 /* Ignore this item. */ #define TAG_MORE 2 /* Data is pointer to another array of TagItems, current array is terminated. */ #define TAG_SKIP 3 /* Skip this and the next Data items. */ #define TAG_USER 1000000 /* First usable tag for user data. */ typedef unsigned int tag_t; typedef unsigned long tagdata_t; struct TagItem { tag_t Tag; tagdata_t Data; }; /** * Allocate and clear tag item array. The array has to be freed using * tagListFree(). * * @param items Number of tag items to allocate. * @return TagItem array or NULL in case of error. * * @see freeListAllocate */ struct TagItem* tagListAllocate(const size_t items); /** * Free tag item array allocated by tagListAllocate(). * * @param tagList TagItem array. * * @see tagListAllocate */ void tagListFree(struct TagItem* tagList); /** * Get size of tag item array (in number of tag items). * * @param tagList TagItem array. * @return Size of tag item array. */ size_t tagListGetSize(struct TagItem* tagList); /** * Duplicate tag item array. * * @param tagList TagItem array. * @return TagItem array or NULL in case of error. */ struct TagItem* tagListDuplicate(struct TagItem* tagList); /** * Create a new tag item array containing all tag items of * the given list which belong to any tag given in the filter * array. * * @param tagList TagItem array. * @return TagItem array or NULL in case of error. */ struct TagItem* tagListDuplicateFilter(struct TagItem* tagList, const tag_t* filterArray); /** * Get next tag item in list. * * @param tagList TagItem array. * @return Next TagItem or NULL if it is last. */ struct TagItem* tagListNext(struct TagItem* tagList); /** * Find tag item with given tag in tag list. * * @param tagList TagItem array. * @param tag Tag to search. * @return TagItem or NULL if not found. */ struct TagItem* tagListFind(struct TagItem* tagList, const tag_t tag); /** * Get data of given tag in tag list or default value. * * @param tagList TagItem array. * @param tag Tag to search. * @param defaultValue Value to return if tag is not found. * @return Data of tag item found or given default value when not found. */ tagdata_t tagListGetData(struct TagItem* tagList, const tag_t tag, const tagdata_t defaultValue); /** * Set data of given tag in tag list or default value. If the given * tag does not exist, no change is made. * * @param tagList TagItem array. * @param tag Tag to search. * @param value Value to set tag's value to. * @return TagItem if item has been found; NULL otherwise. */ struct TagItem* tagListSetData(struct TagItem* tagList, const tag_t tag, const tagdata_t value); /** * Print tag list. * * @param tagList TagItem array. * @param fd File to write tag list to (e.g. stdout, stderr, ...). */ void tagListPrint(struct TagItem* tagList, FILE* fd); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/server0000775000175000017500000000016711777021056012472 00000000000000#!/bin/sh -e echo >&2 "WARNING: Usage of \"server\" is deprecated, it has been renamed to \"rspserver\"!" rspserver $@ rsplib-3.0.1/rsplib/sha1.c0000664000175000017500000001562211777021056012240 00000000000000/* $Id: sha1.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * Based on Linux kernel SHA-1 code: * Copyright (C) Jean-Luc Cooke * Copyright (C) Andrew McDonald * Copyright (C) Kyle McMartin * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "sha1.h" #include #include static inline uint32_t rol(uint32_t value, uint32_t bits) { return (((value) << (bits)) | ((value) >> (32 - (bits)))); } /* blk0() and blk() perform the initial expand. */ /* I got the idea of expanding during the round function from SSLeay */ #define blk0(i) block32[i] #define blk(i) (block32[i&15] = rol(block32[(i+13)&15]^block32[(i+8)&15] \ ^block32[(i+2)&15]^block32[i&15],1)) /* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */ #define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5); \ w=rol(w,30); #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5); \ w=rol(w,30); #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30); #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5); \ w=rol(w,30); #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30); /* Hash a single 512-bit block. This is the core of the algorithm. */ static void sha1_transform(uint32_t *state, const uint8_t *in) { uint32_t a, b, c, d, e; uint32_t block32[16]; /* convert/copy data to workspace */ for (a = 0; a < sizeof(block32)/sizeof(uint32_t); a++) block32[a] = ntohl(((const uint32_t *)in)[a]); /* Copy context->state[] to working vars */ a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; /* 4 rounds of 20 operations each. Loop unrolled. */ R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); R3(a,b,c,d,e,40); R3(e,a,b,c,d,41); R3(d,e,a,b,c,42); R3(c,d,e,a,b,43); R3(b,c,d,e,a,44); R3(a,b,c,d,e,45); R3(e,a,b,c,d,46); R3(d,e,a,b,c,47); R3(c,d,e,a,b,48); R3(b,c,d,e,a,49); R3(a,b,c,d,e,50); R3(e,a,b,c,d,51); R3(d,e,a,b,c,52); R3(c,d,e,a,b,53); R3(b,c,d,e,a,54); R3(a,b,c,d,e,55); R3(e,a,b,c,d,56); R3(d,e,a,b,c,57); R3(c,d,e,a,b,58); R3(b,c,d,e,a,59); R4(a,b,c,d,e,60); R4(e,a,b,c,d,61); R4(d,e,a,b,c,62); R4(c,d,e,a,b,63); R4(b,c,d,e,a,64); R4(a,b,c,d,e,65); R4(e,a,b,c,d,66); R4(d,e,a,b,c,67); R4(c,d,e,a,b,68); R4(b,c,d,e,a,69); R4(a,b,c,d,e,70); R4(e,a,b,c,d,71); R4(d,e,a,b,c,72); R4(c,d,e,a,b,73); R4(b,c,d,e,a,74); R4(a,b,c,d,e,75); R4(e,a,b,c,d,76); R4(d,e,a,b,c,77); R4(c,d,e,a,b,78); R4(b,c,d,e,a,79); /* Add the working vars back into context.state[] */ state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; /* Wipe variables */ a = b = c = d = e = 0; memset (block32, 0x00, sizeof block32); } void sha1_init(struct sha1_ctx* ctx) { static const struct sha1_ctx initstate = { 0, { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 }, { 0, } }; *ctx = initstate; } void sha1_update(struct sha1_ctx* ctx, const uint8_t* data, unsigned int len) { unsigned int i, j; j = (ctx->count >> 3) & 0x3f; ctx->count += len << 3; if ((j + len) > 63) { memcpy(&ctx->buffer[j], data, (i = 64-j)); sha1_transform(ctx->state, ctx->buffer); for ( ; i + 63 < len; i += 64) { sha1_transform(ctx->state, &data[i]); } j = 0; } else i = 0; memcpy(&ctx->buffer[j], &data[i], len - i); } /* Add padding and return the message digest. */ void sha1_final(struct sha1_ctx* ctx, uint8_t *out) { uint32_t i, j, index, padlen; uint64_t t; uint8_t bits[8] = { 0, }; static const uint8_t padding[64] = { 0x80, }; t = ctx->count; bits[7] = 0xff & t; t>>=8; bits[6] = 0xff & t; t>>=8; bits[5] = 0xff & t; t>>=8; bits[4] = 0xff & t; t>>=8; bits[3] = 0xff & t; t>>=8; bits[2] = 0xff & t; t>>=8; bits[1] = 0xff & t; t>>=8; bits[0] = 0xff & t; /* Pad out to 56 mod 64 */ index = (ctx->count >> 3) & 0x3f; padlen = (index < 56) ? (56 - index) : ((64+56) - index); sha1_update(ctx, padding, padlen); /* Append length */ sha1_update(ctx, bits, sizeof bits); /* Store state in digest */ for (i = j = 0; i < 5; i++, j += 4) { uint32_t t2 = ctx->state[i]; out[j+3] = t2 & 0xff; t2>>=8; out[j+2] = t2 & 0xff; t2>>=8; out[j+1] = t2 & 0xff; t2>>=8; out[j ] = t2 & 0xff; } /* Wipe context */ memset(ctx, 0, sizeof *ctx); } unsigned long long sha1_computeHashOfFile(const char* filename, uint8_t* hash) { struct sha1_ctx ctx; uint8_t buffer[65536]; FILE* fh; ssize_t count; unsigned long long total = 0; sha1_init(&ctx); fh = fopen(filename, "r"); if(fh != NULL) { while(!feof(fh)) { count = fread(&buffer, 1, sizeof(buffer), fh); if(count > 0) { sha1_update(&ctx, buffer, count); } total += (unsigned long long)count; } fclose(fh); sha1_final(&ctx, hash); } return(total); } rsplib-3.0.1/rsplib/sha1.h0000664000175000017500000000347111777021056012244 00000000000000/* $Id: sha1.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SHA1_H #define SHA1_H #include #include #ifdef __cplusplus extern "C" { #endif #define SHA1_DIGEST_SIZE 20 #define SHA1_HMAC_BLOCK_SIZE 64 struct sha1_ctx { uint64_t count; uint32_t state[5]; uint8_t buffer[64]; }; void sha1_init(struct sha1_ctx* ctx); void sha1_update(struct sha1_ctx* ctx, const uint8_t* data, unsigned int len); void sha1_final(struct sha1_ctx* ctx, uint8_t* out); unsigned long long sha1_computeHashOfFile(const char* filename, uint8_t* hash); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/calcappclient.10000664000175000017500000001444411777021056014125 00000000000000.\" $Id: calcappclient.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt CalcAppClient 1 .Os CalcApp Client .\" ###### Name ############################################################# .Sh NAME .Nm calcappclient .Nd RSerPool Client (PU) for the CalcApp service .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm calcappclient .Op Fl poolhandle=pool_handle .Op Fl jobinterval=seconds .Op Fl jobsize=calculations .Op Fl keepalivetransmissioninterval=milliseconds .Op Fl keepalivetimeoutinterval=milliseconds .Op Fl object=name .Op Fl runtime=seconds .Op Fl scalar=scalar_file .Op Fl vector=vector_file .Op Fl cspinterval=milliseconds .Op Fl cspserver=address:port .Op Fl logappend=filename .Op Fl logcolor=on|off .Op Fl logfile=filename .Op Fl loglevel=0-9 .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm calcappclient is a Reliable Server Pooling (RSerPool) pool user (PU) for the CalcApp performance testing service. For a detailed description of the underlying protocol, see http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf . .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It Fl poolhandle=pool_handle Sets the PH to a non-default value; otherwise, the default setting is "CalcAppPool". .\" ====== Service parameters =============================================== .It Service Parameters: .Bl -tag -width indent .It Fl jobinterval=seconds Sets the job interval in seconds. Floating-point values (e.g. 30.125) are possible. .It Fl jobsize=seconds Sets the job size in seconds. Floating-point values (e.g. 8.75) are possible. .It Fl keepalivetransmissioninterval=milliseconds Sets the session keep-alive interval in milliseconds. .It Fl keepalivetimeoutinterval=milliseconds Sets the session keep-alive timeout in milliseconds. .It Fl object=name Sets the object name for scalar hierarchy. .It Fl runtime=seconds After the configured number of seconds, the service is shut down. Floating-point values (e.g. 30.125) are possible. .It Fl scalar=scalar_file Sets the name of vector scalar file. .It Fl vector=vector_file Sets the name of vector output file. .El .\" ====== ASAP Protocol ==================================================== .It ASAP Protocol Parameters: .Bl -tag -width indent .It Fl registrar=address:port Adds a static PR entry into the Registrar Table. It is possible to add multiple entries. .It Fl registrarannouncetimeout=milliseconds Sets the timeout for ASAP announces via multicast. .It Fl registrarconnecttimeout=milliseconds Sets the timeout for ASAP connection establishment. .It Fl registrarconnectmaxtrials=trials Sets the maximum number of ASAP connection establishment trials. .It Fl registrarrequesttimeout=milliseconds Sets the timeout for ASAP requests. .It Fl registrarresponsetimeout=milliseconds Sets the timeout for waiting to receive ASAP responses. .It Fl registrarrequestmaxtrials=trials Sets the maximum number of ASAP request trials. .El .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. By default, the content of the environment variable CSP_INTERVAL is used. If not defined, no CSP status reports will be sent. .It Fl cspserver=address:port Sets the address of a CSP monitor server. By default, the content of the environment variable CSP_SERVER is used. If not defined, no CSP status reports will be sent. .El .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm calcappclient uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/standardservices.cc0000664000175000017500000002564111777021056015115 00000000000000/* $Id: standardservices.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "standardservices.h" #include "netutilities.h" #include "timeutilities.h" #include "stringutilities.h" /* ########################################################################## #### ECHO #### ########################################################################## */ // ###### Constructor ####################################################### EchoServer::EchoServer() { } // ###### Destructor ######################################################## EchoServer::~EchoServer() { } // ###### Handle message #################################################### EventHandlingResult EchoServer::handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { printTimeStamp(stdout); printf("Echo %u bytes on session %u\n", (unsigned int)bufferSize, sessionID); ssize_t sent; sent = rsp_sendmsg(RSerPoolSocketDescriptor, buffer, bufferSize, 0, sessionID, ppid, streamID, 0, 0, 0); return((sent == (ssize_t)bufferSize) ? EHR_Okay : EHR_Abort); } /* ########################################################################## #### DISCARD #### ########################################################################## */ // ###### Constructor ####################################################### DiscardServer::DiscardServer() { } // ###### Destructor ######################################################## DiscardServer::~DiscardServer() { } // ###### Handle message #################################################### EventHandlingResult DiscardServer::handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { printTimeStamp(stdout); printf("Discard %u bytes on session %u\n", (unsigned int)bufferSize, sessionID); return(EHR_Okay); } /* ########################################################################## #### DAYTIME #### ########################################################################## */ // ###### Constructor ####################################################### DaytimeServer::DaytimeServer() { } // ###### Destructor ######################################################## DaytimeServer::~DaytimeServer() { } // ###### Handle notification ############################################### void DaytimeServer::handleNotification(const union rserpool_notification* notification) { if((notification->rn_header.rn_type == RSERPOOL_SESSION_CHANGE) && (notification->rn_session_change.rsc_state == RSERPOOL_SESSION_ADD)) { char daytime[128]; char microseconds[64]; const unsigned long long microTime = getMicroTime(); const time_t timeStamp = microTime / 1000000; const struct tm* timeptr = localtime(&timeStamp); strftime((char*)&daytime, sizeof(daytime), "%A, %d-%B-%Y %H:%M:%S", timeptr); snprintf((char*)µseconds, sizeof(microseconds), ".%06d\n", (unsigned int)(microTime % 1000000)); safestrcat((char*)&daytime, microseconds, sizeof(daytime)); rsp_sendmsg(RSerPoolSocketDescriptor, (char*)&daytime, strlen(daytime), 0, notification->rn_session_change.rsc_session, 0x00000000, 0, 0, 0, 0); #ifdef SOLARIS rsp_sendmsg(RSerPoolSocketDescriptor, NULL, 0, MSG_EOF, notification->rn_session_change.rsc_session, 0x00000000, 0, 0, 0, 0); #else rsp_sendmsg(RSerPoolSocketDescriptor, NULL, 0, 0, notification->rn_session_change.rsc_session, 0x00000000, 0, 0, SCTP_EOF, 0); #endif } } /* ########################################################################## #### CHARACTER GENERATOR #### ########################################################################## */ // ###### Constructor ####################################################### CharGenServer::CharGenServer(int rserpoolSocketDescriptor) : TCPLikeServer(rserpoolSocketDescriptor) { } // ###### Destructor ######################################################## CharGenServer::~CharGenServer() { } // ###### Handle notification ############################################### EventHandlingResult CharGenServer::initializeSession() { unsigned char buffer[1024]; size_t i; for(i = 0;i < sizeof(buffer);i++) { buffer[i] = (unsigned char)(30 + (i % (128 - 30))); } while(rsp_sendmsg(RSerPoolSocketDescriptor, (char*)&buffer, sizeof(buffer), 0, 0, 0, 0, 0, 0, 3600000000ULL) > 0) { // puts("sent data!"); } return(EHR_Shutdown); } // ###### Create a CharGenServer thread ##################################### TCPLikeServer* CharGenServer::charGenServerFactory(int sd, void* userData, const uint32_t peIdentifier) { return(new CharGenServer(sd)); } /* ########################################################################## #### PING PONG #### ########################################################################## */ #include "pingpongpackets.h" // ###### Constructor ####################################################### PingPongServer::PingPongServer(int rserpoolSocketDescriptor, PingPongServer::PingPongServerSettings* settings) : TCPLikeServer(rserpoolSocketDescriptor) { Settings = *settings; Replies = 0; ReplyNo = 1; } // ###### Destructor ######################################################## PingPongServer::~PingPongServer() { } // ###### Create a PingServer thread ######################################## TCPLikeServer* PingPongServer::pingPongServerFactory(int sd, void* userData, const uint32_t peIdentifier) { return(new PingPongServer(sd, (PingPongServer::PingPongServerSettings*)userData)); } // ###### Handle cookie echo ################################################ EventHandlingResult PingPongServer::handleCookieEcho(const char* buffer, size_t bufferSize) { const struct PPPCookie* cookie = (const struct PPPCookie*)buffer; if( (bufferSize != sizeof(PPPCookie)) || (strncmp((const char*)&cookie->ID, PPP_COOKIE_ID, sizeof(cookie->ID))) ) { puts("Received bad cookie echo!"); return(EHR_Abort); } ReplyNo = ntoh64(cookie->ReplyNo); return(EHR_Okay); } // ###### Handle message #################################################### EventHandlingResult PingPongServer::handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { ssize_t sent; if(bufferSize >= (ssize_t)sizeof(PingPongCommonHeader)) { const Ping* ping = (const Ping*)buffer; if(ping->Header.Type == PPPT_PING) { if(ntohs(ping->Header.Length) >= (ssize_t)sizeof(struct Ping)) { /* ====== Answer Ping by Pong ================================ */ size_t dataLength = ntohs(ping->Header.Length) - sizeof(Ping); char pongBuffer[sizeof(struct Pong) + dataLength]; Pong* pong = (Pong*)&pongBuffer; pong->Header.Type = PPPT_PONG; pong->Header.Flags = 0x00; pong->Header.Length = htons(sizeof(Pong) + dataLength); pong->MessageNo = ping->MessageNo; pong->ReplyNo = hton64(ReplyNo); memcpy(&pong->Data, &ping->Data, dataLength); sent = rsp_sendmsg(RSerPoolSocketDescriptor, (char*)pong, sizeof(Pong) + dataLength, 0, 0, htonl(PPID_PPP), 0, 0, 0, 0); if(sent > 0) { ReplyNo++; Replies++; /* ====== Send cookie ===================================== */ struct PPPCookie cookie; strncpy((char*)&cookie.ID, PPP_COOKIE_ID, sizeof(cookie.ID)); cookie.ReplyNo = hton64(ReplyNo); sent = rsp_send_cookie(RSerPoolSocketDescriptor, (unsigned char*)&cookie, sizeof(cookie), 0, 0); if(sent > 0) { /* ====== Failure tester =============================== */ if((Settings.FailureAfter > 0) && (Replies >= Settings.FailureAfter)) { printTimeStamp(stdout); printf("Failure Tester on RSerPool socket %u -> Disconnecting after %u replies!\n", RSerPoolSocketDescriptor, (unsigned int)Replies); return(EHR_Abort); } return(EHR_Okay); } } } } } return(EHR_Abort); } rsplib-3.0.1/rsplib/statistics.h0000664000175000017500000000470411777021056013602 00000000000000/* $Id: statistics.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef STATISTICS_H #define STATISTICS_H class Statistics { public: Statistics(); ~Statistics(); /** * Collects one value. */ void collect(double value); /** * Returns the sum of samples collected. */ inline double sum() const { return(sumSamples); } /** * Returns the squared sum of the collected data. */ inline double sqrSum() const { return(sqSumSamples); } /** * Returns the minimum of the samples collected. */ inline double minimum() const { return(minSamples); } /** * Returns the maximum of the samples collected. */ inline double maximum() const { return(maxSamples); } /** * Returns the mean of the samples collected. */ inline double mean() const { return(numSamples ? sumSamples/numSamples : 0.0); } /** * Returns the standard deviation of the samples collected. */ double stddev() const; /** * Returns the variance of the samples collected. */ double variance() const; private: size_t numSamples; double sumSamples; double sqSumSamples; double minSamples; double maxSamples; }; #endif rsplib-3.0.1/rsplib/rserpool-csp.h0000664000175000017500000000326011777021056014034 00000000000000/* $Id: rserpool-csp.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOL_CSP_H #define RSERPOOL_CSP_H #define CID_GROUP(id) (((uint64_t)id >> 56) & (0xffffULL)) #define CID_OBJECT(id) ((uint64_t)id & 0xffffffffffffffULL) #define CID_GROUP_REGISTRAR 0x0001 #define CID_GROUP_POOLELEMENT 0x0002 #define CID_GROUP_POOLUSER 0x0003 #define CID_COMPOUND(group, object) ((((uint64_t)(group & 0xffff)) << 56) | CID_OBJECT((uint64_t)object)) #endif rsplib-3.0.1/rsplib/wireshark/0000775000175000017500000000000012065103200013270 500000000000000rsplib-3.0.1/rsplib/wireshark/colorfilters0000775000175000017500000001704511777021021015665 00000000000000# DO NOT EDIT THIS FILE! It was created by Wireshark @NetPerfMeter Acknowledge@npmp.message_type==0x01@[65535,65535,8985][0,0,0] @NetPerfMeter Add Flow@npmp.message_type==0x02@[59585,65535,32299][0,0,0] @NetPerfMeter Remove Flow@npmp.message_type==0x03@[65535,41937,34730][0,0,0] @NetPerfMeter Identify Flow@npmp.message_type==0x04@[49229,65535,60772][0,0,0] @NetPerfMeter Data on Stream 9@(npmp.message_type==0x05) && (sctp.data_sid == 0x0009)@[5162,12572,13107][49151,49151,49151] @NetPerfMeter Data on Stream 8@(npmp.message_type==0x05) && (sctp.data_sid == 0x0008)@[7744,18859,19661][49151,49151,49151] @NetPerfMeter Data on Stream 7@(npmp.message_type==0x05) && (sctp.data_sid == 0x0007)@[11615,28288,29491][49151,49151,49151] @NetPerfMeter Data on Stream 6@(npmp.message_type==0x05) && (sctp.data_sid == 0x0006)@[12906,31431,32768][49151,49151,49151] @NetPerfMeter Data on Stream 5@(npmp.message_type==0x05) && (sctp.data_sid == 0x0005)@[15487,37717,39321][0,0,0] @NetPerfMeter Data on Stream 4@(npmp.message_type==0x05) && (sctp.data_sid == 0x0004)@[18068,44004,45875][0,0,0] @NetPerfMeter Data on Stream 3@(npmp.message_type==0x05) && (sctp.data_sid == 0x0003)@[18068,44003,45875][0,0,0] @NetPerfMeter Data on Stream 2@(npmp.message_type==0x05) && (sctp.data_sid == 0x0002)@[20650,50289,52428][0,0,0] @NetPerfMeter Data on Stream 1@(npmp.message_type==0x05) && (sctp.data_sid == 0x0001)@[23231,56576,58982][0,0,0] @NetPerfMeter Data on Stream 0@(npmp.message_type==0x05) && (sctp.data_sid == 0x0000)@[25812,62862,65535][0,0,0] @NetPerfMeter Start@npmp.message_type==0x06@[0,65535,0][0,0,0] @NetPerfMeter Stop@npmp.message_type==0x07@[65535,0,0][0,0,0] @NetPerfMeter Results@npmp.message_type==0x08@[52428,52428,52428][0,0,0] @ScriptingServiceNotReady@ssprotocol.message_type==0x00@[59373,17486,54989][0,0,0] @ScriptingServiceReady@ssprotocol.message_type==0x01@[0,47288,9252][0,0,0] @ScriptingServiceUpload@ssprotocol.message_type==0x02@[29850,64871,36702][0,0,0] @ScriptingServiceDownload@ssprotocol.message_type==0x03@[12925,58386,21820][0,0,0] @ScriptingServiceKeepAlive@ssprotocol.message_type==0x04@[65535,64764,41377][0,0,0] @ScriptingServiceKeepAliveAck@ssprotocol.message_type==0x05@[65535,64178,23011][0,0,0] @ScriptingServiceStatus@ssprotocol.message_type==0x06@[64197,39343,10675][0,0,0] @ScriptingServiceEnvironment@ssprotocol.message_type==0x07@[15268,52322,62341][0,0,0] @CalcAppProtocolRequest@calcappprotocol.message_type==1@[65535,64305,40124][0,0,0] @CalcAppProtocolAccept@calcappprotocol.message_type==2@[26690,25850,63827][0,0,0] @CalcAppProtocolComplete@calcappprotocol.message_type==5@[41202,63715,21117][0,0,0] @CalcAppProtocolReject@calcappprotocol.message_type==3@[65535,26782,23584][0,0,0] @FractalGeneratorProtocolParameter@fractalgeneratorprotocol.message_type==1@[3976,10492,60884][0,0,0] @FractalGeneratorProtocolData@fractalgeneratorprotocol.message_type==2@[16596,40992,25380][0,0,0] @Pong Messages@pingpongprotocol.message_type==1@[63230,64585,25180][0,0,0] @Ping Messages@pingpongprotocol.message_type==2@[62489,11064,9822][0,0,0] @asap_server_announce@asap.message_type == 0x0a@[59193,59193,59193][0,0,0] @asap_endpoint_keep_alive with Home bit@asap.message_type == 0x07 && asap.message_flags & 0x01@[58488,36643,36643][0,0,0] @asap_endpoint_keepalive@asap.message_type == 0x07 || asap.message_type == 0x08@[54973,54973,54973][0,0,0] @asap_registration@asap.message_type == 0x01@[60088,65535,14848][0,0,0] @asap_registration_response@asap.message_type == 0x03@[48194,47420,5169][0,0,0] @asap_deregistration@asap.message_type == 0x02@[33296,33296,33296][0,0,0] @asap_deregistration_response@asap.message_type == 0x04@[25186,25186,25186][0,0,0] @asap_handle_resolution_request@asap.message_type == 0x05@[18136,63351,14825][0,0,0] @asap_handle_resolution_response@asap.message_type == 0x06 && asap.parameter_type == 0x000a@[63479,43201,14649][0,0,0] @asap_handle_resolution_response@asap.message_type == 0x06@[18136,63351,14825][0,0,0] @asap_endpoint_unreachable@asap.message_type == 0x09@[65535,18785,0][0,0,0] @asap_cookie@asap.message_type == 0x0b@[11514,47301,62601][0,0,0] @asap_cookie_echo@asap.message_type == 0x0c@[12754,20201,46507][0,0,0] @asap_business_card@asap.message_type == 0x0d@[60762,3812,37240][0,0,0] @asap_error@asap.message_type == 0x0e@[65535,0,0][0,0,0] @enrp_error@enrp.message_type == 0x0b@[65535,0,0][0,0,0] @enrp_peer_presence@enrp.message_type == 0x01@[45232,45232,45232][0,0,0] @enrp_init_takeover@enrp.message_type == 0x07@[61673,3920,53619][0,0,0] @enrp_init_takeover_ack@enrp.message_type == 0x08@[65535,20386,59239][0,0,0] @enrp_takeover_server@enrp.message_type == 0x09@[32888,0,28302][60336,65535,0] @enrp_peer_list_request@enrp.message_type == 0x05@[43866,21933,0][0,0,0] @enrp_peer_list_response@enrp.message_type == 0x06@[55797,28040,607][0,0,0] @enrp_handle_table_request_own@enrp.message_type == 0x02 && enrp.message_flags & 0x01@[65535,44718,23901][65535,61777,18522] @enrp_handle_table_request@enrp.message_type == 0x02@[65535,44718,23901][0,0,0] @enrp_handle_table_response@enrp.message_type == 0x03@[65535,53910,42284][0,0,0] @enrp_handle_update@enrp.message_type == 0x04@[60886,53805,46724][0,0,0] @SCTP DATA for Stream 9@(sctp.data_sid == 0x0009)@[13107,11141,1311][49151,49151,49151] @SCTP DATA for Stream 8@(sctp.data_sid == 0x0008)@[19661,17040,3932][49151,49151,49151] @SCTP DATA for Stream 7@(sctp.data_sid == 0x0007)@[29491,26050,8847][49151,49151,49151] @SCTP DATA for Stream 6@(sctp.data_sid == 0x0006)@[32768,29491,13107][49151,49151,49151] @SCTP DATA for Stream 5@(sctp.data_sid == 0x0005)@[39321,36044,19661][0,0,0] @SCTP DATA for Stream 4@(sctp.data_sid == 0x0004)@[45875,41288,18350][0,0,0] @SCTP DATA for Stream 3@(sctp.data_sid == 0x0003)@[45875,42052,22938][0,0,0] @SCTP DATA for Stream 2@(sctp.data_sid == 0x0002)@[52428,48933,31457][0,0,0] @SCTP DATA for Stream 1@(sctp.data_sid == 0x0001)@[58982,57999,53084][0,0,0] @SCTP DATA for Stream 0@(sctp.data_sid == 0x0000)@[65535,62804,62258][0,0,0] @sctp_abort@sctp.chunk_type == 6@[65535,26214,13107][0,0,0] @sctp_error@sctp.chunk_type == 9@[65535,65535,65535][65535,0,0] @sctp_startup@sctp.chunk_type == 1 || sctp.chunk_type == 2 || sctp.chunk_type == 10 || sctp.chunk_type == 11@[16705,65535,65535][0,0,0] @sctp_shutdown@sctp.chunk_type == 7 || sctp.chunk_type == 8 || sctp.chunk_type == 14@[65535,65535,14392][0,0,0] @sctp_heartbeat@sctp.chunk_type == 4 || sctp.chunk_type == 5@[52428,52428,65535][0,0,0] @sctp_sack@sctp.chunk_type == 3@[59367,58339,59367][0,0,0] @Bad TCP@tcp.analysis.flags@[0,0,0][65535,24383,24383] @HSRP State Change@hsrp.state != 8 && hsrp.state != 16@[0,0,0][65535,63222,0] @Spanning Tree Topology Change@stp.type == 0x80@[0,0,0][65535,63222,0] @OSPF State Change@ospf.msg != 1@[0,0,0][65535,63222,0] @ICMP errors@icmp.type eq 3 || icmp.type eq 4 || icmp.type eq 11@[0,0,0][0,65535,3616] @ARP@arp@[55011,59486,65534][0,0,0] @ICMP@icmp@[49680,49737,65535][0,0,0] @TCP RST@tcp.flags.reset eq 1@[37008,0,0][65535,63121,32911] @Low TTL@ip.ttl < 5@[37008,0,0][65535,65535,65535] @Checksum Errors@edp.checksum_bad==1 || ip.checksum_bad==1 || tcp.checksum_bad || udp.checksum_bad@[0,0,0][65535,24383,24383] @SMB@smb || nbss || nbns || nbipx || ipxsap || netbios@[65534,64008,39339][0,0,0] @HTTP@http || tcp.port == 80@[36107,65535,32590][0,0,0] @IPX@ipx || stp@[65534,58325,58808][0,0,0] @DCERPC@dcerpc@[51199,38706,65533][0,0,0] @Routing@hsrp || eigrp || ospf || bgp || cdp || vrrp || gvrp || igmp || ismp@[65534,62325,54808][0,0,0] @TCP SYN/FIN@tcp.flags & 0x02 || tcp.flags.fin == 1@[41026,41026,41026][0,0,0] @TCP@tcp@[59345,58980,65534][0,0,0] @UDP@udp@[28834,57427,65533][0,0,0] @Broadcast@eth[0] & 1@[65535,65535,65535][32768,32768,32768] rsplib-3.0.1/rsplib/wireshark/preferences0000664000175000017500000045573111777021021015464 00000000000000# Configuration file for Wireshark 1.5.0. # # This file is regenerated each time preferences are saved within # Wireshark. Making manual changes should be safe, however. # Protocol preferences that have been commented out have not been # changed from their default value. ######## User Interface ######## # Vertical scrollbars should be on right side? # TRUE or FALSE (case-insensitive). gui.scrollbar_on_right: TRUE # Packet-list selection bar can be used to browse w/o selecting? # TRUE or FALSE (case-insensitive). gui.packet_list_sel_browse: FALSE # Protocol-tree selection bar can be used to browse w/o selecting? # TRUE or FALSE (case-insensitive). gui.protocol_tree_sel_browse: FALSE # Alternating colors in TreeViews? # TRUE or FALSE (case-insensitive). gui.tree_view_altern_colors: FALSE # Place filter toolbar inside the statusbar? # TRUE or FALSE (case-insensitive). gui.filter_toolbar_show_in_statusbar: FALSE # Protocol-tree line style. # One of: NONE, SOLID, DOTTED, TABBED gui.protocol_tree_line_style: NONE # Protocol-tree expander style. # One of: NONE, SQUARE, TRIANGLE, CIRCULAR gui.protocol_tree_expander_style: SQUARE # Hex dump highlight style. # One of: BOLD, INVERSE gui.hex_dump_highlight_style: INVERSE # Main Toolbar style. # One of: ICONS, TEXT, BOTH gui.toolbar_main_style: ICONS # Filter Toolbar style. # One of: ICONS, TEXT, BOTH gui.toolbar_filter_style: TEXT # Save window position at exit? # TRUE or FALSE (case-insensitive). gui.geometry.save.position: TRUE # Save window size at exit? # TRUE or FALSE (case-insensitive). gui.geometry.save.size: TRUE # Save window maximized state at exit? # TRUE or FALSE (case-insensitive). gui.geometry.save.maximized: TRUE # Use Mac OS X style (Mac OS X with native GTK only)? # TRUE or FALSE (case-insensitive). gui.macosx_style: TRUE # Open a console window (WIN32 only)? # One of: NEVER, AUTOMATIC, ALWAYS gui.console_open: NEVER # The max. number of entries in the display filter list. # A decimal number. gui.recent_display_filter_entries.max: 10 # The max. number of items in the open recent files list. # A decimal number. gui.recent_files_count.max: 10 # Where to start the File Open dialog box. # One of: LAST_OPENED, SPECIFIED gui.fileopen.style: LAST_OPENED # Directory to start in when opening File Open dialog. gui.fileopen.dir: # The preview timeout in the File Open dialog. # A decimal number (in seconds). gui.fileopen.preview: 3 # Ask to save unsaved capture files? # TRUE or FALSE (case-insensitive). gui.ask_unsaved: FALSE # Wrap to beginning/end of file during search? # TRUE or FALSE (case-insensitive). gui.find_wrap: TRUE # Settings dialogs use a save button? # TRUE or FALSE (case-insensitive). gui.use_pref_save: FALSE # The path to the webbrowser. # Ex: mozilla %s gui.webbrowser: mozilla %s # Custom window title. (Appended to existing titles.) gui.window_title: # Custom start page title. gui.start_title: The World's Most Popular Network Protocol Analyzer # Show version in the start page and main screen's title bar. # TRUE or FALSE (case-insensitive). gui.version_in_start_page: FALSE ######## User Interface: Layout ######## # Layout type (1-6). gui.layout_type: 1 # Layout content of the panes (1-3). # One of: NONE, PLIST, PDETAILS, PBYTES gui.layout_content_1: PLIST gui.layout_content_2: PDETAILS gui.layout_content_3: PBYTES ######## User Interface: Columns ######## # Packet list hidden columns. # List all columns to hide in the packet list. column.hidden: # Packet list column format. # Each pair of strings consists of a column title and its format. column.format: "No.", "%m", "Time", "%t", "Source", "%s", "Destination", "%d", "Protocol", "%p", "Info", "%i" ######## User Interface: Font ######## # Font name for packet list, protocol tree, and hex dump panes. gui.gtk2.font_name: Monospace 10 ######## User Interface: Colors ######## # Color preferences for a marked frame. # Each value is a six digit hexadecimal color value in the form rrggbb. gui.marked_frame.fg: ffffff gui.marked_frame.bg: 000000 # Color preferences for a ignored frame. # Each value is a six digit hexadecimal color value in the form rrggbb. gui.ignored_frame.fg: 7f7f7f gui.ignored_frame.bg: ffffff # TCP stream window color preferences. # Each value is a six digit hexadecimal color value in the form rrggbb. stream.client.fg: 7f0000 stream.client.bg: fbeded stream.server.fg: 00007f stream.server.bg: ededfb ######## Console: logging level ######## # (debugging only, not in the Preferences dialog) # A bitmask of glib log levels: # G_LOG_LEVEL_ERROR = 4 # G_LOG_LEVEL_CRITICAL = 8 # G_LOG_LEVEL_WARNING = 16 # G_LOG_LEVEL_MESSAGE = 32 # G_LOG_LEVEL_INFO = 64 # G_LOG_LEVEL_DEBUG = 128 console.log.level: 28 ####### Capture ######## # Default capture device capture.device: eth0 # Capture in promiscuous mode? # TRUE or FALSE (case-insensitive). capture.prom_mode: TRUE # Capture in Pcap-NG format? # TRUE or FALSE (case-insensitive). capture.pcap_ng: FALSE # Update packet list in real time during capture? # TRUE or FALSE (case-insensitive). capture.real_time_update: TRUE # Scroll packet list during capture? # TRUE or FALSE (case-insensitive). capture.auto_scroll: TRUE # Show capture info dialog while capturing? # TRUE or FALSE (case-insensitive). capture.show_info: FALSE ######## Printing ######## # Can be one of "text" or "postscript". print.format: postscript # Can be one of "command" or "file". print.destination: command # This is the file that gets written to when the destination is set to "file" print.file: wireshark.out # Output gets piped to this command when the destination is set to "command" print.command: lpr ####### Name Resolution ######## # Resolve addresses to names? # TRUE or FALSE (case-insensitive), or a list of address types to resolve. name_resolve: FALSE # Name resolution concurrency. # A decimal number. name_resolve_concurrency: 500 # Load SMI modules? # TRUE or FALSE (case-insensitive). name_resolve_load_smi_modules: FALSE # Suppress SMI errors? # TRUE or FALSE (case-insensitive). name_resolve_suppress_smi_errors: FALSE ####### Taps/Statistics ######## # Tap update interval in ms. # An integer value greater between 100 and 10000. taps.update_interval: 3000 # Maximum visible channels in RTP Player window. # An integer value greater than 0. taps.rtp_player_max_visible: 4 ####### Protocols ######## # Display hidden items in packet details pane? # TRUE or FALSE (case-insensitive). packet_list.display_hidden_proto_items: FALSE # Enable this option to recognise all traffic on RTP dynamic payload type 96 (0x60) as FEC data corresponding to Pro-MPEG Code of Practice #3 release 2 # TRUE or FALSE (case-insensitive). #2dparityfec.enable: FALSE # Enable Architecture for Control Networks dissector (ANSI BSR E1.17) # TRUE or FALSE (case-insensitive). #acn.heuristic_acn: FALSE # Enable Streaming DMX extension dissector (ANSI BSR E1.31) # TRUE or FALSE (case-insensitive). #acn.dmx_enable: FALSE # Display format # One of: Hex , Decimal, Percent # (case-insensitive). #acn.dmx_display_view: Hex # Display zeros instead of dots # TRUE or FALSE (case-insensitive). #acn.dmx_display_zeros: FALSE # Display leading zeros on levels # TRUE or FALSE (case-insensitive). #acn.dmx_display_leading_zeros: FALSE # Display line format # One of: 20 per line, 16 per line # (case-insensitive). #acn.dmx_display_line_format: 20 per line # Set the UDP port for AudioCodes Trunk Traces.Use http://x.x.x.x/TrunkTraces to enable the traces in the Blade # A decimal number. #actrace.udp_port: 2428 # Set the TCP port for AgentX(if other than the default of 705) # A decimal number. #agentx.tcp.agentx_port: 705 # Whether the AH payload decode should be placed in a subtree # TRUE or FALSE (case-insensitive). #ah.place_ah_payload_in_subtree: FALSE # Whether the AIM dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #aim.desegment: TRUE # Whether that payload of UDP packets with a specific destination port should be automatically dissected as ALC packets # TRUE or FALSE (case-insensitive). #alc.default.udp_port.enabled: FALSE # Specifies the UDP destination port for automatic dissection of ALC packets # A decimal number. #alc.default.udp_port: 4001 # Whether the LCT header Codepoint field should be considered the FEC Encoding ID of carried object # TRUE or FALSE (case-insensitive). #alc.lct.codepoint_as_fec_id: TRUE # How to decode LCT header extension 192 # One of: Don't decode, Decode as FLUTE extension (EXT_FDT) # (case-insensitive). #alc.lct.ext.192: Decode as FLUTE extension (EXT_FDT) # How to decode LCT header extension 193 # One of: Don't decode, Decode as FLUTE extension (EXT_CENC) # (case-insensitive). #alc.lct.ext.193: Decode as FLUTE extension (EXT_CENC) # Whether persistent call leg information is to be kept # TRUE or FALSE (case-insensitive). #alcap.leg_info: TRUE # The dynamic payload type which will be interpreted as AMR; The value must be greater than 95 # A decimal number. #amr.dynamic.payload.type: 0 # Type of AMR encoding of the payload # One of: RFC 3267 octet aligned, RFC 3267 BW-efficient, AMR IF1, AMR IF2 # (case-insensitive). amr.encoding.version: RFC 3267 BW-efficient # The AMR mode # One of: Narrowband AMR, Wideband AMR # (case-insensitive). #amr.mode: Narrowband AMR # (if other than the default of IOS 4.0.1) # One of: IS-634 rev. 0, TSB-80, IS-634-A, IOS 2.x, IOS 3.x, IOS 4.0.1, IOS 5.0.1 # (case-insensitive). #ansi_a_bsmap.global_variant: IOS 4.0.1 # ANSI MAP SSNs to decode as ANSI MAP # A string denoting an positive integer range (e.g., "1-20,30-40"). #ansi_map.map.ssn: 5-14 # Attempt to detect excessive rate of ARP requests # TRUE or FALSE (case-insensitive). #arp.detect_request_storms: FALSE # Number of requests needed within period to indicate a storm # A decimal number. #arp.detect_storm_number_of_packets: 30 # Period in milliseconds during which a packet storm may be detected # A decimal number. #arp.detect_storm_period: 100 # Attempt to detect duplicate use of IP addresses # TRUE or FALSE (case-insensitive). #arp.detect_duplicate_ips: TRUE # The UDP port on which Art-Net packets will be sent # A decimal number. #artnet.udp_port: 6454 # The way DMX values are displayed # One of: Percent, Hexadecimal, Decimal # (case-insensitive). #artnet.dmx_disp_chan_val_type: Percent # The way DMX channel numbers are displayed # One of: Hexadecimal, Decimal # (case-insensitive). #artnet.dmx_disp_chan_nr_type: Hexadecimal # The number of columns for the DMX display # One of: 6, 10, 12, 16, 24 # (case-insensitive). #artnet.dmx_disp_col_count: 16 # Set the UDP port numbers (by default is range 5555 to 5560) used for ARUBA encapsulated remote mirroring frames; # 0 (default) means that the ARUBA_ERM dissector is not active # # A string denoting an positive integer range (e.g., "1-20,30-40"). #aruba_erm.udp.ports: 0 # The TCP ports on which ASN.1 messages will be read # A string denoting an positive integer range (e.g., "1-20,30-40"). asn1.tcp_ports: 801 # The UDP ports on which ASN.1 messages will be read # A string denoting an positive integer range (e.g., "1-20,30-40"). asn1.udp_ports: 801 # The SCTP ports on which ASN.1 messages will be read # A string denoting an positive integer range (e.g., "1-20,30-40"). asn1.sctp_ports: 801 # Desegment ASN.1 messages that span TCP segments # TRUE or FALSE (case-insensitive). #asn1.desegment_messages: TRUE # Compiled ASN.1 description of ASN.1 types # A string. #asn1.file: # Name of top level PDU # A string. #asn1.pdu_name: ASN1 # Offset for non-reassembled packets, wrong if this happens on other than the first packet! # A decimal number. #asn1.first_pdu_offset: 0 # Show full names for all values # TRUE or FALSE (case-insensitive). #asn1.flat: FALSE # Allow this recursion level for eliminated type references # One of: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 # (case-insensitive). #asn1.type_recursion: 1 # Extra output useful for debugging # TRUE or FALSE (case-insensitive). #asn1.debug: FALSE # log to file $TMP/wireshark.log # TRUE or FALSE (case-insensitive). #asn1.verbose_log: FALSE # Autodection between LANE and SSCOP is hard. As default LANE is preferred # TRUE or FALSE (case-insensitive). #atm.dissect_lane_as_sscop: FALSE # Type used to dissect unknown AAL2 traffic # One of: Raw data, UMTS FP # (case-insensitive). #atm.unknown_aal2_type: Raw data # Whether the ATP dissector should reassemble messages spanning multiple DDP packets # TRUE or FALSE (case-insensitive). #atp.desegment: TRUE # Banana TCP Port range # A string denoting an positive integer range (e.g., "1-20,30-40"). #banana.tcp.port: # Set the port for B.A.T.M.A.N. BAT messages (if other than the default of 4305) # A decimal number. #bat.batman.bat.port: 4305 # Set the port for B.A.T.M.A.N. Gateway messages (if other than the default of 4306) # A decimal number. #bat.batman.gw.port: 4306 # Set the port for B.A.T.M.A.N. VIS messages (if other than the default of 4307) # A decimal number. #bat.batman.vis.port: 4307 # Ethertype used to indicate B.A.T.M.A.N. packet. # A hexadecimal number. #batadv.batmanadv.ethertype: 0x4305 # Set the port for BEEP messages (if other than the default of 10288) # A decimal number. #beep.tcp.port: 10288 # Specifies that BEEP requires CRLF as a terminator, and not just CR or LF # TRUE or FALSE (case-insensitive). #beep.strict_header_terminator: TRUE # Whether the dissector should also display internal ASN.1 BER details such as Identifier and Length fields # TRUE or FALSE (case-insensitive). #ber.show_internals: FALSE # Whether the dissector should decode unexpected tags as ASN.1 BER encoded data # TRUE or FALSE (case-insensitive). #ber.decode_unexpected: FALSE # Whether the dissector should try decoding OCTET STRINGs as constructed ASN.1 BER encoded data # TRUE or FALSE (case-insensitive). #ber.decode_octetstring: FALSE # Whether the dissector should try decoding unknown primitive as constructed ASN.1 BER encoded data # TRUE or FALSE (case-insensitive). #ber.decode_primitive: FALSE # A table that provides names for object identifiers and the syntax of any associated values # Whether the BGP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #bgp.desegment: TRUE # BGP dissector detect the length of the AS number in AS_PATH attributes automatically or manually (NOTE: Automatic detection is not 100% accurate) # One of: Auto-detect, 2 octet, 4 octet # (case-insensitive). #bgp.asn_len: Auto-detect # Whether the BitTorrent dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #bittorrent.desegment: TRUE # Enabling this will tell which BitTorrent client that produced the handshake message # TRUE or FALSE (case-insensitive). #bittorrent.decode_client: FALSE # Novell Servers option 85 can be configured as a string instead of address # TRUE or FALSE (case-insensitive). #bootp.novellserverstring: FALSE # The PacketCable CCC protocol version # One of: PKT-SP-PROV-I05-021127, IETF Draft 5, RFC 3495 # (case-insensitive). #bootp.pkt.ccc.protocol_version: RFC 3495 # Option Number for PacketCable CableLabs Client Configuration # A decimal number. #bootp.pkt.ccc.option: 122 # Format: OptionNumber,OptionName,OptionType[;Format]. # Example: 176,MyOption,string;242,NewOption,ipv4. # OptionNumbers: 1-254, but no special options. OptionType: string, ipv4 and bytes # A string. #bootp.displayasstring: # For the sake of sub-dissectors registering to accept data from the BSSAP/BSAP dissector, this defines whether it is identified as BSSAP or BSAP. # One of: BSSAP, BSAP # (case-insensitive). #bssap.bsap_or_bssap: BSSAP # GSM-A is the interface between the BSC and the MSC. Lb is the interface between the BSC and the SMLC. # One of: GSM A, Lb # (case-insensitive). #bssap.gsm_or_lb_interface: GSM A # Set Subsystem number used for BSSAP/BSSAP+ # A decimal number. #bssap.ssn: 98 # Decode NRI (for use with SGSN in Pool) # TRUE or FALSE (case-insensitive). #bssgp.decode_nri: FALSE # NRI length, in bits # A decimal number. #bssgp.nri_length: 4 # Whether the ACL dissector should reassemble fragmented PDUs # TRUE or FALSE (case-insensitive). #bthci_acl.btacl_reassembly: TRUE # TCP Port to Accept Bundle Protocol Connections # A decimal number. #bundle.tcp.port: 4556 # UDP Port to Accept Bundle Protocol Connections # A decimal number. #bundle.udp.port: 4556 # Set an additional UDP port, besides the standard X'BAC0' (47808) port. # A decimal number. #bvlc.additional_udp_port: 0 # The date format: (DD/MM) or (MM/DD) # One of: DD/MM/YYYY, MM/DD/YYYY # (case-insensitive). #camel.date.format: DD/MM/YYYY # TCAP Subsystem numbers used for Camel # A string denoting an positive integer range (e.g., "1-20,30-40"). #camel.tcap.ssn: 6-9 # Activate the analyse for Response Time # TRUE or FALSE (case-insensitive). #camel.srt: FALSE # Statistics for Response Time # TRUE or FALSE (case-insensitive). #camel.persistentsrt: FALSE # Set the port for CAPWAP Control messages (if other than the default of 5246) # A decimal number. #capwap.udp.port.control: 5246 # Set the port for CAPWAP Data messages (if other than the default of 5247) # A decimal number. #capwap.udp.port.data: 5247 # Enable support of Cisco Wireless Controller (based on old 8 draft revision). # TRUE or FALSE (case-insensitive). #capwap.draft_8_cisco: FALSE # Reassemble fragmented CAPWAP packets. # TRUE or FALSE (case-insensitive). #capwap.reassemble: TRUE # Swap frame control bytes (needed for some APs). # TRUE or FALSE (case-insensitive). #capwap.swap_fc: TRUE # Whether the CAST dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #cast.reassembly: TRUE # Set the port(s) for NetFlow messages (default: 2055,9996) # A string denoting an positive integer range (e.g., "1-20,30-40"). #cflow.netflow.ports: 2055,9996 # Set the port(s) for IPFIX messages (default: 4739) # A string denoting an positive integer range (e.g., "1-20,30-40"). #cflow.ipfix.ports: 4739 # The type of CHDLC frame checksum (none, 16-bit, 32-bit) # One of: None, 16-Bit, 32-Bit # (case-insensitive). #chdlc.fcs_type: None # The version of CIGI with which to dissect packets # One of: From Packet, CIGI 2, CIGI 3 # (case-insensitive). #cigi.version: From Packet # The byte order with which to dissect CIGI packets (CIGI3) # One of: From Packet, Big-Endian, Little-Endian # (case-insensitive). #cigi.byte_order: From Packet # IPv4 address or hostname of the host # A string. #cigi.host: # IPv4 address or hostname of the image generator # A string. #cigi.ig: # NSAP selector for Transport Protocol (last byte in hex) # A hexadecimal number. #clnp.tp_nsap_selector: 0x21 # Always try to decode NSDU as transport PDUs # TRUE or FALSE (case-insensitive). #clnp.always_decode_transport: FALSE # Whether segmented CLNP datagrams should be reassembled # TRUE or FALSE (case-insensitive). #clnp.reassemble: TRUE # Whether the CMP-over-TCP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #cmp.desegment: TRUE # Decode this TCP port's traffic as CMP. Set to "0" to disable. # A decimal number. #cmp.tcp_alternate_port: 0 # Decode this TCP port's traffic as CMP-over-HTTP. Set to "0" to disable. Use this if the Content-Type is not set correctly. # A decimal number. #cmp.http_alternate_port: 0 # Decode this TCP port's traffic as TCP-transport-style CMP-over-HTTP. Set to "0" to disable. Use this if the Content-Type is not set correctly. # A decimal number. #cmp.tcp_style_http_alternate_port: 0 # Set the UDP port for collectd messages # A decimal number. #collectd.udp.port: 25826 # Set the TCP port for COPS messages # A decimal number. #cops.tcp.cops_port: 3288 # Whether the COPS dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #cops.desegment: TRUE # Decode the COPS messages using PacketCable clients. (Select port 2126) # TRUE or FALSE (case-insensitive). #cops.packetcable: TRUE # PIB settings can be changed in the Name Resolution preferences # Whether segmented COTP datagrams should be reassembled. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #cotp.reassemble: TRUE # How TSAPs should be displayed # One of: As strings if printable, As strings, As bytes # (case-insensitive). #cotp.tsap_display: As strings if printable # Set the port for CPFI messages (if other than the default of 5000) # A decimal number. #cpfi.udp.port: 5000 # Set the port for InstanceToInstance messages (if other than the default of 5001) # A decimal number. #cpfi.udp.port2: 5001 # Control the way the '-->' is displayed. When enabled, keeps the 'lowest valued' endpoint of the src-dest pair on the left, and the arrow moves to distinguish source from dest. When disabled, keeps the arrow pointing right so the source of the frame is always on the left. # TRUE or FALSE (case-insensitive). #cpfi.arrow_ctl: TRUE # Set the destination UDP port Cisco wireless IDS messages # A decimal number. #cwids.udp.port: 0 # Set the port for DAP operations (if other than the default of 102) # A decimal number. #dap.tcp.port: 102 # Show not dissected data on new Packet Bytes pane # TRUE or FALSE (case-insensitive). #data.datapref.newpane: FALSE # Show data as text in the Packet Details pane # TRUE or FALSE (case-insensitive). #data.show_as_text: FALSE # Whether the LAN sync dissector should reassemble PDUs spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #db-lsp.desegment_pdus: TRUE # Whether the DCCP summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #dccp.summary_in_tree: TRUE # Try to decode a packet using an heuristic sub-dissector before using a sub-dissector registered to a specific port # TRUE or FALSE (case-insensitive). #dccp.try_heuristic_first: FALSE # Whether to check the validity of the DCCP checksum # TRUE or FALSE (case-insensitive). #dccp.check_checksum: TRUE # Whether the DCE/RPC dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #dcerpc.desegment_dcerpc: TRUE # Whether the DCE/RPC dissector should reassemble fragmented DCE/RPC PDUs # TRUE or FALSE (case-insensitive). #dcerpc.reassemble_dcerpc: TRUE # Display some DCOM unmarshalled fields usually hidden # TRUE or FALSE (case-insensitive). #dcom.display_unmarshalling_details: FALSE # If a payload looks like its embedded in an IP primitive message, and there is a Wireshark dissector matching the DCT2000 protocol name, try parsing the payload using that dissector # TRUE or FALSE (case-insensitive). #dct2000.ipprim_heuristic: TRUE # If a payload looks like its embedded in an SCTP primitive message, and there is a Wireshark dissector matching the DCT2000 protocol name, try parsing the payload using that dissector # TRUE or FALSE (case-insensitive). #dct2000.sctpprim_heuristic: TRUE # When set, attempt to decode LTE RRC frames. Note that this won't affect other protocols that also call the LTE RRC dissector # TRUE or FALSE (case-insensitive). #dct2000.decode_lte_rrc: TRUE # When set, attempt to decode LTE S1AP frames. Note that this won't affect other protocols that also call the LTE S1AP dissector # TRUE or FALSE (case-insensitive). #dct2000.decode_lte_s1ap: TRUE # When set, look for formatted messages indicating specific events. This may be quite slow, so should be disabled if LTE MAC is not being analysed # TRUE or FALSE (case-insensitive). #dct2000.decode_mac_lte_oob_messages: TRUE # Set the port for DHCP failover communications # A decimal number. #dhcpfo.tcp_port: 519 # Whether the DHCP failover dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #dhcpfo.desegment: TRUE # TCP ports to be decoded as Diameter (default: 3868) # A string denoting an positive integer range (e.g., "1-20,30-40"). diameter.tcp.ports: 3868,3868 # Set the SCTP port for Diameter messages # A decimal number. #diameter.sctp.port: 3868 # Whether the Diameter dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #diameter.desegment: TRUE # DICOM Ports range # A string denoting an positive integer range (e.g., "1-20,30-40"). #dicom.tcp.port: 104 # When enabled, the DICOM dissector will parse all TCP packets not handled by any other dissector and look for an association request. Disabled by default, to preserve resources for the non DICOM community. # TRUE or FALSE (case-insensitive). #dicom.heuristic: FALSE # Create DICOM File Meta Header according to PS 3.10 on export for PDUs. If the captured PDV does not contain a SOP Class UID and SOP Instance UID (e.g. for command PDVs), wireshark specific ones will be created. # TRUE or FALSE (case-insensitive). #dicom.export_header: TRUE # Do not show items below this size in the export list. Set it to 0, to see DICOM commands and responses in the list. Set it higher, to just export DICOM IODs (i.e. CT Images, RT Structures). # A decimal number. #dicom.export_minsize: 4096 # Create a node for sequences and items, and show children in a hierarchy. Deselect this option, if you prefer a flat display or e.g. when using TShark to create a text output. # TRUE or FALSE (case-insensitive). #dicom.seq_tree: TRUE # Create a node for a tag and show tag details as single elements. This can be useful to debug a tag and to allow display filters on these attributes. When using TShark to create a text output, it's better to have it disabled. # TRUE or FALSE (case-insensitive). #dicom.tag_tree: FALSE # Show message ID and number of completed, remaining, warned or failed operations in header and info column. # TRUE or FALSE (case-insensitive). #dicom.cmd_details: TRUE # Decode all DICOM tags in the last PDV. This will ensure the proper reassembly. When not set, the decoding may fail and the exports may become corrupt. # TRUE or FALSE (case-insensitive). #dicom.pdv_reassemble: TRUE # Set the UDP port for DIS messages # A decimal number. #dis.udp.port: 3000 # Set the port for DISP operations (if other than the default of 102) # A decimal number. #disp.tcp.port: 102 # Set the TCP port for DISTCC messages # A decimal number. #distcc.tcp.port: 3632 # Whether the DISTCC dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #distcc.desegment_distcc_over_tcp: TRUE # Set the TCP port for Distributed Lock Manager # A decimal number. #dlm3.tcp.port: 21064 # Set the SCTP port for Distributed Lock Manager # A decimal number. #dlm3.sctp.port: 21064 # Port numbers used for DMP traffic # A string denoting an positive integer range (e.g., "1-20,30-40"). dmp.udp_ports: # Calculate sequence/acknowledgement analysis # TRUE or FALSE (case-insensitive). #dmp.seq_ack_analysis: TRUE # Align identifiers in info list (does not align when retransmission or duplicate acknowledgement indication) # TRUE or FALSE (case-insensitive). #dmp.align_ids: FALSE # Print subject as body id in free text messages with subject # TRUE or FALSE (case-insensitive). #dmp.subject_as_id: FALSE # Format of the structured message id # One of: None, 1 Byte value, 2 Byte value, 4 Byte value, 8 Byte value, Fixed text string, Zero terminated text string # (case-insensitive). #dmp.struct_print: None # Used to set where the structured message id starts in the User Data # A decimal number. #dmp.struct_offset: 0 # Used to set length of fixed text string in the structured message id format (maximum 128 characters) # A decimal number. #dmp.struct_length: 1 # Whether the DNP3 dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #dnp3.desegment: TRUE # Whether the DNS dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #dns.desegment_dns_messages: TRUE # Set the port for DOP operations (if other than the default of 102) # A decimal number. #dop.tcp.port: 102 # Whether the DRDA dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #drda.desegment: TRUE # Whether the DSI dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #dsi.desegment: TRUE # Set the port for DSP operations (if other than the default of 102) # A decimal number. #dsp.tcp.port: 102 # semicolon separated list of private RSA keys used for DTLS decryption; each list entry must be in the form of ,,, is the local file name of the RSA private key used by the specified server # # A string. #dtls.keys_list: # redirect dtls debug to file name; leave empty to disable debug, use "-" to redirect output to stderr # # A string. #dtls.debug_file: # Set the TDP port for the DTPT Server # A decimal number. #dtpt.tcp.port: 5721 # Allow only packets with Major=0x03//Minor=0xFF as DVMRP V3 packets # TRUE or FALSE (case-insensitive). #dvmrp.strict_v3: FALSE # Whether the eDonkey dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #edonkey.desegment: TRUE # Whether the EtherNet/IP dissector should desegment all messages spanning multiple TCP segments # TRUE or FALSE (case-insensitive). #enip.desegment: TRUE # The UDP port on which ENTTEC packets will be sent # A decimal number. #enttec.udp_port: 3333 # The TCP port on which ENTTEC packets will be sent # A decimal number. #enttec.tcp_port: 3333 # The way DMX values are displayed # One of: Percent, Hexadecimal, Decimal # (case-insensitive). #enttec.dmx_disp_chan_val_type: Percent # The way DMX channel numbers are displayed # One of: Hexadecimal, Decimal # (case-insensitive). #enttec.dmx_disp_chan_nr_type: Hexadecimal # The number of columns for the DMX display # One of: 6, 10, 12, 16, 24 # (case-insensitive). #enttec.dmx_disp_col_count: 16 # If you are capturing in networks with multiplexed or slow nodes, this can be useful # TRUE or FALSE (case-insensitive). #epl.show_soc_flags: FALSE # Protocol encapsulated in HDLC records # One of: Cisco HDLC, PPP serial, Frame Relay, SS7 MTP2, Attempt to guess # (case-insensitive). erf.hdlc_type: SS7 MTP2 # Whether raw ATM cells should be treated as the first cell of an AAL5 PDU # TRUE or FALSE (case-insensitive). #erf.rawcell_first: FALSE # Protocol encapsulated in ATM AAL5 packets # One of: Attempt to guess, LLC multiplexed # (case-insensitive). #erf.aal5_type: Attempt to guess # Whether the FCS is present in Ethernet packets # TRUE or FALSE (case-insensitive). #erf.ethfcs: TRUE # Enable this dissector (default is false) # TRUE or FALSE (case-insensitive). #esl.enable: FALSE # This is done only if the Decoding is not SET or the packet does not belong to a SA. Assumes a 12 byte auth (HMAC-SHA1-96/HMAC-MD5-96/AES-XCBC-MAC-96) and attempts decode based on the ethertype 13 bytes from packet end # TRUE or FALSE (case-insensitive). #esp.enable_null_encryption_decode_heuristic: FALSE # Attempt to decode based on the SAD described hereafter. # TRUE or FALSE (case-insensitive). #esp.enable_encryption_decode: FALSE # Attempt to Check ESP Authentication based on the SAD described hereafter. # TRUE or FALSE (case-insensitive). #esp.enable_authentication_check: FALSE # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_1: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_1: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_1: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_1: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_1: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_2: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_2: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_2: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_2: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_2: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_3: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_3: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_3: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_3: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_3: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_4: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_4: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_4: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_4: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_4: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_5: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_5: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_5: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_5: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_5: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_6: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_6: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_6: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_6: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_6: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_7: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_7: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_7: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_7: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_7: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_8: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_8: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_8: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_8: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_8: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_9: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_9: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_9: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_9: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_9: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_10: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_10: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_10: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_10: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_10: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_11: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_11: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_11: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_11: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_11: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_12: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_12: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_12: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_12: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_12: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_13: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_13: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_13: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_13: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_13: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_14: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_14: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_14: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_14: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_14: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_15: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_15: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_15: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_15: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_15: # SA identifier. Must have the form "Protocol|Source Address|Destination Address|SPI". Example: "IPv4|192.168.0.45|10.1.2.7|*" See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for more details. # A string. #esp.sa_16: # Encryption algorithm # One of: NULL, TripleDES-CBC [RFC2451], AES-CBC [RFC3602], AES-CTR [RFC3686], DES-CBC [RFC2405], CAST5-CBC [RFC2144], BLOWFISH-CBC [RFC2451], TWOFISH-CBC # (case-insensitive). #esp.encryption_algorithm_16: NULL # Authentication algorithm # One of: NULL, HMAC-SHA-1-96 [RFC2404], HMAC-SHA-256-96 [draft-ietf-ipsec-ciph-sha-256-00], HMAC-SHA-256-128 [RFC4868], HMAC-MD5-96 [RFC2403], MAC-RIPEMD-160-96 [RFC2857], ANY 96 bit authentication [no checking], ANY 128 bit authentication [no checking], ANY 192 bit authentication [no checking], ANY 256 bit authentication [no checking] # (case-insensitive). #esp.authentication_algorithm_16: NULL # Encryption key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.encryption_key_16: # Authentication key. May be ASCII or hexadecimal (if prepended with 0x).See the ESP Preferences page on the Wireshark wiki (http://wiki.wireshark.org/ESP_Preferences) for supported sizes. # A string. #esp.authentication_key_16: # ESS category attributes translation table # Some Ethernet adapters and drivers include the FCS at the end of a packet, others do not. The Ethernet dissector attempts to guess whether a captured packet has an FCS, but it cannot always guess correctly. # TRUE or FALSE (case-insensitive). #eth.assume_fcs: FALSE # Whether packets should be interpreted as coming from CheckPoint FireWall-1 monitor file if they look as if they do # TRUE or FALSE (case-insensitive). #eth.interpret_as_fw1_monitor: FALSE # Describe the conditions that must be true for the CCSDS dissector to be called # Set the condition that must be true for the CCSDS dissector to be called # TRUE or FALSE (case-insensitive). #eth.ccsds_heuristic_length: FALSE # Set the condition that must be true for the CCSDS dissector to be called # TRUE or FALSE (case-insensitive). #eth.ccsds_heuristic_version: FALSE # Set the condition that must be true for the CCSDS dissector to be called # TRUE or FALSE (case-insensitive). #eth.ccsds_heuristic_header: FALSE # Set the condition that must be true for the CCSDS dissector to be called # TRUE or FALSE (case-insensitive). #eth.ccsds_heuristic_bit: FALSE # Whether the EVRC dissector should process payload type 60 as legacy EVRC packets # TRUE or FALSE (case-insensitive). #evrc.legacy_pt_60: FALSE # Controls the display of the session's username in the info column. This is only displayed if the packet containing it was seen during this capture session. # TRUE or FALSE (case-insensitive). #exec.info_show_username: TRUE # Controls the display of the command being run on the server by this session in the info column. This is only displayed if the packet containing it was seen during this capture session. # TRUE or FALSE (case-insensitive). #exec.info_show_command: FALSE # If enabled, reassembly of multi-frame sequences is done # TRUE or FALSE (case-insensitive). #fc.reassemble: TRUE # This is the size of non-last frames in a multi-frame sequence # A decimal number. #fc.max_frame_size: 1024 # Set the TCP port for FastCGI traffic # A decimal number. #fcgi.tcp.port: 0 # Whether the FCIP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #fcip.desegment: TRUE # Port number used for FCIP # A decimal number. #fcip.target_port: 3225 # Whether the FDDI dissector should add 3-byte padding to all captured FDDI packets (useful with e.g. Tru64 UNIX tcpdump) # TRUE or FALSE (case-insensitive). #fddi.padding: FALSE # Whether the FIX dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #fix.desegment: TRUE # TCP Ports range # A string denoting an positive integer range (e.g., "1-20,30-40"). #fix.tcp.port: # Decode FLIP payload according to mode # One of: no decoding, heuristic, forced # (case-insensitive). #flip.decoding_mode: heuristic # Enabled protocols for heuristic mode # Decode payload as RTP if detected # TRUE or FALSE (case-insensitive). #flip.heur_decode_rtp: TRUE # Decode payload as RTCP if detected # TRUE or FALSE (case-insensitive). #flip.heur_decode_rtcp: TRUE # Mapping of flow IDs to their decodings # Decoding to user-defined protocol # A string. #flip.forced_decode: data # With this option display filters for fmp fhandle a RPC call, even if the actual fhandle is only present in one of the packets # TRUE or FALSE (case-insensitive). #fmp.fhandle_find_both_reqrep: FALSE # Show reported release info # TRUE or FALSE (case-insensitive). #fp.show_release_info: TRUE # Call MAC dissector for payloads # TRUE or FALSE (case-insensitive). #fp.call_mac: TRUE # Encapsulation # One of: FRF 3.2/Cisco HDLC, GPRS Network Service, Raw Ethernet # (case-insensitive). #fr.encap: FRF 3.2/Cisco HDLC # Show offset of frame in capture file # TRUE or FALSE (case-insensitive). #frame.show_file_off: FALSE # Treat all frames as DOCSIS Frames # TRUE or FALSE (case-insensitive). #frame.force_docsis_encap: FALSE # Whether or not MD5 hashes should be generated for each frame, useful for finding duplicate frames. # TRUE or FALSE (case-insensitive). #frame.generate_md5_hash: FALSE # Whether or not an Epoch time entry should be generated for each frame. # TRUE or FALSE (case-insensitive). #frame.generate_epoch_time: TRUE # Whether the FireWall-1 summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #fw1.summary_in_tree: TRUE # Whether the Firewall-1 monitor file includes UUID information # TRUE or FALSE (case-insensitive). #fw1.with_uuid: FALSE # Whether the interface list includes the chain position # TRUE or FALSE (case-insensitive). #fw1.iflist_with_chain: FALSE # Whether the GIOP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #giop.desegment_giop_messages: TRUE # File containing stringified IORs, one per line. # A string. #giop.ior_txt: IOR.txt # Whether the GIT dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #git.desegment: TRUE # Whether the Gigamon header summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #gmhdr.summary_in_tree: TRUE # TCP Ports range # A string denoting an positive integer range (e.g., "1-20,30-40"). #gopher.tcp.port: 70 # UDP ports to be decoded as GPRS-NS (default: 2157,19999) # A string denoting an positive integer range (e.g., "1-20,30-40"). #gprs-ns.udp.ports: 2157,19999 # Whether the Gryphon dissector should desegment all messages spanning multiple TCP segments # TRUE or FALSE (case-insensitive). #gryphon.desegment: TRUE # Always decode a GSM Short Message as Connectionless WSP if a Port Number Information Element is present in the SMS User Data Header. # TRUE or FALSE (case-insensitive). #gsm-sms-ud.port_number_udh_means_wsp: FALSE # Always try subdissection of the 1st fragment of a fragmented GSM Short Message. If reassembly is possible, the Short Message may be dissected twice (once as a short frame, once in its entirety). # TRUE or FALSE (case-insensitive). #gsm-sms-ud.try_dissect_1st_fragment: FALSE # Prevent sub-dissectors from replacing column data with their own. Eg. Prevent WSP dissector overwriting SMPP information. # TRUE or FALSE (case-insensitive). #gsm-sms-ud.prevent_dissectors_chg_cols: FALSE # TCAP Subsystem numbers used for GSM MAP # A string denoting an positive integer range (e.g., "1-20,30-40"). #gsm_map.tcap.ssn: 6-9 # Whether the dissector should reassemble SMS spanning multiple packets # TRUE or FALSE (case-insensitive). #gsm_sms.reassemble: TRUE # Treat ARFCN 512-810 as DCS 1800 rather than PCS 1900 # TRUE or FALSE (case-insensitive). #gsm_um.dcs1800: TRUE # Whether or not to try reassembling GSSAPI blobs spanning multiple (SMB/SessionSetup) PDUs # TRUE or FALSE (case-insensitive). #gss-api.gssapi_reassembly: TRUE # GTPv0 and GTP' port (default 3386) # A decimal number. #gtp.v0_port: 3386 # GTPv1 and GTPv2 control plane port (default 2123) # A decimal number. #gtp.v1c_port: 2123 # GTPv1 user plane port (default 2152) # A decimal number. #gtp.v1u_port: 2152 # Dissect T-PDU # TRUE or FALSE (case-insensitive). #gtp.dissect_tpdu: TRUE # GTP ETSI order # TRUE or FALSE (case-insensitive). #gtp.check_etsi: FALSE # Dissect GTP over TCP # TRUE or FALSE (case-insensitive). #gtp.dissect_gtp_over_tcp: TRUE # H.225 Server TLS Port # A decimal number. #h225.tls.port: 1300 # Whether the H.225 dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #h225.reassembly: TRUE # ON - display tunnelled H.245 inside H.225.0 tree, OFF - display tunnelled H.245 in root tree after H.225.0 # TRUE or FALSE (case-insensitive). #h225.h245_in_tree: TRUE # ON - display tunnelled protocols inside H.225.0 tree, OFF - display tunnelled protocols in root tree after H.225.0 # TRUE or FALSE (case-insensitive). #h225.tp_in_tree: TRUE # Whether the H.245 dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #h245.reassembly: TRUE # Whether the dissector should show short names or the long names from the standard # TRUE or FALSE (case-insensitive). #h245.shorttypes: FALSE # Mantain relationships between transactions and contexts and display an extra tree showing context data # TRUE or FALSE (case-insensitive). #h248.ctx_info: FALSE # Port to be decoded as h248 # A decimal number. h248.udp_port: 0 # Port to be decoded as h248 # A decimal number. #h248.tcp_port: 2945 # Desegment H.248 messages that span more TCP segments # TRUE or FALSE (case-insensitive). #h248.desegment: TRUE # The dynamic payload type which will be interpreted as H264; The value must be greater than 95 # A decimal number. #h263p.dynamic.payload.type: 0 # Dynamic payload types which will be interpreted as H264; Values must be in the range 96 - 127 # A string denoting an positive integer range (e.g., "1-20,30-40"). h264.dynamic.payload.type: 0 # Port to be decoded as h501 # A decimal number. #h501.udp.port: 2099 # Port to be decoded as h501 # A decimal number. #h501.tcp.port: 2099 # Desegment H.501 messages that span more TCP segments # TRUE or FALSE (case-insensitive). #h501.desegment: TRUE # Enable this dissector (default is false) # TRUE or FALSE (case-insensitive). #hilscher.enable: FALSE # Set the port for HNBAP messages (Default of 29169) # A decimal number. #hnbap.port: 29169 # Set the UDP port (source or destination) used for HP encapsulated remote mirroring frames; # 0 (default) means that the HP_ERM dissector is not active # A decimal number. #hp_erm.udp.port: 0 # Whether the HTTP dissector should reassemble headers of a request spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #http.desegment_headers: TRUE # Whether the HTTP dissector should use the "Content-length:" value, if present, to reassemble the body of a request spanning multiple TCP segments, and reassemble chunked data spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #http.desegment_body: TRUE # Whether to reassemble bodies of entities that are transfered using the "Transfer-Encoding: chunked" method # TRUE or FALSE (case-insensitive). #http.dechunk_body: TRUE # Whether to uncompress entity bodies that are compressed using "Content-Encoding: " # TRUE or FALSE (case-insensitive). #http.decompress_body: TRUE # TCP Ports range # A string denoting an positive integer range (e.g., "1-20,30-40"). http.tcp.port: 80,3128,3132,8080,8088,11371,3689,1900 # SSL/TLS Ports range # A string denoting an positive integer range (e.g., "1-20,30-40"). #http.ssl.port: 443 # A table to define custom HTTP header for which fields can be setup and used for filtering/data extraction etc. # How the I2C messages are interpreted # One of: None (raw I2C), IPMB # (case-insensitive). #i2c.type: IPMB # Whether the 128th and following bytes of the ICMP payload should be decoded as MPLS extensions or as a portion of the original packet # TRUE or FALSE (case-insensitive). #icmp.favor_icmp_mpls: FALSE # Whether the IDMP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #idmp.desegment_idmp_messages: TRUE # Whether segmented IDMP datagrams should be reassembled. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #idmp.reassemble: TRUE # Set the port for Internet Directly Mapped Protocol requests/responses # A decimal number. #idmp.tcp.port: 1102 # (Hexadecimal) Ethertype used to indicate IEEE 802.1ah tag. # A hexadecimal number. ieee8021ah.8021ah_ethertype: 0x88f0 # Whether the iFCP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ifcp.desegment: TRUE # TCAP Subsystem numbers used for INAP # A string denoting an positive integer range (e.g., "1-20,30-40"). #inap.ssn: 106,241 # When set, dissector will attempt to identify unknown IBA payloads as containing an encapsulated ethertype, and parse them accordingly # TRUE or FALSE (case-insensitive). #infiniband.identify_payload: TRUE # When set, dissector will attempt to identify and parse Mellanox Ethernet-over-InfiniBand packets # TRUE or FALSE (case-insensitive). #infiniband.dissect_eoib: TRUE # Whether the IPv4 type-of-service field should be decoded as a Differentiated Services field (see RFC2474/RFC2475) # TRUE or FALSE (case-insensitive). #ip.decode_tos_as_diffserv: TRUE # Whether fragmented IP datagrams should be reassembled # TRUE or FALSE (case-insensitive). #ip.defragment: TRUE # Whether the IP summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #ip.summary_in_tree: TRUE # Whether to validate the IP checksum # TRUE or FALSE (case-insensitive). #ip.check_checksum: TRUE # Whether to correct for TSO-enabled hardware captures, such as spoofing the IP packet length # TRUE or FALSE (case-insensitive). #ip.tso_support: FALSE # Whether to look up IP addresses in each GeoIP database we have loaded # TRUE or FALSE (case-insensitive). #ip.use_geoip: FALSE # Whether to interpret the originally reserved flag as security flag # TRUE or FALSE (case-insensitive). #ip.security_flag: FALSE # Whether the IPDC dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ipdc.desegment_ipdc_messages: TRUE # Set the IPDC monitoring port # A decimal number. #ipdc.tcp.port: 6668 # FRU Language Code is English; strings are ASCII+LATIN1 (vs. Unicode) # TRUE or FALSE (case-insensitive). #ipmi.fru_langcode_is_english: TRUE # Do not search for responses coming after this timeout (milliseconds) # A decimal number. #ipmi.response_after_req: 5000 # Allow for responses before requests (milliseconds) # A decimal number. #ipmi.response_before_req: 0 # Format of messages embedded into Send/Get/Forward Message # One of: None, IPMB, Session-based (LAN, ...), Use heuristics # (case-insensitive). #ipmi.msgfmt: Use heuristics # Selects which OEM format is used for commands that IPMI does not define # One of: None, Pigeon Point Systems # (case-insensitive). #ipmi.selected_oem: None # Whether fragmented IPv6 datagrams should be reassembled # TRUE or FALSE (case-insensitive). #ipv6.defragment: TRUE # Whether the IPv6 summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #ipv6.summary_in_tree: TRUE # Path to a pluto log file containing DH secret information # A string. #isakmp.log: insert pluto log path here # Table of IKE_SA security parameters for decryption of IKEv2 packets # The iSCSI protocol version # One of: Draft 08, Draft 09, Draft 11, Draft 12, Draft 13 # (case-insensitive). #iscsi.protocol_version: Draft 13 # Whether the iSCSI dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #iscsi.desegment_iscsi_messages: TRUE # When enabled, packets that appear bogus are ignored # TRUE or FALSE (case-insensitive). #iscsi.bogus_pdu_filter: TRUE # Ignore packets that haven't set the F bit when they should have # TRUE or FALSE (case-insensitive). #iscsi.demand_good_f_bit: FALSE # Treat packets whose data segment length is greater than this value as bogus # A decimal number. #iscsi.bogus_pdu_max_data_len: 262144 # Port number of iSCSI target # A decimal number. #iscsi.target_port: 3260 # System port number of iSCSI target # A decimal number. #iscsi.target_system_port: 860 # When enabled, pdus are assumed to contain a data digest # TRUE or FALSE (case-insensitive). #iscsi.enable_data_digests: FALSE # When enabled, data digests are assumed to be CRC32C # TRUE or FALSE (case-insensitive). #iscsi.data_digest_is_crc32c: TRUE # The size of a data digest (bytes) # A decimal number. #iscsi.data_digest_size: 4 # The dynamic payload type which will be interpreted as ISMACryp # A decimal number. #ismacryp.dynamic.payload.type: 0 # ISMACryp version # One of: ISMACryp v1.1, ISMACryp v2.0 # (case-insensitive). #ismacryp.version: ISMACryp v1.1 # The following option allows the version to be set manually and to override the version if detected from RTP payload type: # Indicates whether or not the ISMACryp version deduced from RTP payload type, if present, is used or whether the version above is used # TRUE or FALSE (case-insensitive). #ismacryp.override_rtp_pt: FALSE # ISMACryp v1.1 parameters declared in SDP # Set the length of the IV in the ISMACryp AU Header in bytes # A decimal number. #ismacryp.iv_length: 4 # Set the length of the Delta IV in the ISMACryp AU Header in bytes # A decimal number. #ismacryp.delta_iv_length: 0 # Set the length of the Key Indicator in the ISMACryp AU Header in bytes # A decimal number. #ismacryp.key_indicator_length: 0 # Indicates whether or not the Key Indicator is present in all AU Headers (T/F) # TRUE or FALSE (case-insensitive). #ismacryp.key_indicator_per_au_flag: FALSE # Indicates whether or not selective encryption is enabled (T/F) # TRUE or FALSE (case-insensitive). #ismacryp.selective_encryption: TRUE # ISMACryp v2.0 parameters declared in SDP # Indicates whether or not slice start / end is present (T/F) # TRUE or FALSE (case-insensitive). #ismacryp.slice_indication: FALSE # Indicates whether or not padding information is present (T/F) # TRUE or FALSE (case-insensitive). #ismacryp.padding_indication: FALSE # AU parameters set according to RFC3640 mode or user defined # RFC3640 mode # One of: aac-hbr, mpeg4-video, avc-video # (case-insensitive). #ismacryp.rfc3640_mode: avc-video # Indicates use of user mode instead of RFC3640 modes (T/F) # TRUE or FALSE (case-insensitive). #ismacryp.user_mode: FALSE # AU parameters defined by the user # Set the length of the AU size in the AU Header in bits # A decimal number. #ismacryp.au_size_length: 0 # Set the length of the AU index in the AU Header in bits # A decimal number. #ismacryp.au_index_length: 0 # Set the length of the AU delta index in the AU Header in bits # A decimal number. #ismacryp.au_index_delta_length: 0 # Set the length of the CTS delta field in the AU Header in bits # A decimal number. #ismacryp.cts_delta_length: 0 # Set the length of the DTS delta field in the AU Header in bits # A decimal number. #ismacryp.dts_delta_length: 0 # Indicates whether or not the RAP field is present in the AU Header (T/F) # TRUE or FALSE (case-insensitive). #ismacryp.random_access_indication: FALSE # Indicates the number of bits on which the stream state field is encoded in the AU Header (bits) # A decimal number. #ismacryp.stream_state_indication: 0 # Whether the iSNS dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #isns.desegment: TRUE # Show the CIC value (in addition to the message type) in the Info column # TRUE or FALSE (case-insensitive). #isup.show_cic_in_info: TRUE # Whether APM messages datagrams should be reassembled # TRUE or FALSE (case-insensitive). #isup.defragment_apm: TRUE # The MPLS label (aka Flow Bundle ID) used by ITDM traffic. # A hexadecimal number. #itdm.mpls_label: 0x99887 # Flow Number used by I-TDM Control Protocol traffic. # A decimal number. #itdm.ctl_flowno: 0 # Support Implementers Guide (version 01) # TRUE or FALSE (case-insensitive). #iua.support_ig: FALSE # Whether IuUP Payload bits should be dissected # TRUE or FALSE (case-insensitive). #iuup.dissect_payload: FALSE # The payload contains a two byte pseudoheader indicating direction and circuit_id # TRUE or FALSE (case-insensitive). #iuup.two_byte_pseudoheader: FALSE # The dynamic payload type which will be interpreted as IuUP # A decimal number. #iuup.dynamic.payload.type: 0 # Set the port for JMirror Port (if other than the default of 30030) # A decimal number. #jmirror.udp.port: 30030 # Enable to have correctly typed MIME media dissected as JXTA Messages. # TRUE or FALSE (case-insensitive). #jxta.msg.mediatype: TRUE # Whether the JXTA dissector should reassemble messages spanning multiple UDP/TCP/SCTP segments. To use this option you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings and enable "Reassemble fragmented IP datagrams" in the IP protocol settings. # TRUE or FALSE (case-insensitive). #jxta.desegment: TRUE # Enable to inspect UDP datagrams for JXTA messages. # TRUE or FALSE (case-insensitive). #jxta.udp.heuristic: TRUE # Enable to inspect TCP connections for JXTA conversations. # TRUE or FALSE (case-insensitive). #jxta.tcp.heuristic: TRUE # Enable to inspect SCTP connections for JXTA conversations. # TRUE or FALSE (case-insensitive). jxta.sctp.heuristic: FALSE # A table of matches vs stack filenames and relative protocols # Whether the Kerberos dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #kerberos.desegment: TRUE # Whether the dissector should try to decrypt encrypted Kerberos blobs. This requires that the proper keytab file is installed as well. # TRUE or FALSE (case-insensitive). #kerberos.decrypt: FALSE # The keytab file containing all the secrets # A string. #kerberos.file: insert filename here # Set the port for Kismet Client/Server messages (if other than the default of 2501) # A decimal number. #kismet.tcp.port: 2501 # Whether the Kpasswd dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #kpasswd.desegment: TRUE # L2TPv3 Cookie Size # One of: None, 4 Byte Cookie, 8 Byte Cookie # (case-insensitive). #l2tp.cookie_size: 4 Byte Cookie # L2TPv3 L2-Specific Sublayer # One of: None, Default L2-Specific, ATM-Specific, LAPD-Specific, DOCSIS DMPT-Specific # (case-insensitive). #l2tp.l2_specific: Default L2-Specific # Decode L2TPv3 packet contents as this protocol # One of: Ethernet, Cisco HDLC, Frame Relay, PPP, IP, MPLS, AAL5, LAPD, DOCSIS-DMPT # (case-insensitive). #l2tp.protocol: Cisco HDLC # Use SAPI values as specified in TS 48 056 # TRUE or FALSE (case-insensitive). #lapd.use_gsm_sapi_values: FALSE # RTP payload type for embedded LAPD. It must be one of the dynamic types from 96 to 127. Set it to 0 to disable. # A decimal number. #lapd.rtp_payload_type: 0 # Whether the dissector should defragment LAPDm messages spanning multiple packets. # TRUE or FALSE (case-insensitive). #lapdm.reassemble: TRUE # Whether the Laplink dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #laplink.desegment_laplink_over_tcp: TRUE # Whether the LDAP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ldap.desegment_ldap_messages: TRUE # Set the port for LDAP operations # A decimal number. #ldap.tcp.port: 389 # Set the port for LDAP operations over SSL # A decimal number. #ldap.ssl.port: 636 # Set the TCP port for messages (if other than the default of 646) # A decimal number. #ldp.tcp.port: 646 # Set the UDP port for messages (if other than the default of 646) # A decimal number. #ldp.udp.port: 646 # Whether the LDP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ldp.desegment_ldp_messages: TRUE # The UDP port on which Local Download Sharing Service broadcasts will be sent # A decimal number. #ldss.udp_port: 6087 # Set UDP port for LGE Monitor messages # A decimal number. #lge_monitor.udp.port: 0 # Whether to autodetect the cipher bit (because it might be set on unciphered data) # TRUE or FALSE (case-insensitive). #llcgprs.autodetect_cipher_bit: FALSE # Dissect this ethertype as LLT traffic in addition to the default, 0xCAFE. # A hexadecimal number. #llt.alternate_ethertype: 0 # UDP port number to use for LMP # A decimal number. #lmp.udp_port: 701 # Whether LMP contains a checksum which can be checked # TRUE or FALSE (case-insensitive). #lmp.checksum: FALSE # Set the TCP or UDP port for Pegasus LSC messages # A decimal number. #lsc.port: 0 # UDP Port to accept LTP Connections # A decimal number. #ltp.udp.port: 1113 # Swap frame control bytes (needed for some APs # TRUE or FALSE (case-insensitive). #lwapp.swap_fc: FALSE # Set the UDP port for lwres daemon(if other than the default of 921) # A decimal number. #lwres.udp.lwres_port: 921 # Version used by Wireshark # One of: Internet Draft version 2, Internet Draft version 8, RFC 4165 # (case-insensitive). #m2pa.version: RFC 4165 # Set the port for M2PA messages (Default of 3565) # A decimal number. #m2pa.port: 3565 # The value of the parameter tag for protocol data 1 # One of: 0x000e (Draft 7), 0x0300 (RFC3331) # (case-insensitive). #m2ua.protocol_data_1_tag: 0x0300 (RFC3331) # Version used by Wireshark # One of: Internet Draft version 5, Internet Draft version 6, Internet Draft version 7, RFC 3332 # (case-insensitive). #m3ua.version: RFC 3332 # Number of Re-Transmits before expert warning triggered # A decimal number. #mac-lte.retx_count_warn: 3 # Attempt to decode BCH, PCH and CCCH data using LTE RRC dissector # TRUE or FALSE (case-insensitive). #mac-lte.attempt_rrc_decode: TRUE # Attempt to dissect frames that have failed CRC check # TRUE or FALSE (case-insensitive). #mac-lte.attempt_to_dissect_crc_failures: FALSE # When enabled, use heuristic dissector to find MAC-LTE frames sent with UDP framing # TRUE or FALSE (case-insensitive). #mac-lte.heuristic_mac_lte_over_udp: FALSE # Will call LTE RLC dissector with standard settings as per RRC spec # TRUE or FALSE (case-insensitive). #mac-lte.attempt_to_dissect_srb_sdus: TRUE # A table that maps from configurable lcids -> RLC logical channels # When logging at UE side, will look for original transmission # TRUE or FALSE (case-insensitive). #mac-lte.attempt_to_track_ul_harq_resend: TRUE # If any BSR report is >= this number, an expert warning will be added # A decimal number. #mac-lte.bsr_warn_threshold: 50 # Track status of SRs, providing links between requests, failure indications and grants # TRUE or FALSE (case-insensitive). #mac-lte.track_sr: TRUE # Can show PHY, MAC or RLC layer info in Info column # One of: PHY Info, MAC Info, RLC Info # (case-insensitive). #mac-lte.layer_to_show: RLC Info # MAC-Telnet UDP port if other than the default # A decimal number. #mactelnet.port: 20561 # The name of the file containing the mate module's configuration # A string. #mate.config: # A frame is considered for decoding as MDSHDR if either ethertype is 0xFCFC or zero. Turn this flag off if you you don't want ethertype zero to be decoded as MDSHDR. This might be useful to avoid problems with test frames. # TRUE or FALSE (case-insensitive). #mdshdr.decode_if_etype_zero: TRUE # Set the TCP port for MEGACO text messages # A decimal number. #megaco.tcp.txt_port: 2944 # Set the UDP port for MEGACO text messages # A decimal number. #megaco.udp.txt_port: 2944 # Specifies that the raw text of the MEGACO message should be displayed instead of (or in addition to) the dissection tree # TRUE or FALSE (case-insensitive). #megaco.display_raw_text: TRUE # Specifies that the dissection tree of the MEGACO message should be displayed instead of (or in addition to) the raw text # TRUE or FALSE (case-insensitive). #megaco.display_dissect_tree: TRUE # Mantain relationships between transactions and contexts and display an extra tree showing context data # TRUE or FALSE (case-insensitive). #megaco.ctx_info: FALSE # Whether the MEMCACHE dissector should reassemble headers of a request spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #memcache.desegment_headers: TRUE # Whether the memcache dissector should reassemble PDUs spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #memcache.desegment_pdus: TRUE # Set the UDP port for gateway messages (if other than the default of 2427) # A decimal number. #mgcp.tcp.gateway_port: 2427 # Set the TCP port for gateway messages (if other than the default of 2427) # A decimal number. #mgcp.udp.gateway_port: 2427 # Set the TCP port for callagent messages (if other than the default of 2727) # A decimal number. #mgcp.tcp.callagent_port: 2727 # Set the UDP port for callagent messages (if other than the default of 2727) # A decimal number. #mgcp.udp.callagent_port: 2727 # Specifies that the raw text of the MGCP message should be displayed instead of (or in addition to) the dissection tree # TRUE or FALSE (case-insensitive). #mgcp.display_raw_text: FALSE # Display the number of MGCP messages found in a packet in the protocol column. # TRUE or FALSE (case-insensitive). #mgcp.display_mgcp_message_count: FALSE # Set the port for MIKEY messages (if other than the default of 2269) # A decimal number. #mikey.udp.port: 2269 # Set the port for MIKEY messages (if other than the default of 2269) # A decimal number. #mikey.tcp.port: 2269 # Display multipart bodies with no media type dissector as raw text (may cause problems with binary data). # TRUE or FALSE (case-insensitive). #mime_multipart.display_unknown_body_as_text: FALSE # Remove any base64 content-transfer encoding from bodies. This supports export of the body and its further dissection. # TRUE or FALSE (case-insensitive). #mime_multipart.remove_base64_encoding: FALSE # Whether PPP Multilink frames use 12-bit sequence numbers # TRUE or FALSE (case-insensitive). #mp.short_seqno: FALSE # The dynamic payload type which will be interpreted as MP4V-ES # A decimal number. #mp4v-es.dynamic.payload.type: 0 # Default decoder for MPLS payload # One of: SAToP (no RTP support), CESoPSN basic NxDS0 mode (no RTP support), Ethernet MPLS PW (CW is heuristically detected), Frame relay DLCI MPLS PW, HDLC MPLS PW (no CW), FR Port mode, HDLC MPLS PW (no CW), HDLC mode, PPP payload, Ethernet MPLS PW (with CW), Ethernet MPLS PW (no CW, early implementations), Generic MPLS PW (with Generic/Preferred MPLS CW), Internal TDM, MPLS PW ATM N-to-One encapsulation, with CW, MPLS PW ATM N-to-One encapsulation, no CW, MPLS PW ATM One-to-One or AAL5 PDU encapsulation, MPLS PW ATM AAL5 CPCS-SDU mode encapsulation # (case-insensitive). #mpls.mplspref.payload: Ethernet MPLS PW (CW is heuristically detected) # draft-ietf-pwe3-vccv-bfd-05 states that PWAC Channel Type 0x07 must be used when VCCV carries PW-ACH-encapsulated BFD (i.e., BFD without IP/UDP Headers, or "raw" BFD) # # Legacy or buggy devices may not comply to this and use Channel Type 0x0 for BFD. Enable this preference to decode such BFD traffic. Disable for standard behavior of PWAC dissector (default). # TRUE or FALSE (case-insensitive). #mpls.mplspref.pwac_0x0_as_bfd: FALSE # draft-ietf-pwe3-vccv-bfd-05 states that PWAC Channel Type 0x07 must be used when VCCV carries PW-ACH-encapsulated BFD (i.e., "raw" BFD) # # Legacy or buggy devices may not comply to this and use voluntary Channel Type for BFD. Enable this preference to decode all PWAC Channel Types as raw BFD, except Channel Type 0x21 (IPv4). Disable for standard behavior of PWAC dissector (default). # TRUE or FALSE (case-insensitive). #mpls.mplspref.pwac_all_as_bfd_xip: FALSE # Legacy devices may use MPLS PW Associated Channel for PPP traffic. # # Enable this preference to allow PWAC dissector to try PPP, if no other suitable dissector found (default). # TRUE or FALSE (case-insensitive). #mpls.mplspref.pwac_try_ppp: TRUE # Set the UDP port for messages (if other than the default of 3503) # A decimal number. #mpls-echo.udp.port: 3503 # Enable to allow non-zero Length in Control Word. This may be needed to correctly decode traffic from some legacy devices which generate non-zero Length even if there is no padding in the packet. Note that Length should have proper value (dissector checks this anyway). # # Disable to blame all packets with CW.Length <> 0. This conforms to RFC4717. # TRUE or FALSE (case-insensitive). #mplspwatmaal5sdu.allow_cw_length_nonzero_aal5: FALSE # Enable to use reserved bits (8..9) of Control Word as an extension of CW.Length. This may be needed to correctly decode traffic from some legacy devices which uses reserved bits as extension of Length # # Disable to blame all packets with CW.Reserved <> 0. This conforms to RFC4717. # TRUE or FALSE (case-insensitive). #mplspwatmaal5sdu.extend_cw_length_with_rsvd_aal5: FALSE # Enable to allow non-zero Length in Control Word. This may be needed to correctly decode traffic from some legacy devices which generate non-zero Length even if there is no padding in the packet. Note that Length should have proper value (dissector checks this anyway). # # Disable to blame all packets with CW.Length <> 0. This conforms to RFC4717. # TRUE or FALSE (case-insensitive). #mplspwatmn1cw.allow_cw_length_nonzero: FALSE # Enable to use reserved bits (8..9) of Control Word as an extension of CW.Length. This may be needed to correctly decode traffic from some legacy devices which uses reserved bits as extension of Length # # Disable to blame all packets with CW.Reserved <> 0. This conforms to RFC4717. # TRUE or FALSE (case-insensitive). #mplspwatmn1cw.extend_cw_length_with_rsvd: FALSE # Whether the MQ dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #mq.desegment: TRUE # Whether the MQ dissector should reassemble MQ messages spanning multiple TSH segments # TRUE or FALSE (case-insensitive). #mq.reassembly: TRUE # Specifies that the raw text of the MSRP message should be displayed in addition to the dissection tree # TRUE or FALSE (case-insensitive). #msrp.display_raw_text: TRUE # Where available, show which protocol and frame caused this MSRP stream to be created # TRUE or FALSE (case-insensitive). #msrp.show_setup_info: TRUE # Whether the MTP2 dissector should use extended sequence numbers as described in Q.703, Annex A as a default. # TRUE or FALSE (case-insensitive). #mtp2.use_extended_sequence_numbers: FALSE # The SS7 standard used in MTP3 packets # One of: ITU, ANSI, Chinese ITU, Japan # (case-insensitive). #mtp3.standard: ITU # The structure of the pointcodes in ITU networks # One of: Unstructured, 3-8-3, 4-3-4-3 # (case-insensitive). #mtp3.itu_pc_structure: Unstructured # The structure of the pointcodes in Japan networks # One of: Unstructured, 7-4-5, 3-4-4-5 # (case-insensitive). #mtp3.japan_pc_structure: Unstructured # Use 5-bit (instead of 8-bit) SLS in ANSI MTP3 packets # TRUE or FALSE (case-insensitive). #mtp3.ansi_5_bit_sls: FALSE # Use 5-bit (instead of 4-bit) SLS in Japan MTP3 packets # TRUE or FALSE (case-insensitive). #mtp3.japan_5_bit_sls: FALSE # Format for point code in the address columns # One of: Decimal, Hexadecimal, NI-Decimal, NI-Hexadecimal, Dashed # (case-insensitive). #mtp3.addr_format: Dashed # Decode the spare bits of the SIO as the MSU priority (a national option in ITU) # TRUE or FALSE (case-insensitive). #mtp3.itu_priority: FALSE # Whether the MySQL dissector should reassemble MySQL buffers spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #mysql.desegment_buffers: TRUE # Whether the MySQL dissector should display the SQL query string in the INFO column. # TRUE or FALSE (case-insensitive). #mysql.show_sql_query: FALSE # Whether the Nasdaq ITCH dissector should decode Chi X extensions. # TRUE or FALSE (case-insensitive). #nasdaq_itch.chi_x: TRUE # Whether the Nasdaq-SoupTCP dissector should reassemble messages spanning multiple TCP segments. # TRUE or FALSE (case-insensitive). #nasdaq_soup.desegment: TRUE # TCP Ports range # A string denoting an positive integer range (e.g., "1-20,30-40"). #nasdaq_soup.tcp.port: # Whether the NBD dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings # TRUE or FALSE (case-insensitive). #nbd.desegment_nbd_messages: TRUE # Whether the NBSS dissector should reassemble packets spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #nbss.desegment_nbss_commands: TRUE # Whether the NCP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ncp.desegment: TRUE # Whether the NCP dissector should defragment NDS messages spanning multiple reply packets. # TRUE or FALSE (case-insensitive). #ncp.defragment_nds: TRUE # Dissect the NetWare Information Structure as NetWare 5.x or higher or as older NetWare 3.x. # TRUE or FALSE (case-insensitive). #ncp.newstyle: TRUE # Whether the NCP dissector should echo the NDS Entry ID to name resolves to the expert table. # TRUE or FALSE (case-insensitive). #ncp.eid_2_expert: TRUE # Whether the NCP dissector should echo NCP connection information to the expert table. # TRUE or FALSE (case-insensitive). ncp.connection_2_expert: TRUE # Whether the NCP dissector should echo protocol errors to the expert table. # TRUE or FALSE (case-insensitive). #ncp.error_2_expert: TRUE # Whether the NCP dissector should echo server information to the expert table. # TRUE or FALSE (case-insensitive). #ncp.server_2_expert: TRUE # Whether the NCP dissector should echo file open/close/oplock information to the expert table. # TRUE or FALSE (case-insensitive). ncp.file_2_expert: TRUE # Version of the NDMP protocol to assume if the version can not be automatically detected from the capture # One of: Version 2, Version 3, Version 4, Version 5 # (case-insensitive). #ndmp.default_protocol_version: Version 4 # Whether the NDMP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ndmp.desegment: TRUE # Whether the dissector should defragment NDMP messages spanning multiple packets. # TRUE or FALSE (case-insensitive). #ndmp.defragment: TRUE # Whether the NDPS dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ndps.desegment_tcp: TRUE # Whether the NDPS dissector should reassemble fragmented NDPS messages spanning multiple SPX packets # TRUE or FALSE (case-insensitive). #ndps.desegment_spx: TRUE # Whether or not the NDPS dissector should show object id's and other details # TRUE or FALSE (case-insensitive). #ndps.show_oid: FALSE # Whether the NetBIOS dissector should defragment messages spanning multiple frames # TRUE or FALSE (case-insensitive). #netbios.defragment: TRUE # port if other than the default # A decimal number. #netdump.udp.port: 0 # The TCP port on which Monotone Netsync packets will be sent # A decimal number. #netsync.tcp_port: 5253 # Whether the Netsync dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #netsync.desegment_netsync_messages: TRUE # Always dissect this port's traffic as newmail notifications. Additional ports will be dynamically registered as they are seen in MAPI register push notification packets. # A decimal number. #newmail.default_port: 0 # Whether the dissector should snoop the FH to filename mappings by looking inside certain packets # TRUE or FALSE (case-insensitive). #nfs.file_name_snooping: FALSE # Whether the dissector should snoop the full pathname for files for matching FH's # TRUE or FALSE (case-insensitive). #nfs.file_full_name_snooping: FALSE # With this option display filters for nfs fhandles (nfs.fh.{name|full_name|hash}) will find both the request and response packets for a RPC call, even if the actual fhandle is only present in one of the packets # TRUE or FALSE (case-insensitive). #nfs.fhandle_find_both_reqrep: FALSE # When enabled, this option will print the NFSv4 tag (if one exists) in the Info column in the Summary pane # TRUE or FALSE (case-insensitive). #nfs.display_nfsv4_tag: TRUE # When enabled, shows only the significant NFSv4 Operations in the info column. Others (like GETFH, PUTFH, etc) are not displayed # TRUE or FALSE (case-insensitive). #nfs.display_major_nfsv4_ops: TRUE # Decode all NFS file handles as if they are of this type # One of: Unknown, SVR4, KNFSD_LE, NFSD_LE, KNFSD_NEW, ONTAP_V3, ONTAP_V4, ONTAP_GX_V3, CELERRA # (case-insensitive). #nfs.default_fhandle_type: Unknown # Whether the dissector will track and match MSG and RES calls for asynchronous NLM # TRUE or FALSE (case-insensitive). #nlm.msg_res_matching: FALSE # Check this to decode NORM traffic between clients # TRUE or FALSE (case-insensitive). #norm.heuristic_norm: FALSE # NT Password (used to decrypt payloads) # A string. #ntlmssp.nt_password: # Dissect custom olsr.org message types (compatible with rfc routing agents) # TRUE or FALSE (case-insensitive). #olsr.ff_olsrorg: TRUE # Dissect custom nrlolsr tc message (incompatible with rfc routing agents) # TRUE or FALSE (case-insensitive). #olsr.nrlolsr: TRUE # The TCP ports for the OPC UA TCP Binary Protocol # A string denoting an positive integer range (e.g., "1-20,30-40"). #opcua.tcp_ports: 4840 # Whether the OPSI dissector should desegment all messages spanning multiple TCP segments # TRUE or FALSE (case-insensitive). #opsi.desegment_opsi_messages: TRUE # TCP port for OSI over TPKT # A decimal number. #osi.tpkt_port: 0 # Whether segmented TPKT datagrams should be reassembled # TRUE or FALSE (case-insensitive). #osi.tpkt_reassemble: FALSE # Set the port for P7 operations (if other than the default of 102) # A decimal number. #p7.tcp.port: 102 # Port numbers used for P_Mul traffic # A string denoting an positive integer range (e.g., "1-20,30-40"). p_mul.udp_ports: 2751,2752,2753,2754 # Reassemble fragmented P_Mul packets # TRUE or FALSE (case-insensitive). #p_mul.reassemble: TRUE # Make the P_Mul dissector use relative message id number instead of absolute ones # TRUE or FALSE (case-insensitive). #p_mul.relative_msgid: TRUE # Calculate sequence/acknowledgement analysis # TRUE or FALSE (case-insensitive). #p_mul.seq_ack_analysis: TRUE # Type of content in Data_PDU # One of: No decoding, BER encoded ASN.1, Compressed Data Type # (case-insensitive). #p_mul.decode: No decoding # UDP communication port for packetbb PDUs # A decimal number. #packetbb.communication_port: 269 # SCCP (and SUA) SSNs to decode as PCAP # A string denoting an positive integer range (e.g., "1-20,30-40"). #pcap.ssn: # The UDP port on which Packet Cable Lawful Intercept packets will be sent # A decimal number. #pcli.udp_port: 9000 # Show uncompressed User-Plane data as IP # TRUE or FALSE (case-insensitive). #pdcp-lte.show_user_plane_as_ip: FALSE # Show unciphered Signalling-Plane data as RRC # TRUE or FALSE (case-insensitive). #pdcp-lte.show_signalling_plane_as_rrc: FALSE # Attempt to decode ROHC data # TRUE or FALSE (case-insensitive). #pdcp-lte.dissect_rohc: FALSE # Show ROHC feedback option tag & length # TRUE or FALSE (case-insensitive). #pdcp-lte.show_feedback_option_tag_length: FALSE # When enabled, use heuristic dissector to find PDCP-LTE frames sent with UDP framing # TRUE or FALSE (case-insensitive). #pdcp-lte.heuristic_pdcp_lte_over_udp: FALSE # Whether the dissector should put the internal PER data in the tree or if it should hide it # TRUE or FALSE (case-insensitive). #per.display_internal_per_fields: FALSE # Whether to check the validity of the PGM checksum # TRUE or FALSE (case-insensitive). #pgm.check_checksum: TRUE # PGM Encap is PGM packets encapsulated in UDP packets (Note: This option is off, i.e. port is 0, by default) # A decimal number. #pgm.udp.encap_ucast_port: 0 # PGM Encap is PGM packets encapsulated in UDP packets (Note: This option is off, i.e. port is 0, by default) # A decimal number. #pgm.udp.encap_mcast_port: 0 # Set the port for PGSQL messages (if different from the default of 5432) # A decimal number. #pgsql.tcp.port: 5432 # The password to used to decrypt the encrypted elements within the PKCS#12 file # A string. #pkcs12.password: # Whether to try and decrypt the encrypted data within the PKCS#12 with a NULL password # TRUE or FALSE (case-insensitive). #pkcs12.try_null_password: FALSE # Decode packets on this UDP port as PacketCable CCC # A decimal number. #pkt_ccc.udp_port: 0 # Whether the PN-RT summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #pn_rt.summary_in_tree: TRUE # Whether the POP dissector should reassemble RETR and TOP responses and spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #pop.desegment_data: TRUE # Whether fragmented 802.11 aggregated MPDUs should be reassembled # TRUE or FALSE (case-insensitive). #ppi.reassemble: TRUE # The type of PPP frame checksum (none, 16-bit, 32-bit) # One of: None, 16-Bit, 32-Bit # (case-insensitive). #ppp.fcs_type: None # Whether Van Jacobson-compressed PPP frames should be decompressed # TRUE or FALSE (case-insensitive). #ppp.decompress_vj: TRUE # Default Protocol ID to be used for PPPMuxCP # A hexadecimal number. #ppp.default_proto_id: 0 # Show values of tags and lengths of data fields # TRUE or FALSE (case-insensitive). #pppoed.show_tags_and_lengths: FALSE # A table that enumerates user protocols to be used against specific presentation context identifiers # Enable this dissector (default is false) # TRUE or FALSE (case-insensitive). #prp.enable: FALSE # Whether the PVFS dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #pvfs.desegment: TRUE # Whether the Q.931 dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #q931.desegment_h323_messages: TRUE # Reassemble segmented Q.931 messages (Q.931 - Annex H) # TRUE or FALSE (case-insensitive). #q931.reassembly: TRUE # Set the UDP port for the Quake Server # A decimal number. #quake.udp.port: 26000 # Set the UDP port for the Quake II Server # A decimal number. #quake2.udp.port: 27910 # Set the UDP base port for the Quake III Arena Server # A decimal number. #quake3.udp.arena_port: 27960 # Set the UDP base port for the Quake III Arena Master Server # A decimal number. #quake3.udp.master_port: 27950 # Set the UDP port for the QuakeWorld Server # A decimal number. #quakeworld.udp.port: 27500 # Radiotap has a bit to indicate whether the FCS is still on the frame or not. Some generators (e.g. AirPcap) use a non-standard radiotap flag 14 to put the FCS into the header. # TRUE or FALSE (case-insensitive). #radiotap.bit14_fcs_in_header: FALSE # Shared secret used to decode User Passwords # A string. #radius.shared_secret: # Whether to add or not to the tree the AVP's payload length # TRUE or FALSE (case-insensitive). #radius.show_length: FALSE # An alternate UDP port to decode as RADIUS # A decimal number. #radius.alternate_port: 0 # Time to live for a radius request used for matching it with a response # A decimal number. #radius.request_ttl: 5 # The SCCP SubSystem Number for RANAP (default 142) # A decimal number. #ranap.sccp_ssn: 142 # Where available, show which protocol and frame caused this RDT stream to be created # TRUE or FALSE (case-insensitive). #rdt.show_setup_info: TRUE # Register a client UDP port for RDT traffic # TRUE or FALSE (case-insensitive). #rdt.register_udp_port: FALSE # Set the UDP port for clients # A decimal number. #rdt.default_udp_port: 6970 # Attempt to keep track of PDUs for AM channels, and point out problems # One of: No-Analysis, Only-MAC-frames, Only-RLC-frames # (case-insensitive). #rlc-lte.do_sequence_analysis_am: No-Analysis # Attempt to keep track of PDUs for UM channels, and point out problems # One of: No-Analysis, Only-MAC-frames, Only-RLC-frames # (case-insensitive). #rlc-lte.do_sequence_analysis: No-Analysis # Call PDCP dissector for signalling PDUs. Note that without reassembly, it canonly be called for complete PDus (i.e. not segmented over RLC) # TRUE or FALSE (case-insensitive). #rlc-lte.call_pdcp_for_srb: FALSE # Call PDCP dissector for user-plane PDUs. Note that without reassembly, it canonly be called for complete PDus (i.e. not segmented over RLC) # One of: Off, 7-bit SN, 12-bit SN # (case-insensitive). #rlc-lte.call_pdcp_for_drb: Off # Call RRC dissector for CCCH PDUs # TRUE or FALSE (case-insensitive). #rlc-lte.call_rrc_for_ccch: FALSE # When enabled, use heuristic dissector to find RLC-LTE frames sent with UDP framing # TRUE or FALSE (case-insensitive). #rlc-lte.heuristic_rlc_lte_over_udp: FALSE # When enabled, if data is not present, don't report as an error, but instead add expert info to indicate that headers were ommitted # TRUE or FALSE (case-insensitive). #rlc-lte.header_only_mode: FALSE # Whether the RPC dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #rpc.desegment_rpc_over_tcp: TRUE # Whether the RPC dissector should defragment RPC-over-TCP messages. # TRUE or FALSE (case-insensitive). #rpc.defragment_rpc_over_tcp: TRUE # Set the maximum size of RPCoverTCP PDUs. If the size field of the record marker is larger than this value it will not be considered a valid RPC PDU. # A decimal number. rpc.max_tcp_pdu_size: 262144 # Whether the RPC dissector should attempt to dissect RPC PDUs containing programs that are not known to Wireshark. This will make the heuristics significantly weaker and elevate the risk for falsely identifying and misdissecting packets significantly. # TRUE or FALSE (case-insensitive). #rpc.dissect_unknown_programs: FALSE # Whether the RPC dissector should attempt to locate RPC PDU boundaries when initial fragment alignment is not known. This may cause false positives, or slow operation. # TRUE or FALSE (case-insensitive). #rpc.find_fragment_start: FALSE # Whether the RPCAP dissector should reassemble PDUs spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #rpcap.desegment_pdus: TRUE # Whether the packets should be decoded according to the link-layer type. # TRUE or FALSE (case-insensitive). #rpcap.decode_content: TRUE # Default link-layer type to use if an Open Reply packet has not been received. # A decimal number. #rpcap.linktype: 0 # Specifies whether Wireshark should decode and display sub-messages within BUNDLE messages # TRUE or FALSE (case-insensitive). #rsvp.process_bundle: TRUE # Specifies how Wireshark should dissect generalized labels # One of: data (no interpretation), SONET/SDH ("S, U, K, L, M" scheme), Wavelength Label (G.694 frequency grid), ODUk Label # (case-insensitive). #rsvp.generalized_label_options: data (no interpretation) # Set the TCP port for RSYNC messages # A decimal number. #rsync.tcp_port: 873 # Whether the RSYNC dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #rsync.desegment: TRUE # Where available, show which protocol and frame caused this RTCP stream to be created # TRUE or FALSE (case-insensitive). #rtcp.show_setup_info: TRUE # If call control SIP/H.323/RTSP/.. messages are missing in the trace, RTCP isn't decoded without this # TRUE or FALSE (case-insensitive). #rtcp.heuristic_rtcp: FALSE # Try to work out network delay by comparing time between packets as captured and delays as seen by endpoint # TRUE or FALSE (case-insensitive). #rtcp.show_roundtrip_calculation: FALSE # Minimum (absolute) calculated roundtrip delay time in milliseconds that should be reported # A decimal number. #rtcp.roundtrip_min_threshhold: 10 # Whether the RTMPT dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #rtmpt.desegment: TRUE # Where available, show which protocol and frame caused this RTP stream to be created # TRUE or FALSE (case-insensitive). #rtp.show_setup_info: TRUE # If call control SIP/H323/RTSP/.. messages are missing in the trace, RTP isn't decoded without this # TRUE or FALSE (case-insensitive). #rtp.heuristic_rtp: FALSE # Whether subdissector can request RTP streams to be reassembled # TRUE or FALSE (case-insensitive). #rtp.desegment_rtp_streams: TRUE # If an RTP version 0 packet is encountered, it can be treated as an invalid or ZRTP packet, a CLASSIC-STUN packet, or a T.38 packet # One of: Invalid or ZRTP packets, CLASSIC-STUN packets, T.38 packets # (case-insensitive). #rtp.version0_type: Invalid or ZRTP packets # Payload Type for RFC2198 Redundant Audio Data # A decimal number. #rtp.rfc2198_payload_type: 99 # This is the value of the Payload Type field that specifies RTP Events # A decimal number. #rtpevent.event_payload_type_value: 101 # This is the value of the Payload Type field that specifies Cisco Named Signaling Events # A decimal number. #rtpevent.cisco_nse_payload_type_value: 100 # Specifies the maximum number of samples dissected in a DATA_BATCH submessage. Increasing this value may affect performances if the trace has a lot of big batched samples. # A decimal number. #rtps2.max_batch_samples_dissected: 16 # Whether segmented RTSE datagrams should be reassembled. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #rtse.reassemble: TRUE # Set the TCP port for RTSP messages # A decimal number. #rtsp.tcp.port: 554 # Set the alternate TCP port for RTSP messages # A decimal number. #rtsp.tcp.alternate_port: 8554 # Whether the RTSP dissector should reassemble headers of a request spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #rtsp.desegment_headers: TRUE # Whether the RTSP dissector should use the "Content-length:" value to desegment the body of a request spanning multiple TCP segments # TRUE or FALSE (case-insensitive). #rtsp.desegment_body: TRUE # Set the port for RUA messages (Default of 29169) # A decimal number. #rua.port: 29169 # Set the UDP port for Reliable UDP traffic # A decimal number. #rudp.udp.port: 0 # Set the SCTP port for S1AP messages # A decimal number. #s1ap.sctp.port: 36412 # Whether the S5066 dissector should reassemble PDUs spanning multiple TCP segments. The default is to use reassembly. # TRUE or FALSE (case-insensitive). #s5066.desegment_pdus: TRUE # Whether the S5066 dissector should dissect this edition of the STANAG. This edition was never formally approved and is very rare. The common edition is edition 1.2. # TRUE or FALSE (case-insensitive). #s5066.edition_one: FALSE # Set the port for STANAG 5066. (If other than the default 5066. This number is registered with IANA.) # A decimal number. #s5066.tcp.port: 5066 # Whether the SASP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #sasp.desegment_sasp_messages: TRUE # The source point code (usually MSC) (to determine whether message is uplink or downlink) # A hexadecimal number. #sccp.source_pc: 0 # Show parameter length in the protocol tree # TRUE or FALSE (case-insensitive). #sccp.show_length: FALSE # Whether XUDT messages should be reassembled # TRUE or FALSE (case-insensitive). #sccp.defragment_xudt: TRUE # Whether to keep information about messages and their associations # TRUE or FALSE (case-insensitive). #sccp.trace_sccp: FALSE # Show SLR, DLR, and CAUSE Parameters in the Information Column of the Summary # TRUE or FALSE (case-insensitive). #sccp.show_more_info: FALSE # A table that enumerates user protocols to be used against specific PCs and SSNs # Set the source and destination addresses to the GT digits (if RI=GT). This may affect TCAP's ability to recognize which messages belong to which TCAP session. # TRUE or FALSE (case-insensitive). #sccp.set_addresses: FALSE # Set the port for SCoP # # A decimal number. #scop.port: 17755 # Set the port for secured SCoP # # A decimal number. #scop.port_secure: 17756 # When Target Cannot Be Identified, Decode SCSI Messages As # One of: Block Device, Sequential Device, Object Based Storage Device, Medium Changer Device, Multimedia Device # (case-insensitive). #scsi.decode_scsi_messages_as: Block Device # Whether fragmented SCSI DATA IN/OUT transfers should be reassembled # TRUE or FALSE (case-insensitive). #scsi.defragment: FALSE # Show source and destination port numbers in the protocol tree # TRUE or FALSE (case-insensitive). #sctp.show_port_numbers_in_tree: TRUE # The type of checksum used in SCTP packets # One of: None, Adler 32, CRC 32c, Automatic # (case-insensitive). sctp.checksum: CRC 32c # Show always SCTP control chunks in the Info column # TRUE or FALSE (case-insensitive). #sctp.show_always_control_chunks: TRUE # Try to decode a packet using an heuristic sub-dissector before using a sub-dissector registered to a specific port or PPI # TRUE or FALSE (case-insensitive). #sctp.try_heuristic_first: FALSE # Whether fragmented SCTP user messages should be reassembled # TRUE or FALSE (case-insensitive). #sctp.reassembly: FALSE # Match TSNs and their SACKs # TRUE or FALSE (case-insensitive). #sctp.tsn_analysis: FALSE # Dissect upper layer protocols # TRUE or FALSE (case-insensitive). #sctp.ulp_dissection: TRUE # Specifies that RTP/RTCP/T.38/MSRP/etc streams are decoded based upon port numbers found in SDP payload # TRUE or FALSE (case-insensitive). #sdp.establish_conversation: TRUE # Set the port(s) for sFlow messages (default: 6343) # A string denoting an positive integer range (e.g., "1-20,30-40"). #sflow.ports: 6343 # Enabling dissection makes it easy to view protocol details in each of the sampled headers. Disabling dissection may reduce noise caused when display filters match the contents of any sampled header(s). # TRUE or FALSE (case-insensitive). #sflow.enable_dissection: TRUE # This option only makes sense if dissection of sampled headers is enabled and probably not even then. # TRUE or FALSE (case-insensitive). #sflow.enable_analysis: FALSE # Set UDP port 1 for SigComp messages # A decimal number. #sigcomp.udp.port: 5555 # Set UDP port 2 for SigComp messages # A decimal number. #sigcomp.udp.port2: 6666 # Set TCP port 1 for SigComp messages # A decimal number. #sigcomp.tcp.port: 5555 # Set TCP port 2 for SigComp messages # A decimal number. #sigcomp.tcp.port2: 6666 # Preference whether to Dissect the UDVM code or not # TRUE or FALSE (case-insensitive). #sigcomp.display.udvm.code: TRUE # preference whether to display the bytecode in UDVM operands or not # TRUE or FALSE (case-insensitive). #sigcomp.display.bytecode: FALSE # preference whether to decompress message or not # TRUE or FALSE (case-insensitive). #sigcomp.decomp.msg: TRUE # preference whether to display the decompressed message as raw text or not # TRUE or FALSE (case-insensitive). #sigcomp.display.decomp.msg.as.txt: FALSE # 'No-Printout' = UDVM executes silently, then increasing detail about execution of UDVM instructions; Warning! CPU intense at high detail # One of: No-Printout, Low-detail, Medium-detail, High-detail # (case-insensitive). #sigcomp.show.udvm.execution: No-Printout # Set the TCP port for Simulcrypt messages ('0' means no port is assigned) # A decimal number. #simulcrypt.tcp.port: 0 # Set the UDP port for Simulcrypt messages ('0' means no port is assigned) # A decimal number. #simulcrypt.udp.port: 0 # Set the CA_system_ID used to decode ECM datagram as MIKEY # A hexadecimal number. #simulcrypt.ca_system_id_mikey: 0x9999 # SIP Server TCP Port # A decimal number. #sip.tcp.port: 5060 # SIP Server TLS Port # A decimal number. #sip.tls.port: 5061 # Specifies that the raw text of the SIP message should be displayed in addition to the dissection tree # TRUE or FALSE (case-insensitive). #sip.display_raw_text: FALSE # If the raw text of the SIP message is displayed, the trailing carriage return and line feed are not shown # TRUE or FALSE (case-insensitive). #sip.display_raw_text_without_crlf: FALSE # If enabled, only SIP/2.0 traffic will be dissected as SIP. Disable it to allow SIP traffic with a different version to be dissected as SIP. # TRUE or FALSE (case-insensitive). #sip.strict_sip_version: TRUE # Whether the SIP dissector should reassemble headers of a request spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #sip.desegment_headers: TRUE # Whether the SIP dissector should use the "Content-length:" value, if present, to reassemble the body of a request spanning multiple TCP segments, and reassemble chunked data spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #sip.desegment_body: TRUE # Whether retransmissions are detected coming from the same source port only. # TRUE or FALSE (case-insensitive). #sip.retrans_the_same_sport: TRUE # Whether the SCCP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #skinny.desegment: TRUE # Whether the SoulSeek dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #slsk.desegment: TRUE # Whether the SoulSeek dissector should decompress all zlib compressed packets inside messages # TRUE or FALSE (case-insensitive). #slsk.decompress: TRUE # Whether the dissector should reassemble the payload of SMB Transaction commands spanning multiple SMB PDUs # TRUE or FALSE (case-insensitive). #smb.trans_reassembly: TRUE # Whether the dissector should reassemble DCERPC over SMB commands # TRUE or FALSE (case-insensitive). #smb.dcerpc_reassembly: TRUE # Whether the dissector should snoop SMB and related CIFS protocols to discover and display Names associated with SIDs # TRUE or FALSE (case-insensitive). #smb.sid_name_snooping: FALSE # Whether the SMPP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #smpp.reassemble_smpp_over_tcp: TRUE # Whether the SMTP dissector should reassemble command and response lines spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #smtp.desegment_lines: TRUE # Whether the SMTP dissector should reassemble DATA command and lines spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #smtp.desegment_data: TRUE # Whether fragmented BIUs should be reassembled # TRUE or FALSE (case-insensitive). #sna.defragment: TRUE # Whether the SNMP OID should be shown in the info column # TRUE or FALSE (case-insensitive). #snmp.display_oid: TRUE # Whether the SNMP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #snmp.desegment: TRUE # ON - display dissected variables inside SNMP tree, OFF - display dissected variables in root tree after SNMP # TRUE or FALSE (case-insensitive). #snmp.var_in_tree: TRUE # Table of engine-user associations used for authentication and decryption # Table of enterprise specific-trap type descriptions # MIB settings can be changed in the Name Resolution preferences # Whether the SRVLOC dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #srvloc.desegment_tcp: TRUE # Set the UDP port for SSCOP messages encapsulated in UDP (0 to disable) # A string denoting an positive integer range (e.g., "1-20,30-40"). #sscop.udp.ports: # SSCOP payload (dissector to call on SSCOP payload) # One of: Data (no further dissection), Q.2931, SSCF-NNI (MTP3-b), ALCAP, NBAP # (case-insensitive). #sscop.payload: Q.2931 # Whether the SSH dissector should reassemble SSH buffers spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ssh.desegment_buffers: TRUE # Whether the SSL dissector should reassemble SSL records spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ssl.desegment_ssl_records: TRUE # Whether the SSL dissector should reassemble SSL Application Data spanning multiple SSL records. # TRUE or FALSE (case-insensitive). #ssl.desegment_ssl_application_data: TRUE # Semicolon-separated list of private RSA keys used for SSL decryption; each list entry must be in the form of ,,,. is the local file name of the RSA private key used by the specified server (or name of the file containing such a list) # A string. #ssl.keys_list: # Redirect SSL debug to file name; leave empty to disable debugging, or use "-" to redirect output to stderr # # A string. #ssl.debug_file: # Pre-Shared-Key as HEX string, should be 0 to 16 bytes # A string. #ssl.psk: # Whether the StarTeam dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #starteam.desegment: TRUE # Whether the BPDU dissector should use 802.1t System ID Extensions when dissecting the Bridge Identifier # TRUE or FALSE (case-insensitive). #stp.use_system_id_extension: TRUE # Version used by Wireshark # One of: Internet Draft version 08, RFC 3868 # (case-insensitive). #sua.version: RFC 3868 # Set the source and destination addresses to the PC or GT digits, depending on the routing indicator. This may affect TCAP's ability to recognize which messages belong to which TCAP session. # TRUE or FALSE (case-insensitive). #sua.set_addresses: FALSE # Set the port number for synchrophasor frames over UDP(if other than the default of 4713) # A decimal number. #synphasor.udp_port: 4713 # Set the port number for synchrophasor frames over TCP(if other than the default of 4712) # A decimal number. #synphasor.tcp_port: 4712 # Whether the T.38 dissector should decode using the Pre-Corrigendum T.38 ASN.1 specification (1998). # TRUE or FALSE (case-insensitive). #t38.use_pre_corrigendum_asn1_specification: TRUE # Whether a UDP packet that looks like RTP version 2 packet will be dissected as RTP packet or T.38 packet. If enabled there is a risk that T.38 UDPTL packets with sequence number higher than 32767 may be dissected as RTP. # TRUE or FALSE (case-insensitive). #t38.dissect_possible_rtpv2_packets_as_rtp: FALSE # Set the TCP port for T.38 messages # A decimal number. #t38.tcp.port: 6004 # Set the UDP port for T.38 messages # A decimal number. #t38.udp.port: 6004 # Whether the dissector should reassemble T.38 PDUs spanning multiple TCP segments when TPKT is used over TCP. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #t38.reassembly: TRUE # Whether T.38 is used with TPKT for TCP # One of: Never, Always, Maybe # (case-insensitive). #t38.tpkt_usage: Maybe # Where available, show which protocol and frame caused this T.38 stream to be created # TRUE or FALSE (case-insensitive). #t38.show_setup_info: TRUE # Whether the TACACS+ dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #tacplus.desegment: TRUE # TACACS+ Encryption Key # A string. #tacplus.key: # Whether the TALI dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #tali.reassemble: TRUE # SCCP (and SUA) SSNs to decode as TCAP # A string denoting an positive integer range (e.g., "1-20,30-40"). #tcap.ssn: # Activate the analyse for Response Time # TRUE or FALSE (case-insensitive). #tcap.srt: FALSE # Statistics for Response Time # TRUE or FALSE (case-insensitive). #tcap.persistentsrt: FALSE # Maximal delay for message repetion # A decimal number. #tcap.repetitiontimeout: 10 # Maximal delay for message lost # A decimal number. #tcap.losttimeout: 30 # Whether the TCP summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #tcp.summary_in_tree: TRUE # Whether to validate the TCP checksum # TRUE or FALSE (case-insensitive). tcp.check_checksum: TRUE # Whether subdissector can request TCP streams to be reassembled # TRUE or FALSE (case-insensitive). #tcp.desegment_tcp_streams: TRUE # Make the TCP dissector analyze TCP sequence numbers to find and flag segment retransmissions, missing segments and RTT # TRUE or FALSE (case-insensitive). #tcp.analyze_sequence_numbers: TRUE # Make the TCP dissector use relative sequence numbers instead of absolute ones. To use this option you must also enable "Analyze TCP sequence numbers". # TRUE or FALSE (case-insensitive). #tcp.relative_sequence_numbers: TRUE # Try to track and adjust the window field according to any TCP window scaling options seen.To use this option you must also enable "Analyze TCP sequence numbers". # TRUE or FALSE (case-insensitive). #tcp.window_scaling: TRUE # Make the TCP dissector track the number on un-ACKed bytes of data are in flight per packet. To use this option you must also enable "Analyze TCP sequence numbers". This takes a lot of memory but allows you to track how much data are in flight at a time and graphing it in io-graphs # TRUE or FALSE (case-insensitive). #tcp.track_bytes_in_flight: TRUE # Calculate timestamps relative to the first frame and the previous frame in the tcp conversation # TRUE or FALSE (case-insensitive). #tcp.calculate_timestamps: FALSE # Try to decode a packet using an heuristic sub-dissector before using a sub-dissector registered to a specific port # TRUE or FALSE (case-insensitive). #tcp.try_heuristic_first: FALSE # Set the port for IPSEC/ISAKMP messagesIf other than the default of 10000) # A decimal number. #tcpencap.tcp.port: 10000 # Whether the TDS dissector should reassemble TDS buffers spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #tds.desegment_buffers: TRUE # Whether the TDS dissector should defragment messages spanning multiple Netlib buffers # TRUE or FALSE (case-insensitive). #tds.defragment: TRUE # Hint as to version of TDS protocol being decoded # One of: Not Specified, TDS 4, TDS 5, TDS 7, TDS 8 # (case-insensitive). #tds.protocol_type: Not Specified # Hint as to whether to decode TDS protocol as little-endian or big-endian. (TDS7/8 always decoded as little-endian) # One of: Little Endian, Big Endian # (case-insensitive). #tds.endian_type: Little Endian # Additional TCP ports to decode as TDS # A string denoting an positive integer range (e.g., "1-20,30-40"). #tds.tcp_ports: # Check this to decode IPv6 traffic between Teredo clients and relays # TRUE or FALSE (case-insensitive). #teredo.heuristic_teredo: FALSE # Port numbers used for TFTP traffic (default 69) # A string denoting an positive integer range (e.g., "1-20,30-40"). #tftp.udp_ports: 69 # Whether TIPCv1 SEGMENTATION_MANAGER datagrams should be reassembled # TRUE or FALSE (case-insensitive). #tipc.defragment: TRUE # Whether to try to dissect TIPC data or not # TRUE or FALSE (case-insensitive). tipc.dissect_tipc_data: FALSE # Try to decode a TIPCv2 packet using an heuristic sub-dissector before using a registered sub-dissector # TRUE or FALSE (case-insensitive). #tipc.try_heuristic_first: FALSE # TIPC 1.7 removes/adds fields (not) available in TIPC 1.5/1.6 while keeping the version number 2 in the packages. "ALL" shows all fields that were ever used in both versions. # One of: ALL, TIPC 1.5/1.6, TIPC 1.7 # (case-insensitive). #tipc.handle_v2_as: ALL # Decode this TCP ports traffic as TIPC. Set to "0" to disable. # A decimal number. #tipc.alternate_port: 0 # Whether the TIPC-over-TCP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #tipc.desegment: TRUE # Whether the TNS dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #tns.desegment_tns_messages: TRUE # Whether the TPKT dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #tpkt.desegment: TRUE # No description # A decimal number. #tpncp.tcp.trunkpack_port: 2424 # No description # A decimal number. #tpncp.udp.trunkpack_port: 2424 # Whether Linux mangling of the link-layer header should be checked for and worked around # TRUE or FALSE (case-insensitive). #tr.fix_linux_botches: FALSE # Critical Traffic Mask (base hex) # A hexadecimal number. #tte.ct_mask_value: 0 # Critical Traffic Marker (base hex) # A hexadecimal number. #tte.ct_marker_value: 0xffffffff # Whether the UCP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ucp.desegment_ucp_messages: TRUE # Whether the UDP summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #udp.summary_in_tree: TRUE # Try to decode a packet using an heuristic sub-dissector before using a sub-dissector registered to a specific port # TRUE or FALSE (case-insensitive). #udp.try_heuristic_first: FALSE # Whether to validate the UDP checksum # TRUE or FALSE (case-insensitive). udp.check_checksum: TRUE # Collect process flow information from IPFIX # TRUE or FALSE (case-insensitive). #udp.process_info: FALSE # Ignore an invalid checksum coverage field and continue dissection # TRUE or FALSE (case-insensitive). #udplite.ignore_checksum_coverage: TRUE # Whether to validate the UDPlite checksum # TRUE or FALSE (case-insensitive). udplite.check_checksum: TRUE # Whether the ULP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ulp.desegment_ulp_messages: TRUE # Set the TCP port for Ulp messages(IANA registerd port is 7275) # A decimal number. #ulp.tcp.port: 7275 # Whether the UMA dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #uma.desegment_ucp_messages: TRUE # TCP ports to be decoded as UMA (default: 14001) # A string denoting an positive integer range (e.g., "1-20,30-40"). #uma.tcp.ports: 14001 # UNISTIM port (default 5000) # A decimal number. #unistim.udp.port: 0 # A table that enumerates the various protocols to be used against a certain user DLT # Whether the vlan summary line should be shown in the protocol tree # TRUE or FALSE (case-insensitive). #vlan.summary_in_tree: TRUE # The (hexadecimal) Ethertype used to indicate 802.1QinQ VLAN in VLAN tunneling. # A hexadecimal number. #vlan.qinq_ethertype: 0x9100 # Whether the VNC dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #vnc.desegment: TRUE # Decode this port's traffic as VNC in addition to the default ports (5500, 5501, 5900, 5901) # A decimal number. #vnc.alternate_port: 0 # Enable this preference if you want to view the WBXML tokens without the representation in a media type (e.g., WML). Tokens will show up as Tag_0x12, attrStart_0x08 or attrValue_0x0B for example. # TRUE or FALSE (case-insensitive). #wbxml.skip_wbxml_token_mapping: FALSE # Enable this preference if you want to skip the parsing of the WBXML tokens that constitute the body of the WBXML document. Only the WBXML header will be dissected (and visualized) then. # TRUE or FALSE (case-insensitive). #wbxml.disable_wbxml_token_parsing: FALSE # Show transaction ID direction bit separately from the rest of the transaction ID field. # TRUE or FALSE (case-insensitive). #wimaxasncp.show_transaction_id_d_bit: FALSE # Print debug output to the console. # TRUE or FALSE (case-insensitive). #wimaxasncp.debug_enabled: FALSE # Set UDP port for WiMAX ASN Control Plane Protocol # A decimal number. #wimaxasncp.udp.wimax_port: 2231 # Whether the WINS-Replication dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #winsrepl.reassemble: TRUE # Whether fragmented 802.11 datagrams should be reassembled # TRUE or FALSE (case-insensitive). #wlan.defragment: TRUE # Don't dissect 802.11n draft HT elements (which might contain duplicate information). # TRUE or FALSE (case-insensitive). #wlan.ignore_draft_ht: FALSE # Whether retransmitted 802.11 frames should be subdissected # TRUE or FALSE (case-insensitive). #wlan.retransmitted: TRUE # Some 802.11 cards include the FCS at the end of a packet, others do not. # TRUE or FALSE (case-insensitive). #wlan.check_fcs: FALSE # Some 802.11 cards leave the Protection bit set even though the packet is decrypted, and some also leave the IV (initialization vector). # One of: No, Yes - without IV, Yes - with IV # (case-insensitive). wlan.ignore_wep: Yes - without IV # Enable WEP and WPA/WPA2 decryption # TRUE or FALSE (case-insensitive). #wlan.enable_decryption: FALSE # Valid key formats # Key #1 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key1: # Key #2 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key2: # Key #3 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key3: # Key #4 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key4: # Key #5 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key5: # Key #6 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key6: # Key #7 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key7: # Key #8 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key8: # Key #9 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key9: # Key #10 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key10: # Key #11 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key11: # Key #12 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key12: # Key #13 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key13: # Key #14 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key14: # Key #15 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key15: # Key #16 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key16: # Key #17 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key17: # Key #18 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key18: # Key #19 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key19: # Key #20 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key20: # Key #21 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key21: # Key #22 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key22: # Key #23 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key23: # Key #24 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key24: # Key #25 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key25: # Key #26 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key26: # Key #27 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key27: # Key #28 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key28: # Key #29 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key29: # Key #30 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key30: # Key #31 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key31: # Key #32 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key32: # Key #33 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key33: # Key #34 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key34: # Key #35 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key35: # Key #36 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key36: # Key #37 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key37: # Key #38 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key38: # Key #39 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key39: # Key #40 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key40: # Key #41 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key41: # Key #42 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key42: # Key #43 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key43: # Key #44 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key44: # Key #45 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key45: # Key #46 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key46: # Key #47 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key47: # Key #48 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key48: # Key #49 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key49: # Key #50 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key50: # Key #51 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key51: # Key #52 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key52: # Key #53 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key53: # Key #54 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key54: # Key #55 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key55: # Key #56 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key56: # Key #57 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key57: # Key #58 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key58: # Key #59 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key59: # Key #60 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key60: # Key #61 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key61: # Key #62 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key62: # Key #63 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key63: # Key #64 string can be: ; wep:; wpa-pwd:[:]; wpa-psk: # A string. #wlan.wep_key64: # Set the maximum Basic CID used in the Wimax decoder (if other than the default of 320). Note: The maximum Primary CID is double the maximum Basic CID. # A decimal number. #wmx.basic_cid_max: 320 # Set to TRUE to use the Corrigendum 2 version of Wimax message decoding. Set to FALSE to use the 802.16e-2005 version. # TRUE or FALSE (case-insensitive). #wmx.corrigendum_2_version: FALSE # Whether the wow dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #wow.desegment: TRUE # (Hexadecimal) Ethertype used to indicate IEEE 802.15.4 frame. # A hexadecimal number. #wpan.802154_ethertype: 0x809a # Set if the FCS field is in TI CC24xx format. # TRUE or FALSE (case-insensitive). #wpan.802154_cc24xx: FALSE # Dissect data only if FCS is ok. # TRUE or FALSE (case-insensitive). #wpan.802154_fcs_ok: TRUE # A table of static address mappings between 16-bit short addressing and EUI-64 addresses # 128-bit decryption key in hexadecimal format # A string. #wpan.802154_key: # Whether the X11 dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #x11.desegment: TRUE # If CALL REQUEST not seen or didn't specify protocol, dissect as QLLC/SNA # TRUE or FALSE (case-insensitive). #x25.payload_is_qllc_sna: FALSE # If CALL REQUEST has no data, assume the protocol handled is COTP # TRUE or FALSE (case-insensitive). #x25.call_request_nodata_is_cotp: FALSE # If CALL REQUEST not seen or didn't specify protocol, check user data before checking heuristic dissectors # TRUE or FALSE (case-insensitive). #x25.payload_check_data: FALSE # Reassemble fragmented X.25 packets # TRUE or FALSE (case-insensitive). #x25.reassemble: TRUE # Set the SCTP port for X2AP messages # A decimal number. #x2ap.sctp.port: 36422 # Set the port for P1 operations (if other than the default of 102) # A decimal number. #x411.tcp.port: 102 # Try to recognize XML for unknown media types # TRUE or FALSE (case-insensitive). #xml.heuristic: FALSE # Try to recognize XML for unknown TCP ports # TRUE or FALSE (case-insensitive). #xml.heuristic_tcp: FALSE # TCP Ports range # A string denoting an positive integer range (e.g., "1-20,30-40"). #xml.tcp.port: # Try to recognize XML for unknown UDP ports # TRUE or FALSE (case-insensitive). #xml.heuristic_udp: FALSE # Try to recognize XML encoded in Unicode (UCS-2) # TRUE or FALSE (case-insensitive). #xml.heuristic_unicode: FALSE # Whether the X.25-over-TCP dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings # TRUE or FALSE (case-insensitive). #xot.desegment: TRUE # Whether the X.25-over-TCP dissector should reassemble all X.25 packets before calling the X25 dissector. If the TCP packets arrive out-of-order, the X.25 reassembly can otherwise fail. To use this option, you should also enable "Reassemble X.25-over-TCP messages spanning multiple TCP segments", "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings and "Reassemble fragmented X.25 packets" in the X.25 protocol settings. # TRUE or FALSE (case-insensitive). #xot.x25_desegment: FALSE # Whether the YMSG dissector should reassemble messages spanning multiple TCP segments. To use this option, you must also enable "Allow subdissectors to reassemble TCP streams" in the TCP protocol settings. # TRUE or FALSE (case-insensitive). #ymsg.desegment: TRUE # Specifies the security level to use in the decryption process. This value is ignored for ZigBee 2004 and unsecured networks. # One of: No Security, No Encryption, 32-bit Integrity Protection, No Encryption, 64-bit Integrity Protection, No Encryption, 128-bit Integrity Protection, AES-128 Encryption, No Integrity Protection, AES-128 Encryption, 32-bit Integrity Protection, AES-128 Encryption, 64-bit Integrity Protection, AES-128 Encryption, 128-bit Integrity Protection # (case-insensitive). #zbee.nwk.seclevel: AES-128 Encryption, 32-bit Integrity Protection # Specifies the network key to use for decryption. # A string. #zbee.nwk.nwkkey: # The Extended address of the trust center. # A string. #zbee.nwk.tcaddr: # Specifies the trust center link key to use for decryption. # A string. #zbee.nwk.tclinkkey: # Set the port for ZEP Protocol # Default port is 17754 # A decimal number. #zep.udp.port: 17754 rsplib-3.0.1/rsplib/wireshark/Makefile.am0000664000175000017500000000245011777021021015256 00000000000000# $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de EXTRA_DIST = colorfilters dfilters preferences rsplib-3.0.1/rsplib/wireshark/Makefile.in0000664000175000017500000002657412065103163015303 00000000000000# Makefile.in generated by automake 1.11.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. # 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@ # $Id: Makefile.am 2608 2011-11-23 07:52:38Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de VPATH = @srcdir@ 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@ subdir = rsplib/wireshark DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ COLORGCC = @COLORGCC@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ GLIB_LIBS = @GLIB_LIBS@ GLIB_MKENUMS = @GLIB_MKENUMS@ GOBJECT_QUERY = @GOBJECT_QUERY@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ 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@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDADD = @QT_LDADD@ RANLIB = @RANLIB@ RSPLIB_AGE = @RSPLIB_AGE@ RSPLIB_CURRENT = @RSPLIB_CURRENT@ RSPLIB_RELEASE = @RSPLIB_RELEASE@ RSPLIB_REVISION = @RSPLIB_REVISION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ 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_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ bz2_LIBS = @bz2_LIBS@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ glib_LIBS = @glib_LIBS@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sctplib_LIBS = @sctplib_LIBS@ sharedstatedir = @sharedstatedir@ socketapi_LIBS = @socketapi_LIBS@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ thread_LIBS = @thread_LIBS@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = colorfilters dfilters preferences all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(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) --gnu rsplib/wireshark/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu rsplib/wireshark/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);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: 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: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile 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: maintainer-clean-am -rm -f Makefile 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 \ 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 uninstall uninstall-am # 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: rsplib-3.0.1/rsplib/wireshark/dfilters0000664000175000017500000000547011777021021014766 00000000000000"RSerPool Traffic" asap||enrp "RSerPool Traffic via SCTP + SCTP Control, without Monitoring" (sctp&&enrp&&(!((enrp.message_type==0x01)&&(!enrp.message_flags&0x01))))||(sctp&&(asap&&(((asap.message_type!=0x07)&&(asap.message_type!=0x08)&&(asap.message_type!=0x0b))||((asap.message_type==0x07)&&(asap.message_flags&0x01)))))||((!(asap||enrp))&&(sctp.chunk_type != 3)&&(sctp.chunk_type != 4)&&(sctp.chunk_type != 5)) "RSerPool Traffic via SCTP, without Monitoring" (sctp&&enrp&&(!((enrp.message_type==0x01)&&(!enrp.message_flags&0x01))))||(sctp&&(asap&&(((asap.message_type!=0x07)&&(asap.message_type!=0x08)&&(asap.message_type!=0x0b))||((asap.message_type==0x07)&&(asap.message_flags&0x01))))) "RSerPool Traffic via SCTP" sctp&&(asap||enrp) "RSerPool Control Channel Traffic" (asap.message_type == 0x0b) || (asap.message_type == 0x0c) || (asap.message_type == 0x0d) "RSerPool Pool Element Traffic" (asap.message_type == 0x01) || (asap.message_type == 0x02) || (asap.message_type == 0x03) || (asap.message_type == 0x04) "RSerPool Pool User Traffic" (asap.message_type == 0x05) || (asap.message_type == 0x06) || (asap.message_type == 0x09) "RSerPool ASAP Traffic via SCTP, without Monitoring" sctp&&(asap&&(((asap.message_type!=0x07)&&(asap.message_type!=0x08)&&(asap.message_type!=0x0b))||((asap.message_type==0x07)&&(asap.message_flags&0x01)))) "RSerPool ASAP Traffic via SCTP" sctp&&asap "RSerPool ENRP Traffic via SCTP, without Monitoring" sctp&&enrp&&(!((enrp.message_type==0x01)&&(!enrp.message_flags&0x01))) "RSerPool ENRP Traffic via SCTP" sctp&&enrp "RSerPool Home-Registrar Changes" sctp&&(asap&&(asap.message_type==0x07)&&(asap.message_flags&0x01)) "RSerPool Registrar Takeovers" sctp&&((enrp&&((enrp.message_type==0x07)||(enrp.message_type==0x08)||(enrp.message_type==0x09))) || (asap&&(asap.message_type==0x07)&&(asap.message_flags&0x01))) "RSerPool Registrar Synchronizations" sctp&&enrp&&((enrp.message_type==0x02)||(enrp.message_type==0x03)||(enrp.message_type==0x05)||(enrp.message_type==0x06)) "RSerPool Registrar Failure Handling" sctp&&((enrp&&((enrp.message_type==0x07)||(enrp.message_type==0x08)||(enrp.message_type==0x09)||(enrp.message_type==0x02)||(enrp.message_type==0x03))) || (asap&&(asap.message_type==0x07)&&(asap.message_flags&0x01))) "RSerPool Application CalcAppProtocol" calcappprotocol || (asap.message_type == 0x0b) || (asap.message_type == 0x0c) "RSerPool Application FractalGeneratorProtocol" fractalgeneratorprotocol || (asap.message_type == 0x0b) || (asap.message_type == 0x0c) "RSerPool Application PingPongProtocol" pingpongprotocol || (asap.message_type == 0x0b) || (asap.message_type == 0x0c) "RSerPool Application ScriptingServiceProtocol" ssp || (asap.message_type == 0x0b) || (asap.message_type == 0x0c) "NetPerfMeter Control Traffic" sctp.data_payload_proto_id == 36 "NetPerfMeter Data Traffic" sctp.data_payload_proto_id == 37 rsplib-3.0.1/rsplib/rspregistrar-misc.c0000664000175000017500000000377611777021056015073 00000000000000/* $Id: rspregistrar-misc.c 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" /* ###### Hook to be called after successful registration ################ */ void registrarRegistrationHook(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode) { /* puts("REGISTRATION:"); ST_CLASS(poolElementNodePrint)(poolElementNode, stdout, ~0); puts(""); */ } /* ###### Hook to be called before deregistration ######################## */ void registrarDeregistrationHook(struct Registrar* registrar, struct ST_CLASS(PoolElementNode)* poolElementNode) { /* puts("DEREGISTRATION:"); ST_CLASS(poolElementNodePrint)(poolElementNode, stdout, ~0); puts(""); */ } rsplib-3.0.1/rsplib/sessioncontrol.c0000664000175000017500000005442411777021056014473 00000000000000/* $Id: sessioncontrol.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "sessioncontrol.h" #include "rserpool.h" #include "debug.h" #include "netutilities.h" #include "threadsafety.h" #include "rserpoolmessage.h" #include "loglevel.h" /* ###### Send cookie echo ################################################### */ bool sendCookieEcho(struct RSerPoolSocket* rserpoolSocket, struct Session* session) { struct RSerPoolMessage* message; bool result = false; if(session->Cookie) { message = rserpoolMessageNew(NULL, 256 + session->CookieSize); if(message != NULL) { message->Type = AHT_COOKIE_ECHO; message->CookiePtr = session->Cookie; message->CookieSize = session->CookieSize; LOG_ACTION fputs("Sending Cookie Echo\n", stdlog); LOG_END result = rserpoolMessageSend(IPPROTO_SCTP, rserpoolSocket->Socket, session->AssocID, 0, 0, 0, message); rserpoolMessageDelete(message); } } return(result); } /* ###### Create new session ############################################# */ struct Session* addSession(struct RSerPoolSocket* rserpoolSocket, const sctp_assoc_t assocID, const bool isIncoming, const unsigned char* poolHandle, const size_t poolHandleSize, struct TagItem* tags) { struct Session* session = (struct Session*)malloc(sizeof(struct Session)); if(session != NULL) { CHECK(rserpoolSocket->ConnectedSession == NULL); session->Tags = tagListDuplicate(tags); if(session->Tags == NULL) { free(session); return(NULL); } simpleRedBlackTreeNodeNew(&session->AssocIDNode); simpleRedBlackTreeNodeNew(&session->SessionIDNode); session->AssocID = assocID; session->IsIncoming = isIncoming; session->IsFailed = isIncoming ? false : true; if(poolHandleSize > 0) { CHECK(poolHandleSize <= MAX_POOLHANDLESIZE); poolHandleNew(&session->Handle, poolHandle, poolHandleSize); } else { session->Handle.Size = 0; } session->Cookie = NULL; session->CookieSize = 0; session->CookieEcho = NULL; session->CookieEchoSize = 0; session->StatusText[0] = 0x00; session->ConnectionTimeStamp = (isIncoming == true) ? getMicroTime() : 0; session->ConnectedPE = 0; session->ConnectTimeout = (unsigned long long)tagListGetData(tags, TAG_RspSession_ConnectTimeout, 5000000); session->HandleResolutionRetryDelay = (unsigned long long)tagListGetData(tags, TAG_RspSession_HandleResolutionRetryDelay, 250000); threadSafetyLock(&rserpoolSocket->Mutex); session->SessionID = identifierBitmapAllocateID(rserpoolSocket->SessionAllocationBitmap); if(session->SessionID >= 0) { threadSafetyLock(&rserpoolSocket->SessionSetMutex); sessionStorageAddSession(&rserpoolSocket->SessionSet, session); threadSafetyUnlock(&rserpoolSocket->SessionSetMutex); LOG_ACTION fprintf(stdlog, "Added %s session %u on RSerPool socket %d, socket %d\n", session->IsIncoming ? "incoming" : "outgoing", session->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END } threadSafetyUnlock(&rserpoolSocket->Mutex); if(session->SessionID < 0) { LOG_ERROR fprintf(stdlog, "Addeding %s session on RSerPool socket %d, socket %d failed, no more descriptors available\n", session->IsIncoming ? "incoming" : "outgoing", rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END free(session->Tags); free(session); session = NULL; } } return(session); } /* ###### Delete session ################################################# */ void deleteSession(struct RSerPoolSocket* rserpoolSocket, struct Session* session) { if(session) { LOG_ACTION fprintf(stdlog, "Removing %s session %u on RSerPool socket %d, socket %d\n", session->IsIncoming ? "incoming" : "outgoing", session->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END threadSafetyLock(&rserpoolSocket->Mutex); if(rserpoolSocket->ConnectedSession == session) { rserpoolSocket->ConnectedSession = NULL; } threadSafetyLock(&rserpoolSocket->SessionSetMutex); sessionStorageDeleteSession(&rserpoolSocket->SessionSet, session); threadSafetyUnlock(&rserpoolSocket->SessionSetMutex); identifierBitmapFreeID(rserpoolSocket->SessionAllocationBitmap, session->SessionID); session->SessionID = 0; threadSafetyUnlock(&rserpoolSocket->Mutex); if(session->Tags) { tagListFree(session->Tags); session->Tags = NULL; } if(session->Cookie) { free(session->Cookie); session->Cookie = NULL; } if(session->CookieEcho) { free(session->CookieEcho); session->CookieEcho = NULL; } simpleRedBlackTreeNodeDelete(&session->AssocIDNode); simpleRedBlackTreeNodeDelete(&session->SessionIDNode); free(session); } } /* ###### Find session for given assoc ID or session ID ################## */ struct Session* findSession(struct RSerPoolSocket* rserpoolSocket, rserpool_session_t sessionID, sctp_assoc_t assocID) { struct Session* session; if(rserpoolSocket->ConnectedSession) { return(rserpoolSocket->ConnectedSession); } else if(sessionID != 0) { session = sessionStorageFindSessionBySessionID(&rserpoolSocket->SessionSet, sessionID); if(session) { return(session); } LOG_VERBOSE fprintf(stdlog, "There is no session %u on RSerPool socket %d\n", sessionID, rserpoolSocket->Descriptor); LOG_END errno = EINVAL; } else if(assocID != 0) { session = sessionStorageFindSessionByAssocID(&rserpoolSocket->SessionSet, assocID); if(session) { return(session); } LOG_WARNING fprintf(stdlog, "There is no session for assoc %u on RSerPool socket %d\n", (unsigned int)assocID, rserpoolSocket->Descriptor); LOG_END errno = EINVAL; } else { LOG_ERROR fputs("What session are you looking for?\n", stdlog); LOG_END_FATAL } return(NULL); } /* ###### Receive cookie echo or notification from RSerPool socket ####### */ ssize_t getCookieEchoOrNotification(struct RSerPoolSocket* rserpoolSocket, void* buffer, size_t bufferLength, struct rsp_sndrcvinfo* rinfo, int* msg_flags, const bool isPreRead) { struct Session* session; struct NotificationNode* notificationNode; ssize_t received = -1; threadSafetyLock(&rserpoolSocket->Mutex); /* ====== Give back notification ====================================== */ notificationNode = notificationQueueDequeueNotification(&rserpoolSocket->Notifications, isPreRead); while(notificationNode != NULL) { if((1 << notificationNode->Content.rn_header.rn_type) & rserpoolSocket->Notifications.EventMask) { if(bufferLength < sizeof(notificationNode->Content)) { LOG_ERROR fputs("Buffer size is to small for a notification\n", stdlog); LOG_END errno = EINVAL; received = -1; notificationNodeDelete(notificationNode); break; } *msg_flags |= MSG_RSERPOOL_NOTIFICATION|MSG_EOR; memcpy(buffer, ¬ificationNode->Content, sizeof(notificationNode->Content)); received = sizeof(notificationNode->Content); notificationNodeDelete(notificationNode); break; } else { LOG_WARNING fprintf(stdlog, "Got unrequested notification type %u -> skipping\n", notificationNode->Content.rn_header.rn_type); LOG_END } notificationNodeDelete(notificationNode); notificationNode = notificationQueueDequeueNotification(&rserpoolSocket->Notifications, isPreRead); } /* ====== Check every session if there is something to do ============= */ if(received < 0) { session = sessionStorageGetFirstSession(&rserpoolSocket->SessionSet); while(session != NULL) { /* ====== Give back Cookie Echo ==================================== */ if((session->CookieEcho) && (bufferLength > 0)) { /* A cookie echo has been stored (during rspSessionSelect()). Now, the application calls this function. We now return the cookie and free its storage space. */ LOG_ACTION fputs("There is a cookie echo. Giving it back first\n", stdlog); LOG_END *msg_flags |= MSG_RSERPOOL_COOKIE_ECHO|MSG_EOR; received = min(bufferLength, session->CookieEchoSize); memcpy(buffer, session->CookieEcho, received); free(session->CookieEcho); session->CookieEcho = NULL; session->CookieEchoSize = 0; rinfo->rinfo_session = session->SessionID; rinfo->rinfo_ppid = PPID_ASAP; break; } session = sessionStorageGetNextSession(&rserpoolSocket->SessionSet, session); } } threadSafetyUnlock(&rserpoolSocket->Mutex); return(received); } /* ###### Handle SCTP communication up notification ###################### */ static void handleCommUp(struct RSerPoolSocket* rserpoolSocket, const struct sctp_assoc_change* notification) { struct Session* session; struct NotificationNode* notificationNode; LOG_ACTION fprintf(stdlog, "SCTP_COMM_UP for RSerPool socket %d, socket %d, assoc %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)notification->sac_assoc_id); LOG_END if(rserpoolSocket->ConnectedSession == NULL) { session = addSession(rserpoolSocket, notification->sac_assoc_id, true, NULL, 0, NULL); if(session != NULL) { notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, true, RSERPOOL_SESSION_CHANGE); if(notificationNode) { notificationNode->Content.rn_session_change.rsc_state = RSERPOOL_SESSION_ADD; notificationNode->Content.rn_session_change.rsc_session = session->SessionID; } } else { LOG_WARNING fprintf(stdlog, "Aborting association %u on RSerPool socket %d, socket %d, due to session creation failure\n", (unsigned int)notification->sac_assoc_id, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END sendabort(rserpoolSocket->Socket, notification->sac_assoc_id); } } } /* ###### Handle SCTP communication lost notification #################### */ static void handleCommLost(struct RSerPoolSocket* rserpoolSocket, const struct sctp_assoc_change* notification) { struct Session* session = NULL; struct NotificationNode* notificationNode; LOG_ACTION fprintf(stdlog, "SCTP_COMM_LOST for RSerPool socket %d, socket %d, assoc %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)notification->sac_assoc_id); LOG_END if(rserpoolSocket->ConnectedSession) { LOG_ACTION fprintf(stdlog, "Removing Assoc ID %u from session %u of RSerPool socket %d, socket %d\n", (unsigned int)rserpoolSocket->ConnectedSession->AssocID, rserpoolSocket->ConnectedSession->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END if(!rserpoolSocket->ConnectedSession->IsFailed) { sendabort(rserpoolSocket->Socket, rserpoolSocket->ConnectedSession->AssocID); sessionStorageUpdateSession(&rserpoolSocket->SessionSet, rserpoolSocket->ConnectedSession, 0); notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, false, RSERPOOL_FAILOVER); if(notificationNode) { notificationNode->Content.rn_failover.rf_state = RSERPOOL_FAILOVER_NECESSARY; notificationNode->Content.rn_failover.rf_session = rserpoolSocket->ConnectedSession->SessionID; notificationNode->Content.rn_failover.rf_has_cookie = (rserpoolSocket->ConnectedSession->CookieSize > 0); } } else { LOG_ACTION fputs("Session has already been removed. Okay.\n", stdlog); LOG_END } } else { session = sessionStorageFindSessionByAssocID(&rserpoolSocket->SessionSet, notification->sac_assoc_id); if(session) { if(rserpoolSocket->ConnectedSession != session) { LOG_ACTION fprintf(stdlog, "Removing session %u of RSerPool socket %d, socket %d after closure of assoc %u\n", session->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)session->AssocID); LOG_END notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, true, RSERPOOL_SESSION_CHANGE); if(notificationNode) { notificationNode->Content.rn_session_change.rsc_state = RSERPOOL_SESSION_REMOVE; notificationNode->Content.rn_session_change.rsc_session = session->SessionID; } deleteSession(rserpoolSocket, session); } } else { LOG_ERROR fprintf(stdlog, "SCTP_COMM_LOST for RSerPool socket %d, socket %d, assoc %u, but there is no session for it!\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)notification->sac_assoc_id); LOG_END } } } /* ###### Handle SCTP shutdown event notification ######################## */ static void handleShutdown(struct RSerPoolSocket* rserpoolSocket, const struct sctp_shutdown_event* notification) { struct Session* session; struct NotificationNode* notificationNode; LOG_ACTION fprintf(stdlog, "SHUTDOWN_EVENT for RSerPool socket %d, socket %d, assoc %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)notification->sse_assoc_id); LOG_END session = sessionStorageFindSessionByAssocID(&rserpoolSocket->SessionSet, notification->sse_assoc_id); if(session) { LOG_ACTION fprintf(stdlog, "Shutdown event for session %u of RSerPool socket %d, socket %d, assoc %u\n", session->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)session->AssocID); LOG_END notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, false, RSERPOOL_SHUTDOWN_EVENT); if(notificationNode) { notificationNode->Content.rn_shutdown_event.rse_session = session->SessionID; } } } /* ###### Handle SCTP notification ####################################### */ /* Returns true, if association has been disconnected; false otherwise. */ bool handleNotification(struct RSerPoolSocket* rserpoolSocket, const union sctp_notification* notification) { LOG_VERBOSE1 fprintf(stdlog, "SCTP notification %d for RSerPool socket %d, socket %d\n", notification->sn_header.sn_type, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END if(rserpoolSocket->SocketType != SOCK_STREAM) { if(notification->sn_header.sn_type == SCTP_ASSOC_CHANGE) { switch(notification->sn_assoc_change.sac_state) { case SCTP_COMM_UP: handleCommUp(rserpoolSocket, ¬ification->sn_assoc_change); break; case SCTP_COMM_LOST: case SCTP_SHUTDOWN_COMP: handleCommLost(rserpoolSocket, ¬ification->sn_assoc_change); return(true); break; } } else if(notification->sn_header.sn_type == SCTP_SHUTDOWN_EVENT) { handleShutdown(rserpoolSocket, ¬ification->sn_shutdown_event); } } else { if( (notification->sn_header.sn_type == SCTP_ASSOC_CHANGE) && ( (notification->sn_assoc_change.sac_state == SCTP_SHUTDOWN_COMP) || (notification->sn_assoc_change.sac_state == SCTP_COMM_LOST) ) ) { return(true); } } return(false); } /* ###### Handle control channel message ################################# */ void handleControlChannelMessage(struct RSerPoolSocket* rserpoolSocket, const sctp_assoc_t assocID, char* buffer, size_t bufferSize) { struct RSerPoolMessage* message; unsigned int result; struct Session* session = findSession(rserpoolSocket, 0, assocID); if(session != NULL) { LOG_ACTION fprintf(stdlog, "ASAP control channel message for RSerPool socket %d, socket %d, session %u, assoc %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, session->SessionID, (unsigned int)assocID); LOG_END result = rserpoolPacket2Message(buffer, NULL, 0, PPID_ASAP, bufferSize, bufferSize, &message); if(message != NULL) { if(result == RSPERR_OKAY) { switch(message->Type) { case AHT_COOKIE: LOG_VERBOSE fputs("Got cookie\n", stdlog); LOG_END if(session->Cookie) { LOG_VERBOSE2 fputs("Replacing existing Cookie with new one\n", stdlog); LOG_END free(session->Cookie); } message->CookiePtrAutoDelete = false; session->Cookie = message->CookiePtr; session->CookieSize = message->CookieSize; break; case AHT_COOKIE_ECHO: if(session->CookieEcho == NULL) { LOG_ACTION fputs("Got cookie echo\n", stdlog); LOG_END message->CookiePtrAutoDelete = false; session->CookieEcho = message->CookiePtr; session->CookieEchoSize = message->CookieSize; } else { LOG_ERROR fputs("Got additional cookie echo. Ignoring it.\n", stdlog); LOG_END } break; case AHT_BUSINESS_CARD: LOG_ACTION fputs("Got business card\n", stdlog); LOG_END break; default: LOG_WARNING fprintf(stdlog, "Do not know what to do with ASAP type %u\n", message->Type); LOG_END break; } } rserpoolMessageDelete(message); } } } /* ###### Handle control channel message or notification ################# */ bool handleControlChannelAndNotifications(struct RSerPoolSocket* rserpoolSocket) { char buffer[4]; ssize_t result; uint32_t ppid; int flags; /* ====== Check, if message on socket is notification or ASAP ========= */ flags = MSG_PEEK; /* Only peek to check if data is of right type! */ result = recvfromplus(rserpoolSocket->Socket, (char*)&buffer, sizeof(buffer), &flags, NULL, NULL, &ppid, NULL, NULL, 0); if( (result > 0) && ( (ppid == PPID_ASAP) || (flags & MSG_NOTIFICATION) ) ) { /* Handle control channel data or notification */ LOG_VERBOSE fprintf(stdlog, "Handling control channel data or notification of RSerPool socket %u, socket %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END rsp_recvmsg(rserpoolSocket->Descriptor, NULL, 0, NULL, &flags, 0); return(true); } return(false); } rsplib-3.0.1/rsplib/sessioncontrol.h0000664000175000017500000000621311777021056014471 00000000000000/* $Id: sessioncontrol.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SESSIONCONTROL_H #define SESSIONCONTROL_H #include "tdtypes.h" #include "session.h" #include "rserpoolsocket.h" #ifdef __cplusplus extern "C" { #endif struct Session* addSession(struct RSerPoolSocket* rserpoolSocket, const sctp_assoc_t assocID, const bool isIncoming, const unsigned char* poolHandle, const size_t poolHandleSize, struct TagItem* tags); void deleteSession(struct RSerPoolSocket* rserpoolSocket, struct Session* session); struct Session* findSession(struct RSerPoolSocket* rserpoolSocket, rserpool_session_t sessionID, sctp_assoc_t assocID); ssize_t getCookieEchoOrNotification(struct RSerPoolSocket* rserpoolSocket, void* buffer, size_t bufferLength, struct rsp_sndrcvinfo* rinfo, int* msg_flags, const bool isPreRead); bool handleNotification(struct RSerPoolSocket* rserpoolSocket, const union sctp_notification* notification); void handleControlChannelMessage(struct RSerPoolSocket* rserpoolSocket, const sctp_assoc_t assocID, char* buffer, size_t bufferSize); bool handleControlChannelAndNotifications(struct RSerPoolSocket* rserpoolSocket); bool sendCookieEcho(struct RSerPoolSocket* rserpoolSocket, struct Session* session); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/poolhandlespacechecksum.c0000664000175000017500000000607111777021056016266 00000000000000/* $Id: poolhandlespacechecksum.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "poolhandlespacechecksum.h" #include "debug.h" /* ###### Add checksums a and b ########################################## */ HandlespaceChecksumAccumulatorType handlespaceChecksumAdd(const HandlespaceChecksumAccumulatorType a, const HandlespaceChecksumAccumulatorType b) { HandlespaceChecksumAccumulatorType sum = a + b; return(sum); } /* ###### Subtract checksum b from a ##################################### */ HandlespaceChecksumAccumulatorType handlespaceChecksumSub(const HandlespaceChecksumAccumulatorType a, const HandlespaceChecksumAccumulatorType b) { HandlespaceChecksumAccumulatorType sum = a - b; return(sum); } /* ###### Compute handlespace checksum ################################### */ HandlespaceChecksumAccumulatorType handlespaceChecksumCompute(HandlespaceChecksumAccumulatorType sum, const char* buffer, size_t size) { HandlespaceChecksumType* addr = (HandlespaceChecksumType*)buffer; HandlespaceChecksumType tmp; while(size >= sizeof(*addr)) { sum += *addr++; size -= sizeof(*addr); } if(size > 0) { tmp = 0; memcpy(&tmp, addr, size); sum += tmp; } return(sum); } /* ###### Strip off carry part of the checksum ########################### */ HandlespaceChecksumType handlespaceChecksumFinish(HandlespaceChecksumAccumulatorType sum) { while(sum >> HandlespaceChecksumBits) { sum = (sum & HandlespaceChecksumMask) + (sum >> HandlespaceChecksumBits); } return((HandlespaceChecksumType)~sum); } rsplib-3.0.1/rsplib/poolhandlespacechecksum.h0000664000175000017500000000522111777021056016267 00000000000000/* $Id: poolhandlespacechecksum.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef POOLHANDLESPACECHECKSUM_H #define POOLHANDLESPACECHECKSUM_H #include #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif typedef uint16_t HandlespaceChecksumType; typedef uint32_t HandlespaceChecksumAccumulatorType; #define HandlespaceChecksumBits (sizeof(HandlespaceChecksumType) * 8) #define HandlespaceChecksumMask ((HandlespaceChecksumType)-1) #define INITIAL_HANDLESPACE_CHECKSUM 0 HandlespaceChecksumAccumulatorType handlespaceChecksumAdd(const HandlespaceChecksumAccumulatorType a, const HandlespaceChecksumAccumulatorType b); HandlespaceChecksumAccumulatorType handlespaceChecksumSub(const HandlespaceChecksumAccumulatorType a, const HandlespaceChecksumAccumulatorType b); HandlespaceChecksumAccumulatorType handlespaceChecksumCompute(HandlespaceChecksumAccumulatorType sum, const char* buffer, size_t size); HandlespaceChecksumType handlespaceChecksumFinish(HandlespaceChecksumAccumulatorType sum); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/fractalgeneratorservice.h0000664000175000017500000000651011777021056016311 00000000000000/* $Id: fractalgeneratorservice.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef FRACTALGENERATORSERVICE_H #define FRACTALGENERATORSERVICE_H #include "rserpool.h" #include "tcplikeserver.h" #include "fractalgeneratorpackets.h" class FractalGeneratorServer : public TCPLikeServer { public: struct FractalGeneratorServerSettings { unsigned long long DataMaxTime; unsigned long long CookieMaxTime; size_t CookieMaxPackets; size_t TransmitTimeout; size_t FailureAfter; bool TestMode; }; FractalGeneratorServer(int rserpoolSocketDescriptor, FractalGeneratorServerSettings* settings); ~FractalGeneratorServer(); static TCPLikeServer* fractalGeneratorServerFactory(int sd, void* userData, const uint32_t peIdentifier); static void fractalGeneratorPrintParameters(const void* userData); protected: void asyncTimerEvent(const unsigned long long now); EventHandlingResult handleCookieEcho(const char* buffer, size_t bufferSize); EventHandlingResult handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); private: void scheduleTimer(); bool sendCookie(const unsigned long long now); bool sendData(const unsigned long long now); bool handleParameter(const FGPParameter* parameter, const size_t size, const bool insideCookie = false); EventHandlingResult calculateImage(); EventHandlingResult advanceX(const unsigned int color); void advanceY(); unsigned long long LastCookieTimeStamp; unsigned long long LastSendTimeStamp; size_t DataPacketsAfterLastCookie; struct FGPData Data; size_t DataPackets; bool Alert; FractalGeneratorStatus Status; FractalGeneratorServerSettings Settings; }; #endif rsplib-3.0.1/rsplib/peerlistmanagement-template.h0000664000175000017500000002130111777021056017075 00000000000000/* $Id: peerlistmanagement-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PeerListManagement) { struct ST_CLASS(PeerList) List; struct ST_CLASS(PeerListNode)* NewPeerListNode; struct ST_CLASS(PoolHandlespaceManagement)* Handlespace; void (*PeerListNodeUserDataDisposer)(struct ST_CLASS(PeerListNode)* peerListNode, void* userData); void* DisposerUserData; }; void ST_CLASS(peerListManagementNew)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement, const RegistrarIdentifierType ownRegistrarIdentifier, void (*peerListNodeUserDataDisposer)(struct ST_CLASS(PeerListNode)* peerListNode, void* userData), void* disposerUserData); void ST_CLASS(peerListManagementDelete)( struct ST_CLASS(PeerListManagement)* peerListManagement); void ST_CLASS(peerListManagementPrint)( struct ST_CLASS(PeerListManagement)* peerListManagement, FILE* fd, const unsigned int fields); void ST_CLASS(peerListManagementGetDescription)( struct ST_CLASS(PeerListManagement)* peerListManagement, char* buffer, const size_t bufferSize); void ST_CLASS(peerListManagementVerify)( struct ST_CLASS(PeerListManagement)* peerListManagement); void ST_CLASS(peerListManagementClear)( struct ST_CLASS(PeerListManagement)* peerListManagement); size_t ST_CLASS(peerListManagementGetPeers)( const struct ST_CLASS(PeerListManagement)* peerListManagement); void ST_CLASS(peerListManagementActivateTimer)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode, const unsigned int timerCode, const unsigned long long timerTimeStamp); void ST_CLASS(peerListManagementDeactivateTimer)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetFirstPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetLastPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetNextPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetPrevPeerListNodeFromIndexStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetFirstPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetLastPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetNextPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetPrevPeerListNodeFromTimerStorage)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode); unsigned int ST_CLASS(peerListManagementRegisterPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const unsigned int flags, const struct TransportAddressBlock* transportAddressBlock, const unsigned long long currentTimeStamp, struct ST_CLASS(PeerListNode)** peerListNode); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementFindPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementFindNearestPrevPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementFindNearestNextPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetRandomPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement); unsigned int ST_CLASS(peerListManagementDeregisterPeerListNodeByPtr)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode); unsigned int ST_CLASS(peerListManagementDeregisterPeerListNode)( struct ST_CLASS(PeerListManagement)* peerListManagement, const RegistrarIdentifierType registrarIdentifier, const struct TransportAddressBlock* transportAddressBlock); unsigned long long ST_CLASS(peerListManagementGetNextTimerTimeStamp)( struct ST_CLASS(PeerListManagement)* peerListManagement); void ST_CLASS(peerListManagementRestartPeerListNodeExpiryTimer)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PeerListNode)* peerListNode, const unsigned long long expiryTimeout); size_t ST_CLASS(peerListManagementPurgeExpiredPeerListNodes)( struct ST_CLASS(PeerListManagement)* peerListManagement, const unsigned long long currentTimeStamp); void ST_CLASS(peerListManagementVerifyChecksumsInHandlespace)( struct ST_CLASS(PeerListManagement)* peerListManagement, struct ST_CLASS(PoolHandlespaceManagement)* poolHandlespaceManagement); struct ST_CLASS(PeerListNode)* ST_CLASS(peerListManagementGetUsefulPeerForPE)( struct ST_CLASS(PeerListManagement)* peerListManagement, const PoolElementIdentifierType peIdentifier); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/scriptingservice.h0000664000175000017500000001051211777021056014765 00000000000000/* $Id: scriptingservice.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef SCRIPTINGSERVICE_H #define SCRIPTINGSERVICE_H #include "rserpool.h" #include "tcplikeserver.h" #include "scriptingpackets.h" #include "environmentcache.h" #include "sha1.h" #include class ScriptingServer : public TCPLikeServer { public: struct ScriptingServerSettings { unsigned int TransmitTimeout; unsigned int KeepAliveInterval; unsigned int KeepAliveTimeout; unsigned int CacheMaxEntries; unsigned long long CacheMaxSize; std::string CacheDirectory; bool KeepTempDirs; bool VerboseMode; }; ScriptingServer(int rserpoolSocketDescriptor, ScriptingServerSettings* settings); ~ScriptingServer(); static TCPLikeServer* scriptingServerFactory(int sd, void* userData, const uint32_t peIdentifier); static bool initializeService(void* userData); static void finishService(void* userData); static void scriptingPrintParameters(const void* userData); static void rejectNewSession(int sd); protected: virtual bool start(); EventHandlingResult handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); private: virtual EventHandlingResult initializeSession(); virtual void finishSession(EventHandlingResult result); virtual EventHandlingResult syncTimerEvent(const unsigned long long now); EventHandlingResult startWorking(); bool hasFinishedWork(int& exitStatus); EventHandlingResult sendStatus(const int exitStatus); EventHandlingResult performDownload(); EventHandlingResult handleUploadMessage(const Upload* upload); EventHandlingResult handleEnvironmentMessage(const Environment* environment); EventHandlingResult sendKeepAliveMessage(); EventHandlingResult handleKeepAliveAckMessage(); EventHandlingResult handleKeepAliveMessage(); enum ScriptingState { SS_Upload = 1, SS_Working = 2, SS_Download = 3 }; static EnvironmentCache Cache; ScriptingState State; ScriptingServerSettings Settings; char Directory[128]; char EnvironmentName[256]; uint8_t EnvironmentHash[SE_HASH_SIZE]; sha1_ctx EnvironmentHashContext; char InputName[256]; char OutputName[256]; char StatusName[256]; FILE* UploadFile; pid_t ChildProcess; bool WaitingForKeepAliveAck; bool WaitingForEnvironment; bool NeedsEnvironment; bool GotEnvironment; unsigned long long LastKeepAliveTimeStamp; unsigned long long UploadSize; unsigned long long DownloadSize; unsigned long long UploadStarted; unsigned long long ProcessingStarted; unsigned long long DownloadStarted; }; #endif rsplib-3.0.1/rsplib/poolhandlespacenode-template.h0000664000175000017500000003765611777021056017244 00000000000000/* $Id: poolhandlespacenode-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif struct ST_CLASS(PoolHandlespaceNode) { struct ST_CLASSNAME PoolIndexStorage; /* Pools */ struct ST_CLASSNAME PoolElementTimerStorage; /* PEs with timer event scheduled */ struct ST_CLASSNAME PoolElementConnectionStorage; /* PEs by connection */ struct ST_CLASSNAME PoolElementOwnershipStorage; /* PEs by ownership */ HandlespaceChecksumAccumulatorType HandlespaceChecksum; /* Handlespace checksum */ HandlespaceChecksumAccumulatorType OwnershipChecksum; /* Ownership checksum */ RegistrarIdentifierType HomeRegistrarIdentifier; /* This NS's Identifier */ size_t PoolElements; /* Number of Pool Elements */ size_t OwnedPoolElements; /* Number of owned Pool Elements */ void* NotificationUserData; void (*PoolNodeUpdateNotification)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, enum PoolNodeUpdateAction updateAction, HandlespaceChecksumAccumulatorType preUpdateChecksum, RegistrarIdentifierType preUpdateHomeRegistrar, void* userData); }; void ST_CLASS(poolHandlespaceNodeNew)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier, void (*poolNodeUpdateNotification)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, enum PoolNodeUpdateAction updateAction, HandlespaceChecksumAccumulatorType preUpdateChecksum, RegistrarIdentifierType preUpdateHomeRegistrar, void* userData), void* notificationUserData); void ST_CLASS(poolHandlespaceNodeDelete)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeGetHandlespaceChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeGetOwnershipChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeComputeHandlespaceChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); HandlespaceChecksumAccumulatorType ST_CLASS(poolHandlespaceNodeComputeOwnershipChecksum)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType registrarIdentifier); size_t ST_CLASS(poolHandlespaceNodeGetTimerNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementTimerNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode); size_t ST_CLASS(poolHandlespaceNodeGetOwnershipNodesForIdentifier)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeFindNearestNextPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNodeForIdentifier)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const RegistrarIdentifierType homeRegistrarIdentifier); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNodeForSameIdentifier)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode); size_t ST_CLASS(poolHandlespaceNodeGetConnectionNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); size_t ST_CLASS(poolHandlespaceNodeGetConnectionNodesForConnection)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const int connectionSocketDescriptor, const sctp_assoc_t assocID); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeFindNearestNextPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const int connectionSocketDescriptor, const sctp_assoc_t assocID, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolElementConnectionNodeForConnection)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const int connectionSocketDescriptor, const sctp_assoc_t assocID); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolElementConnectionNodeForSameConnection)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode); size_t ST_CLASS(poolHandlespaceNodeGetPoolElementNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); size_t ST_CLASS(poolHandlespaceNodeGetOwnedPoolElementNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); size_t ST_CLASS(poolHandlespaceNodeGetPoolNodes)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); size_t ST_CLASS(poolHandlespaceNodeGetPoolElementNodesOfPool)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeGetFirstPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeGetNextPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeAddPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeFindPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeFindNearestNextPoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle); struct ST_CLASS(PoolNode)* ST_CLASS(poolHandlespaceNodeRemovePoolNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeAddPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)* poolNode, struct ST_CLASS(PoolElementNode)* poolElementNode, unsigned int* errorCode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeFindPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle, const PoolElementIdentifierType poolElementIdentifier); void ST_CLASS(poolHandlespaceNodeUpdateOwnershipOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const RegistrarIdentifierType newHomeRegistrarIdentifier); void ST_CLASS(poolHandlespaceNodeUpdateConnectionOfPoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID); void ST_CLASS(poolHandlespaceNodeUpdatePoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const struct ST_CLASS(PoolElementNode)* source, unsigned int* errorCode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeAddOrUpdatePoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolNode)** poolNode, struct ST_CLASS(PoolElementNode)** poolElementNode, unsigned int* errorCode); struct ST_CLASS(PoolElementNode)* ST_CLASS(poolHandlespaceNodeRemovePoolElementNode)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode); void ST_CLASS(poolHandlespaceNodeGetDescription)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, char* buffer, const size_t bufferSize); void ST_CLASS(poolHandlespaceNodePrint)(const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, FILE* fd, const unsigned int fields); int ST_CLASS(poolHandlespaceNodeHasActiveTimer)( const struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct ST_CLASS(PoolElementNode)* poolElementNode); void ST_CLASS(poolHandlespaceNodeActivateTimer)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode, const unsigned int timerCode, const unsigned long long timerTimeStamp); void ST_CLASS(poolHandlespaceNodeDeactivateTimer)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, struct ST_CLASS(PoolElementNode)* poolElementNode); void ST_CLASS(poolHandlespaceNodeVerify)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode); void ST_CLASS(poolHandlespaceNodeClear)(struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, void (*poolNodeDisposer)(void* poolNode, void* userData), void (*poolElementNodeDisposer)(void* poolElementNode, void* userData), void* userData); size_t ST_CLASS(poolHandlespaceNodeSelectPoolElementNodesByPolicy)( struct ST_CLASS(PoolHandlespaceNode)* poolHandlespaceNode, const struct PoolHandle* poolHandle, struct ST_CLASS(PoolElementNode)** poolElementNodeArray, const size_t maxPoolElementNodes, const size_t maxIncrement, unsigned int* errorCode); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/server.10000664000175000017500000000045111777021056012622 00000000000000.\" $Id$ .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt RspServer 1 .Os RSerPool Server .\" ###### Note ############################################################# .Sh NAME .Nm server .Nd server has been renamed to rspserver in rsplib-3.0.0! rsplib-3.0.1/rsplib/thread.h0000664000175000017500000000365311777021056012661 00000000000000/* $Id: thread.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef THREAD_H #define THREAD_H #include #include "mutex.h" class TDThread : public TDMutex { public: TDThread(); virtual ~TDThread(); inline bool isRunning() const { return(MyThread != 0); } inline bool isStopping() { lock(); const bool stopping = Stopping; unlock(); return(stopping); } virtual bool start(); virtual void stop(); void waitForFinish(); static void delay(const unsigned int us); protected: virtual void run() = 0; protected: pthread_t MyThread; private: static void* startRoutine(void* object); bool Stopping; }; #endif rsplib-3.0.1/rsplib/threadsignal.c0000664000175000017500000000515311777021056014047 00000000000000/* $Id: threadsignal.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "threadsignal.h" /* ###### Constructor #################################################### */ void threadSignalNew(struct ThreadSignal* threadSignal) { /* Important: The mutex is non-recursive! */ pthread_mutex_init(&threadSignal->Mutex, NULL); pthread_cond_init(&threadSignal->Condition, NULL); }; /* ###### Destructor ##################################################### */ void threadSignalDelete(struct ThreadSignal* threadSignal) { pthread_cond_destroy(&threadSignal->Condition); pthread_mutex_destroy(&threadSignal->Mutex); }; /* ###### Lock ########################################################### */ void threadSignalLock(struct ThreadSignal* threadSignal) { pthread_mutex_lock(&threadSignal->Mutex); } /* ###### Unlock ######################################################### */ void threadSignalUnlock(struct ThreadSignal* threadSignal) { pthread_mutex_unlock(&threadSignal->Mutex); } /* ###### Send signal #################################################### */ void threadSignalFire(struct ThreadSignal* threadSignal) { pthread_cond_signal(&threadSignal->Condition); } /* ###### Wait for signal ################################################ */ void threadSignalWait(struct ThreadSignal* threadSignal) { pthread_cond_wait(&threadSignal->Condition, &threadSignal->Mutex); } rsplib-3.0.1/rsplib/threadsignal.h0000664000175000017500000000447611777021056014063 00000000000000/* $Id: threadsignal.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef THREADSIGNAL_H #define THREADSIGNAL_H #include "tdtypes.h" #include #ifdef __cplusplus extern "C" { #endif struct ThreadSignal { pthread_mutex_t Mutex; /* Non-recursive mutex! */ pthread_cond_t Condition; }; /** * Create new mutex. * * @param threadSignal ThreadSignal. */ void threadSignalNew(struct ThreadSignal* threadSignal); /** * Delete mutex. * * @param threadSignal ThreadSignal. */ void threadSignalDelete(struct ThreadSignal* threadSignal); /** * Lock mutex. * * @param threadSignal ThreadSignal. */ void threadSignalLock(struct ThreadSignal* threadSignal); /** * Unlock mutex. * * @param threadSignal ThreadSignal. */ void threadSignalUnlock(struct ThreadSignal* threadSignal); /** * Fire signal. * * @param threadSignal ThreadSignal. */ void threadSignalFire(struct ThreadSignal* threadSignal); /** * Wait for signal. * * @param threadSignal ThreadSignal. */ void threadSignalWait(struct ThreadSignal* threadSignal); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/pingpongpackets.h0000664000175000017500000000405511777021056014603 00000000000000/* $Id: pingpongpackets.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef PINGPONGPACKETS_H #define PINGPONGPACKETS_H #include "tdtypes.h" #define PPID_PPP 33 /* old value: 0x29097602 */ #define PPPT_PING 0x01 #define PPPT_PONG 0x02 struct PingPongCommonHeader { uint8_t Type; uint8_t Flags; uint16_t Length; } __attribute__((packed)); struct Ping { struct PingPongCommonHeader Header; uint64_t MessageNo; char Data[]; } __attribute__((packed)); struct Pong { struct PingPongCommonHeader Header; uint64_t MessageNo; uint64_t ReplyNo; char Data[]; } __attribute__((packed)); #define PPP_COOKIE_ID "" struct PPPCookie { char ID[8]; uint64_t ReplyNo; } __attribute__((packed)); #endif rsplib-3.0.1/rsplib/stringutilities.c0000664000175000017500000000770711777021056014653 00000000000000/* $Id: stringutilities.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "stringutilities.h" #include "debug.h" #include #include /* ###### Length-checking strcpy() ###################################### */ int safestrcpy(char* dest, const char* src, const size_t size) { CHECK(size > 0); strncpy(dest, src, size); dest[size - 1] = 0x00; return(strlen(dest) < size); } /* ###### Length-checking strcat() ###################################### */ int safestrcat(char* dest, const char* src, const size_t size) { const size_t l1 = strlen(dest); const size_t l2 = strlen(src); CHECK(size > 0); strncat(dest, src, size - l1 - 1); dest[size - 1] = 0x00; return(l1 + l2 < size); } /* ###### Find first occurrence of character in string ################### */ char* strindex(char* string, const char character) { if(string != NULL) { while(*string != character) { if(*string == 0x00) { return(NULL); } string++; } return(string); } return(NULL); } /* ###### Find last occurrence of character in string #################### */ char* strrindex(char* string, const char character) { const char* original = string; if(original != NULL) { string = (char*)&string[strlen(string)]; while(*string != character) { if(string == original) { return(NULL); } string--; } return(string); } return(NULL); } /* ###### Get next word of text string ################################### */ int getNextWord(const char* input, char* buffer, const size_t bufferSize, size_t* position) { size_t i; char* c; int result; const char* end; end = strindex((char*)&input[*position],' '); if(end != NULL) { i = 0; for(c = (char*)&input[*position];c < end;c++) { if(i < bufferSize) { buffer[i++] = *c; } else { return(0); break; } } if(i < bufferSize) { buffer[i++] = 0x00; } else { return(0); } *position = (size_t)((long)end - (long)input); while(input[*position] == ' ') { (*position)++; } return(1); } else { i = strlen((char*)&input[*position]); if(i > 0) { result = safestrcpy(buffer,(char*)&input[*position],bufferSize); *position += i; return(result); } safestrcpy(buffer,"",bufferSize); } return(0); } /* ###### Memory duplicator ############################################## */ void* memdup(const void* source, const size_t size) { void* dest = malloc(size); if(dest != NULL) { memcpy(dest,source,size); } return(dest); } rsplib-3.0.1/rsplib/stringutilities.h0000664000175000017500000000673111777021056014654 00000000000000/* $Id: stringutilities.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef STRINGUTILITIES_H #define STRINGUTILITIES_H #include #ifdef __cplusplus extern "C" { #endif /** * strcpy() with length check. The result is truncated if the destination * length is not sufficient. It will always be 0-terminated, except for * destination size 0. * * @param dest Destination. * @param sec Source. * @param size Maximum size of destination. * @return true for success; false if result had to be truncated. */ int safestrcpy(char* dest, const char* src, const size_t size); /** * strcat() with length check. The result is truncated if the destination * length is not sufficient. It will always be 0-terminated, except for * destination size 0. * * @param dest Destination. * @param sec Source. * @param size Maximum size of destination. * @return true for success; false if result had to be truncated. */ int safestrcat(char* dest, const char* src, const size_t size); /** * Find first occurrence of character in string. * * @param string String. * @param character Character. * @return Position of first occurrence or NULL if not found. */ char* strindex(char* string, const char character); /** * Find last occurrence of character in string. * * @param string String. * @param character Character. * @return Position of last occurrence or NULL if not found. */ char* strrindex(char* string, const char character); /** * Duplicate memory block by allocating a new block and copying the old one. * * @param source Pointer to memory block to be copied. * @param size Size of memory block to be copied. * @return New memory block or NULL if allocation failed. */ void* memdup(const void* source, const size_t size); /** * Get position of next word in text string. * * @param input Input string. * @param buffer Buffer to copy word to. * @param bufferSize Maximum size of buffer. * @param position Position to start scanning from. This is a reference variable, the end position of the scanned word will be written to it! * @return true for success; false otherwise. */ int getNextWord(const char* input, char* buffer, const size_t bufferSize, size_t* position); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/execalarm.cc0000664000175000017500000000374511777021056013513 00000000000000/* $Id: execalarm.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include #include #include #include #include using namespace std; // ###### Signal handler #################################################### void alarmSignal(int signum) { puts("Timeout!"); exit(1); } // ###### Main program ###################################################### int main(int argc, char** argv) { if(argc != 3) { cerr << "Usage: " << argv[0] << " [Seconds] [Command]" << endl; exit(1); } signal(SIGALRM, &alarmSignal); alarm(atol(argv[1])); const int result = system(argv[2]); if(result != 0) { puts("ERR"); exit(1); } return(0); } rsplib-3.0.1/rsplib/rserpoolerror.c0000664000175000017500000001040611777021056014316 00000000000000/* $Id: rserpoolerror.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpoolerror.h" #include struct ErrorTable { const unsigned short ErrorCode; const char* ErrorText; }; static struct ErrorTable ErrorDescriptions[] = { /* No error */ { RSPERR_OKAY, "okay!" }, /* Protocol-specific error causes */ { RSPERR_UNRECOGNIZED_PARAMETER, "unrecognized parameter" }, { RSPERR_UNRECOGNIZED_MESSAGE, "unrecognized message" }, { RSPERR_INVALID_MESSAGE, "invalid message" }, { RSPERR_INVALID_TLV, "invalid TLV" }, { RSPERR_INVALID_VALUE, "invalid value" }, { RSPERR_NO_USABLE_USER_ADDRESSES, "no usable user endpoint address(es)" }, { RSPERR_NO_USABLE_ASAP_ADDRESSES, "no usable ASAP endpoint address(es)" }, /* Implementation-specific error causes */ { RSPERR_NOT_INITIALIZED, "not initialized" }, { RSPERR_BUFFERSIZE_EXCEEDED, "buffer size exceeded (message too long)" }, { RSPERR_READ_ERROR, "read() error" }, { RSPERR_WRITE_ERROR, "write() error" }, { RSPERR_CONNECTION_FAILURE_SOCKET, "socket() failure" }, { RSPERR_CONNECTION_FAILURE_CONNECT, "connect() failure" }, { RSPERR_NO_REGISTRAR, "no registrar available" }, { RSPERR_TIMEOUT, "timeout" }, { RSPERR_UNRECOGNIZED_PARAMETER_SILENT, "unrecognized parameter (silent)" }, /* Handlespace-management specific error causes */ { RSPERR_OUT_OF_RESOURCES, "out of resources" }, { RSPERR_NOT_FOUND, "object not found" }, { RSPERR_INVALID_ID, "invalid ID" }, { RSPERR_OWN_ID, "own ID" }, { RSPERR_DUPLICATE_ID, "duplicate ID" }, { RSPERR_WRONG_PROTOCOL, "wrong protocol" }, { RSPERR_WRONG_CONTROLCHANNEL_HANDLING, "wrong control channel handling" }, { RSPERR_INCOMPATIBLE_POOL_POLICY, "incompatible pool policy" }, { RSPERR_UNSUPPORTED_POOL_POLICY, "unsupported pool policy" }, { RSPERR_INVALID_POOL_POLICY, "invalid pool policy" }, { RSPERR_INVALID_POOL_HANDLE, "invalid pool handle (too long)" }, { RSPERR_INVALID_REGISTRATOR, "invalid registrator" }, { RSPERR_INVALID_ADDRESSES, "invalid address(es)" } }; /* ###### Get error description ########################################## */ const char* rserpoolErrorGetDescription(const unsigned int error) { const size_t size = sizeof(ErrorDescriptions) / sizeof(struct ErrorTable); size_t i; for(i = 0;i < size;i++) { if(ErrorDescriptions[i].ErrorCode == error) { return(ErrorDescriptions[i].ErrorText); } } return("Unknown error"); } /* ###### Print error description ######################################## */ void rserpoolErrorPrint(const unsigned int error, FILE* fd) { fputs(rserpoolErrorGetDescription(error), fd); } rsplib-3.0.1/rsplib/rserpoolerror.h0000664000175000017500000000652211777021056014327 00000000000000/* $Id: rserpoolerror.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOLERROR_H #define RSERPOOLERROR_H #include #ifdef __cplusplus extern "C" { #endif /* No error */ #define RSPERR_OKAY 0 /* Protocol-specific error causes */ #define RSPERR_UNRECOGNIZED_PARAMETER 0x0001 #define RSPERR_UNRECOGNIZED_MESSAGE 0x0002 #define RSPERR_INVALID_MESSAGE 0x0010 #define RSPERR_INVALID_TLV 0x0003 #define RSPERR_INVALID_VALUE 0x0011 #define RSPERR_INCOMPATIBLE_POOL_POLICY 0x0005 #define RSPERR_OUT_OF_RESOURCES 0x0006 #define RSPERR_WRONG_CONTROLCHANNEL_HANDLING 0x0008 #define RSPERR_NOT_FOUND 0x0009 /* Implementation-specific error causes */ #define RSPERR_NOT_INITIALIZED 0x1000 #define RSPERR_BUFFERSIZE_EXCEEDED 0x1001 #define RSPERR_READ_ERROR 0x1003 #define RSPERR_WRITE_ERROR 0x1004 #define RSPERR_CONNECTION_FAILURE_SOCKET 0x1005 #define RSPERR_CONNECTION_FAILURE_CONNECT 0x1006 #define RSPERR_NO_REGISTRAR 0x1007 #define RSPERR_TIMEOUT 0x1008 #define RSPERR_UNRECOGNIZED_PARAMETER_SILENT 0x1009 #define RSPERR_WRONG_PROTOCOL 0x100a #define RSPERR_UNSUPPORTED_POOL_POLICY 0x100b /* Handlespace-management specific error causes */ #define RSPERR_INVALID_ID 0xf000 #define RSPERR_OWN_ID 0xf001 #define RSPERR_DUPLICATE_ID 0xf002 #define RSPERR_INVALID_POOL_POLICY 0xf003 #define RSPERR_INVALID_POOL_HANDLE 0xf004 #define RSPERR_INVALID_ADDRESSES 0xf005 #define RSPERR_INVALID_REGISTRATOR 0xf006 #define RSPERR_NO_USABLE_ASAP_ADDRESSES 0xf007 #define RSPERR_NO_USABLE_USER_ADDRESSES 0xf008 #define RSPERR_OUT_OF_MEMORY RSPERR_OUT_OF_RESOURCES const char* rserpoolErrorGetDescription(const unsigned int error); void rserpoolErrorPrint(const unsigned int error, FILE* fd); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/notificationqueue.c0000664000175000017500000001343611777021056015140 00000000000000/* $Id: notificationqueue.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "notificationqueue.h" #include "debug.h" /* ###### Constructor #################################################### */ void notificationQueueNew(struct NotificationQueue* notificationQueue) { notificationQueue->PreReadQueue = NULL; notificationQueue->PreReadLast = NULL; notificationQueue->PostReadQueue = NULL; notificationQueue->PostReadLast = NULL; notificationQueue->EventMask = 0; } /* ###### Destructor ##################################################### */ void notificationQueueDelete(struct NotificationQueue* notificationQueue) { notificationQueueClear(notificationQueue); } /* ###### Clean up queue ################################################# */ void notificationQueueClear(struct NotificationQueue* notificationQueue) { struct NotificationNode* next; while(notificationQueue->PreReadQueue) { next = notificationQueue->PreReadQueue->Next; free(notificationQueue->PreReadQueue); notificationQueue->PreReadQueue = next; } notificationQueue->PreReadLast = NULL; while(notificationQueue->PostReadQueue) { next = notificationQueue->PostReadQueue->Next; free(notificationQueue->PostReadQueue); notificationQueue->PostReadQueue = next; } notificationQueue->PostReadLast = NULL; } /* ###### Check, if there are notifications to read ###################### */ bool notificationQueueHasData(struct NotificationQueue* notificationQueue) { return((notificationQueue->PreReadQueue != NULL) || (notificationQueue->PostReadQueue != NULL)); } /* ###### Enqueue notification ########################################### */ struct NotificationNode* notificationQueueEnqueueNotification( struct NotificationQueue* notificationQueue, const bool isPreReadNotification, const uint16_t type) { struct NotificationNode* notificationNode; /* ====== Only enqueue requested events =============================== */ if((1 << type) & notificationQueue->EventMask) { notificationNode = (struct NotificationNode*)malloc(sizeof(struct NotificationNode)); if(notificationNode) { /* ====== Set pending events appropriately ====================== */ notificationNode->Content.rn_header.rn_type = type; notificationNode->Content.rn_header.rn_flags = 0x00; notificationNode->Content.rn_header.rn_length = sizeof(notificationNode->Content); /* ====== Add notification node ================================= */ notificationNode->Next = NULL; if(isPreReadNotification) { if(notificationQueue->PreReadLast) { notificationQueue->PreReadLast->Next = notificationNode; } else { notificationQueue->PreReadQueue = notificationNode; } notificationQueue->PreReadLast = notificationNode; } else { if(notificationQueue->PostReadLast) { notificationQueue->PostReadLast->Next = notificationNode; } else { notificationQueue->PostReadQueue = notificationNode; } notificationQueue->PostReadLast = notificationNode; } } } else { notificationNode = NULL; } return(notificationNode); } /* ###### Dequeue notification ########################################### */ struct NotificationNode* notificationQueueDequeueNotification( struct NotificationQueue* notificationQueue, const bool fromPreReadNotifications) { struct NotificationNode* notificationNode; if(fromPreReadNotifications) { notificationNode = notificationQueue->PreReadQueue; if(notificationNode) { notificationQueue->PreReadQueue = notificationNode->Next; } if(notificationNode == notificationQueue->PreReadLast) { notificationQueue->PreReadLast = NULL; } } else { notificationNode = notificationQueue->PostReadQueue; if(notificationNode) { notificationQueue->PostReadQueue = notificationNode->Next; } if(notificationNode == notificationQueue->PostReadLast) { notificationQueue->PostReadLast = NULL; } } return(notificationNode); } /* ###### Destructor ##################################################### */ void notificationNodeDelete(struct NotificationNode* notificationNode) { free(notificationNode); } rsplib-3.0.1/rsplib/notificationqueue.h0000664000175000017500000000565611777021056015152 00000000000000/* $Id: notificationqueue.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef NOTIFICATIONQUEUE_H #define NOTIFICATIONQUEUE_H #include "tdtypes.h" #include "rserpool.h" #ifdef __cplusplus extern "C" { #endif /* Notification event types */ #define NET_SESSION_CHANGE (1 << RSERPOOL_SESSION_CHANGE) #define NET_FAILOVER (1 << RSERPOOL_FAILOVER) #define NET_SHUTDOWN_EVENT (1 << RSERPOOL_SHUTDOWN_EVENT) #define NET_NOTIFICATION_MASK (NET_SESSION_CHANGE|NET_FAILOVER|NET_SHUTDOWN_EVENT) struct NotificationNode { struct NotificationNode* Next; union rserpool_notification Content; }; struct NotificationQueue { struct NotificationNode* PreReadQueue; struct NotificationNode* PreReadLast; struct NotificationNode* PostReadQueue; struct NotificationNode* PostReadLast; unsigned int EventMask; }; void notificationQueueNew(struct NotificationQueue* notificationQueue); void notificationQueueDelete(struct NotificationQueue* notificationQueue); void notificationQueueClear(struct NotificationQueue* notificationQueue); struct NotificationNode* notificationQueueEnqueueNotification( struct NotificationQueue* notificationQueue, const bool isPreReadNotification, const uint16_t type); struct NotificationNode* notificationQueueDequeueNotification( struct NotificationQueue* notificationQueue, const bool fromPreReadNotifications); bool notificationQueueHasData(struct NotificationQueue* notificationQueue); void notificationNodeDelete(struct NotificationNode* notificationNode); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/peerlistnode-template_impl.h0000664000175000017500000002323011777021056016732 00000000000000/* $Id: peerlistnode-template_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ /* ###### Print ########################################################## */ void ST_CLASS(peerListIndexStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PeerListNode)* peerListNode = (struct ST_CLASS(PeerListNode)*)nodePtr; ST_CLASS(peerListNodePrint)(peerListNode, fd, 0); } /* ###### Comparison ##################################################### */ int ST_CLASS(peerListIndexStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PeerListNode)* node1 = ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)((void*)nodePtr1); const struct ST_CLASS(PeerListNode)* node2 = ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)((void*)nodePtr2); /* Compare IDs */ if(node1->Identifier < node2->Identifier) { return(-1); } else if(node1->Identifier > node2->Identifier) { return(1); } /* The IDs are equal. If both IDs are undefined, we compare the addresses completely to get a sorting order. */ if((node1->Identifier == UNDEFINED_REGISTRAR_IDENTIFIER) && (node2->Identifier == UNDEFINED_REGISTRAR_IDENTIFIER)) { return(transportAddressBlockComparison(node1->AddressBlock, node2->AddressBlock)); } return(0); } /* ###### Print ########################################################## */ void ST_CLASS(peerListTimerStorageNodePrint)(const void* nodePtr, FILE* fd) { const struct ST_CLASS(PeerListNode)* peerListNode = ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)((void*)nodePtr); ST_CLASS(peerListNodePrint)(peerListNode, fd, 0); } /* ###### Comparison ##################################################### */ int ST_CLASS(peerListTimerStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2) { const struct ST_CLASS(PeerListNode)* node1 = ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)((void*)nodePtr1); const struct ST_CLASS(PeerListNode)* node2 = ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)((void*)nodePtr2); /* Compare time stamps */ if(node1->TimerTimeStamp < node2->TimerTimeStamp) { return(-1); } else if(node1->TimerTimeStamp > node2->TimerTimeStamp) { return(1); } /* Compare IDs */ if(node1->Identifier < node2->Identifier) { return(-1); } else if(node1->Identifier > node2->Identifier) { return(1); } /* The IDs are equal. If both IDs are undefined, we compare the addresses completely to get a sorting order. */ if((node1->Identifier == UNDEFINED_REGISTRAR_IDENTIFIER) && (node2->Identifier == UNDEFINED_REGISTRAR_IDENTIFIER)) { return(transportAddressBlockComparison(node1->AddressBlock, node2->AddressBlock)); } return(0); } /* ###### Initialize ##################################################### */ void ST_CLASS(peerListNodeNew)(struct ST_CLASS(PeerListNode)* peerListNode, const RegistrarIdentifierType identifier, const unsigned int flags, struct TransportAddressBlock* transportAddressBlock) { STN_METHOD(New)(&peerListNode->PeerListIndexStorageNode); STN_METHOD(New)(&peerListNode->PeerListTimerStorageNode); peerListNode->OwnerPeerList = NULL; peerListNode->Identifier = identifier; peerListNode->Flags = flags; peerListNode->OwnershipChecksum = INITIAL_HANDLESPACE_CHECKSUM; peerListNode->Status = 0; peerListNode->TakeoverRegistrarID = UNDEFINED_REGISTRAR_IDENTIFIER; peerListNode->TakeoverProcess = NULL; peerListNode->LastUpdateTimeStamp = 0; peerListNode->TimerCode = 0; peerListNode->TimerTimeStamp = 0; peerListNode->AddressBlock = transportAddressBlock; peerListNode->UserData = NULL; } /* ###### Invalidate ##################################################### */ void ST_CLASS(peerListNodeDelete)(struct ST_CLASS(PeerListNode)* peerListNode) { CHECK(!STN_METHOD(IsLinked)(&peerListNode->PeerListIndexStorageNode)); CHECK(!STN_METHOD(IsLinked)(&peerListNode->PeerListTimerStorageNode)); peerListNode->Flags = 0; peerListNode->LastUpdateTimeStamp = 0; peerListNode->TimerCode = 0; peerListNode->TimerTimeStamp = 0; /* Do not clear AddressBlock, UserData and Identifier yet, they may be used for user-specific dispose function! */ } /* ###### Get PeerListNode from given Index Node ######################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(getPeerListNodeFromPeerListIndexStorageNode)(void* node) { const struct ST_CLASS(PeerListNode)* dummy = (struct ST_CLASS(PeerListNode)*)node; long n = (long)node - ((long)&dummy->PeerListIndexStorageNode - (long)dummy); return((struct ST_CLASS(PeerListNode)*)n); } /* ###### Get PeerListNode from given Timer Node ######################### */ struct ST_CLASS(PeerListNode)* ST_CLASS(getPeerListNodeFromPeerListTimerStorageNode)(void* node) { const struct ST_CLASS(PeerListNode)* dummy = (struct ST_CLASS(PeerListNode)*)node; long n = (long)node - ((long)&dummy->PeerListTimerStorageNode - (long)dummy); return((struct ST_CLASS(PeerListNode)*)n); } /* ###### Update ######################################################### */ int ST_CLASS(peerListNodeUpdate)(struct ST_CLASS(PeerListNode)* peerListNode, const struct ST_CLASS(PeerListNode)* source) { peerListNode->Flags = source->Flags; return(1); } /* ###### Get ownership checksum ######################################### */ HandlespaceChecksumType ST_CLASS(peerListNodeGetOwnershipChecksum)( const struct ST_CLASS(PeerListNode)* peerListNode) { return(handlespaceChecksumFinish(peerListNode->OwnershipChecksum)); } /* ###### Get textual description ######################################## */ void ST_CLASS(peerListNodeGetDescription)( const struct ST_CLASS(PeerListNode)* peerListNode, char* buffer, const size_t bufferSize, const unsigned int fields) { char transportAddressDescription[1024]; snprintf(buffer, bufferSize, "$%08x upd=%llu chsum=$%08x flags=", peerListNode->Identifier, peerListNode->LastUpdateTimeStamp, (unsigned int)handlespaceChecksumFinish(peerListNode->OwnershipChecksum)); if(peerListNode->Flags & PLNF_NEW) { safestrcat(buffer, "[new]", bufferSize); } if(!(peerListNode->Flags & PLNF_DYNAMIC)) { safestrcat(buffer, "(static)", bufferSize); } else { safestrcat(buffer, "[dynamic]", bufferSize); } if(peerListNode->Flags & PLNF_FROM_PEER) { safestrcat(buffer, "[fromPeer]", bufferSize); } if(peerListNode->Status & PLNS_LISTSYNC) { safestrcat(buffer, " LISTSYNC", bufferSize); } if(peerListNode->Status & PLNS_HTSYNC) { safestrcat(buffer, " HTSYNC", bufferSize); } if(peerListNode->Status & PLNS_MENTOR) { safestrcat(buffer, " MENTOR", bufferSize); } if(peerListNode->TakeoverProcess) { safestrcat(buffer, " TAKEOVER(own)", bufferSize); } if(peerListNode->TakeoverRegistrarID) { safestrcat(buffer, " TAKEOVER(other)", bufferSize); } if((fields & PLNPO_TRANSPORT) && (peerListNode->AddressBlock->Addresses > 0)) { transportAddressBlockGetDescription(peerListNode->AddressBlock, (char*)&transportAddressDescription, sizeof(transportAddressDescription)); safestrcat(buffer, "\n addrs: ", bufferSize); safestrcat(buffer, transportAddressDescription, bufferSize); } } /* ###### Print ########################################################## */ void ST_CLASS(peerListNodePrint)(const struct ST_CLASS(PeerListNode)* peerListNode, FILE* fd, const unsigned int fields) { char peerListNodeDescription[1532]; ST_CLASS(peerListNodeGetDescription)(peerListNode, (char*)&peerListNodeDescription, sizeof(peerListNodeDescription), fields); fputs(peerListNodeDescription, fd); } rsplib-3.0.1/rsplib/rserpoolmessage.c0000664000175000017500000002411611777021056014614 00000000000000/* $Id: rserpoolmessage.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "netutilities.h" #include "rserpoolmessage.h" #include "rserpoolmessagecreator.h" #include "rserpoolmessageparser.h" #include /* ###### Constructor #################################################### */ struct RSerPoolMessage* rserpoolMessageNew(char* buffer, const size_t bufferSize) { struct RSerPoolMessage* message; if(buffer == NULL) { message = (struct RSerPoolMessage*)malloc(sizeof(struct RSerPoolMessage) + bufferSize); if(message != NULL) { memset(message, 0, sizeof(struct RSerPoolMessage)); message->Buffer = (char*)((long)message + (long)sizeof(struct RSerPoolMessage)); message->BufferSize = bufferSize; message->OriginalBufferSize = bufferSize; } } else { message = (struct RSerPoolMessage*)malloc(sizeof(struct RSerPoolMessage)); if(message != NULL) { memset(message, 0, sizeof(struct RSerPoolMessage)); message->Buffer = buffer; message->BufferSize = bufferSize; message->OriginalBufferSize = bufferSize; } } return(message); } /* ###### Destructor ##################################################### */ void rserpoolMessageDelete(struct RSerPoolMessage* message) { if(message != NULL) { rserpoolMessageClearAll(message); if((message->BufferAutoDelete) && (message->Buffer)) { free(message->Buffer); } message->Buffer = NULL; message->BufferSize = 0; free(message); } } /* ###### Clear RSerPoolMessage ########################################## */ void rserpoolMessageClearAll(struct RSerPoolMessage* message) { struct TransportAddressBlock* transportAddressBlock; struct TransportAddressBlock* nextTransportAddressBlock; char* buffer; size_t originalBufferSize; bool bufferAutoDelete; size_t i; if(message != NULL) { if((message->PoolElementPtr) && (message->PoolElementPtrAutoDelete)) { ST_CLASS(poolElementNodeDelete)(message->PoolElementPtr); transportAddressBlockDelete(message->PoolElementPtr->UserTransport); free(message->PoolElementPtr->UserTransport); message->PoolElementPtr->UserTransport = NULL; if(message->PoolElementPtr->RegistratorTransport) { transportAddressBlockDelete(message->PoolElementPtr->RegistratorTransport); free(message->PoolElementPtr->RegistratorTransport); message->PoolElementPtr->RegistratorTransport = NULL; } free(message->PoolElementPtr); message->PoolElementPtr = NULL; } if((message->CookiePtr) && (message->CookiePtrAutoDelete)) { free(message->CookiePtr); message->CookiePtr = NULL; } if(message->TransportAddressBlockListPtrAutoDelete) { transportAddressBlock = message->TransportAddressBlockListPtr; while(transportAddressBlock) { nextTransportAddressBlock = transportAddressBlock->Next; transportAddressBlockDelete(transportAddressBlock); free(transportAddressBlock); transportAddressBlock = nextTransportAddressBlock; } message->TransportAddressBlockListPtr = NULL; } message->TransportAddressBlockListPtr = NULL; if(message->PoolElementPtrArrayAutoDelete) { CHECK(message->PoolElementPtrArraySize <= MAX_MAX_HANDLE_RESOLUTION_ITEMS); for(i = 0;i < message->PoolElementPtrArraySize;i++) { if(message->PoolElementPtrArray[i]) { ST_CLASS(poolElementNodeDelete)(message->PoolElementPtrArray[i]); transportAddressBlockDelete(message->PoolElementPtrArray[i]->UserTransport); free(message->PoolElementPtrArray[i]->UserTransport); message->PoolElementPtrArray[i]->UserTransport = NULL; if(message->PoolElementPtrArray[i]->RegistratorTransport) { transportAddressBlockDelete(message->PoolElementPtrArray[i]->RegistratorTransport); free(message->PoolElementPtrArray[i]->RegistratorTransport); message->PoolElementPtrArray[i]->RegistratorTransport = NULL; } free(message->PoolElementPtrArray[i]); message->PoolElementPtrArray[i] = NULL; } } } if((message->PeerListNodePtrAutoDelete) && (message->PeerListNodePtr)) { ST_CLASS(peerListNodeDelete)(message->PeerListNodePtr); transportAddressBlockDelete(message->PeerListNodePtr->AddressBlock); free(message->PeerListNodePtr->AddressBlock); message->PeerListNodePtr->AddressBlock = NULL; free(message->PeerListNodePtr); message->PeerListNodePtr = NULL; } if((message->PeerListPtrAutoDelete) && (message->PeerListPtr)) { ST_CLASS(peerListManagementDelete)(message->PeerListPtr); free(message->PeerListPtr); message->PeerListPtr = NULL; } if((message->HandlespacePtrAutoDelete) && (message->HandlespacePtr)) { ST_CLASS(poolHandlespaceManagementDelete)(message->HandlespacePtr); free(message->HandlespacePtr); message->HandlespacePtr = NULL; } if((message->ErrorCauseParameterTLV) && (message->ErrorCauseParameterTLVAutoDelete)) { free(message->ErrorCauseParameterTLV); message->ErrorCauseParameterTLV = NULL; } buffer = message->Buffer; originalBufferSize = message->OriginalBufferSize; bufferAutoDelete = message->BufferAutoDelete; memset(message,0,sizeof(struct RSerPoolMessage)); message->BufferAutoDelete = bufferAutoDelete; message->OriginalBufferSize = originalBufferSize; message->BufferSize = originalBufferSize; message->Buffer = buffer; } } /* ###### Reset buffer size ############################################## */ void rserpoolMessageClearBuffer(struct RSerPoolMessage* message) { if(message != NULL) { message->BufferSize = message->OriginalBufferSize; message->Position = 0; } } /* ###### Send RSerPoolMessage ########################################### */ bool rserpoolMessageSend(int protocol, int fd, const sctp_assoc_t assocID, const int flags, const uint16_t sctpFlags, const unsigned long long timeout, struct RSerPoolMessage* message) { size_t messageLength; ssize_t sent; uint32_t myPPID; size_t i; messageLength = rserpoolMessage2Packet(message); if(messageLength > 0) { myPPID = (protocol == IPPROTO_SCTP) ? message->PPID : 0; sent = sendtoplus(fd, message->Buffer, messageLength, #ifdef MSG_NOSIGNAL flags|MSG_NOSIGNAL, #else flags, #endif message->AddressArray, message->Addresses, myPPID, assocID, 0, 0, sctpFlags, timeout); if(sent == (ssize_t)messageLength) { LOG_VERBOSE2 fprintf(stdlog, "Successfully sent ASAP message: " "assoc=%u PPID=$%08x, Type=$%02x\n", (unsigned int)assocID, myPPID, message->Type); LOG_END return(true); } LOG_VERBOSE logerror("sendtoplus() error"); if(message->AddressArray) { fputs("Failed to send to addresses:", stdlog); for(i = 0;i < message->Addresses;i++) { fputs(" ", stderr); fputaddress(&message->AddressArray[i].sa, true, stdlog); } fputs("\n", stdlog); } LOG_END } else { LOG_ERROR fputs("Unable to create packet for message\n",stdlog); LOG_END } return(false); } /* ###### Try to get space in RSerPoolMessage's buffer ####################### */ void* getSpace(struct RSerPoolMessage* message, const size_t headerSize) { void* header; if(message->Position + headerSize <= message->BufferSize) { header = (void*)&message->Buffer[message->Position]; message->Position += headerSize; return(header); } if(message->Position == message->BufferSize) { LOG_VERBOSE4 fputs("End of message\n", stdlog); LOG_END } else { LOG_VERBOSE3 fprintf(stdlog, "Buffer size too low!\np=%u + h=%u > size=%u\n", (unsigned int)message->Position, (unsigned int)headerSize, (unsigned int)message->BufferSize); LOG_END } return(NULL); } rsplib-3.0.1/rsplib/rserpoolmessage.h0000664000175000017500000003361611777021056014626 00000000000000/* $Id: rserpoolmessage.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef RSERPOOLMESSAGE_H #define RSERPOOLMESSAGE_H #include "tdtypes.h" #include "poolhandlespacemanagement.h" #include #ifdef __cplusplus extern "C" { #endif /* Set internal limit */ #define MAX_MAX_HANDLE_RESOLUTION_ITEMS 128 #define PORT_ASAP 3863 #define PORT_ENRP 9901 /* old value: 3864 */ #define PPID_ASAP 11 /* old value: 0xFAEEB5D1 */ #define PPID_ENRP 12 /* old value: 0xFAEEB5D2 */ #define AHT_ASAP_MODIFIER 0xaa00 #define AHT_REGISTRATION (0x01 | AHT_ASAP_MODIFIER) #define AHT_DEREGISTRATION (0x02 | AHT_ASAP_MODIFIER) #define AHT_REGISTRATION_RESPONSE (0x03 | AHT_ASAP_MODIFIER) #define AHT_DEREGISTRATION_RESPONSE (0x04 | AHT_ASAP_MODIFIER) #define AHT_HANDLE_RESOLUTION (0x05 | AHT_ASAP_MODIFIER) #define AHT_HANDLE_RESOLUTION_RESPONSE (0x06 | AHT_ASAP_MODIFIER) #define AHT_ENDPOINT_KEEP_ALIVE (0x07 | AHT_ASAP_MODIFIER) #define AHT_ENDPOINT_KEEP_ALIVE_ACK (0x08 | AHT_ASAP_MODIFIER) #define AHT_ENDPOINT_UNREACHABLE (0x09 | AHT_ASAP_MODIFIER) #define AHT_SERVER_ANNOUNCE (0x0a | AHT_ASAP_MODIFIER) #define AHT_COOKIE (0x0b | AHT_ASAP_MODIFIER) #define AHT_COOKIE_ECHO (0x0c | AHT_ASAP_MODIFIER) #define AHT_BUSINESS_CARD (0x0d | AHT_ASAP_MODIFIER) #define AHT_ERROR (0x0e | AHT_ASAP_MODIFIER) #define AHF_REGISTRATION_REJECT (1 << 0) #define AHF_HANDLE_RESOLUTION_REJECT (1 << 0) #define AHF_ENDPOINT_KEEP_ALIVE_HOME (1 << 0) struct rserpool_header { uint8_t ah_type; uint8_t ah_flags; uint16_t ah_length; } __attribute__((packed)); struct rserpool_tlv_header { uint16_t atlv_type; uint16_t atlv_length; } __attribute__((packed)); #define ATT_ACTION_MASK 0xc000 #define ATT_ACTION_STOP 0x0000 #define ATT_ACTION_STOP_AND_REPORT 0x4000 #define ATT_ACTION_CONTINUE 0x8000 #define ATT_ACTION_CONTINUE_AND_REPORT 0xc000 #define PURE_ATT_TYPE(type) (type & (~ATT_ACTION_MASK)) #define ATT_IPv4_ADDRESS 0x0001 #define ATT_IPv6_ADDRESS 0x0002 #define ATT_DCCP_TRANSPORT 0x0003 #define ATT_SCTP_TRANSPORT 0x0004 #define ATT_TCP_TRANSPORT 0x0005 #define ATT_UDP_TRANSPORT 0x0006 #define ATT_UDPLITE_TRANSPORT 0x0007 #define ATT_POOL_POLICY 0x0008 #define ATT_POOL_HANDLE 0x0009 #define ATT_POOL_ELEMENT 0x000a #define ATT_SERVER_INFORMATION 0x000b #define ATT_OPERATION_ERROR 0x000c #define ATT_COOKIE 0x000d #define ATT_POOL_ELEMENT_IDENTIFIER 0x000e #define ATT_POOL_ELEMENT_CHECKSUM 0x000f #define ATT_HANDLE_RESOLUTION 0x003f /* Custom */ struct rserpool_poolelementparameter { uint32_t pep_identifier; uint32_t pep_homeserverid; uint32_t pep_reg_life; } __attribute__((packed)); #define UTP_DATA_ONLY 0x0000 #define UTP_DATA_PLUS_CONTROL 0x0001 struct rserpool_sctptransportparameter { uint16_t stp_port; uint16_t stp_transport_use; } __attribute__((packed)); struct rserpool_tcptransportparameter { uint16_t ttp_port; uint16_t ttp_transport_use; } __attribute__((packed)); struct rserpool_udptransportparameter { uint16_t utp_port; uint16_t utp_reserved; } __attribute__((packed)); struct rserpool_dccptransportparameter { uint16_t dtp_port; uint16_t dtp_reserved; uint32_t dtp_scode; } __attribute__((packed)); struct rserpool_policy_roundrobin { uint32_t pp_rr_policy; } __attribute__((packed)); struct rserpool_policy_weighted_roundrobin { uint32_t pp_wrr_policy; uint32_t pp_wrr_weight; } __attribute__((packed)); struct rserpool_policy_priority { uint32_t pp_p_policy; uint32_t pp_p_priority; } __attribute__((packed)); struct rserpool_policy_leastused { uint32_t pp_lu_policy; uint32_t pp_lu_load; } __attribute__((packed)); struct rserpool_policy_leastused_dpf { uint32_t pp_ludpf_policy; uint32_t pp_ludpf_load; uint32_t pp_ludpf_load_dpf; uint32_t pp_ludpf_distance; } __attribute__((packed)); struct rserpool_policy_leastused_degradation { uint32_t pp_lud_policy; uint32_t pp_lud_load; uint32_t pp_lud_loaddeg; } __attribute__((packed)); struct rserpool_policy_leastused_degradation_dpf { uint32_t pp_luddpf_policy; uint32_t pp_luddpf_load; uint32_t pp_luddpf_loaddeg; uint32_t pp_luddpf_load_dpf; uint32_t pp_luddpf_distance; } __attribute__((packed)); struct rserpool_policy_priority_leastused { uint32_t pp_plu_policy; uint32_t pp_plu_load; } __attribute__((packed)); struct rserpool_policy_priority_leastused_degradation { uint32_t pp_plud_policy; uint32_t pp_plud_load; uint32_t pp_plud_loaddeg; } __attribute__((packed)); struct rserpool_policy_random { uint32_t pp_rd_policy; } __attribute__((packed)); struct rserpool_policy_weighted_random { uint32_t pp_wrd_policy; uint32_t pp_wrd_weight; } __attribute__((packed)); struct rserpool_policy_weighted_random_dpf { uint32_t pp_wrddpf_policy; uint32_t pp_wrddpf_weight; uint32_t pp_wrddpf_weight_dpf; uint32_t pp_wrddpf_distance; } __attribute__((packed)); struct rserpool_policy_randomized_leastused { uint32_t pp_rlu_policy; uint32_t pp_rlu_load; } __attribute__((packed)); struct rserpool_policy_randomized_leastused_degradation { uint32_t pp_rlud_policy; uint32_t pp_rlud_load; uint32_t pp_rlud_loaddeg; } __attribute__((packed)); struct rserpool_policy_randomized_priority_leastused { uint32_t pp_rplu_policy; uint32_t pp_rplu_load; } __attribute__((packed)); struct rserpool_policy_randomized_priority_leastused_degradation { uint32_t pp_rplud_policy; uint32_t pp_rplud_load; uint32_t pp_rplud_loaddeg; } __attribute__((packed)); struct rserpool_errorcause { uint16_t aec_cause; uint16_t aec_length; char aec_data[0]; } __attribute__((packed)); struct rserpool_handleresolutionparameter { uint32_t hrp_items; } __attribute__((packed)); #define EHT_ENRP_MODIFIER 0xee00 #define EHT_PRESENCE (0x01 | EHT_ENRP_MODIFIER) #define EHT_HANDLE_TABLE_REQUEST (0x02 | EHT_ENRP_MODIFIER) #define EHT_HANDLE_TABLE_RESPONSE (0x03 | EHT_ENRP_MODIFIER) #define EHT_HANDLE_UPDATE (0x04 | EHT_ENRP_MODIFIER) #define EHT_LIST_REQUEST (0x05 | EHT_ENRP_MODIFIER) #define EHT_LIST_RESPONSE (0x06 | EHT_ENRP_MODIFIER) #define EHT_INIT_TAKEOVER (0x07 | EHT_ENRP_MODIFIER) #define EHT_INIT_TAKEOVER_ACK (0x08 | EHT_ENRP_MODIFIER) #define EHT_TAKEOVER_SERVER (0x09 | EHT_ENRP_MODIFIER) #define EHT_ERROR (0x0a | EHT_ENRP_MODIFIER) struct rserpool_peerpresenceparameter { uint32_t ppp_sender_id; uint32_t ppp_receiver_id; uint32_t ppp_checksum; } __attribute__((packed)); struct rserpool_handleupdateparameter { uint32_t pnup_sender_id; uint32_t pnup_receiver_id; uint16_t pnup_update_action; uint16_t pnup_pad; } __attribute__((packed)); #define PNUP_ADD_PE 0x0000 #define PNUP_DEL_PE 0x0001 struct rserpool_serverinfoparameter { uint32_t sip_server_id; } __attribute__((packed)); #define EHF_SERVERINFO_MULTICAST (1 << 31) struct rserpool_serverparameter { uint32_t sp_sender_id; uint32_t sp_receiver_id; } __attribute__((packed)); struct rserpool_targetparameter { uint32_t tp_sender_id; uint32_t tp_receiver_id; uint32_t tp_target_id; } __attribute__((packed)); #define EHF_PRESENCE_REPLY_REQUIRED (1 << 0) #define EHF_HANDLE_TABLE_REQUEST_OWN_CHILDREN_ONLY (1 << 0) #define EHF_LIST_RESPONSE_REJECT (1 << 0) #define EHF_HANDLE_TABLE_RESPONSE_REJECT (1 << 0) #define EHF_HANDLE_TABLE_RESPONSE_MORE_TO_SEND (1 << 1) #define EHF_TAKEOVER_SUGGESTED (1 << 0) /* draft-dreibholz-rserpool-enrpupdate */ struct RSerPoolMessage { unsigned int Type; uint16_t Error; uint8_t Flags; uint16_t Action; union sockaddr_union* AddressArray; size_t Addresses; uint16_t OperationErrorCode; char* OperationErrorData; size_t OperationErrorLength; char* OffendingParameterTLV; size_t OffendingParameterTLVLength; char* ErrorCauseParameterTLV; size_t ErrorCauseParameterTLVLength; bool ErrorCauseParameterTLVAutoDelete; char* Buffer; bool BufferAutoDelete; size_t BufferSize; size_t OriginalBufferSize; size_t Position; PoolElementIdentifierType Identifier; HandlespaceChecksumType Checksum; struct PoolPolicySettings PolicySettings; struct PoolHandle Handle; RegistrarIdentifierType RegistrarIdentifier; RegistrarIdentifierType SenderID; RegistrarIdentifierType ReceiverID; struct ST_CLASS(PoolElementNode)* PoolElementPtr; bool PoolElementPtrAutoDelete; void* CookiePtr; bool CookiePtrAutoDelete; size_t CookieSize; struct TransportAddressBlock* TransportAddressBlockListPtr; bool TransportAddressBlockListPtrAutoDelete; struct ST_CLASS(PoolElementNode)* PoolElementPtrArray[MAX_MAX_HANDLE_RESOLUTION_ITEMS]; size_t PoolElementPtrArraySize; bool PoolElementPtrArrayAutoDelete; struct ST_CLASS(PeerListNode)* PeerListNodePtr; bool PeerListNodePtrAutoDelete; struct ST_CLASS(PeerListManagement)* PeerListPtr; bool PeerListPtrAutoDelete; struct ST_CLASS(PoolHandlespaceManagement)* HandlespacePtr; bool HandlespacePtrAutoDelete; size_t MaxElementsPerHTRequest; struct ST_CLASS(HandleTableExtract)* ExtractContinuation; sctp_assoc_t AssocID; uint32_t PPID; union sockaddr_union SourceAddress; }; /** * Constructor. * * @param buffer Buffer or NULL if buffer of given bufferSize should be allocated. * @param bufferSize Size of buffer. * @return RSerPoolMessage or NULL in case of error. */ struct RSerPoolMessage* rserpoolMessageNew(char* buffer, const size_t bufferSize); /** * Destructor. * * @param message RSerPoolMessage. */ void rserpoolMessageDelete(struct RSerPoolMessage* message); /** * Clear all fields of the RSerPoolMessage. * * @param message RSerPoolMessage. */ void rserpoolMessageClearAll(struct RSerPoolMessage* message); /** * Reset buffer size to original value. * * @param message RSerPoolMessage. */ void rserpoolMessageClearBuffer(struct RSerPoolMessage* message); /** * Convert RSerPoolMessage to packet and send it to file descriptor * with given timeout. * * @param protocol Protocol (e.g. IPPROTO_SCTP). * @param fd File descriptor to write packet to. * @param assocID Association ID. * @param flags Flags for sendmsg(). * @param sctpFlags SCTP flags. * @param timeout Timeout in microseconds. * @param message RSerPoolMessage. * @return true in case of success; false otherwise. */ bool rserpoolMessageSend(int protocol, int fd, const sctp_assoc_t assocID, const int flags, const uint16_t sctpFlags, const unsigned long long timeout, struct RSerPoolMessage* message); /** * For internal usage only! */ void* getSpace(struct RSerPoolMessage* message, const size_t headerSize); #ifdef __cplusplus } #endif #include "rserpoolmessagecreator.h" #include "rserpoolmessageparser.h" #endif rsplib-3.0.1/rsplib/redblacktree_impl.h0000664000175000017500000011035211777021056015055 00000000000000/* $Id: redblacktree_impl.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include #include #include "redblacktree.h" #include "debug.h" #ifdef __cplusplus extern "C" { #endif static struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeInternalFindPrev)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode); static struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeInternalFindNext)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode); /* ###### Initialize ##################################################### */ void RB_FUNCTION(RedBlackTreeNodeNew)( struct RB_DEFINITION(RedBlackTreeNode)* node) { #ifdef USE_LEAFLINKED doubleLinkedRingListNodeNew(&node->ListNode); #endif node->Parent = NULL; node->LeftSubtree = NULL; node->RightSubtree = NULL; node->Color = Black; node->Value = 0; node->ValueSum = 0; } /* ###### Invalidate ##################################################### */ void RB_FUNCTION(RedBlackTreeNodeDelete)( struct RB_DEFINITION(RedBlackTreeNode)* node) { node->Parent = NULL; node->LeftSubtree = NULL; node->RightSubtree = NULL; node->Color = Black; node->Value = 0; node->ValueSum = 0; #ifdef USE_LEAFLINKED doubleLinkedRingListNodeDelete(&node->ListNode); #endif } /* ###### Is node linked? ################################################ */ int RB_FUNCTION(RedBlackTreeNodeIsLinked)( const struct RB_DEFINITION(RedBlackTreeNode)* node) { return(node->LeftSubtree != NULL); } /* ##### Initialize ###################################################### */ void RB_FUNCTION(RedBlackTreeNew)( struct RB_DEFINITION(RedBlackTree)* rbt, void (*printFunction)(const void* node, FILE* fd), int (*comparisonFunction)(const void* node1, const void* node2)) { #ifdef USE_LEAFLINKED doubleLinkedRingListNew(&rbt->List); #endif rbt->PrintFunction = printFunction; rbt->ComparisonFunction = comparisonFunction; rbt->NullNode.Parent = &rbt->NullNode; rbt->NullNode.LeftSubtree = &rbt->NullNode; rbt->NullNode.RightSubtree = &rbt->NullNode; rbt->NullNode.Color = Black; rbt->NullNode.Value = 0; rbt->NullNode.ValueSum = 0; rbt->Elements = 0; } /* ##### Invalidate ###################################################### */ void RB_FUNCTION(RedBlackTreeDelete)( struct RB_DEFINITION(RedBlackTree)* rbt) { rbt->Elements = 0; rbt->NullNode.Parent = NULL; rbt->NullNode.LeftSubtree = NULL; rbt->NullNode.RightSubtree = NULL; #ifdef USE_LEAFLINKED doubleLinkedRingListDelete(&rbt->List); #endif } /* ##### Update value sum ################################################ */ inline static void RB_FUNCTION(RedBlackTreeUpdateValueSum)( struct RB_DEFINITION(RedBlackTreeNode)* node) { node->ValueSum = node->LeftSubtree->ValueSum + node->Value + node->RightSubtree->ValueSum; } /* ##### Update value sum for node and all parents up to tree root ####### */ static void RB_FUNCTION(RedBlackTreeUpdateValueSumsUpToRoot)( struct RB_DEFINITION(RedBlackTree)* rbt, struct RB_DEFINITION(RedBlackTreeNode)* node) { while(node != &rbt->NullNode) { RB_FUNCTION(RedBlackTreeUpdateValueSum)(node); node = node->Parent; } } /* ###### Internal method for printing a node ############################# */ static void RB_FUNCTION(RedBlackTreePrintNode)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* node, FILE* fd) { rbt->PrintFunction(node, fd); #ifdef DEBUG fprintf(fd, " ptr=%p c=%s v=%llu vsum=%llu", node, ((node->Color == Red) ? "Red" : "Black"), node->Value, node->ValueSum); if(node->LeftSubtree != &rbt->NullNode) { fprintf(fd, " l=%p[", node->LeftSubtree); rbt->PrintFunction(node->LeftSubtree, fd); fprintf(fd, "]"); } else { fprintf(fd, " l=()"); } if(node->RightSubtree != &rbt->NullNode) { fprintf(fd, " r=%p[", node->RightSubtree); rbt->PrintFunction(node->RightSubtree, fd); fprintf(fd, "]"); } else { fprintf(fd, " r=()"); } if(node->Parent != &rbt->NullNode) { fprintf(fd, " p=%p[", node->Parent); rbt->PrintFunction(node->Parent, fd); fprintf(fd, "] "); } else { fprintf(fd, " p=()) "); } fputs("\n", fd); #endif } /* ##### Internal printing function ###################################### */ void RB_FUNCTION(RedBlackTreeInternalPrint)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* node, FILE* fd) { if(node != &rbt->NullNode) { RB_FUNCTION(RedBlackTreeInternalPrint)(rbt, node->LeftSubtree, fd); RB_FUNCTION(RedBlackTreePrintNode)(rbt, node, fd); RB_FUNCTION(RedBlackTreeInternalPrint)(rbt, node->RightSubtree, fd); } } /* ###### Print tree ##################################################### */ void RB_FUNCTION(RedBlackTreePrint)( const struct RB_DEFINITION(RedBlackTree)* rbt, FILE* fd) { #ifdef DEBUG fprintf(fd, "\n\nroot=%p[", rbt->NullNode.LeftSubtree); if(rbt->NullNode.LeftSubtree != &rbt->NullNode) { rbt->PrintFunction(rbt->NullNode.LeftSubtree, fd); } fprintf(fd, "] null=%p \n", &rbt->NullNode); #endif RB_FUNCTION(RedBlackTreeInternalPrint)(rbt, rbt->NullNode.LeftSubtree, fd); fputs("\n", fd); } /* ###### Is tree empty? ################################################# */ int RB_FUNCTION(RedBlackTreeIsEmpty)( const struct RB_DEFINITION(RedBlackTree)* rbt) { return(rbt->NullNode.LeftSubtree == &rbt->NullNode); } /* ###### Get first node ################################################## */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetFirst)( const struct RB_DEFINITION(RedBlackTree)* rbt) { #ifdef USE_LEAFLINKED struct DoubleLinkedRingListNode* node = rbt->List.Node.Next; if(node != rbt->List.Head) { return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } return(NULL); #else const struct RB_DEFINITION(RedBlackTreeNode)* node = rbt->NullNode.LeftSubtree; if(node == &rbt->NullNode) { node = rbt->NullNode.RightSubtree; } while(node->LeftSubtree != &rbt->NullNode) { node = node->LeftSubtree; } if(node != &rbt->NullNode) { return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } return(NULL); #endif } /* ###### Get last node ################################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetLast)( const struct RB_DEFINITION(RedBlackTree)* rbt) { #ifdef USE_LEAFLINKED struct DoubleLinkedRingListNode* node = rbt->List.Node.Prev; if(node != rbt->List.Head) { return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } return(NULL); #else const struct RB_DEFINITION(RedBlackTreeNode)* node = rbt->NullNode.RightSubtree; if(node == &rbt->NullNode) { node = rbt->NullNode.LeftSubtree; } while(node->RightSubtree != &rbt->NullNode) { node = node->RightSubtree; } if(node != &rbt->NullNode) { return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } return(NULL); #endif } /* ###### Get previous node ############################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetPrev)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* node) { #ifdef USE_LEAFLINKED struct DoubleLinkedRingListNode* prev = node->ListNode.Prev; if(prev != rbt->List.Head) { return((struct RB_DEFINITION(RedBlackTreeNode)*)prev); } return(NULL); #else struct RB_DEFINITION(RedBlackTreeNode)* result; result = RB_FUNCTION(RedBlackTreeInternalFindPrev)(rbt, node); if(result != &rbt->NullNode) { return(result); } return(NULL); #endif } /* ###### Get next node ################################################## */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNext)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* node) { #ifdef USE_LEAFLINKED struct DoubleLinkedRingListNode* next = node->ListNode.Next; if(next != rbt->List.Head) { return((struct RB_DEFINITION(RedBlackTreeNode)*)next); } return(NULL); #else struct RB_DEFINITION(RedBlackTreeNode)* result; result = RB_FUNCTION(RedBlackTreeInternalFindNext)(rbt, node); if(result != &rbt->NullNode) { return(result); } return(NULL); #endif } /* ###### Find nearest previous node ##################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNearestPrev)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode) { struct RB_DEFINITION(RedBlackTreeNode)*const* nodePtr; struct RB_DEFINITION(RedBlackTreeNode)*const* parentPtr; const struct RB_DEFINITION(RedBlackTreeNode)* node; const struct RB_DEFINITION(RedBlackTreeNode)* parent; int cmpResult = 0; #ifdef DEBUG printf("nearest prev: "); rbt->PrintFunction(cmpNode, stdout); printf("\n"); RB_FUNCTION(RedBlackTreePrint)(rbt, stdout); #endif parentPtr = NULL; nodePtr = &rbt->NullNode.LeftSubtree; while(*nodePtr != &rbt->NullNode) { cmpResult = rbt->ComparisonFunction(cmpNode, *nodePtr); if(cmpResult < 0) { parentPtr = nodePtr; nodePtr = &(*nodePtr)->LeftSubtree; } else if(cmpResult > 0) { parentPtr = nodePtr; nodePtr = &(*nodePtr)->RightSubtree; } if(cmpResult == 0) { return(RB_FUNCTION(RedBlackTreeGetPrev)(rbt, *nodePtr)); } } if(parentPtr == NULL) { if(cmpResult > 0) { return(rbt->NullNode.LeftSubtree); } return(NULL); } else { /* The new node would be the right child of its parent. => The parent is the nearest previous node! */ if(nodePtr == &(*parentPtr)->RightSubtree) { return(*parentPtr); } else { parent = *parentPtr; /* If there is a left subtree, the nearest previous node is the rightmost child of the left subtree. */ if(parent->LeftSubtree != &rbt->NullNode) { node = parent->LeftSubtree; while(node->RightSubtree != &rbt->NullNode) { node = node->RightSubtree; } if(node != &rbt->NullNode) { return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } } /* If there is no left subtree, the nearest previous node is an ancestor node which has the node on its right side. */ else { node = parent; parent = node->Parent; while((parent != &rbt->NullNode) && (node == parent->LeftSubtree)) { node = parent; parent = parent->Parent; } if(parent != &rbt->NullNode) { return((struct RB_DEFINITION(RedBlackTreeNode)*)parent); } } } } return(NULL); } /* ###### Find nearest next node ######################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNearestNext)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode) { struct RB_DEFINITION(RedBlackTreeNode)*const* nodePtr; struct RB_DEFINITION(RedBlackTreeNode)*const* parentPtr; const struct RB_DEFINITION(RedBlackTreeNode)* node; const struct RB_DEFINITION(RedBlackTreeNode)* parent; int cmpResult = 0; #ifdef DEBUG printf("nearest next: "); rbt->PrintFunction(cmpNode, stdout); printf("\n"); RB_FUNCTION(RedBlackTreePrint)(bt, stdout); #endif parentPtr = NULL; nodePtr = &rbt->NullNode.LeftSubtree; while(*nodePtr != &rbt->NullNode) { cmpResult = rbt->ComparisonFunction(cmpNode, *nodePtr); if(cmpResult < 0) { parentPtr = nodePtr; nodePtr = &(*nodePtr)->LeftSubtree; } else if(cmpResult > 0) { parentPtr = nodePtr; nodePtr = &(*nodePtr)->RightSubtree; } if(cmpResult == 0) { return(RB_FUNCTION(RedBlackTreeGetNext)(rbt, *nodePtr)); } } if(parentPtr == NULL) { if(cmpResult < 0) { return(rbt->NullNode.LeftSubtree); } return(NULL); } else { /* The new node would be the left child of its parent. => The parent is the nearest next node! */ if(nodePtr == &(*parentPtr)->LeftSubtree) { return(*parentPtr); } else { parent = *parentPtr; /* If there is a right subtree, the nearest next node is the leftmost child of the right subtree. */ if(parent->RightSubtree != &rbt->NullNode) { node = parent->RightSubtree; while(node->LeftSubtree != &rbt->NullNode) { node = node->LeftSubtree; } if(node != &rbt->NullNode) { return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } } /* If there is no right subtree, the nearest next node is an ancestor node which has the node on its left side. */ else { node = parent; parent = node->Parent; while((parent != &rbt->NullNode) && (node == parent->RightSubtree)) { node = parent; parent = parent->Parent; } if(parent != &rbt->NullNode) { return((struct RB_DEFINITION(RedBlackTreeNode)*)parent); } } } } return(NULL); } /* ###### Get number of elements ########################################## */ size_t RB_FUNCTION(RedBlackTreeGetElements)( const struct RB_DEFINITION(RedBlackTree)* rbt) { return(rbt->Elements); } /* ###### Get prev node by walking through the tree (does *not* use list!) */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeInternalFindPrev)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode) { const struct RB_DEFINITION(RedBlackTreeNode)* node = cmpNode->LeftSubtree; const struct RB_DEFINITION(RedBlackTreeNode)* parent; if(node != &rbt->NullNode) { while(node->RightSubtree != &rbt->NullNode) { node = node->RightSubtree; } return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } else { node = cmpNode; parent = cmpNode->Parent; while((parent != &rbt->NullNode) && (node == parent->LeftSubtree)) { node = parent; parent = parent->Parent; } return((struct RB_DEFINITION(RedBlackTreeNode)*)parent); } } /* ###### Get next node by walking through the tree (does *not* use list!) */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeInternalFindNext)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode) { const struct RB_DEFINITION(RedBlackTreeNode)* node = cmpNode->RightSubtree; const struct RB_DEFINITION(RedBlackTreeNode)* parent; if(node != &rbt->NullNode) { while(node->LeftSubtree != &rbt->NullNode) { node = node->LeftSubtree; } return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } else { node = cmpNode; parent = cmpNode->Parent; while((parent != &rbt->NullNode) && (node == parent->RightSubtree)) { node = parent; parent = parent->Parent; } return((struct RB_DEFINITION(RedBlackTreeNode)*)parent); } } /* ###### Find node ####################################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeFind)( const struct RB_DEFINITION(RedBlackTree)* rbt, const struct RB_DEFINITION(RedBlackTreeNode)* cmpNode) { #ifdef DEBUG printf("find: "); rbt->PrintFunction(cmpNode, stdout); printf("\n"); #endif struct RB_DEFINITION(RedBlackTreeNode)* node = rbt->NullNode.LeftSubtree; while(node != &rbt->NullNode) { const int cmpResult = rbt->ComparisonFunction(cmpNode, node); if(cmpResult == 0) { return(node); } else if(cmpResult < 0) { node = node->LeftSubtree; } else { node = node->RightSubtree; } } return(NULL); } /* ###### Get value sum from root node ################################### */ RedBlackTreeNodeValueType RB_FUNCTION(RedBlackTreeGetValueSum)( const struct RB_DEFINITION(RedBlackTree)* rbt) { return(rbt->NullNode.LeftSubtree->ValueSum); } /* ##### Rotation with left subtree ###################################### */ static void RB_FUNCTION(RedBlackTreeRotateLeft)( struct RB_DEFINITION(RedBlackTreeNode)* node) { struct RB_DEFINITION(RedBlackTreeNode)* lower; struct RB_DEFINITION(RedBlackTreeNode)* lowleft; struct RB_DEFINITION(RedBlackTreeNode)* upparent; lower = node->RightSubtree; node->RightSubtree = lowleft = lower->LeftSubtree; lowleft->Parent = node; lower->Parent = upparent = node->Parent; if(node == upparent->LeftSubtree) { upparent->LeftSubtree = lower; } else { CHECK (node == upparent->RightSubtree); upparent->RightSubtree = lower; } lower->LeftSubtree = node; node->Parent = lower; RB_FUNCTION(RedBlackTreeUpdateValueSum)(node); RB_FUNCTION(RedBlackTreeUpdateValueSum)(node->Parent); } /* ##### Rotation with ripht subtree ##################################### */ static void RB_FUNCTION(RedBlackTreeRotateRight)( struct RB_DEFINITION(RedBlackTreeNode)* node) { struct RB_DEFINITION(RedBlackTreeNode)* lower; struct RB_DEFINITION(RedBlackTreeNode)* lowright; struct RB_DEFINITION(RedBlackTreeNode)* upparent; lower = node->LeftSubtree; node->LeftSubtree = lowright = lower->RightSubtree; lowright->Parent = node; lower->Parent = upparent = node->Parent; if(node == upparent->RightSubtree) { upparent->RightSubtree = lower; } else { CHECK(node == upparent->LeftSubtree); upparent->LeftSubtree = lower; } lower->RightSubtree = node; node->Parent = lower; RB_FUNCTION(RedBlackTreeUpdateValueSum)(node); RB_FUNCTION(RedBlackTreeUpdateValueSum)(node->Parent); } /* ###### Insert ######################################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeInsert)( struct RB_DEFINITION(RedBlackTree)* rbt, struct RB_DEFINITION(RedBlackTreeNode)* node) { int cmpResult = -1; struct RB_DEFINITION(RedBlackTreeNode)* where = rbt->NullNode.LeftSubtree; struct RB_DEFINITION(RedBlackTreeNode)* parent = &rbt->NullNode; struct RB_DEFINITION(RedBlackTreeNode)* result; struct RB_DEFINITION(RedBlackTreeNode)* uncle; struct RB_DEFINITION(RedBlackTreeNode)* grandpa; #ifdef USE_LEAFLINKED struct RB_DEFINITION(RedBlackTreeNode)* prev; #endif #ifdef DEBUG printf("insert: "); rbt->PrintFunction(node, stdout); printf("\n"); #endif /* ====== Find location of new node =================================== */ while(where != &rbt->NullNode) { parent = where; cmpResult = rbt->ComparisonFunction(node, where); if(cmpResult < 0) { where = where->LeftSubtree; } else if(cmpResult > 0) { where = where->RightSubtree; } else { /* Node with same key is already available -> return. */ result = where; goto finished; } } CHECK(where == &rbt->NullNode); if(cmpResult < 0) { parent->LeftSubtree = node; } else { parent->RightSubtree = node; } /* ====== Link node =================================================== */ node->Parent = parent; node->LeftSubtree = &rbt->NullNode; node->RightSubtree = &rbt->NullNode; node->ValueSum = node->Value; #ifdef USE_LEAFLINKED prev = RB_FUNCTION(RedBlackTreeInternalFindPrev)(rbt, node); if(prev != &rbt->NullNode) { doubleLinkedRingListAddAfter(&prev->ListNode, &node->ListNode); } else { doubleLinkedRingListAddHead(&rbt->List, &node->ListNode); } #endif rbt->Elements++; result = node; /* ====== Update parent's value sum =================================== */ RB_FUNCTION(RedBlackTreeUpdateValueSumsUpToRoot)(rbt, node->Parent); /* ====== Ensure red-black tree properties ============================ */ node->Color = Red; while (parent->Color == Red) { grandpa = parent->Parent; if(parent == grandpa->LeftSubtree) { uncle = grandpa->RightSubtree; if(uncle->Color == Red) { parent->Color = Black; uncle->Color = Black; grandpa->Color = Red; node = grandpa; parent = grandpa->Parent; } else { if(node == parent->RightSubtree) { RB_FUNCTION(RedBlackTreeRotateLeft)(parent); parent = node; CHECK(grandpa == parent->Parent); } parent->Color = Black; grandpa->Color = Red; RB_FUNCTION(RedBlackTreeRotateRight)(grandpa); break; } } else { uncle = grandpa->LeftSubtree; if(uncle->Color == Red) { parent->Color = Black; uncle->Color = Black; grandpa->Color = Red; node = grandpa; parent = grandpa->Parent; } else { if(node == parent->LeftSubtree) { RB_FUNCTION(RedBlackTreeRotateRight)(parent); parent = node; CHECK(grandpa == parent->Parent); } parent->Color = Black; grandpa->Color = Red; RB_FUNCTION(RedBlackTreeRotateLeft)(grandpa); break; } } } rbt->NullNode.LeftSubtree->Color = Black; finished: #ifdef DEBUG RB_FUNCTION(RedBlackTreePrint)(rbt, stdout); #endif #ifdef VERIFY RB_FUNCTION(RedBlackTreeVerify)(rbt); #endif return(result); } /* ###### Remove ######################################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeRemove)( struct RB_DEFINITION(RedBlackTree)* rbt, struct RB_DEFINITION(RedBlackTreeNode)* node) { struct RB_DEFINITION(RedBlackTreeNode)* child; struct RB_DEFINITION(RedBlackTreeNode)* delParent; struct RB_DEFINITION(RedBlackTreeNode)* parent; struct RB_DEFINITION(RedBlackTreeNode)* sister; struct RB_DEFINITION(RedBlackTreeNode)* next; struct RB_DEFINITION(RedBlackTreeNode)* nextParent; enum RedBlackTreeNodeColorType nextColor; #ifdef DEBUG printf("remove: "); rbt->PrintFunction(node, stdout); printf("\n"); #endif CHECK(RB_FUNCTION(RedBlackTreeNodeIsLinked)(node)); /* ====== Unlink node ================================================= */ if((node->LeftSubtree != &rbt->NullNode) && (node->RightSubtree != &rbt->NullNode)) { next = RB_FUNCTION(RedBlackTreeGetNext)(rbt, node); nextParent = next->Parent; nextColor = next->Color; CHECK(next != &rbt->NullNode); CHECK(next->Parent != &rbt->NullNode); CHECK(next->LeftSubtree == &rbt->NullNode); child = next->RightSubtree; child->Parent = nextParent; if(nextParent->LeftSubtree == next) { nextParent->LeftSubtree = child; } else { CHECK(nextParent->RightSubtree == next); nextParent->RightSubtree = child; } delParent = node->Parent; next->Parent = delParent; next->LeftSubtree = node->LeftSubtree; next->RightSubtree = node->RightSubtree; next->LeftSubtree->Parent = next; next->RightSubtree->Parent = next; next->Color = node->Color; node->Color = nextColor; if(delParent->LeftSubtree == node) { delParent->LeftSubtree = next; } else { CHECK(delParent->RightSubtree == node); delParent->RightSubtree = next; } /* ====== Update parent's value sum ================================ */ RB_FUNCTION(RedBlackTreeUpdateValueSumsUpToRoot)(rbt, next); RB_FUNCTION(RedBlackTreeUpdateValueSumsUpToRoot)(rbt, nextParent); } else { CHECK(node != &rbt->NullNode); CHECK((node->LeftSubtree == &rbt->NullNode) || (node->RightSubtree == &rbt->NullNode)); child = (node->LeftSubtree != &rbt->NullNode) ? node->LeftSubtree : node->RightSubtree; child->Parent = delParent = node->Parent; if(node == delParent->LeftSubtree) { delParent->LeftSubtree = child; } else { CHECK(node == delParent->RightSubtree); delParent->RightSubtree = child; } /* ====== Update parent's value sum ================================ */ RB_FUNCTION(RedBlackTreeUpdateValueSumsUpToRoot)(rbt, delParent); } /* ====== Unlink node from list and invalidate pointers =============== */ node->Parent = NULL; node->RightSubtree = NULL; node->LeftSubtree = NULL; #ifdef USE_LEAFLINKED doubleLinkedRingListRemNode(&node->ListNode); node->ListNode.Prev = NULL; node->ListNode.Next = NULL; #endif CHECK(rbt->Elements > 0); rbt->Elements--; /* ====== Ensure red-black properties ================================= */ if(node->Color == Black) { rbt->NullNode.LeftSubtree->Color = Red; while (child->Color == Black) { parent = child->Parent; if(child == parent->LeftSubtree) { sister = parent->RightSubtree; CHECK(sister != &rbt->NullNode); if(sister->Color == Red) { sister->Color = Black; parent->Color = Red; RB_FUNCTION(RedBlackTreeRotateLeft)(parent); sister = parent->RightSubtree; CHECK(sister != &rbt->NullNode); } if((sister->LeftSubtree->Color == Black) && (sister->RightSubtree->Color == Black)) { sister->Color = Red; child = parent; } else { if(sister->RightSubtree->Color == Black) { CHECK(sister->LeftSubtree->Color == Red); sister->LeftSubtree->Color = Black; sister->Color = Red; RB_FUNCTION(RedBlackTreeRotateRight)(sister); sister = parent->RightSubtree; CHECK(sister != &rbt->NullNode); } sister->Color = parent->Color; sister->RightSubtree->Color = Black; parent->Color = Black; RB_FUNCTION(RedBlackTreeRotateLeft)(parent); break; } } else { CHECK(child == parent->RightSubtree); sister = parent->LeftSubtree; CHECK(sister != &rbt->NullNode); if(sister->Color == Red) { sister->Color = Black; parent->Color = Red; RB_FUNCTION(RedBlackTreeRotateRight)(parent); sister = parent->LeftSubtree; CHECK(sister != &rbt->NullNode); } if((sister->RightSubtree->Color == Black) && (sister->LeftSubtree->Color == Black)) { sister->Color = Red; child = parent; } else { if(sister->LeftSubtree->Color == Black) { CHECK(sister->RightSubtree->Color == Red); sister->RightSubtree->Color = Black; sister->Color = Red; RB_FUNCTION(RedBlackTreeRotateLeft)(sister); sister = parent->LeftSubtree; CHECK(sister != &rbt->NullNode); } sister->Color = parent->Color; sister->LeftSubtree->Color = Black; parent->Color = Black; RB_FUNCTION(RedBlackTreeRotateRight)(parent); break; } } } child->Color = Black; rbt->NullNode.LeftSubtree->Color = Black; } #ifdef DEBUG RB_FUNCTION(RedBlackTreePrint)(rbt, stdout); #endif #ifdef VERIFY RB_FUNCTION(RedBlackTreeVerify)(rbt); #endif return(node); } /* ##### Get node by value ############################################### */ struct RB_DEFINITION(RedBlackTreeNode)* RB_FUNCTION(RedBlackTreeGetNodeByValue)( const struct RB_DEFINITION(RedBlackTree)* rbt, RedBlackTreeNodeValueType value) { const struct RB_DEFINITION(RedBlackTreeNode)* node = rbt->NullNode.LeftSubtree; for(;;) { if(value < node->LeftSubtree->ValueSum) { if(node->LeftSubtree != &rbt->NullNode) { node = node->LeftSubtree; } else { break; } } else if(value < node->LeftSubtree->ValueSum + node->Value) { break; } else { if(node->RightSubtree != &rbt->NullNode) { value -= node->LeftSubtree->ValueSum + node->Value; node = node->RightSubtree; } else { break; } } } if(node != &rbt->NullNode) { return((struct RB_DEFINITION(RedBlackTreeNode)*)node); } return(NULL); } /* ##### Internal verification function ################################## */ static size_t RB_FUNCTION(RedBlackTreeInternalVerify)( struct RB_DEFINITION(RedBlackTree)* rbt, struct RB_DEFINITION(RedBlackTreeNode)* parent, struct RB_DEFINITION(RedBlackTreeNode)* node, struct RB_DEFINITION(RedBlackTreeNode)** lastRedBlackTreeNode, #ifdef USE_LEAFLINKED struct DoubleLinkedRingListNode** lastListNode, #endif size_t* counter) { #ifdef USE_LEAFLINKED struct RB_DEFINITION(RedBlackTreeNode)* prev; struct RB_DEFINITION(RedBlackTreeNode)* next; #endif size_t leftHeight; size_t rightHeight; if(node != &rbt->NullNode) { /* ====== Print node =============================================== */ #ifdef DEBUG printf("verifying "); RB_FUNCTION(RedBlackTreePrintNode)(rbt, node, stdout); puts(""); #endif /* ====== Correct parent? ========================================== */ CHECK(node->Parent == parent); /* ====== Correct tree and heap properties? ======================== */ if(node->LeftSubtree != &rbt->NullNode) { CHECK(rbt->ComparisonFunction(node, node->LeftSubtree) > 0); } if(node->RightSubtree != &rbt->NullNode) { CHECK(rbt->ComparisonFunction(node, node->RightSubtree) < 0); } /* ====== Is value sum okay? ======================================= */ CHECK(node->ValueSum == node->LeftSubtree->ValueSum + node->Value + node->RightSubtree->ValueSum); /* ====== Is left subtree okay? ==================================== */ leftHeight = RB_FUNCTION(RedBlackTreeInternalVerify)( rbt, node, node->LeftSubtree, lastRedBlackTreeNode, #ifdef USE_LEAFLINKED lastListNode, #endif counter); #ifdef USE_LEAFLINKED /* ====== Is ring list okay? ======================================= */ CHECK((*lastListNode)->Next != rbt->List.Head); *lastListNode = (*lastListNode)->Next; CHECK(*lastListNode == &node->ListNode); #endif #ifdef USE_LEAFLINKED /* ====== Is linking working correctly? ============================ */ prev = RB_FUNCTION(RedBlackTreeInternalFindPrev)(rbt, node); if(prev != &rbt->NullNode) { CHECK((*lastListNode)->Prev == &prev->ListNode); } else { CHECK((*lastListNode)->Prev == rbt->List.Head); } next = RB_FUNCTION(RedBlackTreeInternalFindNext)(rbt, node); if(next != &rbt->NullNode) { CHECK((*lastListNode)->Next == &next->ListNode); } else { CHECK((*lastListNode)->Next == rbt->List.Head); } #endif /* ====== Count elements =========================================== */ (*counter)++; /* ====== Is right subtree okay? =================================== */ rightHeight = RB_FUNCTION(RedBlackTreeInternalVerify)( rbt, node, node->RightSubtree, lastRedBlackTreeNode, #ifdef USE_LEAFLINKED lastListNode, #endif counter); /* ====== Verify red-black property ================================ */ CHECK((leftHeight != 0) || (rightHeight != 0)); CHECK(leftHeight == rightHeight); if(node->Color == Red) { CHECK(node->LeftSubtree->Color == Black); CHECK(node->RightSubtree->Color == Black); return(leftHeight); } CHECK(node->Color == Black); return(leftHeight + 1); } return(1); } /* ##### Verify structures ############################################### */ void RB_FUNCTION(RedBlackTreeVerify)( struct RB_DEFINITION(RedBlackTree)* rbt) { size_t counter = 0; struct RB_DEFINITION(RedBlackTreeNode)* lastRedBlackTreeNode = NULL; #ifdef USE_LEAFLINKED struct DoubleLinkedRingListNode* lastListNode = &rbt->List.Node; #endif CHECK(rbt->NullNode.Color == Black); CHECK(rbt->NullNode.Value == 0); CHECK(rbt->NullNode.ValueSum == 0); CHECK(RB_FUNCTION(RedBlackTreeInternalVerify)(rbt, &rbt->NullNode, rbt->NullNode.LeftSubtree, &lastRedBlackTreeNode, #ifdef USE_LEAFLINKED &lastListNode, #endif &counter) != 0); CHECK(counter == rbt->Elements); } #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/udplikeserver.cc0000664000175000017500000003765611777021056014446 00000000000000/* $Id: udplikeserver.cc 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "udplikeserver.h" #include "timeutilities.h" #include "netutilities.h" #include "loglevel.h" #include "breakdetector.h" #include "tagitem.h" #include #include #include // ###### Constructor ####################################################### UDPLikeServer::UDPLikeServer() { RSerPoolSocketDescriptor = -1; NextTimerTimeStamp = 0; Load = 0; } // ###### Destructor ######################################################## UDPLikeServer::~UDPLikeServer() { RSerPoolSocketDescriptor = -1; } // ##### Get load ########################################################### double UDPLikeServer::getLoad() const { return((double)Load / (double)PPV_MAX_LOAD); } // ##### Set load ########################################################### void UDPLikeServer::setLoad(double load) { if((load < 0.0) || (load > 1.0)) { fputs("ERROR: Invalid load setting!\n", stdlog); fflush(stdlog); return; } Load = (unsigned int)rint(load * (double)PPV_MAX_LOAD); } // ###### Start timer ####################################################### void UDPLikeServer::startTimer(unsigned long long timeStamp) { CHECK(timeStamp > 0); NextTimerTimeStamp = timeStamp; } // ###### Stop timer ######################################################## void UDPLikeServer::stopTimer() { NextTimerTimeStamp = 0; } // ###### Handle cookie ##################################################### EventHandlingResult UDPLikeServer::handleCookieEcho(rserpool_session_t sessionID, const char* buffer, size_t bufferSize) { printTimeStamp(stdlog); fprintf(stdlog, "COOKIE ECHO for session %u\n", sessionID); fflush(stdlog); return(EHR_Okay); } // ###### Handle notification ############################################### void UDPLikeServer::handleNotification(const union rserpool_notification* notification) { printTimeStamp(stdlog); fprintf(stdlog, "NOTIFICATION: "); rsp_print_notification(notification, stdlog); fputs("\n", stdlog); fflush(stdlog); } // ###### Handle message #################################################### EventHandlingResult UDPLikeServer::handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { return(EHR_Abort); } // ###### Handle timer ###################################################### void UDPLikeServer::handleTimer() { } // ###### Startup ########################################################### EventHandlingResult UDPLikeServer::initializeService(int sd, const uint32_t peIdentifier) { return(EHR_Okay); } // ###### Shutdown ########################################################## void UDPLikeServer::finishService(int sd, EventHandlingResult result) { } // ###### Print parameters ################################################## void UDPLikeServer::printParameters() { } // ###### Wait for action on RSerPool socket ################################ bool UDPLikeServer::waitForAction(unsigned long long timeout) { struct pollfd pollfds[1]; pollfds[0].fd = RSerPoolSocketDescriptor; pollfds[0].events = POLLIN; pollfds[0].revents = 0; if(rsp_poll((struct pollfd*)&pollfds, 1, (int)(timeout / 1000)) > 0) { return(pollfds[0].revents & POLLIN); } return(false); } // ###### Implementation of a simple UDP-like server ######################## void UDPLikeServer::poolElement(const char* programTitle, const char* poolHandle, struct rsp_info* info, struct rsp_loadinfo* loadinfo, const sockaddr* localAddressSet, const size_t localAddresses, unsigned int reregInterval, unsigned int runtimeLimit, const bool quiet, const bool daemonMode, struct TagItem* tags) { if(rsp_initialize(info) < 0) { puts("ERROR: Unable to initialize rsplib Library!\n"); return; } RSerPoolSocketDescriptor = rsp_socket(0, SOCK_SEQPACKET, IPPROTO_SCTP); if(RSerPoolSocketDescriptor >= 0) { if(rsp_bind(RSerPoolSocketDescriptor, localAddressSet, localAddresses) == 0) { if(rsp_listen(RSerPoolSocketDescriptor, 10) == 0) { // ====== Initialize PE settings ====================================== struct rsp_loadinfo dummyLoadinfo; if(loadinfo == NULL) { memset(&dummyLoadinfo, 0, sizeof(dummyLoadinfo)); loadinfo = &dummyLoadinfo; loadinfo->rli_policy = PPT_ROUNDROBIN; } loadinfo->rli_load = (unsigned int)rint(getLoad() * (double)PPV_MAX_LOAD); Load = loadinfo->rli_load; // ====== Print program title ========================================= if(!quiet) { puts(programTitle); const size_t programTitleSize = strlen(programTitle); for(size_t i = 0;i < programTitleSize;i++) { printf("="); } const char* policyName = rsp_getpolicybytype(loadinfo->rli_policy); puts("\n\nGeneral Parameters:"); printf(" Pool Handle = %s\n", poolHandle); printf(" Reregistration Interval = %1.3fs\n", reregInterval / 1000.0); printf(" Local Addresses = { "); if(localAddresses == 0) { printf("all"); } else { const sockaddr* addressPtr = localAddressSet; for(size_t i = 0;i < localAddresses;i++) { if(i > 0) { printf(", "); } fputaddress(addressPtr, (i == 0), stdout); addressPtr = (const sockaddr*)((long)addressPtr + (long)getSocklen(addressPtr)); } } printf(" }\n"); printf(" Runtime Limit = "); if(runtimeLimit > 0) { printf("%1.3f [s]\n", runtimeLimit / 1000.0); } else { puts("off"); } puts(" Policy Settings"); printf(" Policy Type = %s\n", (policyName != NULL) ? policyName : "?"); printf(" Load Degradation = %1.3f%%\n", 100.0 * ((double)loadinfo->rli_load_degradation / (double)PPV_MAX_LOAD_DEGRADATION)); printf(" Load DPF = %1.3f%%\n", 100.0 * ((double)loadinfo->rli_load_dpf / (double)PPV_MAX_LOADDPF)); printf(" Weight = %u\n", loadinfo->rli_weight); printf(" Weight DPF = %1.3f%%\n", 100.0 * ((double)loadinfo->rli_weight_dpf / (double)PPV_MAX_WEIGHTDPF)); printParameters(); } // ====== Register PE ================================================= if(rsp_register_tags(RSerPoolSocketDescriptor, (const unsigned char*)poolHandle, strlen(poolHandle), loadinfo, reregInterval, daemonMode ? REGF_DAEMONMODE : 0, tags) == 0) { uint32_t identifier = 0; if(rsp_getsockname(RSerPoolSocketDescriptor, NULL, NULL, &identifier) == 0) { if(!quiet) { puts("Registration:"); printf(" Identifier = $%08x\n\n", identifier); } } double oldLoad = (unsigned int)rint((double)loadinfo->rli_load / (double)PPV_MAX_LOAD); // ====== Startup ================================================== const EventHandlingResult initializeResult = initializeService(RSerPoolSocketDescriptor, identifier); if(initializeResult == EHR_Okay) { // ====== Main loop ============================================= const unsigned long long autoStopTimeStamp = (runtimeLimit > 0) ? (getMicroTime() + (1000ULL * runtimeLimit)) : 0; installBreakDetector(); while(!breakDetected()) { // ====== Read from socket =================================== char buffer[65536]; int flags = 0; struct rsp_sndrcvinfo rinfo; unsigned long long timeout = 500000; if(NextTimerTimeStamp > 0) { const unsigned long long now = getMicroTime(); if(NextTimerTimeStamp <= now) { timeout = 0; } else { timeout = min(timeout, NextTimerTimeStamp - now); } } // ====== Wait for action on RSerPool socket ================= if(waitForAction(timeout)) { // ====== Read from socket ================================ ssize_t received = rsp_recvfullmsg(RSerPoolSocketDescriptor, (char*)&buffer, sizeof(buffer), &rinfo, &flags, 0); // ====== Handle data ===================================== if(received > 0) { // ====== Handle event ================================= EventHandlingResult eventHandlingResult; if(flags & MSG_RSERPOOL_NOTIFICATION) { handleNotification((const union rserpool_notification*)&buffer); /* We cannot shutdown or abort, since the session ID is not inserted into rinfo! Should we dissect the notification for the ID here? */ eventHandlingResult = EHR_Okay; } else if(flags & MSG_RSERPOOL_COOKIE_ECHO) { eventHandlingResult = handleCookieEcho(rinfo.rinfo_session, (char*)&buffer, received); } else { eventHandlingResult = handleMessage(rinfo.rinfo_session, (char*)&buffer, received, rinfo.rinfo_ppid, rinfo.rinfo_stream); } // ====== Check for problems =========================== if((eventHandlingResult == EHR_Abort) || (eventHandlingResult == EHR_Shutdown)) { #ifdef SOLARIS rsp_sendmsg(RSerPoolSocketDescriptor, NULL, 0, ((eventHandlingResult == EHR_Abort) ? MSG_ABORT : MSG_EOF), rinfo.rinfo_session, 0, 0, 0, 0, 0); #else rsp_sendmsg(RSerPoolSocketDescriptor, NULL, 0, 0, rinfo.rinfo_session, 0, 0, 0, ((eventHandlingResult == EHR_Abort) ? SCTP_ABORT : SCTP_EOF), 0); #endif } } } // ====== Handle timer ======================================= if((NextTimerTimeStamp > 0) && (getMicroTime() > NextTimerTimeStamp)) { NextTimerTimeStamp = 0; handleTimer(); } // ====== Auto-stop ========================================== if((autoStopTimeStamp > 0) && (getMicroTime() > autoStopTimeStamp)) { puts("Auto-stop reached!"); break; } // ====== Do reregistration on load changes ================== if(PPT_IS_ADAPTIVE(loadinfo->rli_policy)) { const double newLoad = getLoad(); if(fabs(newLoad - oldLoad) >= 0.01) { oldLoad = newLoad; loadinfo->rli_load = (unsigned int)rint(newLoad * (double)PPV_MAX_LOAD); if(rsp_register_tags( RSerPoolSocketDescriptor, (const unsigned char*)poolHandle, strlen(poolHandle), loadinfo, reregInterval, REGF_DONTWAIT, tags) != 0) { puts("ERROR: Failed to re-register PE with new load setting!"); } } } } uninstallBreakDetector(); } // ====== Shutdown ================================================= finishService(RSerPoolSocketDescriptor, initializeResult); // ====== Clean up ================================================= rsp_deregister(RSerPoolSocketDescriptor, 0); } else { fprintf(stdlog, "ERROR: Failed to register PE to pool %s\n", poolHandle); } } else { logerror("Unable to put RSerPool socket into listening mode"); } } else { logerror("Unable to bind RSerPool socket"); } rsp_close(RSerPoolSocketDescriptor); } else { logerror("Unable to create RSerPool socket"); } rsp_cleanup(); fputs("\nTerminated!\n", stdlog); } rsplib-3.0.1/rsplib/calcappservice.h0000664000175000017500000001442011777021056014370 00000000000000/* $Id: calcappservice.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef CALCAPPSERVICE_H #define CALCAPPSERVICE_H #include "rserpool.h" #include "udplikeserver.h" #include "calcapppackets.h" #include class CalcAppServer : public UDPLikeServer { public: struct CalcAppServerStatistics { unsigned long long StartupTimeStamp; double TotalUsedCalculations; unsigned long long TotalJobsAccepted; unsigned long long TotalJobsRejected; unsigned long long VectorLine; }; public: CalcAppServer(const size_t maxJobs, const char* objectName, const char* vectorFileName, const char* scalarFileName, const double capacity, const unsigned long long keepAliveTransmissionInterval, const unsigned long long keepAliveTimeoutInterval, const unsigned long long cookieMaxTime, const double cookieMaxCalculations, const double cleanShutdownProbability, CalcAppServerStatistics* statistics, const bool resetStatistics); virtual ~CalcAppServer(); protected: virtual EventHandlingResult initializeService(int sd, const uint32_t peIdentifier); virtual void finishService(int sd, EventHandlingResult result); virtual void printParameters(); virtual EventHandlingResult handleMessage(rserpool_session_t sessionID, const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID); virtual EventHandlingResult handleCookieEcho(rserpool_session_t sessionID, const char* buffer, size_t bufferSize); virtual void handleTimer(); private: struct CalcAppServerJob { CalcAppServerJob* Next; rserpool_session_t SessionID; uint32_t JobID; // ------ Variables --------------------------------------------------- double JobSize; double Completed; unsigned long long LastUpdateAt; unsigned long long LastCookieAt; double LastCookieCompleted; // ------ Timers ------------------------------------------------------ unsigned long long KeepAliveTransmissionTimeStamp; unsigned long long KeepAliveTimeoutTimeStamp; unsigned long long JobCompleteTimeStamp; unsigned long long CookieTransmissionTimeStamp; }; CalcAppServerJob* addJob(rserpool_session_t sessionID, uint32_t jobID, double jobSize, double completed); CalcAppServerJob* findJob(rserpool_session_t sessionID, uint32_t jobID); void removeJob(CalcAppServerJob* job); void removeAllJobs(); void updateCalculations(); void scheduleJobs(); void scheduleNextTimerEvent(); void handleCalcAppRequest(rserpool_session_t sessionID, const CalcAppMessage* message, const size_t received); void sendCalcAppAccept(CalcAppServerJob* job); void sendCalcAppReject(rserpool_session_t sessionID, uint32_t jobID); void handleJobCompleteTimer(CalcAppServerJob* job); void sendCalcAppComplete(CalcAppServerJob* job); void handleCalcAppKeepAlive(rserpool_session_t sessionID, const CalcAppMessage* message, const size_t received); void sendCalcAppKeepAliveAck(CalcAppServerJob* job); void sendCalcAppKeepAlive(CalcAppServerJob* job); void handleCalcAppKeepAliveAck(rserpool_session_t sessionID, const CalcAppMessage* message, const size_t received); void handleKeepAliveTransmissionTimer(CalcAppServerJob* job); void handleKeepAliveTimeoutTimer(CalcAppServerJob* job); void sendCookie(CalcAppServerJob* job); void handleCookieTransmissionTimer(CalcAppServerJob* job); std::string ObjectName; std::string VectorFileName; std::string ScalarFileName; FILE* VectorFH; FILE* ScalarFH; CalcAppServerJob* FirstJob; CalcAppServerStatistics* Stats; size_t MaxJobs; double Capacity; unsigned long long KeepAliveTimeoutInterval; unsigned long long KeepAliveTransmissionInterval; unsigned long long CookieMaxTime; double CookieMaxCalculations; double CleanShutdownProbability; size_t Jobs; uint32_t Identifier; }; #endif rsplib-3.0.1/rsplib/rsputilities.c0000664000175000017500000002002411777021056014134 00000000000000/* $Id: rsputilities.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "rserpool.h" #include "loglevel.h" #include "netutilities.h" #include "stringutilities.h" #include "asapinstance.h" #include "debug.h" #ifdef ENABLE_CSP #include "componentstatuspackets.h" #endif /* ###### Create new static registrar entry in rsp_info ###### */ #define MAX_PR_TRANSPORTADDRESSES 128 static int addStaticRegistrar(struct rsp_info* info, const char* addressString) { union sockaddr_union addressArray[MAX_PR_TRANSPORTADDRESSES]; struct sockaddr* packedAddressArray; struct rsp_registrar_info* registrarInfo; char str[1024]; size_t addresses; char* address; char* idx; safestrcpy((char*)&str, addressString, sizeof(str)); addresses = 0; address = str; while(addresses < MAX_PR_TRANSPORTADDRESSES) { idx = strindex(address, ','); if(idx) { *idx = 0x00; } if(!string2address(address, &addressArray[addresses])) { return(-1); } addresses++; if(idx) { address = idx; address++; } else { break; } } if(addresses < 1) { return(-1); } packedAddressArray = pack_sockaddr_union((union sockaddr_union*)&addressArray, addresses); if(packedAddressArray == NULL) { return(-1); } registrarInfo = (struct rsp_registrar_info*)malloc(sizeof(struct rsp_registrar_info)); if(registrarInfo == NULL) { free(packedAddressArray); return(-1); } registrarInfo->rri_next = info->ri_registrars; registrarInfo->rri_addr = packedAddressArray; registrarInfo->rri_addrs = addresses; info->ri_registrars = registrarInfo; return(0); } #ifdef ENABLE_CSP /* ###### Set logging parameter ########################################## */ static bool initComponentStatusReporter(struct rsp_info* info, const char* parameter) { static union sockaddr_union cspServerAddress; unsigned int identifier; if(!(strncmp(parameter, "-cspserver=", 11))) { if(!string2address((const char*)¶meter[11], &cspServerAddress)) { fprintf(stderr, "ERROR: Bad CSP report address %s! Use format .\n", (const char*)¶meter[11]); return(false); } if(getPort(&cspServerAddress.sa) == 0) { setPort(&cspServerAddress.sa, 2960); } info->ri_csp_server = &cspServerAddress.sa; } else if(!(strncmp(parameter, "-cspinterval=", 13))) { info->ri_csp_interval = atol((const char*)¶meter[13]); return(true); } else if(!(strncmp(parameter, "-cspidentifier=", 15))) { if(sscanf((const char*)¶meter[15], "0x%x", &identifier) == 0) { if(sscanf((const char*)¶meter[15], "%u", &identifier) == 0) { fputs("ERROR: Bad registrar ID given!\n", stderr); return(false); } } info->ri_csp_identifier = CID_COMPOUND(CID_GROUP_POOLELEMENT, identifier); } else { fprintf(stderr, "ERROR: Invalid CSP parameter %s\n", parameter); return(false); } return(true); } #endif /* ###### Initialize rsp_info ############################################ */ void rsp_initinfo(struct rsp_info* info) { #ifdef ENABLE_CSP const char* cspServer = getenv("CSP_SERVER"); const char* cspInterval = getenv("CSP_INTERVAL"); static union sockaddr_union cspServerAddress; #endif memset(info, 0, sizeof(struct rsp_info)); #ifdef ENABLE_CSP if(cspServer) { if(!string2address(cspServer, &cspServerAddress)) { fprintf(stderr, "ERROR: Bad CSP report address %s! Use format .\n", cspServer); } info->ri_csp_server = &cspServerAddress.sa; } if(cspInterval) { info->ri_csp_interval = atol(cspInterval); if(info->ri_csp_interval < 250) { info->ri_csp_interval = 250; } } #endif } /* ###### Free static registrar entries of rsp_info ###################### */ void rsp_freeinfo(struct rsp_info* info) { struct rsp_registrar_info* registrarInfo; while(info->ri_registrars) { registrarInfo = info->ri_registrars; info->ri_registrars = registrarInfo->rri_next; free(registrarInfo->rri_addr); free(registrarInfo); } } /* ###### Handle rsplib argument and put result into rsp_info ############ */ int rsp_initarg(struct rsp_info* info, const char* arg) { static union sockaddr_union asapAnnounceAddress; if(!(strncmp(arg, "-log" ,4))) { if(initLogging(arg) == false) { return(0); } return(1); } #ifdef ENABLE_CSP else if(!(strncmp(arg, "-csp" ,4))) { if(initComponentStatusReporter(info, arg) == false) { return(0); } return(1); } #endif else if(!(strncmp(arg, "-registrar=", 11))) { if(addStaticRegistrar(info, (char*)&arg[11]) < 0) { fprintf(stderr, "ERROR: Bad registrar setting %s\n", arg); return(0); } return(1); } else if(!(strncmp(arg, "-registrarannouncetimeout=", 26))) { info->ri_registrar_announce_timeout = atol((const char*)&arg[26]); } else if(!(strncmp(arg, "-registrarconnecttimeout=", 25))) { info->ri_registrar_connect_timeout = atol((const char*)&arg[25]); } else if(!(strncmp(arg, "-registrarconnectmaxtrials=", 27))) { info->ri_registrar_connect_max_trials = atol((const char*)&arg[27]); } else if(!(strncmp(arg, "-registrarrequesttimeout=", 25))) { info->ri_registrar_request_timeout = atol((const char*)&arg[25]); } else if(!(strncmp(arg, "-registrarresponsetimeout=", 26))) { info->ri_registrar_response_timeout = atol((const char*)&arg[26]); } else if(!(strncmp(arg, "-registrarrequestmaxtrials=", 27))) { info->ri_registrar_request_max_trials = atol((const char*)&arg[27]); } else if(!(strncmp(arg, "-asapannounce=", 14))) { if(!(strcasecmp((const char*)&arg[14], "auto"))) { info->ri_registrar_announce = NULL; info->ri_disable_autoconfig = 0; } else if(!(strcasecmp((const char*)&arg[14], "off"))) { info->ri_registrar_announce = NULL; info->ri_disable_autoconfig = 1; } else { if(string2address((const char*)&arg[14], &asapAnnounceAddress) == false) { fprintf(stderr, "ERROR: Bad ASAP announce setting %s\n", arg); return(0); } if(getPort(&asapAnnounceAddress.sa) == 0) { setPort(&asapAnnounceAddress.sa, ASAP_PORT); } info->ri_registrar_announce = (struct sockaddr*)&asapAnnounceAddress; info->ri_disable_autoconfig = 0; } return(1); } return(0); } rsplib-3.0.1/rsplib/poolelementnode-template.h0000664000175000017500000001405711777021056016414 00000000000000/* $Id: poolelementnode-template.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// //===== // // // * // // // // // // // //=/ /=// * //===// //===== //===// //==== // // // // * // \\ // // // // // // // * // \\ =====// // =====// // // // Version V * * ------------- An Open Source RSerPool Simulation for OMNeT++ ------------- * * Copyright (C) 2003-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef INTERNAL_POOLTEMPLATE #error Do not include this file directly, use poolhandlespacemanagement.h #endif #ifdef __cplusplus extern "C" { #endif #include /* Timer Codes */ #define PENT_EXPIRY 1000 #define PENT_KEEPALIVE_TRANSMISSION 1001 #define PENT_KEEPALIVE_TIMEOUT 1002 /* Pool Element flags */ #define PENF_MARKED (1 << 0) #define PENF_UPDATED (1 << 14) /* Indicates that reregistration updated entry */ #define PENF_NEW (1 << 15) /* Indicates that registration added new node */ /* ====== Pool Element Node ============================================== */ struct ST_CLASS(PoolNode); struct ST_CLASS(PoolElementNode) { struct STN_CLASSNAME PoolElementSelectionStorageNode; struct STN_CLASSNAME PoolElementIndexStorageNode; struct STN_CLASSNAME PoolElementTimerStorageNode; struct STN_CLASSNAME PoolElementConnectionStorageNode; struct STN_CLASSNAME PoolElementOwnershipStorageNode; struct ST_CLASS(PoolNode)* OwnerPoolNode; PoolElementIdentifierType Identifier; HandlespaceChecksumAccumulatorType Checksum; RegistrarIdentifierType HomeRegistrarIdentifier; unsigned int RegistrationLife; struct PoolPolicySettings PolicySettings; unsigned int Flags; PoolElementSeqNumberType SeqNumber; PoolElementSeqNumberType RoundCounter; unsigned int VirtualCounter; unsigned int Degradation; unsigned int UnreachabilityReports; unsigned long long SelectionCounter; unsigned long long LastUpdateTimeStamp; unsigned int TimerCode; unsigned long long TimerTimeStamp; int ConnectionSocketDescriptor; sctp_assoc_t ConnectionAssocID; struct TransportAddressBlock* UserTransport; struct TransportAddressBlock* RegistratorTransport; void* UserData; unsigned long long LastKeepAliveTransmission; }; void ST_CLASS(poolElementNodeNew)(struct ST_CLASS(PoolElementNode)* poolElementNode, const PoolElementIdentifierType identifier, const RegistrarIdentifierType homeRegistrarIdentifier, const unsigned int registrationLife, const struct PoolPolicySettings* pps, struct TransportAddressBlock* userTransport, struct TransportAddressBlock* registratorTransport, const int connectionSocketDescriptor, const sctp_assoc_t connectionAssocID); void ST_CLASS(poolElementNodeDelete)(struct ST_CLASS(PoolElementNode)* poolElementNode); void ST_CLASS(poolElementNodeGetDescription)( const struct ST_CLASS(PoolElementNode)* poolElementNode, char* buffer, const size_t bufferSize, const unsigned int fields); void ST_CLASS(poolElementNodePrint)( const struct ST_CLASS(PoolElementNode)* poolElementNode, FILE* fd, const unsigned int fields); HandlespaceChecksumAccumulatorType ST_CLASS(poolElementNodeComputeChecksum)( const struct ST_CLASS(PoolElementNode)* poolElementNode); int ST_CLASS(poolElementNodeUpdate)(struct ST_CLASS(PoolElementNode)* poolElementNode, const struct ST_CLASS(PoolElementNode)* source); struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromPoolElementSelectionStorageNode)(void* node); struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromPoolElementIndexStorageNode)(void* node); struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromTimerStorageNode)(void* node); struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromOwnershipStorageNode)(void* node); struct ST_CLASS(PoolElementNode)* ST_CLASS(getPoolElementNodeFromConnectionStorageNode)(void* node); void ST_CLASS(poolElementTimerStorageNodePrint)(const void* nodePtr, FILE* fd); int ST_CLASS(poolElementTimerStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2); void ST_CLASS(poolElementOwnershipStorageNodePrint)(const void* nodePtr, FILE* fd); int ST_CLASS(poolElementOwnershipStorageNodeComparison)(const void* nodePtr1, const void* nodePtr2); #ifdef __cplusplus } #endif rsplib-3.0.1/rsplib/registrar0000775000175000017500000000017211777021056013162 00000000000000#!/bin/sh -e echo >&2 "WARNING: Usage of \"server\" is deprecated, it has been renamed to \"rspserver\"!" rspregistrar $@ rsplib-3.0.1/rsplib/testregistrator.c0000664000175000017500000002101411777021056014641 00000000000000/* $Id: testregistrator.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rserpool.h" #include "breakdetector.h" #ifdef ENABLE_CSP #include "componentstatusreporter.h" #endif #include #include #include #define MAX_POOL_ELEMENTS 50000 /* ###### Main program ################################################### */ int main(int argc, char** argv) { struct rsp_info info; struct rsp_loadinfo loadinfo; int poolElementArray[MAX_POOL_ELEMENTS]; char myPoolHandle[512]; const char* poolHandle = "TestPool"; size_t poolElements = 10; size_t pools = 0; bool fastBreak = false; bool noDeregistration = false; unsigned long long pause = 0; size_t i; rsp_initinfo(&info); memset(&loadinfo, 0, sizeof(loadinfo)); loadinfo.rli_policy = PPT_ROUNDROBIN; loadinfo.rli_weight = 1; loadinfo.rli_load = 0; loadinfo.rli_load_degradation = 0; for(i = 1;i < (size_t)argc;i++) { if(rsp_initarg(&info, argv[i])) { /* rsplib argument */ } else if(!(strncmp(argv[i], "-poolhandle=" ,12))) { poolHandle = (char*)&argv[i][12]; } else if(!(strcmp(argv[i], "-fastbreak"))) { fastBreak = true; } else if(!(strcmp(argv[i], "-noderegistration"))) { noDeregistration = true; } else if(!(strncmp(argv[i], "-load=" ,6))) { loadinfo.rli_load = atol((char*)&argv[i][6]); if(loadinfo.rli_load > PPV_MAX_LOAD) { loadinfo.rli_load = PPV_MAX_LOAD; } } else if(!(strncmp(argv[i], "-loaddeg=" ,9))) { loadinfo.rli_load_degradation = atol((char*)&argv[i][9]); if(loadinfo.rli_load_degradation > PPV_MAX_LOAD_DEGRADATION) { loadinfo.rli_load_degradation = PPV_MAX_LOAD_DEGRADATION; } } else if(!(strncmp(argv[i], "-weight=" ,8))) { loadinfo.rli_weight = atol((char*)&argv[i][8]); if(loadinfo.rli_weight < 1) { loadinfo.rli_weight = 1; } } else if(!(strncmp(argv[i], "-poolelements=" ,14))) { poolElements = atol((char*)&argv[i][14]); if(poolElements < 1) { poolElements = 1; } else if(poolElements > MAX_POOL_ELEMENTS) { poolElements = MAX_POOL_ELEMENTS; } } else if(!(strncmp(argv[i], "-pools=" ,7))) { pools = atol((char*)&argv[i][7]); if(pools < 1) { pools = 1; } } else if(!(strncmp(argv[i], "-pause=" ,7))) { pause = 1000ULL * atol((char*)&argv[i][7]); } else if(!(strncmp(argv[i], "-policy=" ,8))) { if((!(strcmp((char*)&argv[i][8], "roundrobin"))) || (!(strcmp((char*)&argv[i][8], "rr")))) { loadinfo.rli_policy = PPT_ROUNDROBIN; } else if((!(strcmp((char*)&argv[i][8], "weightedroundrobin"))) || (!(strcmp((char*)&argv[i][8], "wrr")))) { loadinfo.rli_policy = PPT_WEIGHTED_ROUNDROBIN; } else if((!(strcmp((char*)&argv[i][8], "leastused"))) || (!(strcmp((char*)&argv[i][8], "lu")))) { loadinfo.rli_policy = PPT_LEASTUSED; } else if((!(strcmp((char*)&argv[i][8], "leastuseddegradation"))) || (!(strcmp((char*)&argv[i][8], "lud")))) { loadinfo.rli_policy = PPT_LEASTUSED_DEGRADATION; } else if((!(strcmp((char*)&argv[i][8], "randomizedleastused"))) || (!(strcmp((char*)&argv[i][8], "rlu")))) { loadinfo.rli_policy = PPT_RANDOMIZED_LEASTUSED; } else if((!(strcmp((char*)&argv[i][8], "randomizedleastuseddegradation"))) || (!(strcmp((char*)&argv[i][8], "rlud")))) { loadinfo.rli_policy = PPT_RANDOMIZED_LEASTUSED_DEGRADATION; } else if((!(strcmp((char*)&argv[i][8], "priorityleastused"))) || (!(strcmp((char*)&argv[i][8], "plu")))) { loadinfo.rli_policy = PPT_PRIORITY_LEASTUSED; } else if((!(strcmp((char*)&argv[i][8], "priorityleastuseddegradation"))) || (!(strcmp((char*)&argv[i][8], "plud")))) { loadinfo.rli_policy = PPT_PRIORITY_LEASTUSED_DEGRADATION; } else if((!(strcmp((char*)&argv[i][8], "randomizedpriorityleastused"))) || (!(strcmp((char*)&argv[i][8], "rplu")))) { loadinfo.rli_policy = PPT_RANDOMIZED_PRIORITY_LEASTUSED; } else if((!(strcmp((char*)&argv[i][8], "randomizedpriorityleastuseddegradation"))) || (!(strcmp((char*)&argv[i][8], "rplud")))) { loadinfo.rli_policy = PPT_RANDOMIZED_PRIORITY_LEASTUSED_DEGRADATION; } else if((!(strcmp((char*)&argv[i][8], "random"))) || (!(strcmp((char*)&argv[i][8], "rand")))) { loadinfo.rli_policy = PPT_RANDOM; } else if((!(strcmp((char*)&argv[i][8], "weightedrandom"))) || (!(strcmp((char*)&argv[i][8], "wrand")))) { loadinfo.rli_policy = PPT_WEIGHTED_RANDOM; } else { fprintf(stderr, "ERROR: Unknown policy type \"%s\"!\n" , (char*)&argv[i][8]); exit(1); } } else { fprintf(stderr, "Bad argument \"%s\"!\n" ,argv[i]); fprintf(stderr, "Usage: %s {-poolelements=total PEs} {-pools=PEs} {-poolhandle=pool handle} {-fastbreak} {-noderegistration} {-pause=milliseconds} {-logfile=file|-logappend=file|-logquiet} {-loglevel=level} {-logcolor=on|off} {-policy=roundrobin|rr|weightedroundrobin|wee|leastused|lu|leastuseddegradation|lud|random|rd|weightedrandom|wrd} {-load=load} {-weight=weight} \n" , argv[0]); exit(1); } } if(rsp_initialize(&info) < 0) { perror("Unable to initialize rsplib!"); exit(1); } puts("Test-Registrator - Version 1.0"); puts("==============================\n"); printf("No Deregistration = %s\n", (noDeregistration == true) ? "on" : "off"); printf("Fast Break = %s\n", (fastBreak == true) ? "on" : "off"); printf("Pool = %u PEs\n\n", (unsigned int)pools); printf("Pool Elements = %u\n", (unsigned int)poolElements); printf("Pause between registrations = %llums\n", pause / 1000); for(i = 0;i < poolElements;i++) { snprintf((char*)&myPoolHandle, sizeof(myPoolHandle), "%s-%04u", poolHandle, (unsigned int)(1 + (i % max(1, pools)))); printf("Registering PE #%u in pool %s...\n", (unsigned int)i + 1, myPoolHandle); poolElementArray[i] = rsp_socket(0, SOCK_SEQPACKET, IPPROTO_SCTP); if(poolElementArray[i] < 0) { perror("Unable to create RSerPool socket"); exit(1); } if(rsp_register(poolElementArray[i], (const unsigned char*)myPoolHandle, strlen(myPoolHandle), &loadinfo, 60000, 0) != 0) { perror("Unable to register pool element"); exit(1); } if(pause > 0) { usleep(pause); } } if(!fastBreak) { installBreakDetector(); } while(!breakDetected()) { usleep(250000); } if(!noDeregistration) { for(i = 0;i < poolElements;i++) { rsp_deregister(poolElementArray[i], 0); rsp_close(poolElementArray[i]); } } rsp_cleanup(); rsp_freeinfo(&info); puts("\nTerminated!"); return(0); } rsplib-3.0.1/rsplib/componentstatusreporter.c0000664000175000017500000003242311777021056016433 00000000000000/* $Id: componentstatusreporter.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2004-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "componentstatusreporter.h" #include "rserpool.h" #include "timeutilities.h" #include "netutilities.h" #include "loglevel.h" #include "netutilities.h" #include "stringutilities.h" #include "randomizer.h" #include #include extern struct Dispatcher gDispatcher; static void cspReporterCallback(struct Dispatcher* dispatcher, struct Timer* timer, void* userData); static void sendCSPReport(struct CSPReporter* cspReporter, const bool final); /* ###### Create new ComponentAssociation array ########################## */ struct ComponentAssociation* createComponentAssociationArray(const size_t elements) { struct ComponentAssociation* associationArray = (struct ComponentAssociation*)malloc(elements * sizeof(struct ComponentAssociation)); if(associationArray) { memset(associationArray, 0xff, elements * sizeof(struct ComponentAssociation)); } return(associationArray); } /* ###### Delete ComponentAssociation array ############################## */ void deleteComponentAssociationArray(struct ComponentAssociation* associationArray) { free(associationArray); } /* ###### Fill in component location string ############################## */ void getComponentLocation(char* componentLocation, int sd, sctp_assoc_t assocID) { char str[CSPR_LOCATION_SIZE]; struct utsname hostInfo; union sockaddr_union* addressArray; int addresses; int copiedAddresses; int i, j; unsigned int minScope; char* s; componentLocation[0] = 0x00; /* ====== Get hostname ================================================ */ if(uname(&hostInfo) == 0) { safestrcat(componentLocation, hostInfo.nodename, CSPR_LOCATION_SIZE); } /* ====== Get address(es) ============================================= */ addresses = 0; if(sd >= 0) { addresses = getladdrsplus(sd, assocID, &addressArray); } if( (sd < 1) || ( (addresses == 1) && ( ((addressArray[0].sa.sa_family == AF_INET) && (addressArray[0].in.sin_addr.s_addr == INADDR_ANY)) || ((addressArray[0].sa.sa_family == AF_INET6) && (IN6_IS_ADDR_UNSPECIFIED(&(addressArray[0].in6.sin6_addr)))) ) ) ) { if(addresses > 0) { free(addressArray); } addresses = gatherLocalAddresses(&addressArray); } if(addresses > 0) { copiedAddresses = 0; minScope = AS_UNICAST_GLOBAL; for(j = 0; j <= 1; j++) { for(i = 0;i < addresses;i++) { if(getScope((const struct sockaddr*)&addressArray[i]) >= minScope) { if(address2string((const struct sockaddr*)&addressArray[i], (char*)&str, sizeof(str), ((copiedAddresses == 0) && (sd >= 0)) ? true : false)) { if(componentLocation[0] != 0x00) { safestrcat(componentLocation, (copiedAddresses > 0) ? ", " : ": ", CSPR_LOCATION_SIZE); } if(strncmp(str, "::ffff:", 7) == 0) { safestrcat(componentLocation, (const char*)&str[7], CSPR_LOCATION_SIZE); } else if(strncmp(str, "[::ffff:", 8) == 0) { s = index(str, ']'); while(*s != 0x00) { *s = s[1]; s++; } safestrcat(componentLocation, (const char*)&str[8], CSPR_LOCATION_SIZE); } else { safestrcat(componentLocation, str, CSPR_LOCATION_SIZE); } copiedAddresses++; } } } if(copiedAddresses > 0) { /* At least one address of current minScope has been found ... */ break; } minScope = AS_UNICAST_SITELOCAL; } free(addressArray); } if(componentLocation[0] == 0x00) { snprintf(componentLocation, CSPR_LOCATION_SIZE, "(local only)"); } } /* ###### Constructor #################################################### */ void cspReporterNew(struct CSPReporter* cspReporter, struct Dispatcher* dispatcher, const uint64_t cspIdentifier, const struct sockaddr* cspReportAddress, const unsigned int cspReportInterval, size_t (*cspGetReportFunction)( void* userData, uint64_t* identifier, struct ComponentAssociation** caeArray, char* statusText, char* componentAddress, double* workload), void* cspGetReportFunctionUserData) { cspReporter->StateMachine = dispatcher; memcpy(&cspReporter->CSPReportAddress, cspReportAddress, getSocklen(cspReportAddress)); cspReporter->CSPReportInterval = cspReportInterval; cspReporter->CSPIdentifier = cspIdentifier; cspReporter->CSPGetReportFunction = cspGetReportFunction; cspReporter->CSPGetReportFunctionUserData = cspGetReportFunctionUserData; cspReporter->StatusTextOverride = NULL; timerNew(&cspReporter->CSPReportTimer, cspReporter->StateMachine, cspReporterCallback, cspReporter); timerStart(&cspReporter->CSPReportTimer, 0); } /* ###### Destructor ##################################################### */ void cspReporterDelete(struct CSPReporter* cspReporter) { timerDelete(&cspReporter->CSPReportTimer); sendCSPReport(cspReporter, true); cspReporter->StateMachine = NULL; cspReporter->CSPGetReportFunction = NULL; cspReporter->CSPGetReportFunctionUserData = NULL; } /* ###### Send CSP Status message ######################################## */ static ssize_t componentStatusSend(const union sockaddr_union* reportAddress, const uint64_t reportInterval, const uint64_t senderID, const char* statusText, const char* componentLocation, const double workload, const struct ComponentAssociation* associationArray, const size_t associations, const uint8_t flags) { static unsigned long long startupTime = 0;; struct ComponentStatusReport* cspReport; size_t i; int sd; ssize_t result; const size_t length = sizeof(struct ComponentStatusReport) + (associations * sizeof(struct ComponentAssociation)); result = -1; cspReport = (struct ComponentStatusReport*)malloc(length); if(cspReport) { if(startupTime == 0) { startupTime = getMicroTime(); } cspReport->Header.Type = CSPT_REPORT; cspReport->Header.Flags = flags; cspReport->Header.Version = htonl(CSP_VERSION); cspReport->Header.Length = htonl(length); cspReport->Header.SenderID = hton64(senderID); cspReport->Header.SenderTimeStamp = hton64(getMicroTime() - startupTime); cspReport->ReportInterval = htonl(reportInterval); cspReport->Workload = htons(CSR_SET_WORKLOAD(workload)); strncpy((char*)&cspReport->Status, statusText, sizeof(cspReport->Status)); strncpy((char*)&cspReport->Location, componentLocation, sizeof(cspReport->Location)); cspReport->Associations = htons(associations); for(i = 0;i < associations;i++) { cspReport->AssociationArray[i].ReceiverID = hton64(associationArray[i].ReceiverID); cspReport->AssociationArray[i].Duration = hton64(associationArray[i].Duration); cspReport->AssociationArray[i].Flags = htons(associationArray[i].Flags); cspReport->AssociationArray[i].ProtocolID = htons(associationArray[i].ProtocolID); cspReport->AssociationArray[i].PPID = htonl(associationArray[i].PPID); } sd = ext_socket(reportAddress->sa.sa_family, SOCK_DGRAM, IPPROTO_UDP); if(sd >= 0) { setNonBlocking(sd); result = ext_sendto(sd, cspReport, length, 0, &reportAddress->sa, getSocklen(&reportAddress->sa)); ext_close(sd); } free(cspReport); } return(result); } /* ###### Report status ################################################## */ static void sendCSPReport(struct CSPReporter* cspReporter, const bool final) { char statusText[CSPR_STATUS_SIZE]; char componentLocation[CSPR_LOCATION_SIZE]; struct ComponentAssociation* caeArray = NULL; size_t caeArraySize = 0; double workload; LOG_VERBOSE4 fputs("Creating and sending CSP report...\n", stdlog); LOG_END statusText[0] = 0x00; if(final == false) { caeArraySize = cspReporter->CSPGetReportFunction(cspReporter->CSPGetReportFunctionUserData, &cspReporter->CSPIdentifier, &caeArray, (char*)&statusText, (char*)&componentLocation, &workload); } else { statusText[0] = 0x00; componentLocation[0] = 0x00; workload = 0.0; } if(CID_OBJECT(cspReporter->CSPIdentifier) != 0ULL) { componentStatusSend(&cspReporter->CSPReportAddress, cspReporter->CSPReportInterval, cspReporter->CSPIdentifier, (cspReporter->StatusTextOverride != NULL) ? cspReporter->StatusTextOverride : statusText, componentLocation, workload, caeArray, caeArraySize, (final == true) ? CSPF_FINAL : 0x00); } if(caeArray) { deleteComponentAssociationArray(caeArray); } LOG_VERBOSE4 fputs("Sending CSP report completed\n", stdlog); LOG_END } /* ###### Timer callback to report status ################################ */ static void cspReporterCallback(struct Dispatcher* dispatcher, struct Timer* timer, void* userData) { struct CSPReporter* cspReporter = (struct CSPReporter*)userData; sendCSPReport(cspReporter, false); timerStart(&cspReporter->CSPReportTimer, getMicroTime() + cspReporter->CSPReportInterval); } /* ###### Report status during registrar search ########################## */ void cspReporterHandleTimerDuringRegistrarSearch(struct CSPReporter* cspReporter) { cspReporter->StatusTextOverride = "Looking for Registrar ..."; timerStop(&cspReporter->CSPReportTimer); cspReporterCallback(cspReporter->StateMachine, &cspReporter->CSPReportTimer, cspReporter); cspReporter->StatusTextOverride = NULL; } rsplib-3.0.1/rsplib/componentstatusreporter.h0000664000175000017500000000737511777021056016450 00000000000000/* $Id: componentstatusreporter.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef COMPONENTSTATUSREPORTER_H #define COMPONENTSTATUSREPORTER_H #include "componentstatuspackets.h" #include "rserpool.h" #include "sockaddrunion.h" #include "dispatcher.h" #include "timer.h" #include #ifdef __cplusplus extern "C" { #endif struct ComponentAssociation* createComponentAssociationArray(const size_t elements); void deleteComponentAssociationArray(struct ComponentAssociation* associationArray); void getComponentLocation(char* componentLocation, int sd, sctp_assoc_t assocID); struct CSPReporter { struct Dispatcher* StateMachine; uint64_t CSPIdentifier; union sockaddr_union CSPReportAddress; unsigned int CSPReportInterval; struct Timer CSPReportTimer; const char* StatusTextOverride; size_t (*CSPGetReportFunction)( void* userData, uint64_t* identifier, struct ComponentAssociation** caeArray, char* statusText, char* componentAddress, double* workload); void* CSPGetReportFunctionUserData; }; void cspReporterNew(struct CSPReporter* cspReporter, struct Dispatcher* dispatcher, const uint64_t cspIdentifier, const struct sockaddr* cspReportAddress, const unsigned int cspReportInterval, size_t (*cspGetReportFunction)( void* userData, uint64_t* identifier, struct ComponentAssociation** caeArray, char* statusText, char* componentAddress, double* workload), void* cspGetReportFunctionUserData); void cspReporterDelete(struct CSPReporter* cspReporter); void cspReporterHandleTimerDuringRegistrarSearch(struct CSPReporter* cspReporter); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/scriptingcontrol.10000664000175000017500000000625011777021056014722 00000000000000.\" $Id: scriptingcontrol.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt ScriptingControl 1 .Os Scripting Control .\" ###### Name ############################################################# .Sh NAME .Nm scriptingcontrol .Nd Scripting Control script for the Scripting Service .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm scriptingcontrol run .Op Directory .Op Input .Op Output .Op Status .Op Environment .Nm scriptingcontrol cleanup .Op Directory .Op PID .Op keeptempdirs .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm scriptingcontrol is invoked when a new session is created by the scripting service PE. It takes the input file name and should create an output file of the given name. .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It run|cleanup .Nm run is used when the session is started. .Nm cleanup is used to kill all processes and remove the directory. .It Directory Gives the name of the temporary session directory. .It Input Gives the name of the input file. .It Output Gives the name of the output file. .It Status Gives the name of the status file. .It Environment Gives the name of the environment file (if available). .It PID The process ID (PID) of the session's worker process. All of its children will be found and terminated during clean-up. .It keeptempdirs Do not delete temporary directory during clean-up. .El .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/tcplikeserver.cc0000664000175000017500000007043311777021056014432 00000000000000/* $Id: tcplikeserver.cc 2695 2012-07-03 20:52:56Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tcplikeserver.h" #include "timeutilities.h" #include "netutilities.h" #include "loglevel.h" #include "breakdetector.h" #include "tagitem.h" #include #include // ###### Constructor ####################################################### TCPLikeServer::TCPLikeServer(int rserpoolSocketDescriptor) { RSerPoolSocketDescriptor = rserpoolSocketDescriptor; ServerList = NULL; IsNewSession = true; Shutdown = false; Finished = false; Load = 0; SyncTimerTimeStamp = 0; AsyncTimerTimeStamp = 0; printTimeStamp(stdlog); fprintf(stdlog, "New thread for RSerPool socket %d.\n", RSerPoolSocketDescriptor); fflush(stdlog); } // ###### Destructor ######################################################## TCPLikeServer::~TCPLikeServer() { CHECK(ServerList == NULL); printTimeStamp(stdlog); fprintf(stdlog, "Thread for RSerPool socket %d has been stopped.\n", RSerPoolSocketDescriptor); fflush(stdlog); if(RSerPoolSocketDescriptor >= 0) { rsp_close(RSerPoolSocketDescriptor); RSerPoolSocketDescriptor = -1; } } // ###### Startup of thread ################################################# EventHandlingResult TCPLikeServer::initializeSession() { return(EHR_Okay); } // ###### Finish of thread ################################################## void TCPLikeServer::finishSession(EventHandlingResult result) { } // ###### Shutdown thread ################################################### void TCPLikeServer::shutdown() { lock(); Shutdown = true; unlock(); } // ##### Get load ########################################################### double TCPLikeServer::getLoad() const { return((double)Load / (double)PPV_MAX_LOAD); } // ##### Set load ########################################################### void TCPLikeServer::setLoad(double load) { ServerList->lock(); CHECK(ServerList != NULL); CHECK(ServerList->LoadSum >= Load); if((load < 0.0) || (load > 1.0)) { fputs("ERROR: Invalid load setting!\n", stdlog); fflush(stdlog); ServerList->unlock(); return; } const unsigned int newLoad = (unsigned int)floor(load * (double)PPV_MAX_LOAD); if((long long)ServerList->LoadSum - (long long)Load + (long long)newLoad > PPV_MAX_LOAD) { fputs("ERROR: Something is wrong with load settings. Total load would exceed 100%!\n", stdlog); fflush(stdlog); ServerList->unlock(); return; } const double oldTotalLoad = ServerList->getTotalLoad(); ServerList->LoadSum -= Load; lock(); Load = newLoad; unlock(); ServerList->LoadSum += Load; const double newTotalLoad = ServerList->getTotalLoad(); ServerList->unlock(); if(oldTotalLoad != newTotalLoad) { const ssize_t result = ext_write(ServerList->SystemNotificationPipe, "!", 1); if(result <= 0) { perror("Writing to system notification pipe failed"); } } } // ###### Handle cookie ##################################################### EventHandlingResult TCPLikeServer::handleCookieEcho(const char* buffer, size_t bufferSize) { printTimeStamp(stdlog); fputs("COOKIE ECHO\n", stdlog); fflush(stdout); return(EHR_Okay); } // ###### Handle notification ############################################### EventHandlingResult TCPLikeServer::handleNotification( const union rserpool_notification* notification) { printTimeStamp(stdlog); fprintf(stdlog, "NOTIFICATION: "); rsp_print_notification(notification, stdlog); fputs("\n", stdlog); fflush(stdout); return(EHR_Okay); } // ###### Handle synchronous timer ########################################## EventHandlingResult TCPLikeServer::syncTimerEvent(const unsigned long long now) { printTimeStamp(stdlog); fputs("SyncTimer\n", stdlog); fflush(stdout); return(EHR_Okay); } // ###### Handle asynchronous timer ######################################### void TCPLikeServer::asyncTimerEvent(const unsigned long long now) { printTimeStamp(stdlog); fputs("AsyncTimer\n", stdlog); fflush(stdout); } // ###### Handle message #################################################### EventHandlingResult TCPLikeServer::handleMessage(const char* buffer, size_t bufferSize, uint32_t ppid, uint16_t streamID) { return(EHR_Abort); } // ###### TCPLike server main loop ######################################### void TCPLikeServer::run() { char buffer[65536]; struct rsp_sndrcvinfo rinfo; ssize_t received; int flags; EventHandlingResult eventHandlingResult; unsigned long long now; eventHandlingResult = initializeSession(); if(eventHandlingResult == EHR_Okay) { while(!isShuttingDown()) { flags = 0; unsigned long long nextTimerEvent; if(SyncTimerTimeStamp > 0) { now = getMicroTime(); nextTimerEvent = (SyncTimerTimeStamp <= now) ? 0 : SyncTimerTimeStamp - now; } else { nextTimerEvent = 5000000; } now = getMicroTime(); received = rsp_recvfullmsg(RSerPoolSocketDescriptor, (char*)&buffer, sizeof(buffer), &rinfo, &flags, (int)(nextTimerEvent / 1000)); if(received > 0) { /* for(int i = 0;i < received;i++) { printf("%02x ", ((unsigned char*)&buffer)[i]); } puts(""); fflush(stdout); */ // ====== Handle event ========================================== if(flags & MSG_RSERPOOL_COOKIE_ECHO) { if(IsNewSession) { IsNewSession = false; eventHandlingResult = handleCookieEcho((char*)&buffer, received); } else { printTimeStamp(stdlog); fputs("Dropped unexpected ASAP COOKIE_ECHO!\n", stdlog); fflush(stdlog); eventHandlingResult = EHR_Abort; } } else if(flags & MSG_RSERPOOL_NOTIFICATION) { eventHandlingResult = handleNotification((const union rserpool_notification*)&buffer); } else { IsNewSession = false; eventHandlingResult = handleMessage((char*)&buffer, received, rinfo.rinfo_ppid, rinfo.rinfo_stream); } // ====== Check for problems ==================================== if(eventHandlingResult != EHR_Okay) { break; } } else if(received == 0) { break; } // ====== Handle timer event ======================================= if((SyncTimerTimeStamp > 0) && (eventHandlingResult == EHR_Okay)) { now = getMicroTime(); if(SyncTimerTimeStamp <= now) { eventHandlingResult = syncTimerEvent(now); if(eventHandlingResult != EHR_Okay) { break; } } } } } // Since it can take some time to clean up the session (e.g. removing // temporary files for Scripting Service), we finish the session *before* // actually closing the association. Then, the PU waits until being finished // before actually trying to distribute the next session. finishSession(eventHandlingResult); if((eventHandlingResult == EHR_Abort) || (eventHandlingResult == EHR_Shutdown)) { #ifdef SOLARIS rsp_sendmsg(RSerPoolSocketDescriptor, NULL, 0, (eventHandlingResult == EHR_Abort) ? MSG_ABORT : MSG_EOF, 0, 0, 0, 0, 0, 0); #else rsp_sendmsg(RSerPoolSocketDescriptor, NULL, 0, 0, 0, 0, 0, 0, (eventHandlingResult == EHR_Abort) ? SCTP_ABORT : SCTP_EOF, 0); #endif } lock(); Finished = true; unlock(); } // ###### Implementation of a simple threaded server ######################## void TCPLikeServer::poolElement(const char* programTitle, const char* poolHandle, struct rsp_info* info, struct rsp_loadinfo* loadinfo, size_t maxThreads, TCPLikeServer* (*threadFactory)(int sd, void* userData, const uint32_t peIdentifier), void (*printParameters)(const void* userData), void (*rejectNewSession)(int sd), bool (*initializeService)(void* userData), void (*finishService)(void* userData), double (*loadUpdateHook)(const double load), void* userData, const sockaddr* localAddressSet, const size_t localAddresses, unsigned int reregInterval, unsigned int runtimeLimit, const bool quiet, const bool daemonMode, struct TagItem* tags) { if(rsp_initialize(info) < 0) { fputs("ERROR: Unable to initialize rsplib Library!\n", stdlog); return; } int rserpoolSocket = rsp_socket(0, SOCK_STREAM, IPPROTO_SCTP); if(rserpoolSocket >= 0) { if(rsp_bind(rserpoolSocket, localAddressSet, localAddresses) == 0) { if(rsp_listen(rserpoolSocket, (int)maxThreads) == 0) { // ====== Initialize notification pipe ================================ int systemNotificationPipe[2]; int rspNotificationPipe[2]; if(ext_pipe((int*)&systemNotificationPipe) == 0) { rspNotificationPipe[0] = rsp_mapsocket(systemNotificationPipe[0], -1); rspNotificationPipe[1] = rsp_mapsocket(systemNotificationPipe[1], -1); if( (setNonBlocking(systemNotificationPipe[0])) && (rspNotificationPipe[0] > 0) && (setNonBlocking(systemNotificationPipe[1])) && (rspNotificationPipe[1] > 0) ) { // ====== Initialize PE settings ================================ struct rsp_loadinfo dummyLoadinfo; if(loadinfo == NULL) { memset(&dummyLoadinfo, 0, sizeof(dummyLoadinfo)); loadinfo = &dummyLoadinfo; loadinfo->rli_policy = PPT_ROUNDROBIN; } // ====== Server startup ======================================== if((initializeService == NULL) || (initializeService(userData))) { double oldLoad = 0.0; if(PPT_IS_ADAPTIVE(loadinfo->rli_policy)) { if(loadUpdateHook) { double newLoad = loadUpdateHook(0.0); CHECK((newLoad >= 0.0) && (newLoad <= 1.0)); loadinfo->rli_load = (unsigned int)rint(newLoad * (double)PPV_MAX_LOAD); oldLoad = newLoad; } } // ====== Print program title ================================ if(!quiet) { puts(programTitle); const size_t programTitleSize = strlen(programTitle); for(size_t i = 0;i < programTitleSize;i++) { printf("="); } const char* policyName = rsp_getpolicybytype(loadinfo->rli_policy); puts("\n\nGeneral Parameters:"); printf(" Pool Handle = %s\n", poolHandle); printf(" Reregistration Interval = %1.3fs\n", reregInterval / 1000.0); printf(" Local Addresses = { "); if(localAddresses == 0) { printf("all"); } else { const sockaddr* addressPtr = localAddressSet; for(size_t i = 0;i < localAddresses;i++) { if(i > 0) { printf(", "); } fputaddress(addressPtr, (i == 0), stdout); addressPtr = (const sockaddr*)((long)addressPtr + (long)getSocklen(addressPtr)); } } printf(" }\n"); printf(" Runtime Limit = "); if(runtimeLimit > 0) { printf("%1.3f [s]\n", runtimeLimit / 1000.0); } else { puts("off"); } printf(" Max Threads = %u\n", (unsigned int)maxThreads); puts(" Policy Settings"); printf(" Policy Type = %s\n", (policyName != NULL) ? policyName : "?"); printf(" Load Degradation = %1.3f%%\n", 100.0 * ((double)loadinfo->rli_load_degradation / (double)PPV_MAX_LOAD_DEGRADATION)); printf(" Load DPF = %1.3f%%\n", 100.0 * ((double)loadinfo->rli_load_dpf / (double)PPV_MAX_LOADDPF)); printf(" Weight = %u\n", loadinfo->rli_weight); printf(" Weight DPF = %1.3f%%\n", 100.0 * ((double)loadinfo->rli_weight_dpf / (double)PPV_MAX_WEIGHTDPF)); if(printParameters) { printParameters(userData); } } // ====== Register PE ======================================== if(rsp_register_tags(rserpoolSocket, (const unsigned char*)poolHandle, strlen(poolHandle), loadinfo, reregInterval, (daemonMode == true) ? REGF_DAEMONMODE : 0, tags) == 0) { uint32_t identifier = 0; if(rsp_getsockname(rserpoolSocket, NULL, NULL, &identifier) == 0) { if(!quiet) { puts("Registration:"); printf(" Identifier = $%08x\n\n", identifier); } } // ====== Main loop ======================================= TCPLikeServerList serverSet(maxThreads, systemNotificationPipe[1]); const unsigned long long autoStopTimeStamp = (runtimeLimit > 0) ? (getMicroTime() + (1000ULL * runtimeLimit)) : 0; installBreakDetector(); while(!breakDetected()) { // ====== Wait for actions ============================= struct pollfd pollfds[2]; pollfds[0].fd = rserpoolSocket; pollfds[0].events = POLLIN; pollfds[0].revents = 0; pollfds[1].fd = rspNotificationPipe[0]; pollfds[1].events = POLLIN; pollfds[1].revents = 0; const int result = rsp_poll((struct pollfd*)&pollfds, 2, 2500); // ====== Clean-up session list ======================== // Possible, some sessions have finished working during // waiting time. Therefore, cleaning them up is useful // before accepting new sessions. if(serverSet.handleRemovalsAndTimers() > 0) { const int backlog = (int)(serverSet.getMaxThreads() - serverSet.getThreads()); if(rsp_listen(rserpoolSocket, 1 + backlog) < 0) { logerror("Unable to update backlog using rsp_listen()"); } } // ====== Wait for incoming sessions =================== if(result > 0) { if(pollfds[0].revents & POLLIN) { int newRSerPoolSocket = rsp_accept(rserpoolSocket, 0); if(newRSerPoolSocket >= 0) { if(serverSet.hasCapacity()) { TCPLikeServer* serviceThread = threadFactory(newRSerPoolSocket, userData, identifier); if(serviceThread) { if(serverSet.add(serviceThread)) { if(serviceThread->start()) { const int backlog = (int)(serverSet.getMaxThreads() - serverSet.getThreads()); if(rsp_listen(rserpoolSocket, 1 + backlog) < 0) { logerror("Unable to update backlog using rsp_listen()"); fflush(stdlog); } } else { printTimeStamp(stdlog); fputs("ERROR: Unable to start up service thread\n", stderr); fflush(stdlog); serverSet.remove(serviceThread); delete serviceThread; } } else { delete serviceThread; printTimeStamp(stdlog); fputs("Unable to add new service thread\n", stdlog); fflush(stdlog); } } else { rsp_close(newRSerPoolSocket); printTimeStamp(stdlog); fputs("Unable to create new service thread\n", stdlog); fflush(stdlog); } } else { if(rejectNewSession) { rejectNewSession(newRSerPoolSocket); } rsp_close(newRSerPoolSocket); if(!quiet) { printTimeStamp(stdlog); fputs("Rejected new session, since server is fully loaded\n", stdlog); fflush(stdlog); } } } } // ====== Do reregistration on load changes ========= if(PPT_IS_ADAPTIVE(loadinfo->rli_policy)) { double newLoad = serverSet.getTotalLoad(); if(loadUpdateHook) { newLoad = loadUpdateHook(newLoad); CHECK((newLoad >= 0.0) && (newLoad <= 1.0)); } if(fabs(newLoad - oldLoad) >= 0.01) { // printf("NEW LOAD = %1.6f\n", newLoad); oldLoad = newLoad; loadinfo->rli_load = (unsigned int)rint(newLoad * (double)PPV_MAX_LOAD); rsp_register_tags(rserpoolSocket, (const unsigned char*)poolHandle, strlen(poolHandle), loadinfo, reregInterval, REGF_DONTWAIT, tags); } } // ====== Clear notification pipe =================== if(pollfds[1].revents & POLLIN) { char buffer[1024]; const ssize_t result = ext_read(systemNotificationPipe[0], (char*)&buffer, sizeof(buffer)); if(result < 0) { perror("Reading from system notification pipe failed"); } } } // ====== Auto-stop ==================================== if((autoStopTimeStamp > 0) && (getMicroTime() > autoStopTimeStamp)) { fputs("Auto-stop reached!\n", stdlog); break; } } // ====== Clean up ======================================== serverSet.removeAll(); rsp_deregister(rserpoolSocket, 0); uninstallBreakDetector(); } if(finishService != NULL) { finishService(userData); } } else { fprintf(stdlog, "ERROR: Failed to register PE to pool %s\n", poolHandle); } if(rspNotificationPipe[0] > 0) { rsp_unmapsocket(rspNotificationPipe[0]); } if(rspNotificationPipe[1] > 0) { rsp_unmapsocket(rspNotificationPipe[1]); } } else { logerror("Unable to map notification pipe FDs"); } ext_close(systemNotificationPipe[0]); ext_close(systemNotificationPipe[1]); } else { logerror("Unable to create notification pipe"); } } else { logerror("Unable to put RSerPool socket into listening mode"); } } else { logerror("Unable to bind RSerPool socket"); } rsp_close(rserpoolSocket); } else { logerror("Unable to create RSerPool socket"); } rsp_cleanup(); fputs("\nTerminated!\n", stdlog); } // ###### Constructor ####################################################### TCPLikeServerList::TCPLikeServerList(size_t maxThreads, int systemNotificationPipe) { ThreadList = NULL; LoadSum = 0; Threads = 0; MaxThreads = maxThreads; SystemNotificationPipe = systemNotificationPipe; } // ###### Destructor ######################################################## TCPLikeServerList::~TCPLikeServerList() { removeAll(); } // ###### Get number of threads ############################################# size_t TCPLikeServerList::getThreads() { size_t threads; lock(); threads = Threads; unlock(); return(threads); } // ###### Remove finished sessions ########################################## size_t TCPLikeServerList::handleRemovalsAndTimers() { size_t removed = 0; lock(); ThreadListEntry* entry = ThreadList; while(entry != NULL) { ThreadListEntry* next = entry->Next; if(entry->Object->hasFinished()) { remove(entry->Object); removed++; } else { entry->Object->lock(); if(entry->Object->AsyncTimerTimeStamp > 0) { const unsigned long long now = getMicroTime(); if(entry->Object->AsyncTimerTimeStamp <= now) { entry->Object->asyncTimerEvent(now); } } entry->Object->unlock(); } entry = next; } unlock(); return(removed); } // ###### Remove all sessions ############################################### void TCPLikeServerList::removeAll() { ThreadListEntry* entry = ThreadList; while(entry != NULL) { remove(entry->Object); entry = ThreadList; } } // ###### Add session ####################################################### bool TCPLikeServerList::add(TCPLikeServer* thread) { if(Threads < MaxThreads) { ThreadListEntry* entry = new ThreadListEntry; if(entry) { lock(); entry->Next = ThreadList; entry->Object = thread; ThreadList = entry; thread->setServerList(this); Threads++; unlock(); return(true); } } return(false); } // ###### Remove session #################################################### void TCPLikeServerList::remove(TCPLikeServer* thread) { // ====== Tell thread to shut down ======================================= thread->shutdown(); thread->waitForFinish(); thread->setLoad(0.0); // ====== Remove thread ================================================== lock(); ThreadListEntry* entry = ThreadList; ThreadListEntry* prev = NULL; while(entry != NULL) { if(entry->Object == thread) { if(prev == NULL) { ThreadList = entry->Next; } else { prev->Next = entry->Next; } thread->setServerList(NULL); Threads--; delete entry->Object; entry->Object = NULL; delete entry; break; } prev = entry; entry = entry->Next; } unlock(); } // ###### Get total load #################################################### double TCPLikeServerList::getTotalLoad() { lock(); const size_t threads = Threads; const unsigned long long loadSum = LoadSum; unlock(); if(threads > 0) { return(loadSum / (double)PPV_MAX_LOAD); } return(0.0); } rsplib-3.0.1/rsplib/hsdump.10000664000175000017500000001035611777021056012621 00000000000000.\" $Id: hsdump.1 2682 2012-06-08 11:29:28Z dreibh $ .\" -------------------------------------------------------------------------- .\" .\" //===// //===== //===// // // //===// .\" // // // // // // // // // .\" //===// //===== //===// // // //===<< .\" // \\ // // // // // // .\" // \\ =====// // //===== // //===// Version II .\" .\" ------------- An Efficient RSerPool Prototype Implementation ------------- .\" .\" Copyright (C) 2002-2012 by Thomas Dreibholz .\" .\" This program is free software: you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation, either version 3 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . .\" .\" Contact: dreibh@iem.uni-due.de .\" .\" ###### Setup ############################################################ .Dd June 06, 2012 .Dt HSDump 1 .Os Handlespace Dump .\" ###### Name ############################################################# .Sh NAME .Nm hsdump .Nd Dumps the handlespace of a RSerPool Registrar. .\" ###### Synopsis ######################################################### .Sh SYNOPSIS .Nm hsdump .Op Fl address:port .Op Fl cspserver=address:port .Op Fl cspinterval=milliseconds .Op Fl logappend=filename .Op Fl logcolor=on|off .Op Fl logfile=filename .Op Fl loglevel=0-9 .\" ###### Description ###################################################### .Sh DESCRIPTION .Nm hsdump dumps the handlespace of a Reliable Server Pooling (RSerPool) Registrar (PR). For this purpose, it claims to be a peer registrar and requests the handlespace via ENRP. Handle with care! .Pp .\" ###### Arguments ######################################################## .Sh ARGUMENTS The following options are available: .Bl -tag -width indent .It address:port The ENRP address and port of the target registrar. .\" ====== Component Status Protocol ======================================== .It Component Status Protocol (CSP) Parameters: .Bl -tag -width indent .It Fl cspinterval=milliseconds Sets the interval for the CSP status updates in milliseconds. By default, the content of the environment variable CSP_INTERVAL is used. If not defined, no CSP status reports will be sent. .It Fl cspserver=address:port Sets the address of a CSP monitor server. By default, the content of the environment variable CSP_SERVER is used. If not defined, no CSP status reports will be sent. .El .\" ====== Logging ========================================================== .It Logging Parameters: .Bl -tag -width indent .It Fl logappend=filename Write logging output to a file (default is stdout); output will be appended to given file. .It Fl logcolor=on|off Turns ANSI colorization of the logging output on or off. .It Fl logfile=filename Write logging output to a file (default is stdout); given file will be overwritten. .It Fl loglevel=0-9 Sets the logging verbosity from 0 (none) to 9 (very verbose). It is recommended to use at least a value of 2 to see possibly important error messages and warnings. .El .El .Pp .\" ###### Environment ###################################################### .Sh ENVIRONMENT .Nm hsdump uses the environment variables CSP_SERVER and CSP_INTERVAL to define a CSP server to send reports to in the specified interval. .\" ###### Diagnostics ###################################################### .Sh DIAGNOSTICS If loglevel>0, log messages will be printed to stdout or into a specified log file. .\" ###### See also ######################################################### .Sh SEE ALSO For a detailed introduction to RSerPool, see: .br http://duepublico.uni-duisburg-essen.de/servlets/DerivateServlet/Derivate-16326/Dre2006-final.pdf .Pp Thomas Dreibholz's RSerPool Page: .br http://tdrwww.iem.uni-due.de/dreibholz/rserpool/ rsplib-3.0.1/rsplib/hsdump.c0000664000175000017500000003377711777021056012717 00000000000000/* $Id: hsdump.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "netutilities.h" #include "timer.h" #include "rserpoolmessage.h" #include "poolhandlespacemanagement.h" #include "randomizer.h" #include #include #include #define MAX_NS_TRANSPORTADDRESSES 128 int main(int argc, char** argv) { char localAddressArrayBuffer[transportAddressBlockGetSize(MAX_NS_TRANSPORTADDRESSES)]; struct TransportAddressBlock* localAddressArray = (struct TransportAddressBlock*)&localAddressArrayBuffer; struct sctp_event_subscribe sctpEvents; struct ST_CLASS(PoolHandlespaceManagement) handlespace; struct ST_CLASS(PeerListManagement) peerList; struct ST_CLASS(PoolElementNode)* poolElementNode; struct ST_CLASS(PoolElementNode)* newPoolElementNode; struct ST_CLASS(PeerListNode)* peerListNodePtr; struct ST_CLASS(PeerListNode)* newPeerListNode; unsigned int result; union sockaddr_union registrarAddress; struct RSerPoolMessage* message; uint32_t registrarID; int sd; char buffer[65536]; int flags; uint32_t ppid; sctp_assoc_t assocID; uint16_t streamID; ssize_t received; struct ST_CLASS(PeerListNode) peerListNode; bool moreData; int i; if(argc < 2) { fprintf(stderr, "Usage: %s [Registrar] {-loglevel=Level} {-logfile=File} {-logappend=File} {-logcolor=on|off}\n", argv[0]); exit(1); } if(string2address(argv[1], ®istrarAddress) == false) { fprintf(stderr, "ERROR: Bad registrar address <%s>\n", argv[1]); exit(1); } for(i = 2;i < argc;i++) { if(!(strncmp(argv[i], "-log" ,4))) { if(initLogging(argv[i]) == false) { exit(1); } } else { fprintf(stderr, "ERROR: Bad argument <%s>\n", argv[i]); } } beginLogging(); sd = ext_socket((checkIPv6() == true) ? AF_INET6 : AF_INET, SOCK_STREAM, IPPROTO_SCTP); if(sd < 0) { perror("Unable to create SCTP socket"); exit(1); } memset(&sctpEvents, 0, sizeof(sctpEvents)); sctpEvents.sctp_data_io_event = 1; if(ext_setsockopt(sd, IPPROTO_SCTP, SCTP_EVENTS, &sctpEvents, sizeof(sctpEvents)) < 0) { perror("setsockopt() for SCTP_EVENTS failed"); ext_close(sd); exit(1); } if(ext_connect(sd, (struct sockaddr*)®istrarAddress, sizeof(registrarAddress)) < 0) { perror("Unable to connect to registrar"); ext_close(sd); exit(1); } message = rserpoolMessageNew(NULL, 65536); if(message == NULL) { fputs("ERROR: Unable to create message structure!\n", stderr); ext_close(sd); exit(1); } registrarID = random32(); ST_CLASS(poolHandlespaceManagementNew)(&handlespace, registrarID, NULL, NULL, NULL); ST_CLASS(peerListManagementNew)(&peerList, &handlespace, registrarID, NULL, NULL); if(transportAddressBlockGetAddressesFromSCTPSocket(localAddressArray, sd, 0, MAX_NS_TRANSPORTADDRESSES, true) <= 0) { fputs("ERROR: Unable to obtain local address(es)!\n", stderr); rserpoolMessageDelete(message); ext_close(sd); exit(1); } ST_CLASS(peerListNodeNew)(&peerListNode, registrarID, 0, localAddressArray); moreData = false; do { message->Type = EHT_PRESENCE; message->PPID = PPID_ENRP; message->AssocID = 0; message->AddressArray = NULL; message->Addresses = 0; message->Flags = 0x00; message->PeerListNodePtr = &peerListNode; message->PeerListNodePtrAutoDelete = false; message->SenderID = registrarID; message->ReceiverID = 0; message->Checksum = ST_CLASS(poolHandlespaceManagementGetOwnershipChecksum)(&handlespace); if(rserpoolMessageSend(IPPROTO_SCTP, sd, 0, 0, 0, 0, message) == false) { fputs("ERROR: Sending Presence failed\n", stderr); rserpoolMessageDelete(message); ext_close(sd); exit(1); } message->Type = EHT_LIST_REQUEST; message->PPID = PPID_ENRP; message->AssocID = 0; message->AddressArray = 0; message->Addresses = 0; message->Flags = 0x00; message->SenderID = registrarID; message->ReceiverID = UNDEFINED_REGISTRAR_IDENTIFIER; if(rserpoolMessageSend(IPPROTO_SCTP, sd, 0, 0, 0, 0, message) == false) { fputs("ERROR: Sending ListRequest failed\n", stderr); rserpoolMessageDelete(message); ext_close(sd); exit(1); } message->Type = EHT_HANDLE_TABLE_REQUEST; message->PPID = PPID_ENRP; message->AssocID = 0; message->AddressArray = 0; message->Addresses = 0; message->Flags = 0x00; message->SenderID = registrarID; message->ReceiverID = UNDEFINED_REGISTRAR_IDENTIFIER; if(rserpoolMessageSend(IPPROTO_SCTP, sd, 0, 0, 0, 0, message) == false) { fputs("ERROR: Sending HandleTableRequest failed\n", stderr); rserpoolMessageDelete(message); ext_close(sd); exit(1); } for(;;) { flags = 0; received = recvfromplus(sd, (char*)&buffer, sizeof(buffer), &flags, NULL, NULL, &ppid, &assocID, &streamID, 180000000); if(received > 0) { rserpoolMessageClearBuffer(message); if(rserpoolPacket2Message(buffer, NULL, assocID, ppid, received, sizeof(buffer), &message) == RSPERR_OKAY) { if(message->PPID == PPID_ENRP) { if(message->Type == EHT_LIST_RESPONSE) { if(!(message->Flags & EHF_LIST_RESPONSE_REJECT)) { if(message->PeerListPtr) { peerListNodePtr = ST_CLASS(peerListGetFirstPeerListNodeFromIndexStorage)( &message->PeerListPtr->List); while(peerListNodePtr) { if(peerListNodePtr->Identifier != UNDEFINED_REGISTRAR_IDENTIFIER) { result = ST_CLASS(peerListManagementRegisterPeerListNode)( &peerList, peerListNodePtr->Identifier, peerListNodePtr->Flags, peerListNodePtr->AddressBlock, getMicroTime(), &newPeerListNode); if(result != RSPERR_OKAY) { fputs("Failed to add peer ", stderr); ST_CLASS(peerListNodePrint)(peerListNodePtr, stderr, ~0); fputs(" to peer list\n", stderr); } } peerListNodePtr = ST_CLASS(peerListGetNextPeerListNodeFromIndexStorage)( &message->PeerListPtr->List, peerListNodePtr); } } else { puts("--- No peers ---"); } } else { puts("--- ListRequest has been rejected ---"); } } else if(message->Type == EHT_HANDLE_TABLE_RESPONSE) { if(!(message->Flags & EHF_HANDLE_TABLE_RESPONSE_REJECT)) { if(message->HandlespacePtr) { poolElementNode = ST_CLASS(poolHandlespaceNodeGetFirstPoolElementOwnershipNode)(&message->HandlespacePtr->Handlespace); while(poolElementNode != NULL) { result = ST_CLASS(poolHandlespaceManagementRegisterPoolElement)( &handlespace, &poolElementNode->OwnerPoolNode->Handle, poolElementNode->HomeRegistrarIdentifier, poolElementNode->Identifier, poolElementNode->RegistrationLife, &poolElementNode->PolicySettings, poolElementNode->UserTransport, poolElementNode->RegistratorTransport, -1, 0, 0, &newPoolElementNode); if(result != RSPERR_OKAY) { fputs("Failed to register to pool ", stderr); poolHandlePrint(&message->Handle, stderr); fputs(" pool element ", stderr); ST_CLASS(poolElementNodePrint)(poolElementNode, stderr, PENPO_FULL); fputs(": ", stderr); rserpoolErrorPrint(result, stderr); fputs("\n", stderr); } poolElementNode = ST_CLASS(poolHandlespaceNodeGetNextPoolElementOwnershipNode)(&message->HandlespacePtr->Handlespace, poolElementNode); } moreData = (message->Flags & EHF_HANDLE_TABLE_RESPONSE_MORE_TO_SEND); printf("Got %u pools, %u PEs => now having %u pools, %u PEs\n", (unsigned int)ST_CLASS(poolHandlespaceManagementGetPools)(message->HandlespacePtr), (unsigned int)ST_CLASS(poolHandlespaceManagementGetPoolElements)(message->HandlespacePtr), (unsigned int)ST_CLASS(poolHandlespaceManagementGetPools)(&handlespace), (unsigned int)ST_CLASS(poolHandlespaceManagementGetPoolElements)(&handlespace)); } else { puts("--- No PEs ---"); } } else { puts("--- HandleTableRequest has been rejected ---"); } break; } else if(message->Type == EHT_PRESENCE) { } else { // fprintf(stderr, "ERROR: Got unexpected ENRP message $%x as response!\n", message->Type); } } else { fputs("ERROR: Got invalid response!\n", stderr); rserpoolMessageDelete(message); ext_close(sd); exit(1); } } } else { if(received == 0) { fputs("ERROR: Connection closed by peer!\n", stderr); } else { perror("Unable to receive response"); } rserpoolMessageDelete(message); ext_close(sd); exit(1); } } } while(moreData); ST_CLASS(peerListManagementPrint)(&peerList, stdout, ~0); ST_CLASS(poolHandlespaceManagementPrint)(&handlespace, stdout, PNNPO_POOLS_INDEX|PNNPO_POOLS_SELECTION|PNNPO_POOLS_OWNERSHIP|PENPO_POLICYINFO|PENPO_POLICYSTATE|PENPO_HOME_PR|PENPO_REGLIFE|PENPO_UR_REPORTS|PENPO_USERTRANSPORT|PENPO_REGISTRATORTRANSPORT|PENPO_CHECKSUM); rserpoolMessageDelete(message); ST_CLASS(peerListManagementDelete)(&peerList); ST_CLASS(poolHandlespaceManagementDelete)(&handlespace); ext_close(sd); finishLogging(); return(0); } rsplib-3.0.1/rsplib/componentstatuspackets.h0000664000175000017500000000500711777021056016226 00000000000000/* $Id: componentstatuspackets.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef COMPONENTSTATUSPACKETS_H #define COMPONENTSTATUSPACKETS_H #include "rserpool-csp.h" #include "tdtypes.h" #define CSP_VERSION 0x0200 #define CSPT_REPORT 0x01 struct ComponentStatusCommonHeader { uint8_t Type; uint8_t Flags; uint16_t Length; uint32_t Version; uint64_t SenderID; uint64_t SenderTimeStamp; } __attribute__((packed)); #define CSPF_FINAL (1 << 0) #define CSPR_LOCATION_SIZE 128 #define CSPR_STATUS_SIZE 128 struct ComponentAssociation { uint64_t ReceiverID; uint64_t Duration; uint16_t Flags; uint16_t ProtocolID; uint32_t PPID; } __attribute__((packed)); struct ComponentStatusReport { struct ComponentStatusCommonHeader Header; uint32_t ReportInterval; char Location[CSPR_LOCATION_SIZE]; char Status[CSPR_STATUS_SIZE]; uint16_t Workload; uint16_t Associations; struct ComponentAssociation AssociationArray[0]; } __attribute__((packed)); #define CSR_SET_WORKLOAD(w) ((w < 0.0) ? 0xffff : (uint16_t)rint(w * 0xfffe)) #define CSR_GET_WORKLOAD(w) ((w == 0xffff) ? -1.0 : (double)(w / (double)0xfffe)) #endif rsplib-3.0.1/rsplib/rspenhancedmode.c0000664000175000017500000021474611777021056014553 00000000000000/* $Id: rspenhancedmode.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "rserpool-internals.h" #include "debug.h" #include "dispatcher.h" #include "identifierbitmap.h" #include "netutilities.h" #include "threadsafety.h" #include "rserpoolmessage.h" #include "asapinstance.h" #include "leaflinkedredblacktree.h" #include "loglevel.h" #include "sessioncontrol.h" #include "componentstatusreporter.h" extern struct ASAPInstance* gAsapInstance; extern struct Dispatcher gDispatcher; extern struct SimpleRedBlackTree gRSerPoolSocketSet; extern struct ThreadSafety gRSerPoolSocketSetMutex; extern struct IdentifierBitmap* gRSerPoolSocketAllocationBitmap; #define GET_RSERPOOL_SOCKET(rserpoolSocket, sd) \ rserpoolSocket = getRSerPoolSocketForDescriptor(sd); \ if(rserpoolSocket == NULL) { \ errno = EBADF; \ return(-1); \ } /* ###### Configure notifications of SCTP socket ############################# */ static bool configureSCTPSocket(struct RSerPoolSocket* rserpoolSocket, int sd, sctp_assoc_t assocID) { struct sctp_event_subscribe events; memset((char*)&events, 0 ,sizeof(events)); events.sctp_data_io_event = 1; events.sctp_association_event = 1; events.sctp_shutdown_event = 1; if(ext_setsockopt(sd, IPPROTO_SCTP, SCTP_EVENTS, &events, sizeof(events)) < 0) { LOG_ERROR logerror("setsockopt failed for SCTP_EVENTS"); LOG_END return(false); } if(tuneSCTP(sd, 0, &rserpoolSocket->AssocParameters) == false) { LOG_WARNING fputs("Unable to tune association parameters\n", stdout); LOG_END } return(true); } /* ###### Create RSerPool socket ######################################### */ int rsp_socket_internal(int domain, int type, int protocol, int customFD) { struct RSerPoolSocket* rserpoolSocket; int fd; /* ====== Check for problems ========================================== */ if(gAsapInstance == NULL) { LOG_ERROR fputs("rsplib is not initialized\n", stdlog); LOG_END errno = EACCES; return(-1); } if(protocol != IPPROTO_SCTP) { LOG_ERROR fputs("Only SCTP is supported for the Enhanced Mode API\n", stdlog); LOG_END errno = EPROTONOSUPPORT; return(-1); } /* ====== Create socket =============================================== */ domain = (domain == 0) ? (checkIPv6() ? AF_INET6 : AF_INET) : domain; if(customFD < 0) { fd = ext_socket(domain, type, protocol); } else { fd = customFD; } if(fd <= 0) { LOG_ERROR logerror("Unable to create socket for RSerPool socket"); LOG_END return(-1); } setNonBlocking(fd); /* ====== Initialize RSerPool socket entry ============================ */ rserpoolSocket = (struct RSerPoolSocket*)malloc(sizeof(struct RSerPoolSocket)); if(rserpoolSocket == NULL) { close(fd); errno = ENOMEM; return(-1); } /* ====== Allocate message buffer ===================================== */ rserpoolSocket->MsgBuffer = messageBufferNew(RSERPOOL_MESSAGE_BUFFER_SIZE, true); if(rserpoolSocket->MsgBuffer == NULL) { free(rserpoolSocket); close(fd); errno = ENOMEM; return(-1); } /* ====== Create session ID allocation bitmap ========================= */ rserpoolSocket->SessionAllocationBitmap = identifierBitmapNew(SESSION_SETSIZE); if(rserpoolSocket->SessionAllocationBitmap == NULL) { free(rserpoolSocket->MsgBuffer); free(rserpoolSocket); close(fd); errno = ENOMEM; return(-1); } CHECK(identifierBitmapAllocateSpecificID(rserpoolSocket->SessionAllocationBitmap, 0) == 0); threadSafetyNew(&rserpoolSocket->Mutex, "RSerPoolSocket"); threadSafetyNew(&rserpoolSocket->SessionSetMutex, "SessionSet"); simpleRedBlackTreeNodeNew(&rserpoolSocket->Node); sessionStorageNew(&rserpoolSocket->SessionSet); rserpoolSocket->Socket = fd; rserpoolSocket->SocketDomain = domain; rserpoolSocket->SocketType = type; rserpoolSocket->SocketProtocol = protocol; rserpoolSocket->Descriptor = -1; rserpoolSocket->PoolElement = NULL; rserpoolSocket->ConnectedSession = NULL; rserpoolSocket->WaitingForFirstMsg = false; rserpoolSocket->AssocParameters.InitialRTO = 2000; rserpoolSocket->AssocParameters.MinRTO = 1000; rserpoolSocket->AssocParameters.MaxRTO = 5000; rserpoolSocket->AssocParameters.AssocMaxRxt = 8; rserpoolSocket->AssocParameters.PathMaxRxt = 3; rserpoolSocket->AssocParameters.HeartbeatInterval = 15000; notificationQueueNew(&rserpoolSocket->Notifications); if(rserpoolSocket->SocketType == SOCK_STREAM) { rserpoolSocket->Notifications.EventMask = 0; } else { rserpoolSocket->Notifications.EventMask = NET_NOTIFICATION_MASK; } /* ====== Configure SCTP socket ======================================= */ if(!configureSCTPSocket(rserpoolSocket, fd, 0)) { free(rserpoolSocket->MsgBuffer); free(rserpoolSocket); close(fd); return(-1); } /* ====== Find available RSerPool socket descriptor =================== */ threadSafetyLock(&gRSerPoolSocketSetMutex); rserpoolSocket->Descriptor = identifierBitmapAllocateID(gRSerPoolSocketAllocationBitmap); if(rserpoolSocket->Descriptor >= 0) { /* ====== Add RSerPool socket entry ================================ */ CHECK(simpleRedBlackTreeInsert(&gRSerPoolSocketSet, &rserpoolSocket->Node) == &rserpoolSocket->Node); } threadSafetyUnlock(&gRSerPoolSocketSetMutex); /* ====== Has there been a problem? =================================== */ if(rserpoolSocket->Descriptor < 0) { identifierBitmapDelete(rserpoolSocket->SessionAllocationBitmap); free(rserpoolSocket->MsgBuffer); free(rserpoolSocket); close(fd); errno = EMFILE; return(-1); } return(rserpoolSocket->Descriptor); } /* ###### Update session parameters ###################################### */ int rsp_update_session_parameters(int sd, struct rserpool_session_parameters* params) { struct RSerPoolSocket* rserpoolSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, sd) #define CHECK_AND_SET(x,y) if(y != 0) { x = y; } else { y = x; } threadSafetyLock(&rserpoolSocket->Mutex); CHECK_AND_SET(rserpoolSocket->AssocParameters.InitialRTO, params->sp_rto_initial); CHECK_AND_SET(rserpoolSocket->AssocParameters.MinRTO, params->sp_rto_min); CHECK_AND_SET(rserpoolSocket->AssocParameters.MaxRTO, params->sp_rto_max); CHECK_AND_SET(rserpoolSocket->AssocParameters.AssocMaxRxt, params->sp_assoc_max_rxt); CHECK_AND_SET(rserpoolSocket->AssocParameters.PathMaxRxt, params->sp_path_max_rxt); CHECK_AND_SET(rserpoolSocket->AssocParameters.HeartbeatInterval, params->sp_hbinterval); threadSafetyUnlock(&rserpoolSocket->Mutex); return(0); } /* ###### Create RSerPool socket ######################################### */ int rsp_socket(int domain, int type, int protocol) { return(rsp_socket_internal(domain, type, protocol, -1)); } /* ###### Delete RSerPool socket ######################################### */ int rsp_close(int sd) { struct RSerPoolSocket* rserpoolSocket; struct Session* session; struct Session* nextSession; GET_RSERPOOL_SOCKET(rserpoolSocket, sd) threadSafetyLock(&rserpoolSocket->Mutex); /* ====== Close sessions ============================================== */ if(rserpoolSocket->PoolElement) { rsp_deregister(sd, 0); } session = sessionStorageGetFirstSession(&rserpoolSocket->SessionSet); while(session != NULL) { nextSession = sessionStorageGetNextSession(&rserpoolSocket->SessionSet, session); LOG_ACTION fprintf(stdlog, "RSerPool socket %d, socket %d has open session %u -> closing it\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, session->SessionID); LOG_END /* Send SHUTDOWN to peer */ sendshutdown(rserpoolSocket->Socket, session->AssocID); deleteSession(rserpoolSocket, session); session = nextSession; } /* ====== Delete RSerPool socket entry ================================ */ threadSafetyLock(&gRSerPoolSocketSetMutex); CHECK(simpleRedBlackTreeRemove(&gRSerPoolSocketSet, &rserpoolSocket->Node) == &rserpoolSocket->Node); identifierBitmapFreeID(gRSerPoolSocketAllocationBitmap, sd); rserpoolSocket->Descriptor = -1; threadSafetyUnlock(&gRSerPoolSocketSetMutex); notificationQueueDelete(&rserpoolSocket->Notifications); sessionStorageDelete(&rserpoolSocket->SessionSet); if(rserpoolSocket->Socket >= 0) { ext_close(rserpoolSocket->Socket); rserpoolSocket->Socket = -1; } if(rserpoolSocket->SessionAllocationBitmap) { identifierBitmapDelete(rserpoolSocket->SessionAllocationBitmap); rserpoolSocket->SessionAllocationBitmap = NULL; } if(rserpoolSocket->MsgBuffer) { messageBufferDelete(rserpoolSocket->MsgBuffer); rserpoolSocket->MsgBuffer = NULL; } threadSafetyDelete(&rserpoolSocket->SessionSetMutex); threadSafetyUnlock(&rserpoolSocket->Mutex); threadSafetyDelete(&rserpoolSocket->Mutex); free(rserpoolSocket); return(0); } /* ###### Map socket descriptor into RSerPool socket ##################### */ int rsp_mapsocket(int sd, int toSD) { struct RSerPoolSocket* rserpoolSocket; /* ====== Check for problems ========================================== */ if((sd < 0) || (sd >= (int)FD_SETSIZE)) { errno = EINVAL; return(-1); } /* ====== Initialize RSerPool socket entry ============================ */ rserpoolSocket = (struct RSerPoolSocket*)malloc(sizeof(struct RSerPoolSocket)); if(rserpoolSocket == NULL) { errno = ENOMEM; return(-1); } memset(rserpoolSocket, 0, sizeof(struct RSerPoolSocket)); rserpoolSocket->Socket = sd; sessionStorageNew(&rserpoolSocket->SessionSet); notificationQueueNew(&rserpoolSocket->Notifications); /* ====== Find available RSerPool socket descriptor =================== */ threadSafetyLock(&gRSerPoolSocketSetMutex); if(toSD >= 0) { rserpoolSocket->Descriptor = identifierBitmapAllocateSpecificID(gRSerPoolSocketAllocationBitmap, toSD); } else { rserpoolSocket->Descriptor = identifierBitmapAllocateID(gRSerPoolSocketAllocationBitmap); } if(rserpoolSocket->Descriptor >= 0) { /* ====== Add RSerPool socket entry ================================ */ CHECK(simpleRedBlackTreeInsert(&gRSerPoolSocketSet, &rserpoolSocket->Node) == &rserpoolSocket->Node); } threadSafetyUnlock(&gRSerPoolSocketSetMutex); /* ====== Has there been a problem? =================================== */ if(rserpoolSocket->Descriptor < 0) { free(rserpoolSocket); errno = EMFILE; return(-1); } return(rserpoolSocket->Descriptor); } /* ###### Unmap socket descriptor from RSerPool socket ################### */ int rsp_unmapsocket(int sd) { struct RSerPoolSocket* rserpoolSocket; int result = 0; GET_RSERPOOL_SOCKET(rserpoolSocket, sd) if(rserpoolSocket->SessionAllocationBitmap == NULL) { threadSafetyLock(&gRSerPoolSocketSetMutex); CHECK(simpleRedBlackTreeRemove(&gRSerPoolSocketSet, &rserpoolSocket->Node) == &rserpoolSocket->Node); identifierBitmapFreeID(gRSerPoolSocketAllocationBitmap, sd); rserpoolSocket->Descriptor = -1; threadSafetyUnlock(&gRSerPoolSocketSetMutex); sessionStorageDelete(&rserpoolSocket->SessionSet); notificationQueueDelete(&rserpoolSocket->Notifications); free(rserpoolSocket); } else { errno = EBADF; result = -1; } return(result); } /* ###### RSerPool socket poll() implementation ########################## */ int rsp_poll(struct pollfd* ufds, unsigned int nfds, int timeout) { struct RSerPoolSocket* rserpoolSocket; int fdbackup[FD_SETSIZE]; int result; unsigned int i; /* ====== Check for problems ========================================== */ if(nfds > FD_SETSIZE) { errno = EINVAL; return(-1); } /* ====== Collect data for poll() call ================================ */ result = 0; for(i = 0;i < nfds;i++) { fdbackup[i] = ufds[i].fd; rserpoolSocket = getRSerPoolSocketForDescriptor(ufds[i].fd); if(rserpoolSocket != NULL) { threadSafetyLock(&rserpoolSocket->Mutex); ufds[i].fd = rserpoolSocket->Socket; ufds[i].revents = 0; if((ufds[i].events & POLLIN) && (notificationQueueHasData(&rserpoolSocket->Notifications))) { result++; ufds[i].revents = POLLIN; } threadSafetyUnlock(&rserpoolSocket->Mutex); } else { ufds[i].fd = -1; } } /* ====== Do poll() =================================================== */ if(result == 0) { /* Only call poll() when there are no notifications */ result = ext_poll(ufds, nfds, timeout); } /* ====== Handle results ============================================== */ for(i = 0;i < nfds;i++) { rserpoolSocket = getRSerPoolSocketForDescriptor(fdbackup[i]); if((rserpoolSocket != NULL) && (rserpoolSocket->SessionAllocationBitmap != NULL)) { threadSafetyLock(&rserpoolSocket->Mutex); /* ======= Check for control channel data ======================= */ if(ufds[i].revents & POLLIN) { LOG_VERBOSE4 fprintf(stdlog, "RSerPool socket %d (socket %d) has flag set -> Check, if it has to be handled by rsplib...\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END if(handleControlChannelAndNotifications(rserpoolSocket)) { LOG_VERBOSE4 fprintf(stdlog, "RSerPool socket %d (socket %d) had event for rsplib only. Clearing flag\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END ufds[i].revents &= ~POLLIN; } } /* ====== Set flag for RSerPool notifications? =========== */ if((ufds[i].events & POLLIN) && (notificationQueueHasData(&rserpoolSocket->Notifications))) { ufds[i].revents |= POLLIN; } threadSafetyUnlock(&rserpoolSocket->Mutex); } ufds[i].fd = fdbackup[i]; } return(result); } /* ###### RSerPool socket select() implementation ######################## */ int rsp_select(int n, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, struct timeval* timeout) { struct pollfd ufds[FD_SETSIZE]; int nfds; int waitingTime; int result; int i; /* ====== Check for problems ========================================== */ if(n > (int)FD_SETSIZE) { errno = EINVAL; return(-1); } /* ====== Prepare pollfd array ======================================== */ nfds = 0; for(i = 0;i < n;i++) { ufds[nfds].events = 0; if((readfds) && (FD_ISSET(i, readfds))) { ufds[nfds].fd = i; ufds[nfds].events |= POLLIN; } if((writefds) && (FD_ISSET(i, writefds))) { ufds[nfds].fd = i; ufds[nfds].events |= POLLOUT; } if((exceptfds) && (FD_ISSET(i, exceptfds))) { ufds[nfds].fd = i; ufds[nfds].events |= ~(POLLIN|POLLOUT); } if(ufds[nfds].events) { nfds++; } } /* ====== Call poll() and propagate results to fdsets ================= */ waitingTime = (1000 * timeout->tv_sec) + (int)ceil((double)timeout->tv_usec / 1000.0); result = rsp_poll((struct pollfd*)&ufds, nfds, waitingTime); if(result > 0) { for(i = 0;i < nfds;i++) { if( (!(ufds[i].events & POLLIN)) && (readfds) ) { FD_CLR(ufds[i].fd, readfds); } if( (!(ufds[i].events & POLLOUT)) && (writefds) ) { FD_CLR(ufds[i].fd, writefds); } if( (!(ufds[i].events & (POLLIN|POLLHUP|POLLNVAL))) && (exceptfds) ) { FD_CLR(ufds[i].fd, exceptfds); } } } return(result); } /* ###### Bind RSerPool socket ########################################### */ int rsp_bind(int sd, const struct sockaddr* addrs, int addrcnt) { struct RSerPoolSocket* rserpoolSocket; union sockaddr_union* unpackedAddresses; union sockaddr_union localAddress; int result; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); /* ====== Bind socket ================================================= */ if(addrcnt < 1) { addrs = (struct sockaddr*)&localAddress; addrcnt = 1; memset((void*)&localAddress, 0, sizeof(localAddress)); ((struct sockaddr*)&localAddress)->sa_family = rserpoolSocket->SocketDomain; } unpackedAddresses = unpack_sockaddr(addrs, addrcnt); if(unpackedAddresses == NULL) { errno = ENOMEM; return(-1); } result = bindplus(rserpoolSocket->Socket, unpackedAddresses, addrcnt); free(unpackedAddresses); if(result == false) { LOG_ERROR logerror("Unable to bind socket for new pool element"); LOG_END return(-1); } return(0); } /* ###### Put PE socket into listening mode ############################## */ int rsp_listen(int sd, int backlog) { struct RSerPoolSocket* rserpoolSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); /* printf("backlog(%d)=%d\n", sd, backlog); */ return(ext_listen(rserpoolSocket->Socket, backlog)); } /* ###### Register pool element ########################################## */ int rsp_register_tags(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const struct rsp_loadinfo* loadinfo, unsigned int reregistrationInterval, int flags, struct TagItem* tags) { struct RSerPoolSocket* rserpoolSocket; struct PoolHandle cmpPoolHandle; union sockaddr_union socketName; socklen_t socketNameLen; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); threadSafetyLock(&rserpoolSocket->Mutex); /* ====== Check for problems ========================================== */ socketNameLen = sizeof(socketName); if((ext_getsockname(rserpoolSocket->Socket, (struct sockaddr*)&socketName, &socketNameLen) < 0) || (getPort(&socketName.sa) == 0)) { LOG_VERBOSE fprintf(stdlog, "RSerPool socket %d, socket %d is not bound -> trying to bind it to the ANY address\n", sd, rserpoolSocket->Socket); LOG_END if(rsp_bind(sd, NULL, 0) < 0) { threadSafetyUnlock(&rserpoolSocket->Mutex); return(-1); } } if(poolHandleSize > MAX_POOLHANDLESIZE) { LOG_ERROR fputs("Pool handle too long\n", stdlog); LOG_END errno = ENAMETOOLONG; threadSafetyUnlock(&rserpoolSocket->Mutex); return(-1); } /* ====== Reregistration ============================================== */ if(rserpoolSocket->PoolElement != NULL) { /* ====== Check for incompatibilities ============================== */ poolHandleNew(&cmpPoolHandle, poolHandle, poolHandleSize); if(poolHandleComparison(&cmpPoolHandle, &rserpoolSocket->PoolElement->Handle) != 0) { LOG_ERROR fprintf(stdlog, "RSerPool socket %d already has a pool element; use same PH for update\n", sd); LOG_END errno = EBADF; threadSafetyUnlock(&rserpoolSocket->Mutex); return(-1); } /* ====== Update registration information ========================== */ threadSafetyLock(&rserpoolSocket->PoolElement->Mutex); rserpoolSocket->PoolElement->LoadInfo = *loadinfo; rserpoolSocket->PoolElement->ReregistrationInterval = reregistrationInterval; rserpoolSocket->PoolElement->RegistrationLife = 3 * rserpoolSocket->PoolElement->ReregistrationInterval; threadSafetyUnlock(&rserpoolSocket->PoolElement->Mutex); /* ====== Schedule reregistration as soon as possible ============== */ timerRestart(&rserpoolSocket->PoolElement->ReregistrationTimer, 0); } /* ====== Registration of a new pool element ========================== */ else { /* ====== Create pool element ====================================== */ rserpoolSocket->PoolElement = (struct PoolElement*)malloc(sizeof(struct PoolElement)); if(rserpoolSocket->PoolElement == NULL) { threadSafetyUnlock(&rserpoolSocket->Mutex); return(-1); } threadSafetyNew(&rserpoolSocket->PoolElement->Mutex, "RspPoolElement"); poolHandleNew(&rserpoolSocket->PoolElement->Handle, poolHandle, poolHandleSize); timerNew(&rserpoolSocket->PoolElement->ReregistrationTimer, &gDispatcher, reregistrationTimer, (void*)rserpoolSocket); rserpoolSocket->PoolElement->Identifier = tagListGetData(tags, TAG_PoolElement_Identifier, 0x00000000); rserpoolSocket->PoolElement->LoadInfo = *loadinfo; rserpoolSocket->PoolElement->ReregistrationInterval = reregistrationInterval; rserpoolSocket->PoolElement->RegistrationLife = 3 * rserpoolSocket->PoolElement->ReregistrationInterval; rserpoolSocket->PoolElement->HasControlChannel = true; rserpoolSocket->PoolElement->InDaemonMode = (flags & REGF_DAEMONMODE); /* ====== Do registration ============================================= */ if(doRegistration(rserpoolSocket, true) == false) { LOG_ERROR fputs("Unable to obtain registration information -> Creating pool element not possible\n", stdlog); LOG_END if(!(flags & REGF_DAEMONMODE)) { deletePoolElement(rserpoolSocket->PoolElement, flags, tags); rserpoolSocket->PoolElement = NULL; threadSafetyUnlock(&rserpoolSocket->Mutex); return(-1); } } /* ====== start reregistration timer ================================== */ timerStart(&rserpoolSocket->PoolElement->ReregistrationTimer, getMicroTime() + ((unsigned long long)1000 * (unsigned long long)rserpoolSocket->PoolElement->ReregistrationInterval)); } threadSafetyUnlock(&rserpoolSocket->Mutex); return(0); } /* ###### Register pool element ########################################## */ int rsp_register(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const struct rsp_loadinfo* loadinfo, unsigned int reregistrationInterval, int flags) { return(rsp_register_tags(sd, poolHandle, poolHandleSize, loadinfo, reregistrationInterval, flags, NULL)); } /* ###### Deregister pool element ######################################## */ int rsp_deregister_tags(int sd, int flags, struct TagItem* tags) { struct RSerPoolSocket* rserpoolSocket; int result = 0; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); /* ====== Delete pool element ========================================= */ threadSafetyLock(&rserpoolSocket->Mutex); if(rserpoolSocket->PoolElement != NULL) { deletePoolElement(rserpoolSocket->PoolElement, flags, tags); rserpoolSocket->PoolElement = NULL; } else { result = -1; errno = EBADF; } threadSafetyUnlock(&rserpoolSocket->Mutex); return(result); } /* ###### Deregister pool element ######################################## */ int rsp_deregister(int sd, int flags) { return(rsp_deregister_tags(sd, flags, NULL)); } /* ###### RSerPool socket connect() implementation ####################### */ int rsp_connect_tags(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const unsigned int staleCacheValue, struct TagItem* tags) { struct RSerPoolSocket* rserpoolSocket; struct Session* session; unsigned int oldEventMask; int result = -1; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); threadSafetyLock(&rserpoolSocket->Mutex); /* ====== Check for problems ========================================== */ if(sessionStorageGetElements(&rserpoolSocket->SessionSet) == 0) { /* ====== Create session =========================================== */ session = addSession(rserpoolSocket, 0, false, poolHandle, poolHandleSize, tags); if(session != NULL) { rserpoolSocket->ConnectedSession = session; /* Session Change events are only useful for handling multiple incoming sessions. */ rserpoolSocket->Notifications.EventMask &= ~NET_SESSION_CHANGE; /* ====== Connect to a PE ======================================= */ /* Do not signalize successful failover, since this is the first connection establishment */ oldEventMask = rserpoolSocket->Notifications.EventMask; rserpoolSocket->Notifications.EventMask = 0; rsp_forcefailover_tags(rserpoolSocket->Descriptor, FFF_NONE, staleCacheValue, tags); rserpoolSocket->Notifications.EventMask = oldEventMask; result = 0; } else { errno = ENOMEM; } } else { LOG_ERROR fprintf(stdlog, "RSerPool socket %d, socket %d already has a session; cannot connect it again\n", sd, rserpoolSocket->Socket); LOG_END errno = EBADF; } threadSafetyUnlock(&rserpoolSocket->Mutex); return(result); } /* ###### RSerPool socket connect() implementation ####################### */ int rsp_connect(int sd, const unsigned char* poolHandle, const size_t poolHandleSize, const unsigned int staleCacheValue) { return(rsp_connect_tags(sd, poolHandle, poolHandleSize, staleCacheValue, NULL)); } /* ###### RSerPool socket accept() implementation ######################## */ int rsp_accept_tags(int sd, int timeout, struct TagItem* tags) { struct RSerPoolSocket* rserpoolSocket; struct RSerPoolSocket* newRSerPoolSocket; struct Session* session; union sockaddr_union remoteAddress; socklen_t remoteAddressSize; int result = -1; int newSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); if(waitForRead(rserpoolSocket, timeout)) { remoteAddressSize = sizeof(remoteAddress); newSocket = ext_accept(rserpoolSocket->Socket, &remoteAddress.sa, &remoteAddressSize); if(newSocket >= 0) { LOG_VERBOSE fprintf(stdlog, "Accepted new socket %d on RSerPool socket %u, socket %d (", newSocket, rserpoolSocket->Descriptor, rserpoolSocket->Socket); fputaddress(&remoteAddress.sa, true, stdlog); fputs(")\n", stdlog); LOG_END result = rsp_socket_internal(0, SOCK_STREAM, IPPROTO_SCTP, newSocket); if(result >= 0) { newRSerPoolSocket = getRSerPoolSocketForDescriptor(result); CHECK(newRSerPoolSocket); session = addSession(newRSerPoolSocket, 0, true, NULL, 0, tags); if(session == NULL) { errno = ENOMEM; ext_close(result); result = -1; } else { newRSerPoolSocket->ConnectedSession = session; LOG_ACTION fprintf(stdlog, "Accepted new session %u from ", session->SessionID); fputaddress(&remoteAddress.sa, true, stdlog); fprintf(stdlog, " (RSerPool socket %u, socket %u) on RSerPool socket %u, socket %d\n", newRSerPoolSocket->Descriptor, newRSerPoolSocket->Socket, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END /* struct sctp_setpeerprim setPeerPrimary; setPeerPrimary.sspp_assoc_id = 0; memcpy(&setPeerPrimary.sspp_addr, &remoteAddress, sizeof(union sockaddr_union)); if(ext_setsockopt(newRSerPoolSocket->Socket, IPPROTO_SCTP, SCTP_SET_PEER_PRIMARY_ADDR, &setPeerPrimary, sizeof(setPeerPrimary)) < 0) { LOG_WARNING logerror("setsockopt SCTP_SET_PEER_PRIMARY_ADDR failed"); LOG_END } */ } } } } return(result); } /* ###### RSerPool socket accept() implementation ######################## */ int rsp_accept(int sd, int timeout) { return(rsp_accept_tags(sd, timeout, NULL)); } /* ###### Establish association to a new PE ############################## */ static int connectToPE(struct RSerPoolSocket* rserpoolSocket, const struct sockaddr* destinationAddressArray, const size_t destinationAddresses) { struct pollfd ufds; union sockaddr_union peerAddress; socklen_t peerAddressLength; int result; int sd; sd = ext_socket(rserpoolSocket->SocketDomain, SOCK_STREAM, rserpoolSocket->SocketProtocol); if(sd >= 0) { setNonBlocking(sd); if(configureSCTPSocket(rserpoolSocket, sd, 0)) { LOG_VERBOSE fprintf(stdlog, "Trying connection to pool element $%08x (", rserpoolSocket->ConnectedSession->ConnectedPE); poolHandlePrint(&rserpoolSocket->ConnectedSession->Handle, stdlog); fprintf(stdlog, "/$%08x on RSerPool socket %u, socket %d, session %u)\n", rserpoolSocket->ConnectedSession->ConnectedPE, rserpoolSocket->Descriptor, sd, rserpoolSocket->ConnectedSession->SessionID); LOG_END #ifdef HAVE_CONNECTX_WITH_ID result = sctp_connectx(sd, (struct sockaddr*)destinationAddressArray, destinationAddresses, NULL); #else result = sctp_connectx(sd, (struct sockaddr*)destinationAddressArray, destinationAddresses); #endif if((result == 0) || (errno == EINPROGRESS)) { ufds.fd = sd; ufds.events = POLLIN; if(ext_poll(&ufds, 1, (int)(rserpoolSocket->ConnectedSession->ConnectTimeout / 1000)) > 0) { if(ufds.revents & POLLIN) { peerAddressLength = sizeof(peerAddress); if(ext_getsockname(sd, &peerAddress.sa, &peerAddressLength) == 0) { return(sd); } } } } LOG_VERBOSE fprintf(stdlog, "Failed to establish connection to pool element $%08x (", rserpoolSocket->ConnectedSession->ConnectedPE); poolHandlePrint(&rserpoolSocket->ConnectedSession->Handle, stdlog); fprintf(stdlog, "/$%08x on RSerPool socket %u, socket %d, session %u)\n", rserpoolSocket->ConnectedSession->ConnectedPE, rserpoolSocket->Descriptor, rserpoolSocket->Socket, rserpoolSocket->ConnectedSession->SessionID); LOG_END } ext_close(sd); } return(-1); } /* ###### Check if cookie is available ################################### */ int rsp_has_cookie(int sd) { struct RSerPoolSocket* rserpoolSocket; int result; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); threadSafetyLock(&rserpoolSocket->Mutex); result = (rserpoolSocket->ConnectedSession->CookieSize > 0); threadSafetyUnlock(&rserpoolSocket->Mutex); return(result); } /* ###### Report PE as failed ############################################ */ static void rsp_send_failure_report(struct RSerPoolSocket* rserpoolSocket, struct TagItem* tags) { LOG_ACTION fputs("Reporting failure of ", stdlog); poolHandlePrint(&rserpoolSocket->ConnectedSession->Handle, stdlog); fprintf(stdlog, "/$%08x on RSerPool socket %u, socket %d, session %u\n", rserpoolSocket->ConnectedSession->ConnectedPE, rserpoolSocket->Descriptor, rserpoolSocket->Socket, rserpoolSocket->ConnectedSession->SessionID); LOG_END rsp_pe_failure_tags((unsigned char*)&rserpoolSocket->ConnectedSession->Handle.Handle, rserpoolSocket->ConnectedSession->Handle.Size, rserpoolSocket->ConnectedSession->ConnectedPE, tags); rserpoolSocket->ConnectedSession->ConnectedPE = 0; } /* ###### Make failover ################################################## */ int rsp_forcefailover_tags(int sd, const unsigned int flags, const unsigned int staleCacheValue, struct TagItem* tags) { struct RSerPoolSocket* rserpoolSocket; struct rsp_addrinfo* rspAddrInfo; struct NotificationNode* notificationNode; int result; bool success = false; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); threadSafetyLock(&rserpoolSocket->Mutex); /* ====== Check for problems ========================================== */ if(rserpoolSocket->ConnectedSession == NULL) { LOG_ERROR fprintf(stdlog, "RSerPool socket %u, socket %d has no connected session\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END errno = EBADF; threadSafetyUnlock(&rserpoolSocket->Mutex); return(-1); } LOG_NOTE fprintf(stdlog, "Starting failover for RSerPool socket %u, socket %d, assoc %u\n", sd, rserpoolSocket->Socket, (unsigned int)rserpoolSocket->ConnectedSession->AssocID); LOG_END /* When next rsp_sendmsg() fails, a new FAILOVER_NECESSARY notification has to be sent. */ rserpoolSocket->ConnectedSession->IsFailed = false; /* But for now, remove all queued notifications - they are out of date! */ notificationQueueClear(&rserpoolSocket->Notifications); /* ====== Report failure ============================================== */ if((flags & FFF_UNREACHABLE) && (rserpoolSocket->ConnectedSession->ConnectedPE != 0) && (rserpoolSocket->ConnectedSession->Handle.Size > 0)) { rsp_send_failure_report(rserpoolSocket, tags); } /* ====== Abort association =========================================== */ if(rserpoolSocket->Socket >= 0) { LOG_ACTION fprintf(stdlog, "Aborting association on RSerPool socket %u, socket %d, session %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)rserpoolSocket->ConnectedSession->AssocID); LOG_END sendabort(rserpoolSocket->Socket, rserpoolSocket->ConnectedSession->AssocID); rserpoolSocket->ConnectedSession->AssocID = 0; ext_close(rserpoolSocket->Socket); rserpoolSocket->Socket = -1; } /* ====== Do handle resolution ======================================== */ if(rserpoolSocket->ConnectedSession->Handle.Size > 0) { LOG_ACTION fputs("Doing handle resolution for pool handle ", stdlog); poolHandlePrint(&rserpoolSocket->ConnectedSession->Handle, stdlog); fprintf(stdlog, " of RSerPool socket %u, socket %d, session %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, rserpoolSocket->ConnectedSession->SessionID); LOG_END result = rsp_getaddrinfo_tags((unsigned char*)&rserpoolSocket->ConnectedSession->Handle.Handle, rserpoolSocket->ConnectedSession->Handle.Size, &rspAddrInfo, 1, staleCacheValue, tags); if(result > 0) { if(rspAddrInfo->ai_protocol == rserpoolSocket->SocketProtocol) { /* ====== Establish connection ================================== */ rserpoolSocket->ConnectedSession->ConnectedPE = rspAddrInfo->ai_pe_id; rserpoolSocket->Socket = connectToPE(rserpoolSocket, rspAddrInfo->ai_addr, rspAddrInfo->ai_addrs); if(rserpoolSocket->Socket >= 0) { success = true; rserpoolSocket->WaitingForFirstMsg = true; rserpoolSocket->ConnectedSession->ConnectionTimeStamp = getMicroTime(); sessionStorageUpdateSession(&rserpoolSocket->SessionSet, rserpoolSocket->ConnectedSession, 0); } /* ====== Free handle resolution result ====================== */ rsp_freeaddrinfo(rspAddrInfo); /* ====== Failover procedure ================================= */ if(success) { /* ====== Do failover by client-based state sharing ======= */ if(rserpoolSocket->ConnectedSession->Cookie) { success = sendCookieEcho(rserpoolSocket, rserpoolSocket->ConnectedSession); } } #if 0 if(success) { /* ====== Send business card ============================== */ if( (!rserpoolSocket->ConnectedSession->IsIncoming) && (rserpoolSocket->ConnectedSession->PoolElement)) { sendBusinessCard(rserpoolSocket, rserpoolSocket->ConnectedSession); } } #endif /* ====== Notify application of successful failover ========== */ if(success) { notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, true, RSERPOOL_FAILOVER); if(notificationNode) { notificationNode->Content.rn_failover.rf_state = RSERPOOL_FAILOVER_COMPLETE; notificationNode->Content.rn_failover.rf_session = rserpoolSocket->ConnectedSession->SessionID; notificationNode->Content.rn_failover.rf_has_cookie = (rserpoolSocket->ConnectedSession->CookieSize > 0); } } else { LOG_ACTION fputs("Connection establishment was not possible\n", stdlog); LOG_END rsp_send_failure_report(rserpoolSocket, tags); } } else { LOG_ERROR fputs("Pool elements in pool ", stdlog); poolHandlePrint(&rserpoolSocket->ConnectedSession->Handle, stdlog); fprintf(stdlog, " do not use the same transport protocol as RSerPool socket %u, socket %d, session %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, rserpoolSocket->ConnectedSession->SessionID); LOG_END } } else if(result == REAI_NONAME) { LOG_ACTION fprintf(stdlog, "Handle resolution did not find new pool element. Waiting %lluus...\n", rserpoolSocket->ConnectedSession->HandleResolutionRetryDelay); LOG_END usleep((unsigned int)rserpoolSocket->ConnectedSession->HandleResolutionRetryDelay); errno = ENOENT; } else { LOG_WARNING fputs("Handle resolution failed\n", stdlog); LOG_END errno = EIO; } } else { LOG_WARNING fputs("No pool handle for failover\n", stdlog); LOG_END errno = EINVAL; } threadSafetyUnlock(&rserpoolSocket->Mutex); return((success == true) ? 0 : -1); } /* ###### Make failover ################################################## */ int rsp_forcefailover(int sd, const unsigned int flags, const unsigned int staleCacheValue) { return(rsp_forcefailover_tags(sd, flags, staleCacheValue, NULL)); } /* ###### RSerPool socket sendmsg() implementation ####################### */ ssize_t rsp_sendmsg(int sd, const void* data, size_t dataLength, unsigned int msg_flags, rserpool_session_t sessionID, uint32_t sctpPPID, uint16_t sctpStreamID, uint32_t sctpTimeToLive, uint16_t sctpFlags, int timeout) { struct RSerPoolSocket* rserpoolSocket; struct Session* session; struct NotificationNode* notificationNode; ssize_t result; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); threadSafetyLock(&rserpoolSocket->Mutex); session = findSession(rserpoolSocket, sessionID, 0); if(session != NULL) { if(!session->IsFailed) { LOG_VERBOSE1 fprintf(stdlog, "Trying to send message via session %u of RSerPool socket %d, socket %d\n", session->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END result = sendtoplus(rserpoolSocket->Socket, data, dataLength, #ifdef MSG_NOSIGNAL msg_flags|MSG_NOSIGNAL, #else msg_flags, #endif NULL, 0, ntohl(sctpPPID), session->AssocID, sctpStreamID, sctpTimeToLive, sctpFlags, (timeout >= 0) ? (1000ULL * timeout) : 0); if((result < 0) && (errno != EAGAIN)) { LOG_ACTION fprintf(stdlog, "Session failure during send on RSerPool socket %d, session %u: %s. Failover necessary\n", rserpoolSocket->Descriptor, session->SessionID, strerror(errno)); LOG_END /* ====== Terminate association and notify application ======= */ notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, false, RSERPOOL_FAILOVER); if(notificationNode) { notificationNode->Content.rn_failover.rf_state = RSERPOOL_FAILOVER_NECESSARY; notificationNode->Content.rn_failover.rf_session = session->SessionID; notificationNode->Content.rn_failover.rf_has_cookie = (session->CookieSize > 0); } session->IsFailed = true; /* =========================================================== */ result = -1; } } else { LOG_WARNING fprintf(stdlog, "Session %u of RSerPool socket %d, socket %d requires failover\n", session->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END result = -1; errno = EIO; } } else { result = -1; errno = EBADF; } threadSafetyUnlock(&rserpoolSocket->Mutex); return(result); } /* ###### RSerPool socket recvmsg() implementation ####################### */ ssize_t rsp_recvmsg(int sd, void* buffer, size_t bufferLength, struct rsp_sndrcvinfo* rinfo, int* msg_flags, int timeout) { struct RSerPoolSocket* rserpoolSocket; struct Session* session; struct rsp_sndrcvinfo rinfoDummy; const union sctp_notification* notification; union sockaddr_union remoteAddress; socklen_t remoteAddressSize; sctp_assoc_t assocID; int flags; int errorCode; ssize_t received; ssize_t received2; unsigned long long startTimeStamp; unsigned long long currentTimeout; unsigned long long now; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); if(rinfo == NULL) { /* User is not interested in values. */ rinfo = &rinfoDummy; rinfo->rinfo_session = 0; } else { memset(rinfo, 0, sizeof(struct rsp_sndrcvinfo)); } LOG_VERBOSE1 fprintf(stdlog, "Trying to read message from RSerPool socket %d, socket %d\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END /* ====== Give back Cookie Echo and notifications ===================== */ if(buffer != NULL) { received = getCookieEchoOrNotification(rserpoolSocket, buffer, bufferLength, rinfo, msg_flags, true); if(received > 0) { return(received); } } /* ====== Read from socket ========================================= */ startTimeStamp = getMicroTime(); do { if(rserpoolSocket->Socket >= 0) { now = getMicroTime(); if((timeout >= 0) && (startTimeStamp + (1000ULL * timeout) >= now)) { currentTimeout = startTimeStamp + (1000ULL * timeout) - now; } else { currentTimeout = 0; } LOG_VERBOSE1 fprintf(stdlog, "Trying to read from RSerPool socket %d, socket %d with timeout %Ldus\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, currentTimeout); LOG_END flags = 0; remoteAddressSize = sizeof(remoteAddress); received = messageBufferRead(rserpoolSocket->MsgBuffer, rserpoolSocket->Socket, &flags, &remoteAddress.sa, &remoteAddressSize, &rinfo->rinfo_ppid, &assocID, &rinfo->rinfo_stream, currentTimeout); errorCode = errno; LOG_VERBOSE fprintf(stdlog, "received=%d errno=%d\n", (int)received, errorCode); LOG_END /* Note, messageBufferRead()'s PPID byte order is host byte order! */ rinfo->rinfo_ppid = htonl(rinfo->rinfo_ppid); if( (received == 0) || ((received < 0) && (errorCode != EAGAIN)) ) { /* A failover is necessary due to error or shutdown. */ threadSafetyLock(&rserpoolSocket->Mutex); if(rserpoolSocket->ConnectedSession) { struct NotificationNode* notificationNode; notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, false, RSERPOOL_FAILOVER); if(notificationNode) { notificationNode->Content.rn_failover.rf_state = RSERPOOL_FAILOVER_NECESSARY; notificationNode->Content.rn_failover.rf_session = rserpoolSocket->ConnectedSession->SessionID; notificationNode->Content.rn_failover.rf_has_cookie = (rserpoolSocket->ConnectedSession->CookieSize > 0); } rserpoolSocket->ConnectedSession->IsFailed = true; } threadSafetyUnlock(&rserpoolSocket->Mutex); } } else { LOG_VERBOSE fputs("No socket -> nothing to read from\n", stdlog); LOG_END received = 0; threadSafetyLock(&rserpoolSocket->Mutex); if(rserpoolSocket->ConnectedSession) { if(!rserpoolSocket->ConnectedSession->IsFailed) { struct NotificationNode* notificationNode; notificationNode = notificationQueueEnqueueNotification(&rserpoolSocket->Notifications, false, RSERPOOL_FAILOVER); if(notificationNode) { notificationNode->Content.rn_failover.rf_state = RSERPOOL_FAILOVER_NECESSARY; notificationNode->Content.rn_failover.rf_session = rserpoolSocket->ConnectedSession->SessionID; notificationNode->Content.rn_failover.rf_has_cookie = (rserpoolSocket->ConnectedSession->CookieSize > 0); } rserpoolSocket->ConnectedSession->IsFailed = true; } } threadSafetyUnlock(&rserpoolSocket->Mutex); } /* ====== Handle result =============================================== */ if(received > 0) { threadSafetyLock(&rserpoolSocket->Mutex); /* ====== Handle notification ====================================== */ if(flags & MSG_NOTIFICATION) { notification = (const union sctp_notification*)rserpoolSocket->MsgBuffer->Buffer; if(handleNotification(rserpoolSocket, notification) == true) { /* The association is closed here. Therefore, we return length 0 to signalize the disconnect. If there is a corresponding notification, we will copy it later; otherwise, for SOCK_STREAM, the 0 is returned back. */ received = 0; } else { received = -1; } } /* ====== Handle ASAP control channel message =================== */ else { if(rserpoolSocket->WaitingForFirstMsg) { rserpoolSocket->WaitingForFirstMsg = false; #ifdef LINUX #ifdef HAVE_KERNEL_SCTP #warning Using lksctp fix for possible bad primary path after connectx()! /* lksctp has a bug in connectx(): Using connectx() to connect to {A1, A2, A3}, the primary will always be A1; even if A1 is bad and A2 or A3 had been used for 4-way handshake! Using default SCTP settings of RTO.Max, Path.Max.Retrans, etc., it will take *minutes* to drop the bad primary path. Work-around: use the source address of the first incoming message as primary path. */ LOG_NOTE fprintf(stdlog, "Setting primary for RSerPool socket %d, socket %d: ", rserpoolSocket->Descriptor, rserpoolSocket->Socket); fputaddress(&remoteAddress.sa, true, stdlog); fputs("\n", stdlog); LOG_END struct sctp_setprim setPrimary; memset(&setPrimary, 0, sizeof(setPrimary)); setPrimary.ssp_assoc_id = assocID; memcpy(&setPrimary.ssp_addr, &remoteAddress, sizeof(remoteAddress)); if(ext_setsockopt(rserpoolSocket->Socket, IPPROTO_SCTP, SCTP_PRIMARY_ADDR, &setPrimary, (socklen_t)sizeof(setPrimary)) < 0) { LOG_VERBOSE logerror("setsockopt SCTP_PRIMARY_ADDR failed"); LOG_END } #endif #endif } if( (flags & MSG_EOR) && (ntohl(rinfo->rinfo_ppid) == PPID_ASAP) ) { handleControlChannelMessage(rserpoolSocket, assocID, rserpoolSocket->MsgBuffer->Buffer, received); received = -1; } /* ====== User Data ========================================== */ else { /* ====== Find session ==================================== */ if(rserpoolSocket->ConnectedSession) { rinfo->rinfo_session = rserpoolSocket->ConnectedSession->SessionID; rinfo->rinfo_pe_id = rserpoolSocket->ConnectedSession->ConnectedPE; } else { session = sessionStorageFindSessionByAssocID(&rserpoolSocket->SessionSet, assocID); if(session) { rinfo->rinfo_session = session->SessionID; } else { LOG_ERROR fprintf(stdlog, "Received data on RSerPool socket %d, socket %d via unknown assoc %u\n", rserpoolSocket->Descriptor, rserpoolSocket->Socket, (unsigned int)assocID); LOG_END } } /* ====== Copy user data ================================== */ if(buffer != NULL) { if((ssize_t)bufferLength < received) { LOG_ERROR fputs("Buffer is too small to keep full message\n", stdlog); LOG_END errno = ENOMEM; return(-1); } received = min(received, (ssize_t)bufferLength); memcpy(buffer, rserpoolSocket->MsgBuffer->Buffer, received); } *msg_flags |= MSG_EOR; } } threadSafetyUnlock(&rserpoolSocket->Mutex); } /* ====== Nothing read from socket, but there may be a notification === */ if(received <= 0) { /* A cookie or notification may have been received. In this case, the if-blocks above have set received to -1! */ /* ====== Give back Cookie Echo and notifications =============== */ if(buffer != NULL) { received2 = getCookieEchoOrNotification(rserpoolSocket, buffer, bufferLength, rinfo, msg_flags, false); if(received2 > 0) { received = received2; } } } /* ====== Partial message ========================================== */ if( (received < 0) && (messageBufferHasPartial(rserpoolSocket->MsgBuffer)) && (ntohl(rinfo->rinfo_ppid) != PPID_ASAP) ) { if(buffer != NULL) { if(bufferLength < rserpoolSocket->MsgBuffer->BufferPos) { LOG_ERROR fputs("Buffer is too small to keep even partial message\n", stdlog); LOG_END errno = ENOMEM; return(-1); } received = min(rserpoolSocket->MsgBuffer->BufferPos, bufferLength); memcpy(buffer, rserpoolSocket->MsgBuffer->Buffer, received); } messageBufferReset(rserpoolSocket->MsgBuffer); *msg_flags &= ~MSG_EOR; break; } } while((received < 0) && (timeout >= 0) && (getMicroTime() < startTimeStamp + (1000ULL * timeout))); return(received); } /* ###### RSerPool socket read() implementation ########################## */ ssize_t rsp_read(int fd, void* buffer, size_t bufferLength) { struct RSerPoolSocket* rserpoolSocket; int flags = 0; GET_RSERPOOL_SOCKET(rserpoolSocket, fd); if(rserpoolSocket->SessionAllocationBitmap != NULL) { return(rsp_recvmsg(fd, buffer, bufferLength, NULL, &flags, -1)); } return(ext_read(rserpoolSocket->Socket, buffer, bufferLength)); } /* ###### Receive full message (until MSG_EOR) ########################### */ ssize_t rsp_recvfullmsg(int sd, void* buffer, size_t bufferLength, struct rsp_sndrcvinfo* rinfo, int* msg_flags, int timeout) { unsigned long long now = getMicroTime(); const unsigned long long endTimeStamp = now + (1000ULL * timeout); size_t offset = 0; ssize_t received; while( ((received = rsp_recvmsg(sd, (char*)&((char*)buffer)[offset], bufferLength - offset, rinfo, msg_flags, ((endTimeStamp - now) > 0) ? (int)((endTimeStamp - now) / 1000) : 0)) > 0) && (offset < bufferLength) ) { offset += received; if(*msg_flags & MSG_EOR) { return(offset); } now = getMicroTime(); } return(received); } /* ###### RSerPool socket recv() implementation ########################## */ ssize_t rsp_recv(int sd, void* buffer, size_t bufferLength, int flags) { struct RSerPoolSocket* rserpoolSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); if(rserpoolSocket->SessionAllocationBitmap != NULL) { return(rsp_recvmsg(sd, buffer, bufferLength, NULL, &flags, -1)); } return(ext_read(rserpoolSocket->Socket, buffer, bufferLength)); } /* ###### RSerPool socket send() implementation ########################## */ ssize_t rsp_send(int sd, const void* buffer, size_t bufferLength, int flags) { struct RSerPoolSocket* rserpoolSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); #ifdef MSG_NOSIGNAL flags |= MSG_NOSIGNAL; #endif if(rserpoolSocket->SessionAllocationBitmap != NULL) { return(rsp_sendmsg(sd, buffer, bufferLength, flags, 0, 0, 0, 0, 0, -1)); } return(ext_send(rserpoolSocket->Socket, buffer, bufferLength, flags)); } /* ###### RSerPool socket write() implementation ######################### */ ssize_t rsp_write(int fd, const char* buffer, size_t bufferLength) { struct RSerPoolSocket* rserpoolSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, fd); if(rserpoolSocket->SessionAllocationBitmap != NULL) { return(rsp_sendmsg(fd, buffer, bufferLength, 0, 0, 0, 0, 0, 0, -1)); } return(ext_write(rserpoolSocket->Socket, buffer, bufferLength)); } /* ###### Send cookie ######################################################## */ ssize_t rsp_send_cookie(int sd, const unsigned char* cookie, const size_t cookieSize, rserpool_session_t sessionID, int timeout) { struct RSerPoolSocket* rserpoolSocket; struct Session* session; struct RSerPoolMessage* message; bool result = false; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); threadSafetyLock(&rserpoolSocket->Mutex); session = findSession(rserpoolSocket, sessionID, 0); if(session != NULL) { LOG_VERBOSE1 fprintf(stdlog, "Trying to send ASAP_COOKIE via session %u of RSerPool socket %d, socket %d\n", session->SessionID, rserpoolSocket->Descriptor, rserpoolSocket->Socket); LOG_END message = rserpoolMessageNew(NULL,256 + cookieSize); if(message != NULL) { message->Type = AHT_COOKIE; message->CookiePtr = (char*)cookie; message->CookieSize = (size_t)cookieSize; threadSafetyUnlock(&rserpoolSocket->Mutex); result = rserpoolMessageSend(IPPROTO_SCTP, rserpoolSocket->Socket, session->AssocID, 0, 0, (1000ULL * timeout), message); threadSafetyLock(&rserpoolSocket->Mutex); rserpoolMessageDelete(message); } } else { errno = EINVAL; } threadSafetyUnlock(&rserpoolSocket->Mutex); return((result == true) ? (ssize_t)cookieSize : -1); } /* ###### RSerPool socket getsockopt() implementation #################### */ int rsp_getsockopt(int sd, int level, int optname, void* optval, socklen_t* optlen) { struct RSerPoolSocket* rserpoolSocket; int result = -1; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); if(rserpoolSocket->SessionAllocationBitmap != NULL) { threadSafetyLock(&rserpoolSocket->Mutex); /* ... */ threadSafetyUnlock(&rserpoolSocket->Mutex); return(result); } return(ext_getsockopt(rserpoolSocket->Socket, level, optname, optval, optlen)); } /* ###### RSerPool socket setsockopt() implementation #################### */ int rsp_setsockopt(int sd, int level, int optname, const void* optval, socklen_t optlen) { struct RSerPoolSocket* rserpoolSocket; int result = -1; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); if(rserpoolSocket->SessionAllocationBitmap != NULL) { threadSafetyLock(&rserpoolSocket->Mutex); /* ... */ threadSafetyUnlock(&rserpoolSocket->Mutex); return(result); } return(ext_setsockopt(rserpoolSocket->Socket, level, optname, optval, optlen)); } /* ###### Get PE's pool handle and identifier ############################ */ int rsp_getsockname(int sd, unsigned char* poolHandle, size_t* poolHandleSize, uint32_t* identifier) { struct RSerPoolSocket* rserpoolSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); if(rserpoolSocket->PoolElement == NULL) { errno = EBADF; return(-1); } if(poolHandleSize) { if(*poolHandleSize >= rserpoolSocket->PoolElement->Handle.Size) { memcpy(poolHandle, rserpoolSocket->PoolElement->Handle.Handle, rserpoolSocket->PoolElement->Handle.Size); *poolHandleSize = rserpoolSocket->PoolElement->Handle.Size; } else { errno = ENOBUFS; return(-1); } } if(identifier) { *identifier = rserpoolSocket->PoolElement->Identifier; } return(0); } /* ###### Get peer PE's pool handle and identifier ####################### */ int rsp_getpeername(int sd, unsigned char* poolHandle, size_t* poolHandleSize, uint32_t* identifier) { struct RSerPoolSocket* rserpoolSocket; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); if(rserpoolSocket->ConnectedSession == NULL) { errno = EBADF; return(-1); } if(poolHandleSize) { if(*poolHandleSize >= rserpoolSocket->ConnectedSession->Handle.Size) { memcpy(poolHandle, rserpoolSocket->ConnectedSession->Handle.Handle, rserpoolSocket->ConnectedSession->Handle.Size); *poolHandleSize = rserpoolSocket->ConnectedSession->Handle.Size; } else { errno = ENOBUFS; return(-1); } } if(identifier) { *identifier = rserpoolSocket->ConnectedSession->ConnectedPE; } return(0); } /* ###### Set session's CSP status text ################################## */ int rsp_csp_setstatus(int sd, rserpool_session_t sessionID, const char* statusText) { #ifdef ENABLE_CSP struct RSerPoolSocket* rserpoolSocket; struct Session* session; int result = 0; GET_RSERPOOL_SOCKET(rserpoolSocket, sd); threadSafetyLock(&rserpoolSocket->Mutex); session = findSession(rserpoolSocket, sessionID, 0); if(session != NULL) { safestrcpy((char*)&session->StatusText, statusText, sizeof(session->StatusText)); } else { errno = EINVAL; result = -1; } threadSafetyUnlock(&rserpoolSocket->Mutex); return(result); #else errno = EPROTONOSUPPORT; return(-1); #endif } #ifdef ENABLE_CSP /* ###### Get CSP status ################################################# */ size_t getSessionStatus(struct ComponentAssociation** caeArray, uint64_t* identifier, char* statusText, char* componentLocation, double* workload, const int registrarSocket, const uint32_t registrarID, const unsigned long long registrarConnectionTimeStamp) { size_t caeArraySize; struct RSerPoolSocket* rserpoolSocket; struct Session* session; size_t sessions; bool gotLocation; LOG_VERBOSE3 fputs("Getting Component Status...\n", stdlog); LOG_END threadSafetyLock(&gRSerPoolSocketSetMutex); /* ====== Obtain locks ================================================ */ sessions = 0; rserpoolSocket = (struct RSerPoolSocket*)simpleRedBlackTreeGetFirst(&gRSerPoolSocketSet); while(rserpoolSocket != NULL) { threadSafetyLock(&rserpoolSocket->SessionSetMutex); sessions += sessionStorageGetElements(&rserpoolSocket->SessionSet); rserpoolSocket = (struct RSerPoolSocket*)simpleRedBlackTreeGetNext(&gRSerPoolSocketSet, &rserpoolSocket->Node); } /* ====== Get status ================================================== */ *workload = -1.0; *caeArray = createComponentAssociationArray(1 + sessions); caeArraySize = 0; if(*caeArray) { statusText[0] = 0x00; componentLocation[0] = 0x00; if(registrarSocket >= 0) { (*caeArray)[caeArraySize].ReceiverID = CID_COMPOUND(CID_GROUP_REGISTRAR, registrarID); (*caeArray)[caeArraySize].Duration = getMicroTime() - registrarConnectionTimeStamp; (*caeArray)[caeArraySize].Flags = 0; (*caeArray)[caeArraySize].ProtocolID = IPPROTO_SCTP; (*caeArray)[caeArraySize].PPID = PPID_ASAP; caeArraySize++; } gotLocation = false; rserpoolSocket = (struct RSerPoolSocket*)simpleRedBlackTreeGetFirst(&gRSerPoolSocketSet); while(rserpoolSocket != NULL) { session = sessionStorageGetFirstSession(&rserpoolSocket->SessionSet); while(session != NULL) { if((!session->IsIncoming) && (!session->IsFailed)) { (*caeArray)[caeArraySize].ReceiverID = CID_COMPOUND(CID_GROUP_POOLELEMENT, session->ConnectedPE); (*caeArray)[caeArraySize].Duration = (session->ConnectionTimeStamp > 0) ? (getMicroTime() - session->ConnectionTimeStamp) : ~0ULL; (*caeArray)[caeArraySize].Flags = 0; (*caeArray)[caeArraySize].ProtocolID = rserpoolSocket->SocketProtocol; (*caeArray)[caeArraySize].PPID = 0; caeArraySize++; getComponentLocation(componentLocation, rserpoolSocket->Socket, session->AssocID); } if(session->StatusText[0] != 0x00) { safestrcpy(statusText, session->StatusText, CSPR_STATUS_SIZE); } session = sessionStorageGetNextSession(&rserpoolSocket->SessionSet, session); } if((rserpoolSocket->PoolElement) && (CID_GROUP(*identifier) == CID_GROUP_POOLELEMENT)) { if(CID_OBJECT(*identifier) == 0) { *identifier = CID_COMPOUND(CID_GROUP_POOLELEMENT, rserpoolSocket->PoolElement->Identifier); } if(PPT_IS_ADAPTIVE(rserpoolSocket->PoolElement->LoadInfo.rli_policy)) { *workload = rserpoolSocket->PoolElement->LoadInfo.rli_load / (double)PPV_MAX_LOAD; } if(gotLocation == false) { getComponentLocation(componentLocation, rserpoolSocket->Socket, 0); gotLocation = true; } } rserpoolSocket = (struct RSerPoolSocket*)simpleRedBlackTreeGetNext(&gRSerPoolSocketSet, &rserpoolSocket->Node); } if(gotLocation == false) { getComponentLocation(componentLocation, -1, 0); } if((statusText[0] == 0x00) || (sessions != 1)) { snprintf(statusText, CSPR_STATUS_SIZE, "%u Session%s", (unsigned int)sessions, (sessions == 1) ? "" : "s"); } } /* ====== Release locks ===============================================*/ rserpoolSocket = (struct RSerPoolSocket*)simpleRedBlackTreeGetFirst(&gRSerPoolSocketSet); while(rserpoolSocket != NULL) { threadSafetyUnlock(&rserpoolSocket->SessionSetMutex); rserpoolSocket = (struct RSerPoolSocket*)simpleRedBlackTreeGetNext(&gRSerPoolSocketSet, &rserpoolSocket->Node); } threadSafetyUnlock(&gRSerPoolSocketSetMutex); return(caeArraySize); } #endif /* ###### Print RSerPool notification #################################### */ void rsp_print_notification(const union rserpool_notification* notification, FILE* fd) { switch(notification->rn_header.rn_type) { case RSERPOOL_SESSION_CHANGE: fprintf(fd, "RSERPOOL_SESSION_CHANGE for session %d, state=", notification->rn_session_change.rsc_session); switch(notification->rn_session_change.rsc_state) { case RSERPOOL_SESSION_ADD: fputs("RSERPOOL_SESSION_ADD", fd); break; case RSERPOOL_SESSION_REMOVE: fputs("RSERPOOL_SESSION_REMOVE", fd); break; default: fprintf(fd, "Unknown state %d!", notification->rn_session_change.rsc_state); break; } break; case RSERPOOL_FAILOVER: fprintf(fd, "RSERPOOL_FAILOVER for session %d, state=", notification->rn_failover.rf_session); switch(notification->rn_failover.rf_state) { case RSERPOOL_FAILOVER_NECESSARY: fputs("RSERPOOL_FAILOVER_NECESSARY", fd); break; case RSERPOOL_FAILOVER_COMPLETE: fputs("RSERPOOL_FAILOVER_COMPLETE", fd); break; default: fprintf(fd, "Unknown state %d!", notification->rn_failover.rf_state); break; } fprintf(fd, ", cookie=%s", (notification->rn_failover.rf_has_cookie) ? "yes" : "no"); break; case RSERPOOL_SHUTDOWN_EVENT: fprintf(fd, "RSERPOOL_SHUTDOWN_EVENT for session %d", notification->rn_shutdown_event.rse_session); break; default: fprintf(fd, "Unknown type %d!", notification->rn_header.rn_type); break; } } rsplib-3.0.1/rsplib/rspregistrar-security.c0000664000175000017500000000657311777021056016005 00000000000000/* $Id: rspregistrar-security.c 2683 2012-06-08 13:11:14Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "rspregistrar.h" #define TSHT_BUCKETS 64 #define TSHT_ENTRIES 16 /* ###### Check PU's permission for given operation using thresholds ##### */ bool registrarPoolUserHasPermissionFor(struct Registrar* registrar, const int fd, const sctp_assoc_t assocID, const unsigned int action, const struct PoolHandle* poolHandle, const PoolElementIdentifierType peIdentifier) { static struct ST_CLASS(PoolUserNode)* nextPoolUserNode; struct ST_CLASS(PoolUserNode)* poolUserNode; double rate; double threshold; unsigned long long now; if(nextPoolUserNode == NULL) { nextPoolUserNode = (struct ST_CLASS(PoolUserNode)*)malloc(sizeof(struct ST_CLASS(PoolUserNode))); if(nextPoolUserNode == NULL) { /* Giving permission here seems to be useful in case of trying to avoid DoS when - for some reason - the PR's memory is full. */ return(true); } } ST_CLASS(poolUserNodeNew)(nextPoolUserNode, fd, assocID); poolUserNode = ST_CLASS(poolUserListAddOrUpdatePoolUserNode)(®istrar->PoolUsers, &nextPoolUserNode); CHECK(poolUserNode != NULL); now = getMicroTime(); rate = threshold = -1.0; switch(action) { case AHT_HANDLE_RESOLUTION: rate = ST_CLASS(poolUserNodeNoteHandleResolution)(poolUserNode, poolHandle, now, TSHT_BUCKETS, TSHT_ENTRIES); threshold = registrar->MaxHRRate; break; case AHT_ENDPOINT_UNREACHABLE: rate = ST_CLASS(poolUserNodeNoteEndpointUnreachable)(poolUserNode, poolHandle, peIdentifier, now, TSHT_BUCKETS, TSHT_ENTRIES); threshold = registrar->MaxEURate; break; default: CHECK(false); break; } /* printf("rate=%1.6f threshold=%1.6f\n", rate, threshold); */ return(rate <= threshold); } rsplib-3.0.1/rsplib/dispatcher.c0000664000175000017500000002662111777021056013533 00000000000000/* $Id: dispatcher.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "loglevel.h" #include "dispatcher.h" #include "netutilities.h" #include #include #include #include static void dispatcherDefaultLock(struct Dispatcher* dispatcher, void* userData); static void dispatcherDefaultUnlock(struct Dispatcher* dispatcher, void* userData); /* ###### Constructor #################################################### */ void dispatcherNew(struct Dispatcher* dispatcher, void (*lock)(struct Dispatcher* dispatcher, void* userData), void (*unlock)(struct Dispatcher* dispatcher, void* userData), void* lockUserData) { simpleRedBlackTreeNew(&dispatcher->TimerStorage, NULL, timerComparison); simpleRedBlackTreeNew(&dispatcher->FDCallbackStorage, NULL, fdCallbackComparison); dispatcher->AddRemove = false; dispatcher->LockUserData = lockUserData; if(lock != NULL) { dispatcher->Lock = lock; } else { dispatcher->Lock = dispatcherDefaultLock; } if(unlock != NULL) { dispatcher->Unlock = unlock; } else { dispatcher->Unlock = dispatcherDefaultUnlock; } } /* ###### Destructor ##################################################### */ void dispatcherDelete(struct Dispatcher* dispatcher) { CHECK(simpleRedBlackTreeIsEmpty(&dispatcher->TimerStorage)); CHECK(simpleRedBlackTreeIsEmpty(&dispatcher->FDCallbackStorage)); simpleRedBlackTreeDelete(&dispatcher->TimerStorage); simpleRedBlackTreeDelete(&dispatcher->FDCallbackStorage); dispatcher->Lock = NULL; dispatcher->Unlock = NULL; dispatcher->LockUserData = NULL; } /* ###### Lock ########################################################### */ void dispatcherLock(struct Dispatcher* dispatcher) { CHECK(dispatcher); dispatcher->Lock(dispatcher, dispatcher->LockUserData); } /* ###### Unlock ######################################################### */ void dispatcherUnlock(struct Dispatcher* dispatcher) { CHECK(dispatcher); dispatcher->Unlock(dispatcher, dispatcher->LockUserData); } /* ###### Default locking function ####################################### */ static void dispatcherDefaultLock(struct Dispatcher* dispatcher, void* userData) { } /* ###### Default unlocking function ##################################### */ static void dispatcherDefaultUnlock(struct Dispatcher* dispatcher, void* userData) { } /* ###### Get poll() parameters ########################################## */ void dispatcherGetPollParameters(struct Dispatcher* dispatcher, struct pollfd* ufds, unsigned int* nfds, int* timeout, unsigned long long* pollTimeStamp) { struct SimpleRedBlackTreeNode* node; struct FDCallback* fdCallback; struct Timer* timer; long long timeToNextEvent; *nfds = 0; *timeout = -1; if(dispatcher != NULL) { dispatcherLock(dispatcher); /* ====== Create fdset for poll() ================================= */ *pollTimeStamp = getMicroTime(); node = simpleRedBlackTreeGetFirst(&dispatcher->FDCallbackStorage); while(node != NULL) { fdCallback = (struct FDCallback*)node; if(fdCallback->EventMask & (FDCE_Read|FDCE_Write|FDCE_Exception)) { fdCallback->SelectTimeStamp = *pollTimeStamp; ufds[*nfds].fd = fdCallback->FD; ufds[*nfds].events = fdCallback->EventMask & (FDCE_Read|FDCE_Write|FDCE_Exception); (*nfds)++; } else { LOG_WARNING fputs("Empty event mask?!\n",stdlog); LOG_END } node = simpleRedBlackTreeGetNext(&dispatcher->FDCallbackStorage, node); } /* ====== Get time to next timer event ============================ */ node = simpleRedBlackTreeGetFirst(&dispatcher->TimerStorage); if(node != NULL) { timer = (struct Timer*)node; timeToNextEvent = max((long long)0, (long long)timer->TimeStamp - (long long)*pollTimeStamp); *timeout = (int)ceil((double)timeToNextEvent / 1000.0); } else { *timeout = -1; } dispatcherUnlock(dispatcher); } } /* ###### Find FDCallback for given file descriptor ###################### */ static struct FDCallback* dispatcherFindFDCallbackForDescriptor(struct Dispatcher* dispatcher, int fd) { struct FDCallback cmpNode; struct SimpleRedBlackTreeNode* node; cmpNode.FD = fd; node = simpleRedBlackTreeFind(&dispatcher->FDCallbackStorage, &cmpNode.Node); if(node != NULL) { return((struct FDCallback*)node); } return(NULL); } /* ###### Handle poll() result ########################################### */ void dispatcherHandlePollResult(struct Dispatcher* dispatcher, int result, struct pollfd* ufds, unsigned int nfds, int timeout, unsigned long long pollTimeStamp) { unsigned long long now; struct SimpleRedBlackTreeNode* node; struct Timer* timer; struct FDCallback* fdCallback; unsigned int i; if(dispatcher != NULL) { dispatcherLock(dispatcher); dispatcher->AddRemove = false; /* ====== Handle events ============================================ */ /* We handle the FD callbacks first, because their corresponding FD's state has been returned by ext_poll(), since a timer callback might modify them (e.g. writing to a socket and reading the complete results). */ if(result > 0) { LOG_VERBOSE4 fputs("Handling FD events...\n", stdlog); LOG_END for(i = 0;i < nfds;i++) { if(ufds[i].revents) { fdCallback = dispatcherFindFDCallbackForDescriptor(dispatcher, ufds[i].fd); if(fdCallback != NULL) { if(fdCallback->SelectTimeStamp <= pollTimeStamp) { if(ufds[i].revents & fdCallback->EventMask) { LOG_VERBOSE4 fprintf(stdlog,"Event $%04x (mask $%04x) for socket %d\n", ufds[i].revents, fdCallback->EventMask, fdCallback->FD); LOG_END if(fdCallback->Callback != NULL) { LOG_VERBOSE4 fprintf(stdlog,"Executing callback for event $%04x of socket %d\n", ufds[i].revents, fdCallback->FD); LOG_END dispatcherUnlock(dispatcher); fdCallback->Callback(dispatcher, fdCallback->FD, ufds[i].revents, fdCallback->UserData); dispatcherLock(dispatcher); if(dispatcher->AddRemove == true) { break; } } } } else { LOG_WARNING fprintf(stdlog, "FD callback for FD %d is newer than begin of ext_poll() -> Skipping.\n", fdCallback->FD); LOG_END } } else { LOG_WARNING fprintf(stdlog,"FD callback for socket %d is gone. Something is going wrong! Have you set nfds correctly?\n", ufds[i].fd); LOG_END } } } } /* ====== Handle timer events ====================================== */ /* Timers must be handled after the FD callbacks, since they might modify the FDs' states (e.g. completely reading their buffers, establishing new associations, ...)! */ LOG_VERBOSE4 fputs("Handling timer events...\n", stdlog); LOG_END now = getMicroTime(); node = simpleRedBlackTreeGetFirst(&dispatcher->TimerStorage); while(node != NULL) { timer = (struct Timer*)node; if(dispatcher->AddRemove == true) { break; } if(now >= timer->TimeStamp) { timer->TimeStamp = 0; simpleRedBlackTreeRemove(&dispatcher->TimerStorage, &timer->Node); if(timer->Callback != NULL) { dispatcherUnlock(dispatcher); timer->Callback(dispatcher, timer, timer->UserData); dispatcherLock(dispatcher); } } else { break; } node = simpleRedBlackTreeGetFirst(&dispatcher->TimerStorage); } dispatcherUnlock(dispatcher); } } /* ###### Dispatcher event loop ########################################## */ void dispatcherEventLoop(struct Dispatcher* dispatcher) { unsigned long long pollTimeStamp; struct pollfd ufds[FD_SETSIZE]; unsigned int nfds; int timeout; int result; if(dispatcher != NULL) { dispatcherGetPollParameters(dispatcher, (struct pollfd*)&ufds, &nfds, &timeout, &pollTimeStamp); result = ext_poll((struct pollfd*)&ufds, nfds, timeout); dispatcherHandlePollResult(dispatcher, result, (struct pollfd*)&ufds, nfds, timeout, pollTimeStamp); } } rsplib-3.0.1/rsplib/dispatcher.h0000664000175000017500000001141411777021056013532 00000000000000/* $Id: dispatcher.h 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * Acknowledgements: * Realized in co-operation between Siemens AG and * University of Essen, Institute of Computer Networking Technology. * This work was partially funded by the Bundesministerium fuer Bildung und * Forschung (BMBF) of the Federal Republic of Germany * (Förderkennzeichen 01AK045). * The authors alone are responsible for the contents. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #ifndef DISPATCHER_H #define DISPATCHER_H #include "tdtypes.h" #include "timer.h" #include "fdcallback.h" #include "simpleredblacktree.h" #include #ifdef __cplusplus extern "C" { #endif struct Dispatcher { struct SimpleRedBlackTree TimerStorage; struct SimpleRedBlackTree FDCallbackStorage; bool AddRemove; void (*Lock)(struct Dispatcher* dispatcher, void* userData); void (*Unlock)(struct Dispatcher* dispatcher, void* userData); void* LockUserData; }; /** * Constructor. * * @param lock Lock function (default: dummy function). * @param unlock Unlock function (default: dummy function). * @param lockUserData User data for lock and unlock function. */ void dispatcherNew(struct Dispatcher* dispatcher, void (*lock)(struct Dispatcher* dispatcher, void* userData), void (*unlock)(struct Dispatcher* dispatcher, void* userData), void* lockUserData); /** * Destructor. * * @param dispatcher Dispatcher. */ void dispatcherDelete(struct Dispatcher* dispatcher); /** * Lock dispatcher. * * @param dispatcher Dispatcher. */ void dispatcherLock(struct Dispatcher* dispatcher); /** * Unlock dispatcher. * * @param dispatcher Dispatcher. */ void dispatcherUnlock(struct Dispatcher* dispatcher); /** * Get poll() parameters for user-controlled poll() loop. * * @param dispatcher Dispatcher. * @param ufds pollfd array of at least FD_SETSIZE entries. * @param nfds Reference to store number of pollfd entries. * @param timeout Reference to store timeout. * @param pollTimeStamp Reference to store time stamp of dispatcherGetPollParameters() call. */ void dispatcherGetPollParameters(struct Dispatcher* dispatcher, struct pollfd* ufds, unsigned int* nfds, int* timeout, unsigned long long* pollTimeStamp); /** * Handle results of poll() call. Important: nfds must be the * value obtained from dispatcherGetPollParameters()! * * @param dispatcher Dispatcher. * @param result Result value returned by poll(). * @param ufds pollfd array. * @param nfds Number of pollfd entries. * @param timeout timeout. * @param pollTimeStamp Time stamp of dispatcherGetPollParameters() call. */ void dispatcherHandlePollResult(struct Dispatcher* dispatcher, int result, struct pollfd* ufds, unsigned int nfds, int timeout, unsigned long long pollTimeStamp); /** * Event loop calling dispatcherGetSelectParameters(), select() and dispatcherHandleSelectResult(). * * @param dispatcher Dispatcher. * * @see dispatcherGetSelectParameters * @see dispatcherHandleSelectResult */ void dispatcherEventLoop(struct Dispatcher* dispatcher); #ifdef __cplusplus } #endif #endif rsplib-3.0.1/rsplib/gettimestamp.c0000664000175000017500000000467111777021056014111 00000000000000/* $Id: gettimestamp.c 2608 2011-11-23 07:52:38Z dreibh $ * -------------------------------------------------------------------------- * * //===// //===== //===// // // //===// * // // // // // // // // // * //===// //===== //===// // // //===<< * // \\ // // // // // // * // \\ =====// // //===== // //===// Version II * * ------------- An Efficient RSerPool Prototype Implementation ------------- * * Copyright (C) 2002-2012 by Thomas Dreibholz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Contact: dreibh@iem.uni-due.de */ #include "tdtypes.h" #include "timeutilities.h" #include #include #include /* ###### Main program ################################################### */ int main(int argc, char** argv) { char str[256]; bool textOutput = false; unsigned long long offset = 0; unsigned long long timeStamp; int i; for(i = 1;i < argc;i++) { if(!(strcmp(argv[i], "-text"))) { textOutput = true; } else if(!(strncmp(argv[i], "-offset=", 8))) { offset = 1000ULL * (unsigned long long)atol((const char*)&argv[i][8]); } else { fprintf(stderr, "Usage: %s {-offset=Offset in ms} {-text}\n", argv[0]); exit(1); } } timeStamp = getMicroTime() + offset; if(!textOutput) { printf("%llu\n", timeStamp); } else { const time_t timeValue = timeStamp / 1000000; const struct tm* timePtr = localtime(&timeValue); strftime((char*)&str, sizeof(str), "%d-%b-%Y %H:%M:%S", timePtr); fputs(str, stdout); printf(".%06Lu, offset is %lluus\n", timeStamp % 1000000ULL, offset); } return(0); } rsplib-3.0.1/acinclude.m40000664000175000017500000001554711777021057012145 00000000000000# $Id: acinclude.m4 2676 2012-05-07 14:04:02Z dreibh $ # Check for Qt 4.x compiler flags, linker flags, and binary packages # # Copyright (C) 2002-2012 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de AC_DEFUN([TD_CHECK_QT4], [ QT_REQUIRED_COMPONENTS="QtCore QtGui QtXml" QT_DEFAULT_INCLUDE_PATHS="/usr/share/qt4/include /usr/local/include/qt4 /usr/include/qt4 /usr/include" QT_DEFAULT_LIBRARY_PATHS="/usr/lib /usr/local/lib /usr/local/qt4/lib /usr/local/lib/qt4 /usr/share/qt4/lib `cat 2>/dev/null /etc/ld.so.conf.d/*.conf | sed -e "/# /d"` /usr/lib64" QT_DEFAULT_BINARY_PATHS="/usr/bin /usr/local/bin /usr/local/qt4/bin /usr/share/qt4/bin" QTPOSTFIX="-qt4" QTEXTRAINC="" QTEXTRALIB="" QT_LDADD="" QT_CXXFLAGS="" MOC="" # ====== Directory ========================================================== AC_ARG_WITH([qt-dir], AC_HELP_STRING([--with-qt-dir=/path/to/Qt-4.x], [to specify the path to the Qt-4.x directory.]), [QTDIR="$withval"], [QTDIR=""]) if test x$QTDIR != x ; then AC_MSG_CHECKING(Qt 4.x directory) if test ! -d $x ; then AC_MSG_ERROR([Bad setting of Qt directory. Check --qt-dir parameter!]) fi AC_MSG_RESULT([okay]) fi # ====== Includes =========================================================== AC_MSG_CHECKING(Qt 4.x includes directory) AC_ARG_WITH([qt-include], AC_HELP_STRING([--with-qt-include=/path/to/Qt-4.x include], [to specify the path to the Qt-4.x include directory]), [QT_INCLUDE_PATHS="$withval"], [QT_INCLUDE_PATHS="$QT_DEFAULT_INCLUDE_PATHS"]) if test x$QTDIR != x ; then QT_INCLUDE_PATHS="$QTDIR/include" fi QTEXTRAINC="" for x in $QT_INCLUDE_PATHS ; do echo -n "$x? " if test -d $x ; then QTEXTRAINC="$x" break fi done if test x$QTEXTRAINC = x ; then AC_MSG_ERROR([No Qt 4.x include directory found. Try --with-qt-include=.]) fi AC_MSG_RESULT([--> $QTEXTRAINC]) # ====== Libraries ========================================================== AC_MSG_CHECKING(Qt 4.x libraries directory) AC_ARG_WITH([qt-lib], AC_HELP_STRING([--with-qt-lib=/path/to/Qt-4.x lib], [to specify the path to the Qt-4.x lib directory]), [QT_LIBRARY_PATHS="$withval"], [QT_LIBRARY_PATHS="$QT_DEFAULT_LIBRARY_PATHS"]) if test x$QTDIR != x ; then QT_LIBRARY_PATHS="$QTDIR/include" fi QTEXTRALIB="" for x in $QT_LIBRARY_PATHS ; do echo -n "$x? " if test -d $x ; then # The libraries directory must contain libQtCore. Otherwise, # this directory is not the right one! if test -f $x/libQtCore.so -o -f $x/libQtCore.a ; then QTEXTRALIB="$x" break fi fi done if test x$QTEXTRALIB = x ; then AC_MSG_ERROR([No Qt 4.x libraries directory found. Try --with-qt-lib=.]) fi AC_MSG_RESULT([--> $QTEXTRALIB]) # ====== Components ========================================================= QT_CXXFLAGS="$QT_CXXFLAGS -I$QTEXTRAINC" QT_LDADD="-L$QTEXTRALIB" # OLD: "-Wl,-rpath,$QTEXTRALIB -L$QTEXTRALIB" for x in $QT_REQUIRED_COMPONENTS ; do AC_MSG_CHECKING([Qt 4.x component $x]) if ! test -e $QTEXTRALIB/lib$x.so ; then if ! test -e $QTEXTRALIB/lib$x.a ; then AC_MSG_ERROR([Component $x is not available: no $QTEXTRALIB/lib$x.so or $QTEXTRALIB/lib$x.a found!]) fi fi AC_MSG_RESULT([okay]) QT_LDADD="$QT_LDADD -l$x" QT_CXXFLAGS="$QT_CXXFLAGS -I$QTEXTRAINC/$x" done QT_LDADD="$QT_LDADD $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lpthread" AC_MSG_CHECKING([QT_CXXFLAGS]) AC_MSG_RESULT([$QT_CXXFLAGS]) AC_MSG_CHECKING([QT_LDADD]) AC_MSG_RESULT([$QT_LDADD]) AC_SUBST(QT_CXXFLAGS) AC_SUBST(QT_LDADD) # ====== Programs =========================================================== AC_ARG_WITH([qt-bin], AC_HELP_STRING([--with-qt-binaries=/path/to/Qt-4.x binaries], [to specify the path to the Qt-4.x binaries directory]), [QT_BINARY_PATHS="$withval"], [QT_BINARY_PATHS="$QT_DEFAULT_BINARY_PATHS"]) if test x$QTDIR != x ; then QT_BINARY_PATHS="$QTDIR/bin" fi AC_MSG_CHECKING(Qt 4.x meta-object compiler moc$QTPOSTFIX) for p in $QT_BINARY_PATHS ; do echo -n "$p/moc$QTPOSTFIX? " if test -e $p/moc$QTPOSTFIX ; then MOC="$p/moc$QTPOSTFIX" break fi done if test x$MOC = x ; then AC_MSG_ERROR([moc$QTPOSTFIX not found!]) fi AC_MSG_RESULT([$MOC]) AC_SUBST(MOC) # ====== Tests ============================================================== cat > myqt.h << EOF #include class Test : public QObject { Q_OBJECT public: Test() {} ~Test() {} public slots: void receive() {} signals: void send(); }; EOF cat > myqt.cpp << EOF #include "myqt.h" #include int main( int argc, char **argv ) { QApplication app( argc, argv ); Test t; QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) ); } EOF # ------ MOC test ----------------------------------------------------------- AC_MSG_CHECKING(for working moc$QTPOSTFIX) test_command_1="$MOC myqt.h -o moc_myqt.cpp" AC_TRY_EVAL(test_command_1) if test x"$ac_status" != x0; then AC_MSG_ERROR(moc$QTPOSTFIX call failed) fi AC_MSG_RESULT(yes) # ------ MOC compile test --------------------------------------------------- AC_MSG_CHECKING(whether C++-compiling the moc$QTPOSTFIX-generated program works) test_command_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_myqt.o moc_myqt.cpp" echo CMD=$test_command_2 AC_TRY_EVAL(test_command_2) if test x"$ac_status" != x0; then AC_MSG_ERROR(moc$QTPOSTFIX-generated test program C++-compilation failed) fi AC_MSG_RESULT(yes) # ------ Compile test ------------------------------------------------------- AC_MSG_CHECKING(whether C++-compiling a test program works) test_command_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o myqt.o myqt.cpp" AC_TRY_EVAL(test_command_3) if test x"$ac_status" != x0; then AC_MSG_ERROR(test program C++-compilation failed) fi AC_MSG_RESULT(yes) # ------ Link test ---------------------------------------------------------- AC_MSG_CHECKING(whether linking works) nv_try_4="$CXX $QT_LDADD -o myqt myqt.o moc_myqt.o" AC_TRY_EVAL(test_command_4) if test x"$ac_status" != x0; then AC_MSG_ERROR(linking failed) fi AC_MSG_RESULT(yes) # ------ Clean up ----------------------------------------------------------- rm -f moc_myqt.cpp myqt.h myqt.cpp myqt.o myqt moc_myqt.o ]) rsplib-3.0.1/AUTHORS0000664000175000017500000000005111777021057011004 00000000000000Thomas Dreibholz rsplib-3.0.1/rsplib.lsm0000664000175000017500000000304212065103001011724 00000000000000Begin4 Title: rsplib Version: 3.0.1 Entered-date: 2012-12-21 Description: rsplib is the Open Source implementation of the IETF Reliable Server Pooling (RSerPool) architecture, a novel framework for pool and session management. The Reliable Server Pooling (RSerPool) architecture (defined by RFC 5351 to RFC 5356) is an overlay network framework to provide server replication and session failover capabilities to its applications. Server redundancy leads to load distribution and load balancing, which are also covered by RSerPool. But in strong contrast to other solutions in the area of GRID and high-performance computing, the fundamental property of RSerPool is to be "lightweight", i.e. it can also be used on devices providing only meagre memory and CPU resources (e.g. embedded systems like telecommunications equipment or routers). Keywords: Reliable Server Pooling, RSerPool, High Availability, Server Pools, Pool Management, Session Management Author: dreibh@iem.uni-due.de (Thomas Dreibholz) Maintained-by: dreibh@iem.uni-due.de (Thomas Dreibholz) Primary-site: http://tdrwww.iem.uni-due.de/dreibholz/rserpool 1025 kB download/rsplib-3.0.1.tar.gz Original-site: http://tdrwww.iem.uni-due.de/dreibholz/rserpool Platforms: Linux, FreeBSD, MacOS, Solaris Copying-policy: GPL End rsplib-3.0.1/INSTALL0000664000175000017500000001547211777021057011002 00000000000000Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Type `make install' to install the programs and any data files and documentation. 4. You can remove the program binaries and object files from the source code directory by typing `make clean'. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. rsplib-3.0.1/ChangeLog0000664000175000017500000277335112065103145011522 00000000000000------------------------------------------------------------------------ r2736 | dreibh | 2012-12-21 16:02:29 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/make-ppa M /trunk/rsplib2/rsplib.lsm Documentation updates. ------------------------------------------------------------------------ r2735 | dreibh | 2012-12-21 15:58:02 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: M /trunk/rsplib2/configure.ac M /trunk/rsplib2/debian/changelog Version update to 3.0.0. ------------------------------------------------------------------------ r2734 | dreibh | 2012-12-21 15:23:23 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: M /trunk/rsplib2/autogen.sh Updated autogen.sh to include fortification options for Debian/Ubuntu systems. ------------------------------------------------------------------------ r2733 | dreibh | 2012-12-21 15:17:35 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: M /trunk/rsplib2/configure.ac M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/librsplib2.symbols M /trunk/rsplib2/debian/rules M /trunk/rsplib2/rsplib/tdtypes.h Some packaging updates. ------------------------------------------------------------------------ r2732 | dreibh | 2012-12-21 13:10:42 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc Use shutdown after sending last cookie. Otherwise, it might get lost (FreeBSD kernel SCTP). ------------------------------------------------------------------------ r2731 | dreibh | 2012-12-21 13:10:11 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config Removed debug output. ------------------------------------------------------------------------ r2730 | dreibh | 2012-12-21 13:09:55 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/librsplib2.symbols Packaging updates. ------------------------------------------------------------------------ r2729 | dreibh | 2012-12-21 12:53:42 +0100 (Fri, 21 Dec 2012) | 2 lines Changed paths: A /trunk/rsplib2/debian/librsplib2.lintian-overrides Added lintian override for false positive warning. ------------------------------------------------------------------------ r2728 | dreibh | 2012-12-16 12:00:19 +0100 (Sun, 16 Dec 2012) | 4 lines Changed paths: A /trunk/rsplib2/configure.ac (from /trunk/rsplib2/configure.in:2727) D /trunk/rsplib2/configure.in Renamed configure.in to configure.ac, according to up-to-date automake standard. ------------------------------------------------------------------------ r2727 | dreibh | 2012-12-16 11:54:42 +0100 (Sun, 16 Dec 2012) | 3 lines Changed paths: M /trunk/rsplib2/configure.in Improved configure.in. ------------------------------------------------------------------------ r2726 | dreibh | 2012-11-29 20:20:33 +0100 (Thu, 29 Nov 2012) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2725 | dreibh | 2012-11-29 20:19:54 +0100 (Thu, 29 Nov 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h Added work-around for broken sctp_send() call in LK-SCTP. ------------------------------------------------------------------------ r2724 | dreibh | 2012-11-13 14:06:26 +0100 (Tue, 13 Nov 2012) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Build updates. ------------------------------------------------------------------------ r2723 | dreibh | 2012-11-13 14:05:20 +0100 (Tue, 13 Nov 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/hrestest.c Removed unused variable. ------------------------------------------------------------------------ r2722 | dreibh | 2012-10-20 23:50:43 +0200 (Sat, 20 Oct 2012) | 1 line Changed paths: M /trunk/rsplib2/make-ppa M /trunk/sctplib1/make-ppa M /trunk/socketapi/make-ppa Build script updates. ------------------------------------------------------------------------ r2721 | dreibh | 2012-08-25 21:44:54 +0200 (Sat, 25 Aug 2012) | 2 lines Changed paths: A /trunk/rsplib2/build-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf M /trunk/rsplib2/make-deb Updated build scripts. ------------------------------------------------------------------------ r2720 | dreibh | 2012-08-25 21:44:45 +0200 (Sat, 25 Aug 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser_nb_NO.qm M /trunk/rsplib2/rsplib/fractalpooluser_nb_NO.ts Some improvements for Norsk translation files of FractalPoolUser. ------------------------------------------------------------------------ r2705 | dreibh | 2012-07-20 21:53:29 +0200 (Fri, 20 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/pbuilderrc.ubuntu Updated pbuilderrc. ------------------------------------------------------------------------ r2704 | dreibh | 2012-07-20 21:30:23 +0200 (Fri, 20 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/pbuilderrc.ubuntu pbuilder script update. ------------------------------------------------------------------------ r2700 | dreibh | 2012-07-20 18:14:20 +0200 (Fri, 20 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/rsplib/Makefile.am Now using colorgcc. ------------------------------------------------------------------------ r2699 | dreibh | 2012-07-12 20:59:03 +0200 (Thu, 12 Jul 2012) | 2 lines Changed paths: D /trunk/rserpooldemo/video A /trunk/rserpooldemo-video (from /trunk/rserpooldemo/video:2698) M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Some clean-ups. ------------------------------------------------------------------------ r2698 | dreibh | 2012-07-03 23:39:50 +0200 (Tue, 03 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/fractalpooluser_nb_NO.qm A /trunk/rsplib2/rsplib/fractalpooluser_nb_NO.ts (from /trunk/rsplib2/rsplib/fractalpooluser_no_NO.ts:2697) D /trunk/rsplib2/rsplib/fractalpooluser_no_NO.ts Updated translation files. ------------------------------------------------------------------------ r2697 | dreibh | 2012-07-03 23:18:38 +0200 (Tue, 03 Jul 2012) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/fractalpooluser_no_NO.ts Oversatt FractalPoolUser strenger p?\195?\165 norsk! ------------------------------------------------------------------------ r2696 | dreibh | 2012-07-03 22:56:06 +0200 (Tue, 03 Jul 2012) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h Thread problem fixed: A QThread emits finished() when finished. After that, it sets a variable that it has actually been finished. This variable is read by isFinished(). A signal handler finished may receive FALSE when querying isFinished() therefore. Fix for FractalPoolUser: It counts number in finish() signals. When it has reached the number of threads, the calculation has terminated. ------------------------------------------------------------------------ r2695 | dreibh | 2012-07-03 22:52:56 +0200 (Tue, 03 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc Minor improvement: using const variable. ------------------------------------------------------------------------ r2692 | dreibh | 2012-07-03 19:32:54 +0200 (Tue, 03 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 M /trunk/rsplib2/rsplib/planetlab/planetlab-config Updated test script. ------------------------------------------------------------------------ r2689 | dreibh | 2012-07-03 13:40:08 +0200 (Tue, 03 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.qm Updated the .qm file. ------------------------------------------------------------------------ r2688 | dreibh | 2012-07-03 13:39:32 +0200 (Tue, 03 Jul 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.ts A small translation fix. ------------------------------------------------------------------------ r2687 | dreibh | 2012-07-02 15:52:49 +0200 (Mon, 02 Jul 2012) | 4 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-ppa M /trunk/rsplib2/pbuilderrc.ubuntu - Fixed problem in configure.in that has led to failure of sctp_connect() parameter detection. - Updated pbuilderrc to have a feature to set hook for debugging. - Updated scripts. ------------------------------------------------------------------------ r2686 | dreibh | 2012-06-12 10:04:54 +0200 (Tue, 12 Jun 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Fixed compile problem for userland SCTP. ------------------------------------------------------------------------ r2685 | dreibh | 2012-06-09 16:32:16 +0200 (Sat, 09 Jun 2012) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Updated ChangeLog from SVN. ------------------------------------------------------------------------ r2684 | dreibh | 2012-06-08 15:27:42 +0200 (Fri, 08 Jun 2012) | 2 lines Changed paths: M /trunk/rsplib2/debian/control Package description update. ------------------------------------------------------------------------ r2683 | dreibh | 2012-06-08 15:11:14 +0200 (Fri, 08 Jun 2012) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/netutilities.h D /trunk/rsplib2/rsplib/registrar-asap.c D /trunk/rsplib2/rsplib/registrar-core.c D /trunk/rsplib2/rsplib/registrar-enrp.c D /trunk/rsplib2/rsplib/registrar-global.c D /trunk/rsplib2/rsplib/registrar-misc.c D /trunk/rsplib2/rsplib/registrar-security.c D /trunk/rsplib2/rsplib/registrar-takeover.c D /trunk/rsplib2/rsplib/registrar.c D /trunk/rsplib2/rsplib/registrar.h A /trunk/rsplib2/rsplib/rspregistrar-asap.c (from /trunk/rsplib2/rsplib/registrar-asap.c:2680) A /trunk/rsplib2/rsplib/rspregistrar-core.c (from /trunk/rsplib2/rsplib/registrar-core.c:2680) A /trunk/rsplib2/rsplib/rspregistrar-enrp.c (from /trunk/rsplib2/rsplib/registrar-enrp.c:2680) A /trunk/rsplib2/rsplib/rspregistrar-global.c (from /trunk/rsplib2/rsplib/registrar-global.c:2680) A /trunk/rsplib2/rsplib/rspregistrar-misc.c (from /trunk/rsplib2/rsplib/registrar-misc.c:2680) A /trunk/rsplib2/rsplib/rspregistrar-security.c (from /trunk/rsplib2/rsplib/registrar-security.c:2680) A /trunk/rsplib2/rsplib/rspregistrar-takeover.c (from /trunk/rsplib2/rsplib/registrar-takeover.c:2680) A /trunk/rsplib2/rsplib/rspregistrar.c (from /trunk/rsplib2/rsplib/registrar.c:2682) A /trunk/rsplib2/rsplib/rspregistrar.h (from /trunk/rsplib2/rsplib/registrar.h:2680) M /trunk/rsplib2/rsplib/sockaddrunion.h Some compile fixed, caused by renaming registrar. ------------------------------------------------------------------------ r2682 | dreibh | 2012-06-08 13:29:28 +0200 (Fri, 08 Jun 2012) | 2 lines Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control A /trunk/rsplib2/debian/rsplib-legacy-wrappers.install (from /trunk/rsplib2/debian/rsplib-services.install:2680) A /trunk/rsplib2/debian/rsplib-legacy-wrappers.manpages (from /trunk/rsplib2/debian/rsplib-tools.manpages:2680) M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian/rsplib-registrar.install M /trunk/rsplib2/debian/rsplib-registrar.manpages M /trunk/rsplib2/debian/rsplib-tools.install M /trunk/rsplib2/debian/rsplib-tools.manpages M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/pbuilderrc.debian M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/calcappclient.1 M /trunk/rsplib2/rsplib/cspmonitor.1 M /trunk/rsplib2/rsplib/fractalpooluser.1 M /trunk/rsplib2/rsplib/hsdump.1 M /trunk/rsplib2/rsplib/pingpongclient.1 A /trunk/rsplib2/rsplib/registrar R /trunk/rsplib2/rsplib/registrar.1 (from /trunk/rsplib2/rsplib/server.1:2680) R /trunk/rsplib2/rsplib/registrar.c A /trunk/rsplib2/rsplib/rspregistrar.1 (from /trunk/rsplib2/rsplib/registrar.1:2680) A /trunk/rsplib2/rsplib/rspserver.1 (from /trunk/rsplib2/rsplib/server.1:2680) A /trunk/rsplib2/rsplib/rspserver.cc (from /trunk/rsplib2/rsplib/server.cc:2680) A /trunk/rsplib2/rsplib/rspterminal.1 (from /trunk/rsplib2/rsplib/terminal.1:2680) A /trunk/rsplib2/rsplib/rspterminal.c (from /trunk/rsplib2/rsplib/terminal.c:2680) M /trunk/rsplib2/rsplib/scriptingclient.1 M /trunk/rsplib2/rsplib/scriptingcontrol.1 M /trunk/rsplib2/rsplib/scriptingserviceexample.1 A /trunk/rsplib2/rsplib/server R /trunk/rsplib2/rsplib/server.1 D /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/storage/ss.init A /trunk/rsplib2/rsplib/terminal R /trunk/rsplib2/rsplib/terminal.1 (from /trunk/rsplib2/rsplib/server.1:2680) D /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib.lsm The first release candidate for rsplib-3.0.0. ------------------------------------------------------------------------ r2681 | dreibh | 2012-05-30 11:08:12 +0200 (Wed, 30 May 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config Package list update for Fedora install. ------------------------------------------------------------------------ r2680 | dreibh | 2012-05-16 13:01:54 +0200 (Wed, 16 May 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config Package list update. ------------------------------------------------------------------------ r2677 | dreibh | 2012-05-07 16:04:52 +0200 (Mon, 07 May 2012) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config Added lksctp package to PlanetLab package list. ------------------------------------------------------------------------ r2676 | dreibh | 2012-05-07 16:04:02 +0200 (Mon, 07 May 2012) | 2 lines Changed paths: M /trunk/rsplib2/acinclude.m4 Updated acinclude.m4 to work under Fedora Core 14. ------------------------------------------------------------------------ r2654 | dreibh | 2011-12-22 08:51:45 +0100 (Thu, 22 Dec 2011) | 2 lines Changed paths: M /trunk/rsplib2/UpdateDoc1.sed M /trunk/sctplib1/UpdateDoc1.sed M /trunk/sctplib1/configure.in M /trunk/sctplib1/debian/changelog M /trunk/socketapi/UpdateDoc1.sed M /trunk/socketapi/configure.in M /trunk/socketapi/debian/changelog Minor updates. ------------------------------------------------------------------------ r2641 | dreibh | 2011-12-14 14:55:47 +0100 (Wed, 14 Dec 2011) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/sctplib/configure.in M /trunk/socketapi/configure.in Fixed detection code for sa_len, sin_len and sin6_len. ------------------------------------------------------------------------ r2613 | dreibh | 2011-11-30 14:48:09 +0100 (Wed, 30 Nov 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog Synchronised debian/changelog with version of Ubuntu Precise. ------------------------------------------------------------------------ r2612 | dreibh | 2011-11-29 09:48:22 +0100 (Tue, 29 Nov 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog Fixed debian/changelog. ------------------------------------------------------------------------ r2609 | dreibh | 2011-11-23 08:55:54 +0100 (Wed, 23 Nov 2011) | 2 lines Changed paths: D /trunk/rsplib2/rsplib/wireshark/packet-asap.c D /trunk/rsplib2/rsplib/wireshark/packet-calcappprotocol.c D /trunk/rsplib2/rsplib/wireshark/packet-componentstatus.c D /trunk/rsplib2/rsplib/wireshark/packet-enrp.c D /trunk/rsplib2/rsplib/wireshark/packet-fractalgeneratorprotocol.c D /trunk/rsplib2/rsplib/wireshark/packet-pingpongprotocol.c D /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c Removed obsolete dissector sources (they are in Wireshark itself now). ------------------------------------------------------------------------ r2608 | dreibh | 2011-11-23 08:52:38 +0100 (Wed, 23 Nov 2011) | 2 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/README M /trunk/rsplib2/UpdateDoc1.sed M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/clean-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/deb-install M /trunk/rsplib2/deb-uninstall M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian/rsplib-registrar.manpages M /trunk/rsplib2/debian/rsplib-services.manpages M /trunk/rsplib2/debian/rsplib-tools.manpages M /trunk/rsplib2/debian.conf M /trunk/rsplib2/docs/Makefile.am M /trunk/rsplib2/freebsd/rsplib/make-diff M /trunk/rsplib2/freebsd/rsplib/test-packaging M /trunk/rsplib2/make-deb M /trunk/rsplib2/make-symbols M /trunk/rsplib2/replace-cpp-symbols M /trunk/rsplib2/rsplib/add-dummy-interface M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h D /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c D /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/debug.helgrind M /trunk/rsplib2/rsplib/debug.memcheck M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/environmentcache.cc M /trunk/rsplib2/rsplib/environmentcache.h M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am M /trunk/rsplib2/rsplib/fgpconfig/renumber-files M /trunk/rsplib2/rsplib/fgpconfig/update-iterations M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h D /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hrestest.c D /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/make-rootshell M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h D /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/planetlab/ComponentControl.config M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/attack-scenario4 M /trunk/rsplib2/rsplib/planetlab/combine-disaster-scenario1-results M /trunk/rsplib2/rsplib/planetlab/combine-vectors M /trunk/rsplib2/rsplib/planetlab/comon-host-selector M /trunk/rsplib2/rsplib/planetlab/comon-print-address M /trunk/rsplib2/rsplib/planetlab/comon-query M /trunk/rsplib2/rsplib/planetlab/compile-and-install M /trunk/rsplib2/rsplib/planetlab/create-binaries M /trunk/rsplib2/rsplib/planetlab/create-hosts-files M /trunk/rsplib2/rsplib/planetlab/do-clearall M /trunk/rsplib2/rsplib/planetlab/do-killall M /trunk/rsplib2/rsplib/planetlab/filter-hosts M /trunk/rsplib2/rsplib/planetlab/fractal-scenario1 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 M /trunk/rsplib2/rsplib/planetlab/get M /trunk/rsplib2/rsplib/planetlab/get-coredumps M /trunk/rsplib2/rsplib/planetlab/get-results M /trunk/rsplib2/rsplib/planetlab/go M /trunk/rsplib2/rsplib/planetlab/install-binaries M /trunk/rsplib2/rsplib/planetlab/install-sctp M /trunk/rsplib2/rsplib/planetlab/perftest M /trunk/rsplib2/rsplib/planetlab/perftest-version2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/plotter.R M /trunk/rsplib2/rsplib/planetlab/prepare-compilehost M /trunk/rsplib2/rsplib/planetlab/put M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario2 M /trunk/rsplib2/rsplib/planetlab/servicecontrol M /trunk/rsplib2/rsplib/planetlab/ssh-tool M /trunk/rsplib2/rsplib/planetlab/start-process M /trunk/rsplib2/rsplib/planetlab/stop-process M /trunk/rsplib2/rsplib/planetlab/stop-processes M /trunk/rsplib2/rsplib/planetlab/test-hosts M /trunk/rsplib2/rsplib/planetlab/three-regions-scenario M /trunk/rsplib2/rsplib/planetlab/tos-scenario1 M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/pooluserlist-template.h M /trunk/rsplib2/rsplib/pooluserlist-template_impl.h M /trunk/rsplib2/rsplib/poolusernode-template.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h M /trunk/rsplib2/rsplib/povray/povray-distribute M /trunk/rsplib2/rsplib/povray/run-povray-for-files M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-misc.c M /trunk/rsplib2/rsplib/registrar-security.c M /trunk/rsplib2/rsplib/registrar-takeover.c D /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/reniceall M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-csp.h M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c D /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol D /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample D /trunk/rsplib2/rsplib/scriptingserviceexample.8 D /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/sha1.c M /trunk/rsplib2/rsplib/sha1.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/storage/ss-installer M /trunk/rsplib2/rsplib/storage/ss-registrar.init M /trunk/rsplib2/rsplib/storage/ss.init M /trunk/rsplib2/rsplib/storage/ssclient.c M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h D /trunk/rsplib2/rsplib/terminal.8 M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timestamphashtable.c M /trunk/rsplib2/rsplib/timestamphashtable.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h M /trunk/rsplib2/rsplib/wireshark/Makefile.am M /trunk/rsplib2/rsplib/wireshark/packet-asap.c M /trunk/rsplib2/rsplib/wireshark/packet-calcappprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-componentstatus.c M /trunk/rsplib2/rsplib/wireshark/packet-enrp.c M /trunk/rsplib2/rsplib/wireshark/packet-fractalgeneratorprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-pingpongprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c Packaging updates. ------------------------------------------------------------------------ r2607 | dreibh | 2011-11-23 08:50:13 +0100 (Wed, 23 Nov 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/calcappclient.1 (from /trunk/rsplib2/rsplib/calcappclient.8:2606) A /trunk/rsplib2/rsplib/cspmonitor.1 (from /trunk/rsplib2/rsplib/cspmonitor.8:2606) A /trunk/rsplib2/rsplib/fractalpooluser.1 (from /trunk/rsplib2/rsplib/fractalpooluser.8:2606) A /trunk/rsplib2/rsplib/hsdump.1 (from /trunk/rsplib2/rsplib/hsdump.8:2606) A /trunk/rsplib2/rsplib/pingpongclient.1 (from /trunk/rsplib2/rsplib/pingpongclient.8:2606) A /trunk/rsplib2/rsplib/registrar.1 (from /trunk/rsplib2/rsplib/registrar.8:2606) A /trunk/rsplib2/rsplib/scriptingclient.1 (from /trunk/rsplib2/rsplib/scriptingclient.8:2606) A /trunk/rsplib2/rsplib/scriptingcontrol.1 (from /trunk/rsplib2/rsplib/scriptingcontrol.8:2606) A /trunk/rsplib2/rsplib/scriptingserviceexample.1 (from /trunk/rsplib2/rsplib/scriptingserviceexample.8:2606) A /trunk/rsplib2/rsplib/server.1 (from /trunk/rsplib2/rsplib/server.8:2606) A /trunk/rsplib2/rsplib/terminal.1 (from /trunk/rsplib2/rsplib/terminal.8:2606) Changed manpage category from 8 to 1. ------------------------------------------------------------------------ r2606 | dreibh | 2011-11-21 07:25:51 +0100 (Mon, 21 Nov 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r2605 | dreibh | 2011-11-21 07:25:26 +0100 (Mon, 21 Nov 2011) | 3 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/distinfo Updated checksums. ------------------------------------------------------------------------ r2604 | dreibh | 2011-11-18 19:49:19 +0100 (Fri, 18 Nov 2011) | 3 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/Makefile M /trunk/rsplib2/freebsd/rsplib/distinfo Updated FreeBSD packaging files. ------------------------------------------------------------------------ r2603 | dreibh | 2011-11-18 18:14:18 +0100 (Fri, 18 Nov 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib.lsm Version update. ------------------------------------------------------------------------ r2602 | dreibh | 2011-10-28 18:38:31 +0200 (Fri, 28 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/dfilters Updated filter rules example. ------------------------------------------------------------------------ r2601 | dreibh | 2011-10-28 15:31:42 +0200 (Fri, 28 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Fixed info string handling problem introduced by yesterday's update. ------------------------------------------------------------------------ r2600 | dreibh | 2011-10-27 16:40:22 +0200 (Thu, 27 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Packaging script updates. ------------------------------------------------------------------------ r2599 | dreibh | 2011-10-27 16:20:27 +0200 (Thu, 27 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/rules Added debug package to debian/control. ------------------------------------------------------------------------ r2598 | dreibh | 2011-10-27 16:19:15 +0200 (Thu, 27 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/sessioncontrol.c Fixed typo in comment. ------------------------------------------------------------------------ r2597 | dreibh | 2011-10-27 16:11:02 +0200 (Thu, 27 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/sessioncontrol.c Removed unused variable. ------------------------------------------------------------------------ r2596 | dreibh | 2011-10-27 16:08:44 +0200 (Thu, 27 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc Fixed thread synchronisation problem (not really critical). ------------------------------------------------------------------------ r2595 | dreibh | 2011-10-27 16:00:10 +0200 (Thu, 27 Oct 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc Fixed buffer size problem occurring with new versions of gcc. ------------------------------------------------------------------------ r2594 | dreibh | 2011-10-20 17:27:32 +0200 (Thu, 20 Oct 2011) | 3 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rules M /trunk/rsplib2/make-ppa M /trunk/rsplib2/pbuilderrc.ubuntu - Updated packaging scripts for Ubuntu 12.04 Precise Pangolin. - Fixed non-empty-dependency_libs-in-la-file lintian error. ------------------------------------------------------------------------ r2593 | dreibh | 2011-08-27 13:19:49 +0200 (Sat, 27 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf M /trunk/rsplib2/rsplib.lsm Version update. ------------------------------------------------------------------------ r2592 | dreibh | 2011-08-26 14:33:29 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Do not pring server selection trials in quiet mode. ------------------------------------------------------------------------ r2591 | dreibh | 2011-08-26 14:30:28 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c Fix for location string generation. ------------------------------------------------------------------------ r2590 | dreibh | 2011-08-26 14:11:53 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c CSP status improvement. ------------------------------------------------------------------------ r2589 | dreibh | 2011-08-26 13:21:10 +0200 (Fri, 26 Aug 2011) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c tuneSCTP(): FreeBSD requires address family setting for SCTP_PEER_ADDR_PARAMS. Trying AF_INET6 first, then AF_INET. ------------------------------------------------------------------------ r2588 | dreibh | 2011-08-26 12:25:22 +0200 (Fri, 26 Aug 2011) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/rspenhancedmode.c Some improvements for generating CSP location string. ------------------------------------------------------------------------ r2587 | dreibh | 2011-08-26 09:59:38 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/standardservices.cc Removed unused variables -> got rid of compiler warnings. ------------------------------------------------------------------------ r2586 | dreibh | 2011-08-26 09:50:11 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian.conf A /trunk/rsplib2/filter-empty-entries M /trunk/rsplib2/make-deb Improved build scripts. ------------------------------------------------------------------------ r2585 | dreibh | 2011-08-26 09:50:04 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/environmentcache.cc M /trunk/rsplib2/rsplib/scriptingservice.cc Also using TMPDIR to configure storage place for temporary environment files. ------------------------------------------------------------------------ r2584 | dreibh | 2011-08-26 09:42:21 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc Scripting Service PE: use TMPDIR environment variable to configure temporary directory storage place. ------------------------------------------------------------------------ r2583 | dreibh | 2011-08-26 08:56:16 +0200 (Fri, 26 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc Changed PPIDs to IANA-assigned ones. ------------------------------------------------------------------------ r2582 | dreibh | 2011-08-25 17:12:27 +0200 (Thu, 25 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/rsplib.lsm Updated packaging files. ------------------------------------------------------------------------ r2581 | dreibh | 2011-08-25 17:06:14 +0200 (Thu, 25 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2580 | dreibh | 2011-08-25 16:59:05 +0200 (Thu, 25 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 Scenario improvement. ------------------------------------------------------------------------ r2579 | dreibh | 2011-08-25 16:58:47 +0200 (Thu, 25 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Output fix. ------------------------------------------------------------------------ r2578 | dreibh | 2011-08-25 16:16:22 +0200 (Thu, 25 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2577 | dreibh | 2011-08-25 16:05:02 +0200 (Thu, 25 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Changed default look of cspmonitor to more useful settings. ------------------------------------------------------------------------ r2576 | dreibh | 2011-08-25 15:54:40 +0200 (Thu, 25 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/acinclude.m4 Improved Qt library path detection. ------------------------------------------------------------------------ r2575 | dreibh | 2011-08-16 13:09:45 +0200 (Tue, 16 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Support for CSPF_FINAL flag in cspmonitor. ------------------------------------------------------------------------ r2574 | dreibh | 2011-08-16 12:48:46 +0200 (Tue, 16 Aug 2011) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c Send final CSP Report when component shuts down. Added flag CSPF_FINAL. ------------------------------------------------------------------------ r2573 | dreibh | 2011-08-16 12:38:09 +0200 (Tue, 16 Aug 2011) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c Small output improvement. ------------------------------------------------------------------------ r2572 | dreibh | 2011-08-10 10:28:41 +0200 (Wed, 10 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Some further output improvements to make status in CSPMonitor easier readable. ------------------------------------------------------------------------ r2571 | dreibh | 2011-08-10 10:06:07 +0200 (Wed, 10 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Added missing "struct" to compile with ANSI-C. ------------------------------------------------------------------------ r2570 | dreibh | 2011-08-09 19:22:25 +0200 (Tue, 09 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2568 | dreibh | 2011-08-09 17:43:34 +0200 (Tue, 09 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Removed newlines at the wrong place. ------------------------------------------------------------------------ r2567 | dreibh | 2011-08-09 17:39:53 +0200 (Tue, 09 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c And another CSPMonitor output improvement. ------------------------------------------------------------------------ r2566 | dreibh | 2011-08-09 17:09:42 +0200 (Tue, 09 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Added missing newlines. ------------------------------------------------------------------------ r2565 | dreibh | 2011-08-09 17:07:18 +0200 (Tue, 09 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Another small output improvement for CSPMonitor. ------------------------------------------------------------------------ r2564 | dreibh | 2011-08-09 16:35:14 +0200 (Tue, 09 Aug 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/cspmonitor.c Added some output options to CSPMonitor. ------------------------------------------------------------------------ r2562 | dreibh | 2011-07-23 23:47:27 +0200 (Sat, 23 Jul 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Call sendshutdown() on rsp_close(), in order to ensure that socket is cleanly shut down. ------------------------------------------------------------------------ r2561 | dreibh | 2011-07-23 23:46:36 +0200 (Sat, 23 Jul 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Do not print error message when poll has been interrupted by signal (EINTR). ------------------------------------------------------------------------ r2560 | dreibh | 2011-07-18 15:21:59 +0200 (Mon, 18 Jul 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Improved handling of output interval. ------------------------------------------------------------------------ r2559 | dreibh | 2011-07-03 12:05:23 +0200 (Sun, 03 Jul 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c A small output improvement for cspmonitor. ------------------------------------------------------------------------ r2558 | dreibh | 2011-06-27 13:56:47 +0200 (Mon, 27 Jun 2011) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Bugfix in cspmonitor: Location is part of the sorting key for the display storage => node must be re-inserted on every change. Otherwise, the tree may become invalid => endless loop. ------------------------------------------------------------------------ r2557 | dreibh | 2011-06-01 10:24:50 +0200 (Wed, 01 Jun 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2556 | dreibh | 2011-06-01 08:02:36 +0200 (Wed, 01 Jun 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config Updated config. ------------------------------------------------------------------------ r2554 | dreibh | 2011-05-27 16:15:16 +0200 (Fri, 27 May 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Output is now sorted by location string => much better overview of large pool. ------------------------------------------------------------------------ r2553 | dreibh | 2011-05-27 15:47:10 +0200 (Fri, 27 May 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Output improvement. ------------------------------------------------------------------------ r2552 | dreibh | 2011-05-06 20:05:34 +0200 (Fri, 06 May 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/pbuilderrc.ubuntu M /trunk/rsplib2/rsplib.lsm Version update. ------------------------------------------------------------------------ r2550 | dreibh | 2011-05-05 17:17:48 +0200 (Thu, 05 May 2011) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/povray/landscape.pov M /trunk/rsplib2/rsplib/povray/povray-distribute Updated povray example script, added example input file. ------------------------------------------------------------------------ r2548 | dreibh | 2011-05-04 07:57:27 +0200 (Wed, 04 May 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-ppa M /trunk/sctplib1/make-ppa M /trunk/socketapi/make-ppa M /trunk/socketapi/replace-cpp-symbols Scripts updates. ------------------------------------------------------------------------ r2545 | dreibh | 2011-03-02 10:50:16 +0100 (Wed, 02 Mar 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Packaging update. ------------------------------------------------------------------------ r2544 | dreibh | 2011-02-26 12:34:59 +0100 (Sat, 26 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c String handling fix. ------------------------------------------------------------------------ r2543 | dreibh | 2011-02-26 12:33:15 +0100 (Sat, 26 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Some more cspmonitor text output improvements. ------------------------------------------------------------------------ r2542 | dreibh | 2011-02-25 10:50:50 +0100 (Fri, 25 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Dependency fix in Makefile.am. ------------------------------------------------------------------------ r2541 | dreibh | 2011-02-25 10:16:36 +0100 (Fri, 25 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Printing improvement for cspmonitor. ------------------------------------------------------------------------ r2540 | dreibh | 2011-02-25 10:16:20 +0100 (Fri, 25 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c Fixed bug for compiling with ANSI-C compiler. ------------------------------------------------------------------------ r2539 | dreibh | 2011-02-25 10:11:09 +0100 (Fri, 25 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/cspmonitor.c CSP monitor now displays component uptimes. ------------------------------------------------------------------------ r2538 | dreibh | 2011-02-25 09:19:32 +0100 (Fri, 25 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Using abbreviation for component type now in order to get more compact representation. ------------------------------------------------------------------------ r2537 | dreibh | 2011-02-25 08:50:48 +0100 (Fri, 25 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c cspmonitor output improvements. ------------------------------------------------------------------------ r2536 | dreibh | 2011-02-25 08:13:27 +0100 (Fri, 25 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Improved readability of cspmonitor output. ------------------------------------------------------------------------ r2535 | dreibh | 2011-02-24 19:19:51 +0100 (Thu, 24 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c Added hostname to CSP location to make node identification easier. ------------------------------------------------------------------------ r2534 | dreibh | 2011-02-24 19:07:26 +0100 (Thu, 24 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config Added automatic detection of rsplib version from debian/changelog to planetlab-config => no more need to update version manually. ------------------------------------------------------------------------ r2533 | dreibh | 2011-02-24 18:58:55 +0100 (Thu, 24 Feb 2011) | 4 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c CSP reporter improvement: - Only report site-local scoped addresses when there are no global ones. - Convert IPv4-mapped IPv6 addresses to IPv4 addresses. ------------------------------------------------------------------------ r2532 | dreibh | 2011-02-24 18:57:39 +0100 (Thu, 24 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c getScope() can now detect IPv4 link-local addresses (169.254.0.0/16) as defined in [RFC 3927]. ------------------------------------------------------------------------ r2531 | dreibh | 2011-02-20 14:25:02 +0100 (Sun, 20 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols M /trunk/rsplib2/debian/librsplib2.symbols Reverted symbols file change. ------------------------------------------------------------------------ r2530 | dreibh | 2011-02-20 12:57:23 +0100 (Sun, 20 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols M /trunk/rsplib2/debian/librsplib2.symbols Updated symbols files. ------------------------------------------------------------------------ r2529 | dreibh | 2011-02-19 22:34:43 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/Makefile M /trunk/rsplib2/freebsd/rsplib/distinfo Updated FreeBSD packaging. ------------------------------------------------------------------------ r2528 | dreibh | 2011-02-19 22:33:49 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog Updated Ubuntu packaging. ------------------------------------------------------------------------ r2527 | dreibh | 2011-02-19 22:10:32 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r2526 | dreibh | 2011-02-19 22:09:40 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog Updated ChangeLog. ------------------------------------------------------------------------ r2525 | dreibh | 2011-02-19 22:09:08 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2524 | dreibh | 2011-02-19 11:16:30 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog Updated ChangeLog from SVN. ------------------------------------------------------------------------ r2523 | dreibh | 2011-02-19 11:14:42 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r2522 | dreibh | 2011-02-19 11:07:13 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Bugfix: fixed wrong unit output in status print for scriptingclient. MaxRetries are trials, not milliseconds. ------------------------------------------------------------------------ r2521 | dreibh | 2011-02-19 11:06:27 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c String indentation fix for cspmonitor. ------------------------------------------------------------------------ r2520 | dreibh | 2011-02-19 11:05:52 +0100 (Sat, 19 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/tcplikeserver.cc Bugfix: Fixed pipe handling in ASAPInstance and TCPLikeServer. The bug may have caused the lack of a load state update when using an adaptive pool policy. ------------------------------------------------------------------------ r2519 | dreibh | 2011-02-18 20:25:44 +0100 (Fri, 18 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/tcplikeserver.cc Bugfix: reverted change to pipe handling and fixed compiler warnings. ------------------------------------------------------------------------ r2518 | dreibh | 2011-02-17 15:09:01 +0100 (Thu, 17 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/make-diff Updated make-diff script. ------------------------------------------------------------------------ r2517 | dreibh | 2011-02-17 09:49:01 +0100 (Thu, 17 Feb 2011) | 2 lines Changed paths: D /trunk/rsplib2/UpdateDocFile1.sh A /trunk/rsplib2/UpdateDocFiles (from /trunk/rsplib2/UpdateDocFile1.sh:2516) Updated SED script. ------------------------------------------------------------------------ r2516 | dreibh | 2011-02-15 16:23:18 +0100 (Tue, 15 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/UpdateDocFile1.sh Added SED script. ------------------------------------------------------------------------ r2515 | dreibh | 2011-02-12 19:53:34 +0100 (Sat, 12 Feb 2011) | 4 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols Replaced (c++|regex) by (regex) patterns suggested by Felix Geyer. #25 of https://bugs.launchpad.net/ubuntu/+source/rsplib/+bug/696512 ------------------------------------------------------------------------ r2512 | dreibh | 2011-02-11 23:10:16 +0100 (Fri, 11 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-deb Updated make-deb: keep symbols files for Maverick and Natty PPA uploads. ------------------------------------------------------------------------ r2511 | dreibh | 2011-02-11 22:19:46 +0100 (Fri, 11 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols M /trunk/rsplib2/make-symbols A /trunk/rsplib2/replace-cpp-symbols Symbols file handling finally got right, hopefully ... ------------------------------------------------------------------------ r2510 | dreibh | 2011-02-11 16:13:08 +0100 (Fri, 11 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols Using 32-bit symbols file for testing purposes. ------------------------------------------------------------------------ r2509 | dreibh | 2011-02-11 14:06:16 +0100 (Fri, 11 Feb 2011) | 2 lines Changed paths: A /trunk/rsplib2/freebsd/rsplib/make-diff (from /trunk/rsplib2/freebsd/rsplib/test-packaging:2508) M /trunk/rsplib2/freebsd/rsplib/test-packaging Updated packaging scripts. ------------------------------------------------------------------------ r2508 | dreibh | 2011-02-11 13:55:00 +0100 (Fri, 11 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/test-packaging Updated FreeBSD packaging test scrip. ------------------------------------------------------------------------ r2507 | dreibh | 2011-02-11 13:09:07 +0100 (Fri, 11 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols M /trunk/rsplib2/debian/librsplib2.symbols M /trunk/rsplib2/make-symbols Reverted symbols file change. ------------------------------------------------------------------------ r2506 | dreibh | 2011-02-10 15:11:52 +0100 (Thu, 10 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/Makefile M /trunk/rsplib2/freebsd/rsplib/test-packaging Updated FreeBSD packaging files. ------------------------------------------------------------------------ r2505 | dreibh | 2011-02-09 18:10:12 +0100 (Wed, 09 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/Makefile M /trunk/rsplib2/freebsd/rsplib/distinfo Updated FreeBSD packaging files. ------------------------------------------------------------------------ r2504 | dreibh | 2011-02-08 13:34:58 +0100 (Tue, 08 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols M /trunk/rsplib2/debian/librsplib2.symbols M /trunk/rsplib2/make-symbols Updated symbols files. ------------------------------------------------------------------------ r2503 | dreibh | 2011-02-08 12:59:31 +0100 (Tue, 08 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-symbols Updated changelog and make-symbols script. ------------------------------------------------------------------------ r2491 | dreibh | 2011-02-02 15:18:35 +0100 (Wed, 02 Feb 2011) | 1 line Changed paths: M /trunk/rsplib2/make-deb make-deb update. ------------------------------------------------------------------------ r2490 | dreibh | 2011-02-02 14:58:50 +0100 (Wed, 02 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-deb Fixed Debian problem in make-deb script. ------------------------------------------------------------------------ r2488 | dreibh | 2011-02-02 12:36:54 +0100 (Wed, 02 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog Updated ChangeLog. ------------------------------------------------------------------------ r2487 | dreibh | 2011-02-02 12:36:38 +0100 (Wed, 02 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/libcpprspserver2.symbols M /trunk/rsplib2/debian/librsplib2.symbols Updated symbols files. ------------------------------------------------------------------------ r2486 | dreibh | 2011-02-02 10:40:56 +0100 (Wed, 02 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog Updated ChangeLog. ------------------------------------------------------------------------ r2485 | dreibh | 2011-02-02 10:39:55 +0100 (Wed, 02 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2483 | dreibh | 2011-02-02 09:32:50 +0100 (Wed, 02 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/libcpprspserver2.symbols M /trunk/rsplib2/debian/librsplib2.symbols M /trunk/rsplib2/pbuilderrc.ubuntu M /trunk/rsplib2/ppid-registrations-for-rsplib.txt M /trunk/rsplib2/rsplib.lsm Updated symbols files, LSM entry and PPID registration text. ------------------------------------------------------------------------ r2482 | dreibh | 2011-02-01 16:32:17 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog Updated ChangeLog. ------------------------------------------------------------------------ r2481 | dreibh | 2011-02-01 16:31:20 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2480 | dreibh | 2011-02-01 16:16:49 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc Removed check for PPID in scripting service, since it is unnecessary. ------------------------------------------------------------------------ r2476 | dreibh | 2011-02-01 15:23:24 +0100 (Tue, 01 Feb 2011) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-deb M /trunk/rsplib2/make-symbols Packaging update. ------------------------------------------------------------------------ r2468 | dreibh | 2011-02-01 09:37:06 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-deb Symbols file handling fix. ------------------------------------------------------------------------ r2467 | dreibh | 2011-02-01 08:27:02 +0100 (Tue, 01 Feb 2011) | 1 line Changed paths: M /trunk/rsplib2/make-deb Updated make-deb script. ------------------------------------------------------------------------ r2466 | dreibh | 2011-02-01 08:25:46 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/rsplib/planetlab/planetlab-config Updated ChangeLog. ------------------------------------------------------------------------ r2465 | dreibh | 2011-02-01 08:24:52 +0100 (Tue, 01 Feb 2011) | 1 line Changed paths: M /trunk/rsplib2/make-deb Updated make-deb script. ------------------------------------------------------------------------ r2464 | dreibh | 2011-02-01 08:24:27 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/configure.in Improved Qt handling in autoconf/automake scripts: dropped unnecessary library dependencies. ------------------------------------------------------------------------ r2463 | dreibh | 2011-02-01 08:23:44 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: A /trunk/rsplib2/make-symbols Added script to create Debian symbol files. ------------------------------------------------------------------------ r2462 | dreibh | 2011-02-01 08:22:59 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingcontrol.8 Fixed spelling error in manpage. ------------------------------------------------------------------------ r2461 | dreibh | 2011-02-01 08:22:15 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control A /trunk/rsplib2/debian/libcpprspserver2.symbols A /trunk/rsplib2/debian/librsplib2.symbols Updated Debian packaging files. ------------------------------------------------------------------------ r2460 | dreibh | 2011-02-01 08:21:55 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc Fixed compiler warning by fixing possible problem with notification handling. ------------------------------------------------------------------------ r2459 | dreibh | 2011-02-01 08:20:56 +0100 (Tue, 01 Feb 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/rsputilities.c Fixed calls to exit() in rsplib. ------------------------------------------------------------------------ r2458 | dreibh | 2011-01-31 21:46:24 +0100 (Mon, 31 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Packaging script fix. ------------------------------------------------------------------------ r2457 | dreibh | 2011-01-31 21:37:32 +0100 (Mon, 31 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-deb Updated make-deb script. ------------------------------------------------------------------------ r2456 | dreibh | 2011-01-31 21:36:36 +0100 (Mon, 31 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control D /trunk/rsplib2/debian/librsplib2.docs A /trunk/rsplib2/debian/rsplib-docs.doc-base A /trunk/rsplib2/debian/rsplib-docs.docs (from /trunk/rsplib2/debian/librsplib2.docs:2453) Updated packaging file. Added documentation package. ------------------------------------------------------------------------ r2455 | dreibh | 2011-01-31 20:18:07 +0100 (Mon, 31 Jan 2011) | 4 lines Changed paths: M /trunk/rsplib2/make-deb Updated packaging script: - Using better distribution-specific package naming. - Echo call for lintian on pbuilder-generated output. ------------------------------------------------------------------------ r2454 | dreibh | 2011-01-31 19:29:31 +0100 (Mon, 31 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/libcpprspserver-dev.install M /trunk/rsplib2/debian/librsplib-dev.install M /trunk/rsplib2/debian/rsplib-services.install M /trunk/rsplib2/debian/rsplib-tools.install Updated Debian files. ------------------------------------------------------------------------ r2453 | dreibh | 2011-01-28 11:22:16 +0100 (Fri, 28 Jan 2011) | 2 lines Changed paths: A /trunk/rsplib2/ppid-registrations-for-rsplib.txt (from /trunk/rsplib2/rsplib-ppid-registration.txt:2452) D /trunk/rsplib2/rsplib-ppid-registration.txt Gave PPID registration descriptions a more meaningful file name. ------------------------------------------------------------------------ r2452 | dreibh | 2011-01-28 10:46:26 +0100 (Fri, 28 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/rsplib-registrar.init Header update. ------------------------------------------------------------------------ r2451 | dreibh | 2011-01-28 10:28:40 +0100 (Fri, 28 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/compat Updated Debian files, according to LP #696512. ------------------------------------------------------------------------ r2450 | dreibh | 2011-01-28 09:42:38 +0100 (Fri, 28 Jan 2011) | 2 lines Changed paths: A /trunk/rsplib2/rsplib-ppid-registration.txt Added draft of PPID registration text. ------------------------------------------------------------------------ r2449 | dreibh | 2011-01-25 19:12:47 +0100 (Tue, 25 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-deb Extended make-deb to generate diff between original upstream (rsplib-*.orig) and build version (rsplib-*) for Ubuntu review. ------------------------------------------------------------------------ r2448 | dreibh | 2011-01-25 17:49:43 +0100 (Tue, 25 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r2447 | dreibh | 2011-01-25 17:31:37 +0100 (Tue, 25 Jan 2011) | 3 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog - Updated ChangLog. - Version update. ------------------------------------------------------------------------ r2441 | dreibh | 2011-01-22 15:09:51 +0100 (Sat, 22 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2436 | dreibh | 2011-01-22 15:06:08 +0100 (Sat, 22 Jan 2011) | 1 line Changed paths: M /trunk/rsplib2/make-deb Fixed make-deb problems. ------------------------------------------------------------------------ r2435 | dreibh | 2011-01-22 15:05:41 +0100 (Sat, 22 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/environmentcache.cc Bugfix. ------------------------------------------------------------------------ r2434 | dreibh | 2011-01-22 14:54:09 +0100 (Sat, 22 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-deb Fixed problem with packaging sub-versions in make-deb. ------------------------------------------------------------------------ r2433 | dreibh | 2011-01-22 12:59:10 +0100 (Sat, 22 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 Updated demo script. ------------------------------------------------------------------------ r2432 | dreibh | 2011-01-22 11:40:06 +0100 (Sat, 22 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-deb M /trunk/rsplib2/make-ppa M /trunk/rsplib2/rsplib/planetlab/planetlab-config Versioning update. ------------------------------------------------------------------------ r2430 | dreibh | 2011-01-22 10:44:12 +0100 (Sat, 22 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/environmentcache.cc M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/tcplikeserver.cc Fixed some compiler warnings with latest gcc. ------------------------------------------------------------------------ r2427 | dreibh | 2011-01-22 00:40:38 +0100 (Sat, 22 Jan 2011) | 1 line Changed paths: M /trunk/rsplib2/clean-deb M /trunk/rsplib2/debian/changelog Updated clean-deb. ------------------------------------------------------------------------ r2421 | dreibh | 2011-01-22 00:06:05 +0100 (Sat, 22 Jan 2011) | 1 line Changed paths: M /trunk/rsplib2/make-deb Fix for building unstable/default distribution packages. ------------------------------------------------------------------------ r2418 | dreibh | 2011-01-21 22:46:11 +0100 (Fri, 21 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-ppa Updated make-ppa for rsplib. ------------------------------------------------------------------------ r2416 | dreibh | 2011-01-21 22:26:25 +0100 (Fri, 21 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog ChangeLog update. ------------------------------------------------------------------------ r2415 | dreibh | 2011-01-21 21:55:32 +0100 (Fri, 21 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/clean-deb M /trunk/rsplib2/debian/changelog A /trunk/rsplib2/debian/source A /trunk/rsplib2/debian/source/format M /trunk/rsplib2/debian.conf M /trunk/rsplib2/make-deb Made Debian packaging compatible to format "3.0 (quilt)". ------------------------------------------------------------------------ r2414 | dreibh | 2011-01-21 19:57:57 +0100 (Fri, 21 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/control Re-added depends, according to dh7 examples. ------------------------------------------------------------------------ r2413 | dreibh | 2011-01-21 19:34:48 +0100 (Fri, 21 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control A /trunk/rsplib2/debian/librsplib2.docs (from /trunk/rsplib2/debian/rsplib-doc.docs:2410) D /trunk/rsplib2/debian/rsplib-doc.docs D /trunk/rsplib2/debian/rsplib-doc.install M /trunk/rsplib2/debian/rules Made Debian scripts dh7 compliant. ------------------------------------------------------------------------ r2412 | dreibh | 2011-01-21 19:15:23 +0100 (Fri, 21 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config Updated PlanetLab config. ------------------------------------------------------------------------ r2411 | dreibh | 2011-01-21 19:14:58 +0100 (Fri, 21 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/make-deb make-deb now uses new Ubuntu "Maintainer" setting. ------------------------------------------------------------------------ r2410 | dreibh | 2011-01-12 15:43:43 +0100 (Wed, 12 Jan 2011) | 2 lines Changed paths: D /trunk/rsplib2/debian/source Removed debian/source -> packaging works again. ------------------------------------------------------------------------ r2409 | dreibh | 2011-01-01 21:38:28 +0100 (Sat, 01 Jan 2011) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/UpdateDoc1.sed M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/clean-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/deb-install M /trunk/rsplib2/deb-uninstall M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/copyright M /trunk/rsplib2/debian.conf M /trunk/rsplib2/docs/Makefile.am M /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/add-dummy-interface M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/debug.helgrind M /trunk/rsplib2/rsplib/debug.memcheck M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/environmentcache.cc M /trunk/rsplib2/rsplib/environmentcache.h M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/make-rootshell M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/planetlab/ComponentControl.config M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/attack-scenario4 M /trunk/rsplib2/rsplib/planetlab/comon-host-selector M /trunk/rsplib2/rsplib/planetlab/comon-print-address M /trunk/rsplib2/rsplib/planetlab/comon-query M /trunk/rsplib2/rsplib/planetlab/compile-and-install M /trunk/rsplib2/rsplib/planetlab/create-binaries M /trunk/rsplib2/rsplib/planetlab/create-hosts-files M /trunk/rsplib2/rsplib/planetlab/do-clearall M /trunk/rsplib2/rsplib/planetlab/do-killall M /trunk/rsplib2/rsplib/planetlab/filter-hosts M /trunk/rsplib2/rsplib/planetlab/fractal-scenario1 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 M /trunk/rsplib2/rsplib/planetlab/get M /trunk/rsplib2/rsplib/planetlab/get-coredumps M /trunk/rsplib2/rsplib/planetlab/get-results M /trunk/rsplib2/rsplib/planetlab/go M /trunk/rsplib2/rsplib/planetlab/install-binaries M /trunk/rsplib2/rsplib/planetlab/install-sctp M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/plotter.R M /trunk/rsplib2/rsplib/planetlab/prepare-compilehost M /trunk/rsplib2/rsplib/planetlab/put M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario2 M /trunk/rsplib2/rsplib/planetlab/servicecontrol M /trunk/rsplib2/rsplib/planetlab/ssh-tool M /trunk/rsplib2/rsplib/planetlab/start-process M /trunk/rsplib2/rsplib/planetlab/stop-process M /trunk/rsplib2/rsplib/planetlab/stop-processes M /trunk/rsplib2/rsplib/planetlab/test-hosts M /trunk/rsplib2/rsplib/planetlab/three-regions-scenario M /trunk/rsplib2/rsplib/planetlab/tos-scenario1 M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/pooluserlist-template.h M /trunk/rsplib2/rsplib/pooluserlist-template_impl.h M /trunk/rsplib2/rsplib/poolusernode-template.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h M /trunk/rsplib2/rsplib/povray/povray-distribute M /trunk/rsplib2/rsplib/povray/run-povray-for-files M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-misc.c M /trunk/rsplib2/rsplib/registrar-security.c M /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/reniceall M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-csp.h M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol M /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample M /trunk/rsplib2/rsplib/scriptingserviceexample.8 M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/sha1.c M /trunk/rsplib2/rsplib/sha1.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/storage/ss-installer M /trunk/rsplib2/rsplib/storage/ss-registrar.init M /trunk/rsplib2/rsplib/storage/ss.init M /trunk/rsplib2/rsplib/storage/ssclient.c M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.8 M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timestamphashtable.c M /trunk/rsplib2/rsplib/timestamphashtable.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h M /trunk/rsplib2/rsplib/wireshark/Makefile.am M /trunk/rsplib2/rsplib.lsm Version update. ------------------------------------------------------------------------ r2408 | dreibh | 2010-12-02 15:51:38 +0100 (Thu, 02 Dec 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 M /trunk/rsplib2/rsplib/planetlab/servicecontrol Improved fractal demo setup. ------------------------------------------------------------------------ r2407 | dreibh | 2010-12-02 11:12:19 +0100 (Thu, 02 Dec 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/comon-host-selector M /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 Improved host selection and fractal demo script. ------------------------------------------------------------------------ r2406 | dreibh | 2010-12-01 16:21:02 +0100 (Wed, 01 Dec 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/docs/Referenzarchiv.bib Version update. ------------------------------------------------------------------------ r2405 | dreibh | 2010-12-01 16:17:11 +0100 (Wed, 01 Dec 2010) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 A /trunk/rsplib2/rsplib/planetlab/fractal-scenario3 (from /trunk/rsplib2/rsplib/planetlab/fractal-scenario2:2404) M /trunk/rsplib2/rsplib/planetlab/planetlab-config D /trunk/rsplib2/rsplib/planetlab/run-messung6 D /trunk/rsplib2/rsplib/planetlab/run-messung6a D /trunk/rsplib2/rsplib/planetlab/run-messung7 D /trunk/rsplib2/rsplib/planetlab/run-tests D /trunk/rsplib2/rsplib/planetlab/run-tests2 M /trunk/rsplib2/rsplib/planetlab/servicecontrol D /trunk/rsplib2/rsplib/planetlab/stop-registrars D /trunk/rsplib2/rsplib/planetlab/t1.R D /trunk/rsplib2/rsplib/planetlab/test1 D /trunk/rsplib2/rsplib/planetlab/test9.R - Updated fractal scenario script. - Cleaned up PlanetLab directory. ------------------------------------------------------------------------ r2404 | dreibh | 2010-11-30 15:58:29 +0100 (Tue, 30 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 Restricted PRs to nodes in Europe and America, since bandwidth of Asian nodes is not really good. ------------------------------------------------------------------------ r2403 | dreibh | 2010-11-30 15:50:32 +0100 (Tue, 30 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/do-killall "killall" script skips removing old keys. ------------------------------------------------------------------------ r2402 | dreibh | 2010-11-30 15:50:14 +0100 (Tue, 30 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 PlanetLab fractal demo now uses IP addresses instead of DNS names. ------------------------------------------------------------------------ r2401 | dreibh | 2010-11-30 15:49:40 +0100 (Tue, 30 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/start-process Fixed output. ------------------------------------------------------------------------ r2400 | dreibh | 2010-11-30 15:45:57 +0100 (Tue, 30 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/comon-host-selector CoMon-based host selector also fetches IP addresses now -> no more DNS timeouts in demo script. ------------------------------------------------------------------------ r2396 | dreibh | 2010-11-29 10:00:27 +0100 (Mon, 29 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Referenzarchiv.bib Updated documentation. ------------------------------------------------------------------------ r2394 | dreibh | 2010-11-25 16:01:32 +0100 (Thu, 25 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.qm M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.ts Fixed translation. ------------------------------------------------------------------------ r2393 | dreibh | 2010-11-25 15:48:24 +0100 (Thu, 25 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.qm M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.ts Added option to restart with a new image. ------------------------------------------------------------------------ r2392 | dreibh | 2010-11-25 15:45:39 +0100 (Thu, 25 Nov 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpool.h Removed dummy code. ------------------------------------------------------------------------ r2391 | dreibh | 2010-11-19 14:20:55 +0100 (Fri, 19 Nov 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r2387 | dreibh | 2010-11-18 11:04:11 +0100 (Thu, 18 Nov 2010) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Updated build scripts. Added dependency for chrpath. ------------------------------------------------------------------------ r2386 | dreibh | 2010-11-18 11:02:31 +0100 (Thu, 18 Nov 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c scriptingclient now downloads results archive when final trial has failed -> useful to get error log. ------------------------------------------------------------------------ r2385 | dreibh | 2010-10-29 13:52:41 +0200 (Fri, 29 Oct 2010) | 6 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/comon-host-selector A /trunk/rsplib2/rsplib/planetlab/comon-print-address M /trunk/rsplib2/rsplib/planetlab/do-killall Updated PlanetLab scripts.-- Diese und die folgenden Zeilen werden ignoriert -- AM planetlab/comon-print-address M planetlab/comon-host-selector M planetlab/do-killall ------------------------------------------------------------------------ r2384 | dreibh | 2010-10-27 21:37:15 +0200 (Wed, 27 Oct 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf M /trunk/rsplib2/docs/Handbook.lyx Updated Debian version for PPA upload. ------------------------------------------------------------------------ r2383 | dreibh | 2010-10-27 21:32:11 +0200 (Wed, 27 Oct 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Fixed Makefile.am problem under Natty Narwhal. ------------------------------------------------------------------------ r2382 | dreibh | 2010-10-27 17:26:12 +0200 (Wed, 27 Oct 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/prepare-compilehost Updated PlanetLab scripts. ------------------------------------------------------------------------ r2381 | dreibh | 2010-10-27 17:25:59 +0200 (Wed, 27 Oct 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Fixed compile problem for Natty Narwhal in Makefile.am. ------------------------------------------------------------------------ r2380 | dreibh | 2010-09-20 15:09:36 +0200 (Mon, 20 Sep 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/preferences Updated example Wireshark preferences. ------------------------------------------------------------------------ r2379 | dreibh | 2010-08-19 17:03:07 +0200 (Thu, 19 Aug 2010) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/Makefile M /trunk/rsplib2/freebsd/rsplib/pkg-descr M /trunk/rsplib2/freebsd/rsplib/pkg-plist Updated FreeBSD packaging files by using the versions of the accepted port. ------------------------------------------------------------------------ r2378 | dreibh | 2010-08-08 12:15:37 +0200 (Sun, 08 Aug 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/rc.local Updated rc.local example. ------------------------------------------------------------------------ r2377 | dreibh | 2010-08-08 11:54:28 +0200 (Sun, 08 Aug 2010) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/Makefile Added dependency for qt4-moc to FreeBSD Makefile. ------------------------------------------------------------------------ r2376 | dreibh | 2010-07-27 17:57:25 +0200 (Tue, 27 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/pkg-plist Fixed problem in pkg-plist. ------------------------------------------------------------------------ r2375 | dreibh | 2010-07-27 16:51:53 +0200 (Tue, 27 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/freebsd/rsplib/Makefile M /trunk/rsplib2/freebsd/rsplib/pkg-plist Finished FreeBSD ports files. ------------------------------------------------------------------------ r2374 | dreibh | 2010-07-27 16:11:45 +0200 (Tue, 27 Jul 2010) | 2 lines Changed paths: A /trunk/rsplib2/freebsd A /trunk/rsplib2/freebsd/rsplib A /trunk/rsplib2/freebsd/rsplib/Makefile A /trunk/rsplib2/freebsd/rsplib/distinfo A /trunk/rsplib2/freebsd/rsplib/make-shar A /trunk/rsplib2/freebsd/rsplib/pkg-descr A /trunk/rsplib2/freebsd/rsplib/pkg-plist A /trunk/rsplib2/freebsd/rsplib/test-packaging Started adding FreeBSD ports scripts. ------------------------------------------------------------------------ r2373 | dreibh | 2010-07-23 14:31:22 +0200 (Fri, 23 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Version update. ------------------------------------------------------------------------ r2372 | dreibh | 2010-07-23 08:08:17 +0200 (Fri, 23 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/environmentcache.cc A /trunk/rsplib2/rsplib/make-test-cache M /trunk/rsplib2/rsplib/scriptingservice.cc - Fixed problem with Scripting Service's environment cache: purged entries were not removed. ------------------------------------------------------------------------ r2371 | dreibh | 2010-07-14 11:30:24 +0200 (Wed, 14 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/install-binaries Fixed problem in install-binaries PlanetLab script. ------------------------------------------------------------------------ r2370 | dreibh | 2010-07-08 15:52:00 +0200 (Thu, 08 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog Updated ChangeLog. ------------------------------------------------------------------------ r2369 | dreibh | 2010-07-08 15:51:29 +0200 (Thu, 08 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib.lsm Version update. ------------------------------------------------------------------------ r2368 | dreibh | 2010-07-08 13:58:04 +0200 (Thu, 08 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r2367 | dreibh | 2010-07-08 13:57:31 +0200 (Thu, 08 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/colorfilters Updated Wireshark color filter example. ------------------------------------------------------------------------ r2366 | dreibh | 2010-07-08 10:42:28 +0200 (Thu, 08 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/rc.local Updated ss.init script. ------------------------------------------------------------------------ r2365 | dreibh | 2010-07-08 09:32:40 +0200 (Thu, 08 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/environmentcache.cc M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/storage/ss.init Scripting Service improvements. ------------------------------------------------------------------------ r2364 | dreibh | 2010-07-07 21:24:22 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c Updated manpage for server. ------------------------------------------------------------------------ r2363 | dreibh | 2010-07-07 21:17:24 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c Updated Wireshark dissector. ------------------------------------------------------------------------ r2362 | dreibh | 2010-07-07 19:45:00 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/attacker.cc A /trunk/rsplib2/rsplib/environmentcache.cc (from /trunk/rsplib2/rsplib/t2.cc:2361) A /trunk/rsplib2/rsplib/environmentcache.h (from /trunk/rsplib2/rsplib/t2.cc:2361) M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/t2.cc Added environment cache to Scripting Service PE. ------------------------------------------------------------------------ r2361 | dreibh | 2010-07-07 16:21:19 +0200 (Wed, 07 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r2360 | dreibh | 2010-07-07 16:15:36 +0200 (Wed, 07 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r2359 | dreibh | 2010-07-07 15:55:21 +0200 (Wed, 07 Jul 2010) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/sha1.c M /trunk/rsplib2/rsplib/sha1.h M /trunk/rsplib2/rsplib/t2.cc - sha1_computeHashOfFile() now returns number of processed byted. - Fixed signed/unsigned warning. ------------------------------------------------------------------------ r2358 | dreibh | 2010-07-07 14:31:14 +0200 (Wed, 07 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r2357 | dreibh | 2010-07-07 13:21:40 +0200 (Wed, 07 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc ------------------------------------------------------------------------ r2356 | dreibh | 2010-07-07 13:21:09 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc Code clean-ups for Scripting Service PE. ------------------------------------------------------------------------ r2355 | dreibh | 2010-07-07 13:10:31 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc Fixed problems of uninitialized variables reported by Valgrind. ------------------------------------------------------------------------ r2354 | dreibh | 2010-07-07 12:55:14 +0200 (Wed, 07 Jul 2010) | 4 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/wireshark/colorfilters - Debian version update. - Updated Wireshark color filter to support SSP_ENVIRONMENT message. - Improved debug output for Scripting Service PU. ------------------------------------------------------------------------ r2353 | dreibh | 2010-07-07 12:50:07 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h Code clean-ups in scripting service. ------------------------------------------------------------------------ r2352 | dreibh | 2010-07-07 12:20:24 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/sha1.c M /trunk/rsplib2/rsplib/sha1.h Cleaned up Scripting Service code. Set version to 2.0. ------------------------------------------------------------------------ r2351 | dreibh | 2010-07-07 11:50:02 +0200 (Wed, 07 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol M /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample A /trunk/rsplib2/rsplib/sha1.c A /trunk/rsplib2/rsplib/sha1.h Updated Scripting Service protocol and PU to support environment caching. ------------------------------------------------------------------------ r2350 | dreibh | 2010-07-04 23:52:36 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/rc.local Updated rc.local example. ------------------------------------------------------------------------ r2349 | dreibh | 2010-07-04 16:51:51 +0200 (Sun, 04 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/rc.local ------------------------------------------------------------------------ r2348 | dreibh | 2010-07-04 16:50:17 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/rc.local Added kldload call to rc.local example. ------------------------------------------------------------------------ r2347 | dreibh | 2010-07-04 15:49:22 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/rc.local Updated rc.local example. ------------------------------------------------------------------------ r2346 | dreibh | 2010-07-04 13:50:29 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c FreeBSD bugfix: EAI_* error codes are non-negative. Introduced own codes REAI_* which are always negative. ------------------------------------------------------------------------ r2345 | dreibh | 2010-07-04 11:15:43 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/storage/rc.local Added example rc.local usage. ------------------------------------------------------------------------ r2344 | dreibh | 2010-07-04 10:33:59 +0200 (Sun, 04 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2343 | dreibh | 2010-07-04 10:30:55 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss-registrar.init M /trunk/rsplib2/rsplib/storage/ss.init Updated example init scripts. ------------------------------------------------------------------------ r2342 | dreibh | 2010-07-04 10:23:07 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init Improved ss.init script. ------------------------------------------------------------------------ r2341 | dreibh | 2010-07-04 10:11:31 +0200 (Sun, 04 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init Updated ss.init example. ------------------------------------------------------------------------ r2340 | dreibh | 2010-07-03 19:27:44 +0200 (Sat, 03 Jul 2010) | 3 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/debian/changelog - Updated ChangeLog. - Updated debian/changelog. ------------------------------------------------------------------------ r2339 | dreibh | 2010-07-03 18:38:44 +0200 (Sat, 03 Jul 2010) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/scriptingcontrol - scriptingcontrol: added support for plain Tar and Tar/BZip files. - Version update. ------------------------------------------------------------------------ r2338 | dreibh | 2010-07-03 17:17:57 +0200 (Sat, 03 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init Improved ss init script. ------------------------------------------------------------------------ r2337 | dreibh | 2010-07-03 17:12:06 +0200 (Sat, 03 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc Do not print "fully loaded" log information in quiet mode. ------------------------------------------------------------------------ r2336 | dreibh | 2010-07-03 15:29:46 +0200 (Sat, 03 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h Added some bandwidth and runtime statistics output to the scripting service PE. ------------------------------------------------------------------------ r2335 | dreibh | 2010-07-03 15:04:57 +0200 (Sat, 03 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss-installer Updated ss-installer script. ------------------------------------------------------------------------ r2334 | dreibh | 2010-07-02 22:01:40 +0200 (Fri, 02 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss-installer Fix in ss-installer script. ------------------------------------------------------------------------ r2333 | dreibh | 2010-07-02 21:40:12 +0200 (Fri, 02 Jul 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss-installer Updated ss-installer script. ------------------------------------------------------------------------ r2332 | dreibh | 2010-07-01 20:44:06 +0200 (Thu, 01 Jul 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss-installer M /trunk/rsplib2/rsplib/storage/ss-registrar.init ------------------------------------------------------------------------ r2331 | dreibh | 2010-07-01 20:43:20 +0200 (Thu, 01 Jul 2010) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/storage/ss-installer M /trunk/rsplib2/rsplib/storage/ss-registrar.init M /trunk/rsplib2/rsplib/storage/ss.init Added Scripting Service installer script. ------------------------------------------------------------------------ r2330 | dreibh | 2010-06-30 23:59:30 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog Fixed changelog (missing spaces). ------------------------------------------------------------------------ r2329 | dreibh | 2010-06-30 23:47:54 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/debian/changelog A /trunk/rsplib2/debian/source A /trunk/rsplib2/debian/source/format Added debian/sources/format, adapted other Debian files appropriately. ------------------------------------------------------------------------ r2328 | dreibh | 2010-06-30 23:33:17 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/planetlab/install-binaries M /trunk/rsplib2/rsplib/planetlab/planetlab-config Updated PlanetLab test scripts. ------------------------------------------------------------------------ r2327 | dreibh | 2010-06-30 22:47:35 +0200 (Wed, 30 Jun 2010) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/pbuilderrc.debian M /trunk/rsplib2/pbuilderrc.ubuntu M /trunk/rsplib2/rsplib.lsm - Version update - Updated LSM entry. ------------------------------------------------------------------------ r2326 | dreibh | 2010-06-30 22:47:15 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Fixed lintian warnings. ------------------------------------------------------------------------ r2325 | dreibh | 2010-06-30 22:46:58 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrartable.c Bugfix: if there is only one PR in the RegistrarTable, try it directly. ------------------------------------------------------------------------ r2324 | dreibh | 2010-06-30 18:14:46 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Improved debug output. ------------------------------------------------------------------------ r2323 | dreibh | 2010-06-30 18:14:24 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingpackets.h Fixed typo. ------------------------------------------------------------------------ r2322 | dreibh | 2010-06-30 18:14:02 +0200 (Wed, 30 Jun 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t1.c ------------------------------------------------------------------------ r2321 | dreibh | 2010-06-30 18:13:53 +0200 (Wed, 30 Jun 2010) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspenhancedmode.c - Added feature to tune association parameters. - Work-around for lksctp connectx() problem with bad primary path. ------------------------------------------------------------------------ r2320 | dreibh | 2010-06-30 17:18:17 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c Removed commented-out code from registrar-asap.c. ------------------------------------------------------------------------ r2319 | dreibh | 2010-06-30 17:17:40 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h Added tuneSCTP() function to NetUtilities. ------------------------------------------------------------------------ r2318 | dreibh | 2010-06-30 17:08:59 +0200 (Wed, 30 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Improved log output for rsp_accept(). ------------------------------------------------------------------------ r2317 | dreibh | 2010-06-30 14:16:59 +0200 (Wed, 30 Jun 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/t1.c ------------------------------------------------------------------------ r2316 | dreibh | 2010-06-30 11:49:45 +0200 (Wed, 30 Jun 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t1.c ------------------------------------------------------------------------ r2315 | dreibh | 2010-06-19 12:27:29 +0200 (Sat, 19 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog Added ITP/Launchpad bug numbers for new version 2.7.1. ------------------------------------------------------------------------ r2314 | dreibh | 2010-06-19 11:44:22 +0200 (Sat, 19 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog Updated ChangeLog from SVN log. ------------------------------------------------------------------------ r2313 | dreibh | 2010-06-19 11:43:52 +0200 (Sat, 19 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/watch Updated watch file. ------------------------------------------------------------------------ r2312 | dreibh | 2010-06-19 11:20:22 +0200 (Sat, 19 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf M /trunk/rsplib2/pbuilderrc.ubuntu M /trunk/rsplib2/rsplib.lsm Scripts updates. ------------------------------------------------------------------------ r2311 | dreibh | 2010-06-14 15:43:00 +0200 (Mon, 14 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/colorfilters Extended Wireshark color filter by rules for SCTP data chunks. ------------------------------------------------------------------------ r2310 | dreibh | 2010-06-11 16:51:10 +0200 (Fri, 11 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/compat M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/rules M /trunk/rsplib2/make-deb Fixed Debian scripts to again work under Hardy and Jaunty. ------------------------------------------------------------------------ r2309 | dreibh | 2010-06-11 15:48:20 +0200 (Fri, 11 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/rules Fixed debian scripts to again work under Hardy and Jaunty. ------------------------------------------------------------------------ r2308 | dreibh | 2010-06-11 15:44:28 +0200 (Fri, 11 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc Small efficiency improvement. ------------------------------------------------------------------------ r2307 | dreibh | 2010-06-08 11:54:16 +0200 (Tue, 08 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version update. ------------------------------------------------------------------------ r2306 | dreibh | 2010-06-08 09:40:52 +0200 (Tue, 08 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/control Fixed dependency for hardy. ------------------------------------------------------------------------ r2305 | dreibh | 2010-06-07 15:06:29 +0200 (Mon, 07 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/create-binaries Fixed options in create-binaries script. ------------------------------------------------------------------------ r2304 | dreibh | 2010-06-07 12:28:45 +0200 (Mon, 07 Jun 2010) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control ------------------------------------------------------------------------ r2303 | dreibh | 2010-06-03 21:11:45 +0200 (Thu, 03 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Removed dependency for quilt in debian/control. ------------------------------------------------------------------------ r2302 | dreibh | 2010-06-03 19:12:40 +0200 (Thu, 03 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolsocket.c Improved debug output. ------------------------------------------------------------------------ r2301 | dreibh | 2010-06-02 10:33:15 +0200 (Wed, 02 Jun 2010) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/planetlab/planetlab-config Bugfix in netutilities.c: also apply sctp_getladdrs() work-around for ANY address when returned address is ::ffff:0.0.0.0 or ::0.0.0.0. ------------------------------------------------------------------------ r2300 | dreibh | 2010-05-31 11:52:41 +0200 (Mon, 31 May 2010) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog ------------------------------------------------------------------------ r2299 | dreibh | 2010-05-31 11:51:58 +0200 (Mon, 31 May 2010) | 3 lines Changed paths: M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/compat M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/copyright A /trunk/rsplib2/debian/patches A /trunk/rsplib2/debian/patches/series M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian/rules M /trunk/rsplib2/debian/watch M /trunk/rsplib2/rsplib.lsm - Updated debian scripts with changes from Ubuntu. - Version update. ------------------------------------------------------------------------ r2298 | dreibh | 2010-05-31 11:51:36 +0200 (Mon, 31 May 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r2297 | dreibh | 2010-05-31 11:51:26 +0200 (Mon, 31 May 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c Typo fix. ------------------------------------------------------------------------ r2296 | dreibh | 2010-05-31 11:51:08 +0200 (Mon, 31 May 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Added lksctp SCTP_EOF/SCTP_ABORT shutdown work-around for TCP-like sockets. ------------------------------------------------------------------------ r2295 | dreibh | 2010-05-24 19:32:18 +0200 (Mon, 24 May 2010) | 1 line Changed paths: M /trunk/rsplib2/bootstrap M /trunk/rsplib2/configure.in Fixes and improvements to the configure system. ------------------------------------------------------------------------ r2294 | dreibh | 2010-05-24 18:55:45 +0200 (Mon, 24 May 2010) | 1 line Changed paths: M /trunk/rsplib2/configure.in Improvements to configure.in. ------------------------------------------------------------------------ r2293 | dreibh | 2010-05-24 18:49:02 +0200 (Mon, 24 May 2010) | 1 line Changed paths: M /trunk/rsplib2/configure.in Improvements to configure.in. ------------------------------------------------------------------------ r2292 | dreibh | 2010-05-24 18:15:07 +0200 (Mon, 24 May 2010) | 1 line Changed paths: M /trunk/rsplib2/bootstrap FreeBSD 8 bootstrap script update. ------------------------------------------------------------------------ r2291 | dreibh | 2010-05-24 18:05:28 +0200 (Mon, 24 May 2010) | 1 line Changed paths: M /trunk/rsplib2/configure.in Solaris compile fixes ------------------------------------------------------------------------ r2290 | dreibh | 2010-05-24 18:04:47 +0200 (Mon, 24 May 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc Solaris compile fixed ------------------------------------------------------------------------ r2289 | dreibh | 2010-05-24 18:04:20 +0200 (Mon, 24 May 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc ------------------------------------------------------------------------ r2288 | dreibh | 2010-05-24 17:53:57 +0200 (Mon, 24 May 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Adapted netutilities to support latest version of OpenSolaris. ------------------------------------------------------------------------ r2287 | dreibh | 2010-05-18 10:44:12 +0200 (Tue, 18 May 2010) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/do-clearall Updated PlanetLab script. ------------------------------------------------------------------------ r2286 | dreibh | 2010-05-10 11:09:00 +0200 (Mon, 10 May 2010) | 2 lines Changed paths: M /trunk/rsplib2/bootstrap Updated bootstrap script to work under Open Solaris. ------------------------------------------------------------------------ r2284 | dreibh | 2010-05-10 09:26:14 +0200 (Mon, 10 May 2010) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-ppa ------------------------------------------------------------------------ r2283 | dreibh | 2010-03-23 15:04:39 +0100 (Tue, 23 Mar 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/rsplib-registrar M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2282 | dreibh | 2010-02-18 13:36:51 +0100 (Thu, 18 Feb 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2281 | dreibh | 2010-02-18 13:32:40 +0100 (Thu, 18 Feb 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2280 | dreibh | 2010-02-18 13:18:55 +0100 (Thu, 18 Feb 2010) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2279 | dreibh | 2010-01-13 13:40:59 +0100 (Wed, 13 Jan 2010) | 2 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/UpdateDoc1.sed M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/clean-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/deb-install M /trunk/rsplib2/deb-uninstall M /trunk/rsplib2/debian/copyright M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian.conf M /trunk/rsplib2/docs/Makefile.am M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/add-dummy-interface M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/debug.helgrind M /trunk/rsplib2/rsplib/debug.memcheck M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/make-rootshell M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/planetlab/ComponentControl.config M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/attack-scenario4 M /trunk/rsplib2/rsplib/planetlab/comon-host-selector M /trunk/rsplib2/rsplib/planetlab/comon-query M /trunk/rsplib2/rsplib/planetlab/compile-and-install M /trunk/rsplib2/rsplib/planetlab/create-binaries M /trunk/rsplib2/rsplib/planetlab/create-hosts-files M /trunk/rsplib2/rsplib/planetlab/do-clearall M /trunk/rsplib2/rsplib/planetlab/do-killall M /trunk/rsplib2/rsplib/planetlab/filter-hosts M /trunk/rsplib2/rsplib/planetlab/fractal-scenario1 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/get M /trunk/rsplib2/rsplib/planetlab/get-coredumps M /trunk/rsplib2/rsplib/planetlab/get-results M /trunk/rsplib2/rsplib/planetlab/go M /trunk/rsplib2/rsplib/planetlab/install-binaries M /trunk/rsplib2/rsplib/planetlab/install-sctp M /trunk/rsplib2/rsplib/planetlab/perftest M /trunk/rsplib2/rsplib/planetlab/perftest-version2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/plotter.R M /trunk/rsplib2/rsplib/planetlab/prepare-compilehost M /trunk/rsplib2/rsplib/planetlab/put M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario2 M /trunk/rsplib2/rsplib/planetlab/servicecontrol M /trunk/rsplib2/rsplib/planetlab/ssh-tool M /trunk/rsplib2/rsplib/planetlab/start-process M /trunk/rsplib2/rsplib/planetlab/stop-process M /trunk/rsplib2/rsplib/planetlab/stop-processes M /trunk/rsplib2/rsplib/planetlab/test-hosts M /trunk/rsplib2/rsplib/planetlab/test1 M /trunk/rsplib2/rsplib/planetlab/three-regions-scenario M /trunk/rsplib2/rsplib/planetlab/tos-scenario1 M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/pooluserlist-template.h M /trunk/rsplib2/rsplib/pooluserlist-template_impl.h M /trunk/rsplib2/rsplib/poolusernode-template.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h M /trunk/rsplib2/rsplib/povray/povray-distribute M /trunk/rsplib2/rsplib/povray/run-povray-for-files M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-misc.c M /trunk/rsplib2/rsplib/registrar-security.c M /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/reniceall M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-csp.h M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol M /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample M /trunk/rsplib2/rsplib/scriptingserviceexample.8 M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/storage/ss-registrar.init M /trunk/rsplib2/rsplib/storage/ss.init M /trunk/rsplib2/rsplib/storage/ssclient.c M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.8 M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timestamphashtable.c M /trunk/rsplib2/rsplib/timestamphashtable.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h M /trunk/rsplib2/rsplib/wireshark/Makefile.am Version string update. ------------------------------------------------------------------------ r2276 | dreibh | 2009-12-26 17:31:24 +0100 (Sat, 26 Dec 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init Added address filter "IPv4 only" as example into ss.init script. ------------------------------------------------------------------------ r2275 | dreibh | 2009-11-27 13:00:51 +0100 (Fri, 27 Nov 2009) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf Updated Debian configuration files. ------------------------------------------------------------------------ r2274 | dreibh | 2009-11-27 11:16:09 +0100 (Fri, 27 Nov 2009) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Updated version to 2.7.0. ------------------------------------------------------------------------ r2273 | dreibh | 2009-11-20 14:34:42 +0100 (Fri, 20 Nov 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/rsplib-registrar M /trunk/rsplib2/rsplib/storage/ss.init Updated example init scripts. ------------------------------------------------------------------------ r2272 | dreibh | 2009-11-15 12:36:26 +0100 (Sun, 15 Nov 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.qm M /trunk/rsplib2/rsplib/fractalpooluser_de_DE.ts Fixed translation problem in FractalPoolUser. ------------------------------------------------------------------------ r2269 | dreibh | 2009-11-05 13:16:54 +0100 (Thu, 05 Nov 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-ppa Version update. ------------------------------------------------------------------------ r2266 | dreibh | 2009-10-28 17:25:23 +0100 (Wed, 28 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Dependencies "$(socketapi_LIBS) $(sctplib_LIBS)" are still needed in Makefile.am, since sctplib/socketapi functions are used in case of userland SCTP. ------------------------------------------------------------------------ r2265 | dreibh | 2009-10-27 23:35:58 +0100 (Tue, 27 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/registrar.c Fixed configure.in to set ENABLE_REGISTRAR_STATISTICS in config.h. ------------------------------------------------------------------------ r2264 | dreibh | 2009-10-27 19:25:43 +0100 (Tue, 27 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/messagebuffer.c Fixed dependencies in Debian package. ------------------------------------------------------------------------ r2263 | dreibh | 2009-10-26 09:46:55 +0100 (Mon, 26 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/scriptingclient.c ------------------------------------------------------------------------ r2262 | dreibh | 2009-10-25 16:34:41 +0100 (Sun, 25 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2261 | dreibh | 2009-10-25 15:59:06 +0100 (Sun, 25 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/server.8 Updated manpage for server. ------------------------------------------------------------------------ r2260 | dreibh | 2009-10-25 15:57:10 +0100 (Sun, 25 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc Solved the scripting service problem on -1/EAGAIN for disconnected association by adding PE-side KeepAlive messages. They have to be answered by the PU. ------------------------------------------------------------------------ r2259 | dreibh | 2009-10-25 15:56:13 +0100 (Sun, 25 Oct 2009) | 4 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Removed debugging code. Under some rare circumstances, LK-SCTP -> recvmsg() -> recvfromplus() seems to return -1/EAGAIN even when the association is down. The scripting service then keeps a session which is actually failed. ------------------------------------------------------------------------ r2258 | dreibh | 2009-10-25 15:54:45 +0100 (Sun, 25 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/tcplikeserver.cc Removed debugging code. ------------------------------------------------------------------------ r2257 | dreibh | 2009-10-25 09:32:25 +0100 (Sun, 25 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/netutilities.c Added debug code. ------------------------------------------------------------------------ r2256 | dreibh | 2009-10-25 09:26:39 +0100 (Sun, 25 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Bugfix: replaced "(pfd.revents = POLLIN)" by "(pfd.revents & POLLIN)" in if-clause. ------------------------------------------------------------------------ r2255 | dreibh | 2009-10-25 09:05:45 +0100 (Sun, 25 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/messagebuffer.c ------------------------------------------------------------------------ r2254 | dreibh | 2009-10-24 17:14:06 +0200 (Sat, 24 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r2253 | dreibh | 2009-10-24 16:58:37 +0200 (Sat, 24 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r2252 | dreibh | 2009-10-24 16:49:40 +0200 (Sat, 24 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r2251 | dreibh | 2009-10-24 11:47:36 +0200 (Sat, 24 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h Removed disconnect handling from MessageBuffer. ------------------------------------------------------------------------ r2250 | dreibh | 2009-10-24 10:55:07 +0200 (Sat, 24 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/messagebuffer.c Fix in MessageBuffer's disconnect handling. ------------------------------------------------------------------------ r2249 | dreibh | 2009-10-24 08:29:58 +0200 (Sat, 24 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/messagebuffer.c Added some debug outputs. ------------------------------------------------------------------------ r2248 | dreibh | 2009-10-23 07:47:35 +0200 (Fri, 23 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Added some debug messages. ------------------------------------------------------------------------ r2247 | dreibh | 2009-10-23 07:47:15 +0200 (Fri, 23 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Added registrar-misc.c file. ------------------------------------------------------------------------ r2246 | dreibh | 2009-10-23 07:47:02 +0200 (Fri, 23 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Added printout for SCTP flags to sendtoplus(). ------------------------------------------------------------------------ r2245 | dreibh | 2009-10-23 07:46:42 +0200 (Fri, 23 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c A /trunk/rsplib2/rsplib/registrar-misc.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h Added registration/deregistration hooks to registrar. ------------------------------------------------------------------------ r2244 | dreibh | 2009-10-23 07:46:12 +0200 (Fri, 23 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h MessageBuffer: added flag to detect disconnect. ------------------------------------------------------------------------ r2243 | dreibh | 2009-10-23 07:45:31 +0200 (Fri, 23 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Printing failover message only on real failovers, not when the first PE still needs to accept the request. ------------------------------------------------------------------------ r2242 | dreibh | 2009-10-21 11:28:53 +0200 (Wed, 21 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Removed debug code in scriptingclient.c. ------------------------------------------------------------------------ r2241 | dreibh | 2009-10-21 10:22:34 +0200 (Wed, 21 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Added "struct" in C code to compile by plain C compiler. ------------------------------------------------------------------------ r2240 | dreibh | 2009-10-21 10:11:57 +0200 (Wed, 21 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/wireshark/colorfilters M /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c Improved scripting service by adding NotReady message => makes it easier to distinguish between loaded server and real failovers. ------------------------------------------------------------------------ r2239 | dreibh | 2009-10-16 22:45:37 +0200 (Fri, 16 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Updated version. ------------------------------------------------------------------------ r2238 | dreibh | 2009-10-16 22:45:24 +0200 (Fri, 16 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h Added configure script parameter to enable/disable registrar statistics option. ------------------------------------------------------------------------ r2237 | dreibh | 2009-10-13 09:20:34 +0200 (Tue, 13 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2236 | dreibh | 2009-10-13 09:15:31 +0200 (Tue, 13 Oct 2009) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc - Improved scripting service logging. - Improved scripting service init script example. ------------------------------------------------------------------------ r2235 | dreibh | 2009-10-13 08:44:38 +0200 (Tue, 13 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/breakdetector.c Fixed signal number. ------------------------------------------------------------------------ r2234 | dreibh | 2009-10-13 08:43:36 +0200 (Tue, 13 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/breakdetector.c BreakDetector also handles SIGTERM now. This is necessary when using the program in init scripts. ------------------------------------------------------------------------ r2233 | dreibh | 2009-10-13 08:35:06 +0200 (Tue, 13 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc Improved logging for scripting service PE. ------------------------------------------------------------------------ r2232 | dreibh | 2009-10-13 07:57:34 +0200 (Tue, 13 Oct 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init Updated ss.init example. ------------------------------------------------------------------------ r2231 | dreibh | 2009-10-13 07:38:23 +0200 (Tue, 13 Oct 2009) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/storage/ss.init - Scripting Service log is not written to stdlog -> logfile. - Improved Scripting Service init example. ------------------------------------------------------------------------ r2230 | dreibh | 2009-10-09 11:40:46 +0200 (Fri, 09 Oct 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/rsplib-registrar M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2229 | dreibh | 2009-09-30 11:36:22 +0200 (Wed, 30 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Fixed lintian errors (weak library dependencies for dev packages). ------------------------------------------------------------------------ r2228 | dreibh | 2009-09-30 10:22:09 +0200 (Wed, 30 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c sctp_getladdrs() for LK-SCTP may allocate memory even when there are 0 addresses => added deallocation. ------------------------------------------------------------------------ r2227 | dreibh | 2009-09-30 08:03:10 +0200 (Wed, 30 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c ------------------------------------------------------------------------ r2226 | dreibh | 2009-09-23 11:55:32 +0200 (Wed, 23 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2225 | dreibh | 2009-09-23 11:54:34 +0200 (Wed, 23 Sep 2009) | 1 line Changed paths: D /trunk/rsplib2/autogen-test.sh M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r2224 | dreibh | 2009-09-23 11:37:52 +0200 (Wed, 23 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/comon-query M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r2223 | dreibh | 2009-09-22 18:24:59 +0200 (Tue, 22 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/transportaddressblock.c Code clean-up. ------------------------------------------------------------------------ r2222 | dreibh | 2009-09-22 18:19:42 +0200 (Tue, 22 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h Fixed pointer problem in peerlistnode-template_impl.h: peerListTimerStorageNodeComparison() should compare time stamps first. If they are equal, it should behave like peerListIndexStorageNodeComparison() (index comparision). Calling peerListIndexStorageNodeComparison() should need pointers based on Index nodes instead of Timer nodes -> invalid address blocks. Fixed by copying comparison code from peerListIndexStorageNodeComparison() -> will also work faster, since no calls to pointer arithmetic functons are necessary any more. ------------------------------------------------------------------------ r2221 | dreibh | 2009-09-18 09:21:20 +0200 (Fri, 18 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rsplib-services.install M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fractalpooluser.cc D /trunk/rsplib2/rsplib/fractalpooluser.ts A /trunk/rsplib2/rsplib/fractalpooluser_de_DE.qm A /trunk/rsplib2/rsplib/fractalpooluser_de_DE.ts (from /trunk/rsplib2/rsplib/fractalpooluser.ts:2219) M /trunk/rsplib2/rsplib.lsm ------------------------------------------------------------------------ r2220 | dreibh | 2009-09-17 09:20:20 +0200 (Thu, 17 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/debug.helgrind M /trunk/rsplib2/rsplib/debug.memcheck M /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c ------------------------------------------------------------------------ r2219 | dreibh | 2009-09-15 21:27:48 +0200 (Tue, 15 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rules Fixed dependencies in Makefile.am/configure.in. ------------------------------------------------------------------------ r2218 | dreibh | 2009-09-15 18:19:21 +0200 (Tue, 15 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/wireshark/colorfilters M /trunk/rsplib2/rsplib/wireshark/dfilters ------------------------------------------------------------------------ r2217 | dreibh | 2009-09-15 14:44:51 +0200 (Tue, 15 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog ------------------------------------------------------------------------ r2216 | dreibh | 2009-09-15 14:44:00 +0200 (Tue, 15 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2215 | dreibh | 2009-09-14 19:53:19 +0200 (Mon, 14 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/libcpprspserver-dev.install M /trunk/rsplib2/debian/libcpprspserver2.install M /trunk/rsplib2/debian/librsplib-dev.install M /trunk/rsplib2/debian/librsplib2.install M /trunk/rsplib2/make-ppa Fixed Debian files (some libraries missing). ------------------------------------------------------------------------ r2214 | dreibh | 2009-09-12 11:57:24 +0200 (Sat, 12 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fractalpooluser.cc Fixed .moc dependency for fractalpooluser in Makefile.am. ------------------------------------------------------------------------ r2213 | dreibh | 2009-09-12 11:09:20 +0200 (Sat, 12 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/make-ppa ------------------------------------------------------------------------ r2212 | dreibh | 2009-09-12 10:55:09 +0200 (Sat, 12 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Updated Debian scripts. ------------------------------------------------------------------------ r2211 | dreibh | 2009-09-12 10:20:53 +0200 (Sat, 12 Sep 2009) | 3 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/README M /trunk/rsplib2/configure.in M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/rsplib/loglevel.h - Added configure option to set maximum logging level. - Updated documentation. ------------------------------------------------------------------------ r2210 | dreibh | 2009-09-12 09:49:43 +0200 (Sat, 12 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/debian/rules M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrar-asap.c Updated Debian scripts. ------------------------------------------------------------------------ r2209 | dreibh | 2009-09-12 00:13:16 +0200 (Sat, 12 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/librsplib-dev.install M /trunk/rsplib2/debian/librsplib2.install M /trunk/rsplib2/debian/rules M /trunk/rsplib2/docs/Makefile.am M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/combinesummaries D /trunk/rsplib2/rsplib/combinesummaries.cc A /trunk/rsplib2/rsplib/createsummary D /trunk/rsplib2/rsplib/createsummary.cc M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/wireshark/Makefile.am Code and installation clean-up: splitted librsplib into several libraries so that programs only need to link what they need => smaller programs. ------------------------------------------------------------------------ r2208 | dreibh | 2009-09-11 12:09:32 +0200 (Fri, 11 Sep 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h Added missing "const". ------------------------------------------------------------------------ r2207 | dreibh | 2009-09-11 11:48:04 +0200 (Fri, 11 Sep 2009) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc A /trunk/rsplib2/rsplib/storage/ssclient.c (from /trunk/rsplib2/rsplib/scriptingclient.c:2197) M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h - Fixed rsp_bind() to use packed addresses (as sctp_bindx does). - Added option to set local endpoint addresses for server. ------------------------------------------------------------------------ r2206 | dreibh | 2009-09-10 15:04:18 +0200 (Thu, 10 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc ------------------------------------------------------------------------ r2205 | dreibh | 2009-09-10 13:33:56 +0200 (Thu, 10 Sep 2009) | 1 line Changed paths: A /trunk/rsplib2/rsplib/storage/rsplib-registrar M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2204 | dreibh | 2009-09-10 13:02:49 +0200 (Thu, 10 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2203 | dreibh | 2009-09-08 17:38:13 +0200 (Tue, 08 Sep 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r2202 | dreibh | 2009-08-31 08:44:51 +0200 (Mon, 31 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog ------------------------------------------------------------------------ r2197 | dreibh | 2009-08-31 08:41:54 +0200 (Mon, 31 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/scriptingclient.c Fixed signed/unsigned problems found by g++. ------------------------------------------------------------------------ r2196 | dreibh | 2009-08-06 12:37:19 +0200 (Thu, 06 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c ------------------------------------------------------------------------ r2195 | dreibh | 2009-08-06 10:42:21 +0200 (Thu, 06 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingserviceexample ------------------------------------------------------------------------ r2194 | dreibh | 2009-08-06 10:36:19 +0200 (Thu, 06 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc Scripting Service fixes. ------------------------------------------------------------------------ r2193 | dreibh | 2009-08-06 09:33:22 +0200 (Thu, 06 Aug 2009) | 3 lines Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc Fix in Scripting Service: send Status after Upload is complete to tell the PU that now the PE is starting processing. Fix in netutilities.c: sendtoplus(): "revents & POLLOUT", not "revents = POLLOUT" in if() clause! ------------------------------------------------------------------------ r2192 | dreibh | 2009-08-05 22:15:55 +0200 (Wed, 05 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc ------------------------------------------------------------------------ r2191 | dreibh | 2009-08-05 21:15:39 +0200 (Wed, 05 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc - Improved message checking for scripting service. ------------------------------------------------------------------------ r2190 | dreibh | 2009-08-05 09:43:39 +0200 (Wed, 05 Aug 2009) | 4 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/fractalpooluser.cc A /trunk/rsplib2/rsplib/fractalpooluser.ts D /trunk/rsplib2/rsplib/registrar-debug M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpoolsocket.c D /trunk/rsplib2/rsplib/ss-pr D /trunk/rsplib2/rsplib/ss-server D /trunk/rsplib2/rsplib/ss-server-150 D /trunk/rsplib2/rsplib/subnetcalc.cc - Improved RegistrarTable's selection of PR. - Added translation support into FractalPoolUser. - Cleaned up directory. ------------------------------------------------------------------------ r2189 | dreibh | 2009-08-04 15:58:26 +0200 (Tue, 04 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/asapinstance.c Removed debug output code. ------------------------------------------------------------------------ r2188 | dreibh | 2009-08-04 15:39:36 +0200 (Tue, 04 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c Daemon mode fixes in ASAPInstance. ------------------------------------------------------------------------ r2187 | dreibh | 2009-08-04 15:16:45 +0200 (Tue, 04 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c ------------------------------------------------------------------------ r2186 | dreibh | 2009-08-04 15:06:16 +0200 (Tue, 04 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c ------------------------------------------------------------------------ r2185 | dreibh | 2009-08-04 14:57:52 +0200 (Tue, 04 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c ------------------------------------------------------------------------ r2184 | dreibh | 2009-08-04 14:43:29 +0200 (Tue, 04 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c Fixed daemon mode handling: must register PE to owned PEs even upon registration failure -> in order to retry later! ------------------------------------------------------------------------ r2183 | dreibh | 2009-08-04 13:45:08 +0200 (Tue, 04 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c ------------------------------------------------------------------------ r2182 | dreibh | 2009-08-04 13:26:17 +0200 (Tue, 04 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c Aborting ASAP connection upon EndpointKeepAlive timeout. ------------------------------------------------------------------------ r2181 | dreibh | 2009-08-04 10:44:50 +0200 (Tue, 04 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r2180 | dreibh | 2009-08-04 09:36:36 +0200 (Tue, 04 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/Makefile.am ------------------------------------------------------------------------ r2179 | dreibh | 2009-08-04 09:30:05 +0200 (Tue, 04 Aug 2009) | 1 line Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rsplib-registrar.init ------------------------------------------------------------------------ r2178 | dreibh | 2009-08-04 09:29:58 +0200 (Tue, 04 Aug 2009) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/storage/ss.init M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h - Improved PE handling: in daemon mode, the server is not aborted -> retrying instead. - Improved RegistrarTable. Also using poll() instead of select() now. ------------------------------------------------------------------------ r2177 | dreibh | 2009-08-03 18:53:33 +0200 (Mon, 03 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/rserpoolsocket.c Filter out all addresses of scope less than site local before registration. ------------------------------------------------------------------------ r2176 | dreibh | 2009-08-03 18:22:49 +0200 (Mon, 03 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Reverted change: Do not parse link-local transport addresses, since their scope is unknown! ------------------------------------------------------------------------ r2175 | dreibh | 2009-08-03 17:37:01 +0200 (Mon, 03 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/rserpoolmessageparser.c scanTransportParameter(): Do not care for address scope here. This will be checked within the registrar's core anyway. ------------------------------------------------------------------------ r2174 | dreibh | 2009-08-02 20:42:46 +0200 (Sun, 02 Aug 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/server.cc Ignore SIGHUP in daemon mode (registrar, server). ------------------------------------------------------------------------ r2173 | dreibh | 2009-07-31 23:52:39 +0200 (Fri, 31 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2172 | dreibh | 2009-07-31 23:52:24 +0200 (Fri, 31 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/server.cc Call CSP Reporter's report function also during registrar search => better scenario overview! ------------------------------------------------------------------------ r2171 | dreibh | 2009-07-31 23:42:03 +0200 (Fri, 31 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Reverted to revision 2142 -> added locking caused deadlocks ... ------------------------------------------------------------------------ r2170 | dreibh | 2009-07-31 23:38:44 +0200 (Fri, 31 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.h Using more useful defaults for registrar timeout settings. ------------------------------------------------------------------------ r2169 | dreibh | 2009-07-31 23:32:21 +0200 (Fri, 31 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rsputilities.c ------------------------------------------------------------------------ r2168 | dreibh | 2009-07-31 23:32:08 +0200 (Fri, 31 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/terminal.8 Added parameters to set ASAP request/response/connect timeouts. ------------------------------------------------------------------------ r2167 | dreibh | 2009-07-31 13:56:28 +0200 (Fri, 31 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/docs/Handbook.lyx ------------------------------------------------------------------------ r2166 | dreibh | 2009-07-31 13:11:00 +0200 (Fri, 31 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2165 | dreibh | 2009-07-31 12:37:50 +0200 (Fri, 31 Jul 2009) | 1 line Changed paths: A /trunk/rsplib2/rsplib/storage/ss-registrar.init ------------------------------------------------------------------------ r2164 | dreibh | 2009-07-31 12:35:40 +0200 (Fri, 31 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2163 | dreibh | 2009-07-31 12:34:11 +0200 (Fri, 31 Jul 2009) | 1 line Changed paths: A /trunk/rsplib2/rsplib/storage/ss.init ------------------------------------------------------------------------ r2161 | dreibh | 2009-07-14 11:50:45 +0200 (Tue, 14 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrartable.c Changed loglevel for failed peeloff() -> ERROR to VERBOSE. This is a more useful setting, since a peeloff problem occurs when the association is down before peeloff. ------------------------------------------------------------------------ r2159 | dreibh | 2009-07-11 18:15:14 +0200 (Sat, 11 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2158 | dreibh | 2009-07-11 18:14:12 +0200 (Sat, 11 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/combinesummaries.cc Fixed buffer overflow in combinesummaries. ------------------------------------------------------------------------ r2157 | dreibh | 2009-07-11 16:57:37 +0200 (Sat, 11 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rspenhancedmode.c Fixed a set of mutex problems found by Helgrind. ------------------------------------------------------------------------ r2156 | dreibh | 2009-07-11 16:52:40 +0200 (Sat, 11 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessage.c Moved error log from LOG_ERROR to LOG_VERBOSE. This is much more useful. ------------------------------------------------------------------------ r2155 | dreibh | 2009-07-11 16:52:04 +0200 (Sat, 11 Jul 2009) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/timer.c - Behaviour change: within the callback function, the Dispatcher is not locked any more. Because of this, whenever a Timer/Socket is modified, the handling is aborted until next round. - At timer event handling, getMicroTime() is called only once. This should reduce system calls. ------------------------------------------------------------------------ r2154 | dreibh | 2009-07-11 14:39:46 +0200 (Sat, 11 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h Fixed mutex problems found by Helgrind. ------------------------------------------------------------------------ r2153 | dreibh | 2009-07-11 14:18:50 +0200 (Sat, 11 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/timer.c Fixed race condition. ------------------------------------------------------------------------ r2152 | dreibh | 2009-07-11 13:53:16 +0200 (Sat, 11 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h Improved mutex handling for FractalPoolUser. ------------------------------------------------------------------------ r2151 | dreibh | 2009-07-11 13:52:44 +0200 (Sat, 11 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rspenhancedmode.c Fixed mutex problems found by Helgrind. ------------------------------------------------------------------------ r2150 | dreibh | 2009-07-08 21:33:12 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c Fixed bug in ASAP Instance handling (introduced by mutex change before). ------------------------------------------------------------------------ r2147 | dreibh | 2009-07-08 16:08:52 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in Removed support for glib 1.2. This library is really out of date now. All recent systems by default have already glib 2.0. ------------------------------------------------------------------------ r2146 | dreibh | 2009-07-08 16:04:42 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/rspbasicmode.c Fixed race condition: ASAP main loop thread may not start before all static registrars have been added! asapInstanceNew() now only initializes the ASAPInstance, the new function asapInstanceStartThread() actually starts the main loop thread. ------------------------------------------------------------------------ r2145 | dreibh | 2009-07-08 15:52:26 +0200 (Wed, 08 Jul 2009) | 1 line Changed paths: D /trunk/rsplib2/rsplib/debug A /trunk/rsplib2/rsplib/debug.helgrind (from /trunk/rsplib2/rsplib/debug:2137) A /trunk/rsplib2/rsplib/debug.memcheck (from /trunk/rsplib2/rsplib/debug:2137) ------------------------------------------------------------------------ r2144 | dreibh | 2009-07-08 15:20:18 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/loglevel.h Fixed mutex locking warning on ASAPInstance's shutdown status variable. ------------------------------------------------------------------------ r2143 | dreibh | 2009-07-08 15:19:14 +0200 (Wed, 08 Jul 2009) | 4 lines Changed paths: M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h Removed Name filed in ThreadSafety, also removed logging of mutex actions. => Helgrind is much more useful for debugging mutex problems. => Safes 32 bytes per ThreadSafety + overhead. ------------------------------------------------------------------------ r2142 | dreibh | 2009-07-08 15:02:29 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Fixed invalid locking/unlocking of RSerPool socket's mutex. This bug resulted in Helgrind reporting the socket as still locked on rsp_close(). ------------------------------------------------------------------------ r2141 | dreibh | 2009-07-08 14:50:10 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h Fixed locking problem in ASAP main loop. ------------------------------------------------------------------------ r2140 | dreibh | 2009-07-08 14:11:27 +0200 (Wed, 08 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r2139 | dreibh | 2009-07-08 14:00:27 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h Fixed locking order for AITM handling: before scheduling a timer for an AITM, the Dispatcher must be locked! ------------------------------------------------------------------------ r2138 | dreibh | 2009-07-08 12:51:22 +0200 (Wed, 08 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Added threadSafetyUnlock() before threadSafetyDelete() -> removes Helgrind warning. ------------------------------------------------------------------------ r2137 | dreibh | 2009-07-07 16:15:31 +0200 (Tue, 07 Jul 2009) | 1 line Changed paths: M /trunk/rsplib2/Makefile.am ------------------------------------------------------------------------ r2136 | dreibh | 2009-07-07 15:51:07 +0200 (Tue, 07 Jul 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog A /trunk/rsplib2/make-ppa M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/scriptingclient.c Improved poll() timeout calculation: microseconds/1000 may result in 0 -> busy loop until timeout is reached. Using now (int)ceil(microseconds/1000.0). ------------------------------------------------------------------------ r2135 | dreibh | 2009-07-07 11:20:40 +0200 (Tue, 07 Jul 2009) | 4 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/povray/run-povray-for-files M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h - Fix for ext_poll() wrapper on MacOS: do not return when there are no sockets. ext_poll() may be used for waiting only. - Updated TDThread class. - Added "Show Sessions" option to fractalpooluser. ------------------------------------------------------------------------ r2132 | dreibh | 2009-06-13 10:52:33 +0200 (Sat, 13 Jun 2009) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/copyright M /trunk/rsplib2/debian/rules Updated Debian files. ------------------------------------------------------------------------ r2131 | dreibh | 2009-06-09 10:54:42 +0200 (Tue, 09 Jun 2009) | 1 line Changed paths: M /trunk/rsplib2/pbuilderrc.ubuntu ------------------------------------------------------------------------ r2130 | dreibh | 2009-06-09 10:53:01 +0200 (Tue, 09 Jun 2009) | 1 line Changed paths: M /trunk/rsplib2/pbuilderrc.ubuntu ------------------------------------------------------------------------ r2127 | dreibh | 2009-05-21 11:28:06 +0200 (Thu, 21 May 2009) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2126 | dreibh | 2009-05-20 13:34:17 +0200 (Wed, 20 May 2009) | 2 lines Changed paths: M /trunk/rsplib2/README Updated README. ------------------------------------------------------------------------ r2125 | dreibh | 2009-05-20 13:33:14 +0200 (Wed, 20 May 2009) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r2124 | dreibh | 2009-05-20 13:30:26 +0200 (Wed, 20 May 2009) | 4 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/planetlab/planetlab-config Fixes for FractalPU: - Variable "Run" was not initialized on startup - setHsv() may have been called with h>255 -> Qt error message and wrong pixel color. ------------------------------------------------------------------------ r2123 | dreibh | 2009-05-12 12:04:48 +0200 (Tue, 12 May 2009) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rsplib-registrar.init ------------------------------------------------------------------------ r2122 | dreibh | 2009-05-04 09:50:14 +0200 (Mon, 04 May 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/server.cc Made code for detecting number of CPUs/cores portable by using sysconf instead of reading /proc/cpuinfo. Works now also under FreeBSD and MacOS X. ------------------------------------------------------------------------ r2121 | dreibh | 2009-05-04 09:38:10 +0200 (Mon, 04 May 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/server.cc Scripting Service default parameter improvement: ssmaxthreads=number of CPUs/cores. ------------------------------------------------------------------------ r2120 | dreibh | 2009-05-02 18:17:15 +0200 (Sat, 02 May 2009) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc Another scripting service bugfix: only run clean-up script if there is a temporary directory to clean up. ------------------------------------------------------------------------ r2119 | dreibh | 2009-05-02 10:44:46 +0200 (Sat, 02 May 2009) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog ------------------------------------------------------------------------ r2118 | dreibh | 2009-05-02 10:43:53 +0200 (Sat, 02 May 2009) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf Updated Debian configuration to Karmic Koala. ------------------------------------------------------------------------ r2117 | dreibh | 2009-04-30 10:56:33 +0200 (Thu, 30 Apr 2009) | 3 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/docs/EN-RSerPool-ProtocolStack.pdf M /trunk/rsplib2/docs/EN-RSerPool-Scenario-with-PPE.pdf M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/rsplib/scriptingservice.cc - Minor bugfix in scripting service: avoid printing of "false positive" error message if scriptingcontrol is not found in current directory but found in search path. - Updated handbook. ------------------------------------------------------------------------ r2116 | dreibh | 2009-04-25 14:14:50 +0200 (Sat, 25 Apr 2009) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2115 | dreibh | 2009-04-24 16:12:03 +0200 (Fri, 24 Apr 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r2114 | dreibh | 2009-03-14 14:25:27 +0100 (Sat, 14 Mar 2009) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t1.c ------------------------------------------------------------------------ r2113 | dreibh | 2009-03-14 13:37:26 +0100 (Sat, 14 Mar 2009) | 1 line Changed paths: A /trunk/rsplib2/rsplib/t1.c ------------------------------------------------------------------------ r2112 | dreibh | 2009-03-14 13:01:35 +0100 (Sat, 14 Mar 2009) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/fractalpooluser.cc A /trunk/rsplib2/rsplib/rserpool-csp.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/udplikeserver.cc Fixed installed include files: CSP is in rserpool-csp.h now, ext_socket.h is not included any more. ------------------------------------------------------------------------ r2111 | dreibh | 2009-02-23 15:43:11 +0100 (Mon, 23 Feb 2009) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog Added Debian ITP number. ------------------------------------------------------------------------ r2108 | dreibh | 2009-02-21 13:54:25 +0100 (Sat, 21 Feb 2009) | 2 lines Changed paths: M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Debian script fixes. ------------------------------------------------------------------------ r2107 | dreibh | 2009-02-15 19:43:31 +0100 (Sun, 15 Feb 2009) | 1 line Changed paths: M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r2106 | dreibh | 2009-02-15 19:32:38 +0100 (Sun, 15 Feb 2009) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian.conf M /trunk/rsplib2/make-deb D /trunk/rsplib2/pbuilderrc A /trunk/rsplib2/pbuilderrc.debian A /trunk/rsplib2/pbuilderrc.ubuntu (from /trunk/rsplib2/pbuilderrc:2105) Updated Debian scripts. ------------------------------------------------------------------------ r2105 | dreibh | 2009-02-04 14:24:44 +0100 (Wed, 04 Feb 2009) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf M /trunk/rsplib2/rsplib/planetlab/planetlab-config Debian script fixes. ------------------------------------------------------------------------ r2104 | dreibh | 2009-01-29 13:42:10 +0100 (Thu, 29 Jan 2009) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib.lsm ------------------------------------------------------------------------ r2099 | dreibh | 2009-01-16 12:31:52 +0100 (Fri, 16 Jan 2009) | 3 lines Changed paths: M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Qt 4.x detection updated. Do not look in /usr/share/... for libQt* first. This directory is only available in development environments. Package build will fail to detect the library dependency -> pbuilder will fail. ------------------------------------------------------------------------ r2097 | dreibh | 2009-01-15 11:22:31 +0100 (Thu, 15 Jan 2009) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog ------------------------------------------------------------------------ r2092 | dreibh | 2009-01-15 11:18:28 +0100 (Thu, 15 Jan 2009) | 2 lines Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/clean-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian.conf M /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/rserpool-policytypes.h D /trunk/rsplib2/rsplib/t1.cc D /trunk/rsplib2/rsplib/t2.cc D /trunk/rsplib2/rsplib/t2.h D /trunk/rsplib2/rsplib/tests Header updates. ------------------------------------------------------------------------ r2088 | dreibh | 2009-01-07 13:51:56 +0100 (Wed, 07 Jan 2009) | 1 line Changed paths: M /trunk/rsplib2/acinclude.m4 ------------------------------------------------------------------------ r2087 | dreibh | 2009-01-07 13:43:10 +0100 (Wed, 07 Jan 2009) | 2 lines Changed paths: M /trunk/rsplib2/acinclude.m4 FreeBSD 7.1 Qt 4.x detection improved. ------------------------------------------------------------------------ r2086 | dreibh | 2009-01-07 11:29:41 +0100 (Wed, 07 Jan 2009) | 2 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/README M /trunk/rsplib2/UpdateDoc1.sed M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/add-dummy-interface M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/combinesummaries.cc M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/createsummary.cc M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/make-rootshell M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/pooluserlist-template.h M /trunk/rsplib2/rsplib/pooluserlist-template_impl.h M /trunk/rsplib2/rsplib/poolusernode-template.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar-debug M /trunk/rsplib2/rsplib/reniceall M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/scriptingcontrol M /trunk/rsplib2/rsplib/scriptingserviceexample M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server M /trunk/rsplib2/rsplib/ss-server-150 M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/timestamphashtable.c M /trunk/rsplib2/rsplib/timestamphashtable.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h Qt 4.x detection improved. ------------------------------------------------------------------------ r2085 | dreibh | 2008-12-29 11:19:31 +0100 (Mon, 29 Dec 2008) | 1 line Changed paths: A /trunk/rsplib2/pbuilderrc ------------------------------------------------------------------------ r2082 | dreibh | 2008-12-28 21:54:01 +0100 (Sun, 28 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/rsplib/Makefile.am Qt4 build process working now. ------------------------------------------------------------------------ r2081 | dreibh | 2008-12-28 21:16:37 +0100 (Sun, 28 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fractalpooluser.cc More Qt4 compile fixes. ------------------------------------------------------------------------ r2080 | dreibh | 2008-12-28 19:36:20 +0100 (Sun, 28 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc Fixed cast. ------------------------------------------------------------------------ r2079 | dreibh | 2008-12-28 19:03:23 +0100 (Sun, 28 Dec 2008) | 4 lines Changed paths: M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/debian/control Fixed Ubuntu build problem with Qt4: Must be linked with Qt libraries in /usr/lib, and not with symlinked libraries in /usr/share/qt4. The symlinks are only available when developer package of Qt 4.x is installed. ------------------------------------------------------------------------ r2078 | dreibh | 2008-12-28 18:28:54 +0100 (Sun, 28 Dec 2008) | 1 line Changed paths: A /trunk/rsplib2/UpdateDoc1.sed A /trunk/rsplib2/UpdateDocFile1.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control ------------------------------------------------------------------------ r2077 | dreibh | 2008-12-28 17:16:38 +0100 (Sun, 28 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/AUTHORS M /trunk/rsplib2/BUGS M /trunk/rsplib2/README M /trunk/rsplib2/debian/watch M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/rsplib.lsm More file updates. ------------------------------------------------------------------------ r2076 | dreibh | 2008-12-28 16:52:34 +0100 (Sun, 28 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/debian/copyright M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/combinesummaries.cc M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/createsummary.cc M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/planetlab/ComponentControl M /trunk/rsplib2/rsplib/planetlab/ComponentControl.config M /trunk/rsplib2/rsplib/planetlab/RemoteComponentControl M /trunk/rsplib2/rsplib/planetlab/combine-disaster-scenario1-results M /trunk/rsplib2/rsplib/planetlab/combine-vectors M /trunk/rsplib2/rsplib/planetlab/prepare-compilehost M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-security.c M /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample.8 M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/t2.cc M /trunk/rsplib2/rsplib/t2.h M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/terminal.8 M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/tests/t7.h M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h M /trunk/rsplib2/rsplib/wireshark/packet-calcappprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-componentstatus.c M /trunk/rsplib2/rsplib/wireshark/packet-fractalgeneratorprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-pingpongprotocol.c Header updates. ------------------------------------------------------------------------ r2075 | dreibh | 2008-12-28 16:23:46 +0100 (Sun, 28 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h Updated Fractal Pool User to Qt 4.x. rsplib now requires Qt 4.x to compile this PU. ------------------------------------------------------------------------ r2074 | dreibh | 2008-12-28 16:15:40 +0100 (Sun, 28 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t2.cc A /trunk/rsplib2/rsplib/t2.h ------------------------------------------------------------------------ r2073 | dreibh | 2008-12-28 11:41:17 +0100 (Sun, 28 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r2072 | dreibh | 2008-12-27 18:55:35 +0100 (Sat, 27 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/add-dummy-interface M /trunk/rsplib2/rsplib/fractalpooluser.cc A /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r2071 | dreibh | 2008-12-15 09:32:02 +0100 (Mon, 15 Dec 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/wireshark/packet-asap.c A /trunk/rsplib2/rsplib/wireshark/packet-enrp.c ------------------------------------------------------------------------ r2070 | dreibh | 2008-12-12 15:18:01 +0100 (Fri, 12 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r2066 | dreibh | 2008-12-12 14:47:23 +0100 (Fri, 12 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/server.cc Fixed compile problem under FreeBSD. ------------------------------------------------------------------------ r2064 | dreibh | 2008-12-12 13:29:13 +0100 (Fri, 12 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/planetlab/attack-scenario4 M /trunk/rsplib2/rsplib/planetlab/plot-wp2-shutdown-localI.R M /trunk/rsplib2/rsplib/planetlab/run-wp2-shutdown-localI ------------------------------------------------------------------------ r2063 | dreibh | 2008-12-05 14:35:26 +0100 (Fri, 05 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/planetlab/attack-scenario4 A /trunk/rsplib2/rsplib/planetlab/plot-wp2-shutdown-localI.R (from /trunk/rsplib2/rsplib/planetlab/plot-wp2-cookies-localI.R:2061) M /trunk/rsplib2/rsplib/planetlab/run-wp2-cookies-localI A /trunk/rsplib2/rsplib/planetlab/run-wp2-shutdown-localI M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/server.8 ------------------------------------------------------------------------ r2062 | dreibh | 2008-12-03 23:02:20 +0100 (Wed, 03 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/planetlab/run-wp2-cookies-localI M /trunk/rsplib2/rsplib/randomizer.c ------------------------------------------------------------------------ r2061 | dreibh | 2008-12-03 16:08:18 +0100 (Wed, 03 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/attack-scenario4 A /trunk/rsplib2/rsplib/planetlab/plot-wp2-cookies-localI.R (from /trunk/rsplib2/rsplib/planetlab/plot-wp2-dynpool-mtbf-localI.R:2060) M /trunk/rsplib2/rsplib/planetlab/run-wp2-cookies-localI M /trunk/rsplib2/rsplib/planetlab/run-wp2-dynpool-mtbf-localI M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc Replaced microseconds units for CalcApp PE parameters (this fine-granular unit did not make sense here). ------------------------------------------------------------------------ r2060 | dreibh | 2008-12-03 15:30:34 +0100 (Wed, 03 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R A /trunk/rsplib2/rsplib/planetlab/plot-wp2-dynpool-mtbf-localI.R A /trunk/rsplib2/rsplib/planetlab/run-wp2-cookies-localI (from /trunk/rsplib2/rsplib/planetlab/run-wp2-dynpool-mtbf-localI:2059) ------------------------------------------------------------------------ r2059 | dreibh | 2008-12-03 15:26:20 +0100 (Wed, 03 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/attack-scenario4 D /trunk/rsplib2/rsplib/planetlab/run-test1 A /trunk/rsplib2/rsplib/planetlab/run-wp2-dynpool-mtbf-localI (from /trunk/rsplib2/rsplib/planetlab/run-test1:2057) ------------------------------------------------------------------------ r2058 | dreibh | 2008-12-03 11:50:26 +0100 (Wed, 03 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r2057 | dreibh | 2008-12-03 11:37:34 +0100 (Wed, 03 Dec 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/attack-scenario4 (from /trunk/rsplib2/rsplib/planetlab/attack-scenario3:2055) A /trunk/rsplib2/rsplib/planetlab/run-test1 ------------------------------------------------------------------------ r2056 | dreibh | 2008-12-03 11:26:00 +0100 (Wed, 03 Dec 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc Added parameter -capcleanshutdownprobability to PE for CalcApp service. ------------------------------------------------------------------------ r2055 | dreibh | 2008-12-03 09:46:11 +0100 (Wed, 03 Dec 2008) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h - Added failure test mode (uptime/downtime parameters) to PE. - Improved failure test code of registrar. ------------------------------------------------------------------------ r2054 | dreibh | 2008-12-01 13:28:33 +0100 (Mon, 01 Dec 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII ------------------------------------------------------------------------ r2042 | dreibh | 2008-11-30 17:01:12 +0100 (Sun, 30 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper3planetlab.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII ------------------------------------------------------------------------ r2040 | dreibh | 2008-11-28 15:02:30 +0100 (Fri, 28 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/plot-paper3.R A /trunk/rsplib2/rsplib/planetlab/plot-paper3planetlab.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r2039 | dreibh | 2008-11-28 12:51:09 +0100 (Fri, 28 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper3.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII ------------------------------------------------------------------------ r2038 | dreibh | 2008-11-28 12:29:57 +0100 (Fri, 28 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper3.R ------------------------------------------------------------------------ r2037 | dreibh | 2008-11-27 16:07:26 +0100 (Thu, 27 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper3.R ------------------------------------------------------------------------ r2036 | dreibh | 2008-11-27 16:06:28 +0100 (Thu, 27 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper3.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r2035 | dreibh | 2008-11-27 12:12:33 +0100 (Thu, 27 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r2032 | dreibh | 2008-11-26 19:18:54 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c ------------------------------------------------------------------------ r2031 | dreibh | 2008-11-26 18:32:30 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII ------------------------------------------------------------------------ r2030 | dreibh | 2008-11-26 18:30:32 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper3.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII ------------------------------------------------------------------------ r2029 | dreibh | 2008-11-26 18:20:57 +0100 (Wed, 26 Nov 2008) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII M /trunk/rsplib2/rsplib/planetlab/servicecontrol M /trunk/rsplib2/rsplib/planetlab/ssh-tool M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/server.cc - Added daemon mode to server and calcappclient. - registrar: enter daemon mode before using SCTP when using userland SCTP. ------------------------------------------------------------------------ r2028 | dreibh | 2008-11-26 14:45:46 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 ------------------------------------------------------------------------ r2027 | dreibh | 2008-11-26 14:42:31 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/install-binaries M /trunk/rsplib2/rsplib/planetlab/prepare-compilehost M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r2026 | dreibh | 2008-11-26 14:20:49 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r2025 | dreibh | 2008-11-26 12:46:38 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r2024 | dreibh | 2008-11-26 11:18:46 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII ------------------------------------------------------------------------ r2023 | dreibh | 2008-11-26 11:17:51 +0100 (Wed, 26 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/ssh-tool M /trunk/rsplib2/rsplib/randomizer.c ------------------------------------------------------------------------ r2021 | dreibh | 2008-11-25 21:30:46 +0100 (Tue, 25 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper3.R M /trunk/rsplib2/rsplib/registrar-global.c ------------------------------------------------------------------------ r2020 | dreibh | 2008-11-24 10:10:19 +0100 (Mon, 24 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R A /trunk/rsplib2/rsplib/planetlab/plot-paper3.R M /trunk/rsplib2/rsplib/planetlab/run-planetlab-tests M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII ------------------------------------------------------------------------ r2019 | dreibh | 2008-11-21 13:49:54 +0100 (Fri, 21 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII ------------------------------------------------------------------------ r2018 | dreibh | 2008-11-21 10:04:06 +0100 (Fri, 21 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r2017 | dreibh | 2008-11-20 17:12:04 +0100 (Thu, 20 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 A /trunk/rsplib2/rsplib/planetlab/plot-tos-pr-failure-planetlabII.R (from /trunk/rsplib2/rsplib/planetlab/plot-tos-pr-failure-localII.R:2016) A /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-planetlabII (from /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII:2015) ------------------------------------------------------------------------ r2016 | dreibh | 2008-11-20 16:38:58 +0100 (Thu, 20 Nov 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-tos-pr-failure-localII.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII ------------------------------------------------------------------------ r2015 | dreibh | 2008-11-20 12:23:54 +0100 (Thu, 20 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabI A /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localII (from /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI:2014) ------------------------------------------------------------------------ r2014 | dreibh | 2008-11-20 12:20:20 +0100 (Thu, 20 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/plot-tos-pr-failureI.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI ------------------------------------------------------------------------ r2013 | dreibh | 2008-11-20 09:42:41 +0100 (Thu, 20 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 D /trunk/rsplib2/rsplib/planetlab/plot-test1.R D /trunk/rsplib2/rsplib/planetlab/plot-test2.R D /trunk/rsplib2/rsplib/planetlab/plot-test3.R D /trunk/rsplib2/rsplib/planetlab/plot-test4.R D /trunk/rsplib2/rsplib/planetlab/plot-test5.R D /trunk/rsplib2/rsplib/planetlab/plot-test6.R D /trunk/rsplib2/rsplib/planetlab/plot-test7.R D /trunk/rsplib2/rsplib/planetlab/plot-test8.R A /trunk/rsplib2/rsplib/planetlab/plot-tos-pr-failureI.R M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI M /trunk/rsplib2/rsplib/registrar-asap.c ------------------------------------------------------------------------ r2012 | dreibh | 2008-11-19 11:30:13 +0100 (Wed, 19 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h ------------------------------------------------------------------------ r2011 | dreibh | 2008-11-18 19:20:38 +0100 (Tue, 18 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.h ------------------------------------------------------------------------ r2010 | dreibh | 2008-11-18 18:48:17 +0100 (Tue, 18 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario3 M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI ------------------------------------------------------------------------ r2009 | dreibh | 2008-11-17 18:03:53 +0100 (Mon, 17 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper2.R ------------------------------------------------------------------------ r2008 | dreibh | 2008-11-14 15:49:38 +0100 (Fri, 14 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/plot-paper2.R M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r2007 | dreibh | 2008-11-14 11:49:54 +0100 (Fri, 14 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/t1.cc M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h ------------------------------------------------------------------------ r2003 | dreibh | 2008-11-07 22:21:08 +0100 (Fri, 07 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper2.R M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r2002 | dreibh | 2008-11-07 21:42:27 +0100 (Fri, 07 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/plot-paper2.R ------------------------------------------------------------------------ r2001 | dreibh | 2008-11-07 14:15:42 +0100 (Fri, 07 Nov 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/plotter.R Fixed bSet label bug in plotter.R. ------------------------------------------------------------------------ r2000 | dreibh | 2008-11-07 09:58:30 +0100 (Fri, 07 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/messung-V.txt M /trunk/rsplib2/rsplib/subnetcalc.cc ------------------------------------------------------------------------ r1999 | dreibh | 2008-11-07 09:30:23 +0100 (Fri, 07 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/subnetcalc.cc ------------------------------------------------------------------------ r1998 | dreibh | 2008-11-06 18:01:56 +0100 (Thu, 06 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/combine-disaster-scenario1-results M /trunk/rsplib2/rsplib/planetlab/combine-journal2006 A /trunk/rsplib2/rsplib/planetlab/messung-V.txt M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 ------------------------------------------------------------------------ r1997 | dreibh | 2008-11-06 13:16:26 +0100 (Thu, 06 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-kivs2007.R M /trunk/rsplib2/rsplib/planetlab/plotter.R ------------------------------------------------------------------------ r1996 | dreibh | 2008-11-05 17:31:35 +0100 (Wed, 05 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plotter.R ------------------------------------------------------------------------ r1995 | dreibh | 2008-11-05 15:12:30 +0100 (Wed, 05 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/create-hosts-files ------------------------------------------------------------------------ r1994 | dreibh | 2008-11-05 14:40:42 +0100 (Wed, 05 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/combine-disaster-scenario1-results M /trunk/rsplib2/rsplib/planetlab/combine-journal2006 M /trunk/rsplib2/rsplib/planetlab/combine-vectors M /trunk/rsplib2/rsplib/planetlab/plot-journal2006.R M /trunk/rsplib2/rsplib/planetlab/plot-kivs2007.R M /trunk/rsplib2/rsplib/planetlab/plotter.R ------------------------------------------------------------------------ r1993 | dreibh | 2008-11-04 19:33:32 +0100 (Tue, 04 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 ------------------------------------------------------------------------ r1992 | dreibh | 2008-11-04 19:09:34 +0100 (Tue, 04 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario2 M /trunk/rsplib2/rsplib/planetlab/three-regions-scenario ------------------------------------------------------------------------ r1991 | dreibh | 2008-11-04 15:48:13 +0100 (Tue, 04 Nov 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper2.R ------------------------------------------------------------------------ r1990 | dreibh | 2008-11-04 10:30:42 +0100 (Tue, 04 Nov 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-paper2.R (from /trunk/rsplib2/rsplib/planetlab/plot-paper1.R:1987) ------------------------------------------------------------------------ r1989 | dreibh | 2008-10-24 14:21:30 +0200 (Fri, 24 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r1988 | dreibh | 2008-10-24 13:51:39 +0200 (Fri, 24 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian.conf M /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/planetlab/plotter.R ------------------------------------------------------------------------ r1987 | dreibh | 2008-10-23 17:42:27 +0200 (Thu, 23 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog A /trunk/rsplib2/rsplib/planetlab/archive-all-tests M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabII ------------------------------------------------------------------------ r1986 | dreibh | 2008-10-21 15:38:55 +0200 (Tue, 21 Oct 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/timeutilities.c Fixed warnings in Intrepid. ------------------------------------------------------------------------ r1985 | dreibh | 2008-10-15 17:06:58 +0200 (Wed, 15 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control ------------------------------------------------------------------------ r1984 | dreibh | 2008-10-15 17:06:38 +0200 (Wed, 15 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/rsplib/createsummary.cc ------------------------------------------------------------------------ r1983 | dreibh | 2008-10-15 16:04:04 +0200 (Wed, 15 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/control M /trunk/rsplib2/rsplib.lsm ------------------------------------------------------------------------ r1982 | dreibh | 2008-10-15 15:55:56 +0200 (Wed, 15 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-localI M /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI ------------------------------------------------------------------------ r1981 | dreibh | 2008-10-15 15:51:59 +0200 (Wed, 15 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabII M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-planetlabII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r1980 | dreibh | 2008-10-15 15:49:08 +0200 (Wed, 15 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabII M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-planetlabII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI A /trunk/rsplib2/rsplib/planetlab/run-planetlab-tests ------------------------------------------------------------------------ r1979 | dreibh | 2008-10-02 16:12:17 +0200 (Thu, 02 Oct 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/attack-scenario3 (from /trunk/rsplib2/rsplib/planetlab/attack-scenario2:1978) A /trunk/rsplib2/rsplib/planetlab/run-tos-pr-failure-localI ------------------------------------------------------------------------ r1978 | dreibh | 2008-10-02 15:37:01 +0200 (Thu, 02 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r1977 | dreibh | 2008-10-02 15:27:49 +0200 (Thu, 02 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 ------------------------------------------------------------------------ r1976 | dreibh | 2008-10-02 14:59:23 +0200 (Thu, 02 Oct 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-countermeasure-planetlabI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-countermeasure-localI.R:1972) A /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-countermeasure-planetlabII.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-countermeasure-localII.R:1972) A /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-planetlabI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-localI.R:1972) A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-planetlabI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-localI.R:1972) A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-planetlabII.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-localII.R:1972) M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-planetlabI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r1975 | dreibh | 2008-10-02 14:51:28 +0200 (Thu, 02 Oct 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabI (from /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI:1972) A /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-planetlabII (from /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII:1972) ------------------------------------------------------------------------ r1974 | dreibh | 2008-10-02 11:55:18 +0200 (Thu, 02 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 ------------------------------------------------------------------------ r1973 | dreibh | 2008-10-02 11:49:32 +0200 (Thu, 02 Oct 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config A /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-planetlabI A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-planetlabI (from /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI:1972) A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-planetlabII (from /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localII:1972) M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r1972 | dreibh | 2008-09-30 05:26:14 +0200 (Tue, 30 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localII ------------------------------------------------------------------------ r1971 | dreibh | 2008-09-30 05:26:02 +0200 (Tue, 30 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI ------------------------------------------------------------------------ r1970 | dreibh | 2008-09-29 06:04:21 +0200 (Mon, 29 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper1.R M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-localI ------------------------------------------------------------------------ r1969 | dreibh | 2008-09-28 10:18:06 +0200 (Sun, 28 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-localI ------------------------------------------------------------------------ r1968 | dreibh | 2008-09-28 10:17:27 +0200 (Sun, 28 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII ------------------------------------------------------------------------ r1967 | dreibh | 2008-09-26 06:43:39 +0200 (Fri, 26 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localII ------------------------------------------------------------------------ r1966 | dreibh | 2008-09-26 05:53:38 +0200 (Fri, 26 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI ------------------------------------------------------------------------ r1965 | dreibh | 2008-09-26 05:48:19 +0200 (Fri, 26 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI ------------------------------------------------------------------------ r1964 | dreibh | 2008-09-25 10:48:35 +0200 (Thu, 25 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r1963 | dreibh | 2008-09-25 10:47:27 +0200 (Thu, 25 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/install-binaries-on-all-nodes M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r1962 | dreibh | 2008-09-25 10:39:14 +0200 (Thu, 25 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r1961 | dreibh | 2008-09-25 09:54:14 +0200 (Thu, 25 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/create-binaries M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI ------------------------------------------------------------------------ r1960 | dreibh | 2008-09-25 09:52:31 +0200 (Thu, 25 Sep 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/attacker.cc D /trunk/rsplib2/rsplib/planetlab/run-attack1c M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c Bugfix in attacker: fixed wrong parameter sequence for memset(...). ------------------------------------------------------------------------ r1959 | dreibh | 2008-09-25 05:36:56 +0200 (Thu, 25 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 ------------------------------------------------------------------------ r1958 | dreibh | 2008-09-25 05:31:01 +0200 (Thu, 25 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/attacker.cc ------------------------------------------------------------------------ r1957 | dreibh | 2008-09-25 05:03:45 +0200 (Thu, 25 Sep 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c Doing ABORT when on failure of sending EndpointKeepAlive, RegistrationResponse or DeregistrationResponse. ------------------------------------------------------------------------ r1956 | dreibh | 2008-09-24 11:12:44 +0200 (Wed, 24 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-planetlabI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-labI.R:1954) A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-planetlabI M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r1955 | dreibh | 2008-09-23 07:17:47 +0200 (Tue, 23 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI ------------------------------------------------------------------------ r1954 | dreibh | 2008-09-23 05:25:53 +0200 (Tue, 23 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/attacker.cc ------------------------------------------------------------------------ r1953 | dreibh | 2008-09-23 05:15:40 +0200 (Tue, 23 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-localI ------------------------------------------------------------------------ r1952 | dreibh | 2008-09-22 17:25:39 +0200 (Mon, 22 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-paper1.R ------------------------------------------------------------------------ r1951 | dreibh | 2008-09-22 17:14:29 +0200 (Mon, 22 Sep 2008) | 1 line Changed paths: D /trunk/rsplib2/mkinstalldirs M /trunk/rsplib2/rsplib/planetlab/plot-paper1.R ------------------------------------------------------------------------ r1950 | dreibh | 2008-09-22 12:04:57 +0200 (Mon, 22 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R A /trunk/rsplib2/rsplib/planetlab/plot-paper1.R ------------------------------------------------------------------------ r1949 | dreibh | 2008-09-22 10:49:13 +0200 (Mon, 22 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-localI ------------------------------------------------------------------------ r1948 | dreibh | 2008-09-22 10:00:19 +0200 (Mon, 22 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII ------------------------------------------------------------------------ r1947 | dreibh | 2008-09-22 09:13:58 +0200 (Mon, 22 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/run-attack1c ------------------------------------------------------------------------ r1946 | dreibh | 2008-09-21 05:38:39 +0200 (Sun, 21 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII ------------------------------------------------------------------------ r1945 | dreibh | 2008-09-21 05:29:25 +0200 (Sun, 21 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labII ------------------------------------------------------------------------ r1944 | dreibh | 2008-09-21 05:26:56 +0200 (Sun, 21 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII ------------------------------------------------------------------------ r1943 | dreibh | 2008-09-21 05:25:02 +0200 (Sun, 21 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI ------------------------------------------------------------------------ r1942 | dreibh | 2008-09-21 05:11:56 +0200 (Sun, 21 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI ------------------------------------------------------------------------ r1941 | dreibh | 2008-09-21 05:07:18 +0200 (Sun, 21 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI ------------------------------------------------------------------------ r1940 | dreibh | 2008-09-21 04:51:51 +0200 (Sun, 21 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI ------------------------------------------------------------------------ r1939 | dreibh | 2008-09-20 11:38:28 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: D /trunk/rsplib2/rsplib/planetlab/plot-attack-countermeasure3b.R D /trunk/rsplib2/rsplib/planetlab/plot-attack2b.R D /trunk/rsplib2/rsplib/planetlab/ra2 D /trunk/rsplib2/rsplib/planetlab/run-attack-countermeasure3b M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labII M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI D /trunk/rsplib2/rsplib/planetlab/run-attack2b D /trunk/rsplib2/rsplib/planetlab/t2 ------------------------------------------------------------------------ r1938 | dreibh | 2008-09-20 11:29:30 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI ------------------------------------------------------------------------ r1937 | dreibh | 2008-09-20 11:08:28 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI ------------------------------------------------------------------------ r1936 | dreibh | 2008-09-20 10:21:18 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R A /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-countermeasure-localII.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-countermeasure-localI.R:1935) A /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localII (from /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI:1935) ------------------------------------------------------------------------ r1935 | dreibh | 2008-09-20 08:59:29 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: D /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-localI ------------------------------------------------------------------------ r1934 | dreibh | 2008-09-20 08:52:22 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-countermeasure-localI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-localI.R:1930) A /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-countermeasure-localI (from /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI:1930) M /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI ------------------------------------------------------------------------ r1933 | dreibh | 2008-09-20 08:41:23 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labII ------------------------------------------------------------------------ r1932 | dreibh | 2008-09-20 08:36:28 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-localII.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-labII.R:1931) A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localII (from /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labII:1931) ------------------------------------------------------------------------ r1931 | dreibh | 2008-09-20 08:04:19 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-labI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-localI.R:1930) M /trunk/rsplib2/rsplib/planetlab/plot-attack2b.R A /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-labI (from /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI:1930) ------------------------------------------------------------------------ r1930 | dreibh | 2008-09-20 07:56:28 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-handleResolution-localI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack2.R:1929) D /trunk/rsplib2/rsplib/planetlab/plot-attack2.R A /trunk/rsplib2/rsplib/planetlab/run-attack-handleResolution-localI (from /trunk/rsplib2/rsplib/planetlab/run-attack2:1929) D /trunk/rsplib2/rsplib/planetlab/run-attack2 ------------------------------------------------------------------------ r1929 | dreibh | 2008-09-20 07:41:49 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI M /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labII ------------------------------------------------------------------------ r1928 | dreibh | 2008-09-20 07:17:50 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-labII.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-labI.R:1927) A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labII (from /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI:1927) ------------------------------------------------------------------------ r1927 | dreibh | 2008-09-20 07:13:26 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-labI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-localI.R:1925) A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-labI (from /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI:1925) ------------------------------------------------------------------------ r1926 | dreibh | 2008-09-20 07:09:01 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R A /trunk/rsplib2/rsplib/planetlab/plot-attack-countermeasure3b.R A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-labI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack1b.R:1924) D /trunk/rsplib2/rsplib/planetlab/plot-attack1b.R A /trunk/rsplib2/rsplib/planetlab/run-attack-countermeasure3b A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-labI (from /trunk/rsplib2/rsplib/planetlab/run-attack1b:1924) D /trunk/rsplib2/rsplib/planetlab/run-attack1b ------------------------------------------------------------------------ r1925 | dreibh | 2008-09-20 07:04:09 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/attack-plottertemplates.R ------------------------------------------------------------------------ r1924 | dreibh | 2008-09-20 06:57:43 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: D /trunk/rsplib2/rsplib/planetlab/plot-attack-countermeasure1.R A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-countermeasure-localI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack-countermeasure1.R:1923) A /trunk/rsplib2/rsplib/planetlab/plot-attack-registration-localI.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack1.R:1923) D /trunk/rsplib2/rsplib/planetlab/plot-attack1.R M /trunk/rsplib2/rsplib/planetlab/plotter.R D /trunk/rsplib2/rsplib/planetlab/run-attack-countermeasure1 A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-countermeasure-localI (from /trunk/rsplib2/rsplib/planetlab/run-attack-countermeasure1:1923) A /trunk/rsplib2/rsplib/planetlab/run-attack-registration-localI (from /trunk/rsplib2/rsplib/planetlab/run-attack1:1923) D /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1923 | dreibh | 2008-09-20 06:29:19 +0200 (Sat, 20 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-attack-countermeasure1.R M /trunk/rsplib2/rsplib/planetlab/plot-attack1.R M /trunk/rsplib2/rsplib/planetlab/run-attack-countermeasure1 M /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1922 | dreibh | 2008-09-19 11:26:27 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack2b.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack2.R:1914) A /trunk/rsplib2/rsplib/planetlab/run-attack2b (from /trunk/rsplib2/rsplib/planetlab/run-attack2:1914) ------------------------------------------------------------------------ r1921 | dreibh | 2008-09-19 11:01:13 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/attacker.cc ------------------------------------------------------------------------ r1920 | dreibh | 2008-09-19 10:49:04 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack1c ------------------------------------------------------------------------ r1918 | dreibh | 2008-09-19 09:20:18 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack1b A /trunk/rsplib2/rsplib/planetlab/run-attack1c ------------------------------------------------------------------------ r1917 | dreibh | 2008-09-19 08:53:12 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/plot-attack-countermeasure1.R (from /trunk/rsplib2/rsplib/planetlab/plot-attack1.R:1916) A /trunk/rsplib2/rsplib/planetlab/run-attack-countermeasure1 M /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1916 | dreibh | 2008-09-19 08:37:07 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario2 A /trunk/rsplib2/rsplib/planetlab/plot-attack1b.R A /trunk/rsplib2/rsplib/planetlab/run-attack1b ------------------------------------------------------------------------ r1915 | dreibh | 2008-09-19 08:33:31 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/plot-attack2.R M /trunk/rsplib2/rsplib/planetlab/run-attack2 ------------------------------------------------------------------------ r1914 | dreibh | 2008-09-19 06:07:46 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/ra2 ------------------------------------------------------------------------ r1913 | dreibh | 2008-09-19 05:58:24 +0200 (Fri, 19 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/attack-scenario2 ------------------------------------------------------------------------ r1912 | dreibh | 2008-09-18 11:55:51 +0200 (Thu, 18 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1911 | dreibh | 2008-09-18 08:32:45 +0200 (Thu, 18 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-attack2 ------------------------------------------------------------------------ r1910 | dreibh | 2008-09-17 18:02:51 +0200 (Wed, 17 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/plot-attack2.R M /trunk/rsplib2/rsplib/planetlab/run-attack1 M /trunk/rsplib2/rsplib/planetlab/run-attack2 M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r1909 | dreibh | 2008-09-17 12:46:28 +0200 (Wed, 17 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 A /trunk/rsplib2/rsplib/planetlab/plot-attack2.R M /trunk/rsplib2/rsplib/planetlab/run-attack2 ------------------------------------------------------------------------ r1908 | dreibh | 2008-09-17 12:43:06 +0200 (Wed, 17 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1907 | dreibh | 2008-09-17 09:02:03 +0200 (Wed, 17 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 ------------------------------------------------------------------------ r1906 | dreibh | 2008-09-17 09:00:52 +0200 (Wed, 17 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/attacker.cc ------------------------------------------------------------------------ r1905 | dreibh | 2008-09-17 05:54:04 +0200 (Wed, 17 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/run-attack2 ------------------------------------------------------------------------ r1904 | dreibh | 2008-09-17 05:11:26 +0200 (Wed, 17 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1903 | dreibh | 2008-09-16 16:51:53 +0200 (Tue, 16 Sep 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc Break detection for CalcAppClient fixed (did not stop until successful issuing of CalcAppRequest). ------------------------------------------------------------------------ r1902 | dreibh | 2008-09-16 16:15:30 +0200 (Tue, 16 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-attack1 M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r1901 | dreibh | 2008-09-16 13:25:31 +0200 (Tue, 16 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1900 | dreibh | 2008-09-16 09:54:55 +0200 (Tue, 16 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/attack-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-attack1 M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r1899 | dreibh | 2008-09-16 06:28:43 +0200 (Tue, 16 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/calcappclient.cc A /trunk/rsplib2/rsplib/planetlab/plot-attack1.R M /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1898 | dreibh | 2008-09-16 05:56:33 +0200 (Tue, 16 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/attack-scenario1 A /trunk/rsplib2/rsplib/planetlab/run-attack1 ------------------------------------------------------------------------ r1897 | dreibh | 2008-09-15 17:19:54 +0200 (Mon, 15 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/servicecontrol A /trunk/rsplib2/rsplib/planetlab/ssh-tool M /trunk/rsplib2/rsplib/planetlab/t2 M /trunk/rsplib2/rsplib/planetlab/tos-scenario1 ------------------------------------------------------------------------ r1896 | dreibh | 2008-09-15 15:36:03 +0200 (Mon, 15 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/attacker.cc M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/testregistrator.c ------------------------------------------------------------------------ r1895 | dreibh | 2008-09-12 17:35:00 +0200 (Fri, 12 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/combinesummaries.cc A /trunk/rsplib2/rsplib/createsummary.cc M /trunk/rsplib2/rsplib/planetlab/tos-scenario1 ------------------------------------------------------------------------ r1894 | dreibh | 2008-09-12 17:04:40 +0200 (Fri, 12 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/tos-scenario1 M /trunk/rsplib2/rsplib/server.8 ------------------------------------------------------------------------ r1893 | dreibh | 2008-09-12 16:12:12 +0200 (Fri, 12 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.8 ------------------------------------------------------------------------ r1892 | dreibh | 2008-09-12 12:43:52 +0200 (Fri, 12 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/tos-scenario1 ------------------------------------------------------------------------ r1891 | dreibh | 2008-09-12 09:50:01 +0200 (Fri, 12 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/servicecontrol M /trunk/rsplib2/rsplib/planetlab/t2 A /trunk/rsplib2/rsplib/planetlab/tos-scenario1 ------------------------------------------------------------------------ r1890 | dreibh | 2008-09-12 06:24:03 +0200 (Fri, 12 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/servicecontrol ------------------------------------------------------------------------ r1889 | dreibh | 2008-09-12 04:11:38 +0200 (Fri, 12 Sep 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r1888 | dreibh | 2008-09-11 12:42:21 +0200 (Thu, 11 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/servicecontrol M /trunk/rsplib2/rsplib/planetlab/t2 ------------------------------------------------------------------------ r1887 | dreibh | 2008-09-11 12:16:54 +0200 (Thu, 11 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/t2 M /trunk/rsplib2/rsplib/planetlab/test1 ------------------------------------------------------------------------ r1886 | dreibh | 2008-09-11 05:31:33 +0200 (Thu, 11 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/test1 ------------------------------------------------------------------------ r1885 | dreibh | 2008-09-10 10:24:05 +0200 (Wed, 10 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/planetlab-config ------------------------------------------------------------------------ r1884 | dreibh | 2008-09-10 06:10:35 +0200 (Wed, 10 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/planetlab/test1 ------------------------------------------------------------------------ r1883 | dreibh | 2008-09-10 05:39:21 +0200 (Wed, 10 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in ------------------------------------------------------------------------ r1882 | dreibh | 2008-09-10 05:01:20 +0200 (Wed, 10 Sep 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar-enrp.c ------------------------------------------------------------------------ r1881 | dreibh | 2008-09-10 04:50:30 +0200 (Wed, 10 Sep 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/rspbasicmode.c Takeover Suggestion improvements. ------------------------------------------------------------------------ r1880 | dreibh | 2008-09-09 17:35:59 +0200 (Tue, 09 Sep 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c Added Takeover Suggestion function to registrar. ------------------------------------------------------------------------ r1879 | dreibh | 2008-09-09 16:39:17 +0200 (Tue, 09 Sep 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c A /trunk/rsplib2/rsplib/registrar-security.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/t1.cc Added security functions to PR. ------------------------------------------------------------------------ r1878 | dreibh | 2008-09-01 11:58:19 +0200 (Mon, 01 Sep 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/t1.cc ------------------------------------------------------------------------ r1877 | dreibh | 2008-08-31 11:06:36 +0200 (Sun, 31 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h ------------------------------------------------------------------------ r1876 | dreibh | 2008-08-29 14:08:13 +0200 (Fri, 29 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib.lsm ------------------------------------------------------------------------ r1875 | dreibh | 2008-08-29 13:52:29 +0200 (Fri, 29 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pooluserlist-template.h M /trunk/rsplib2/rsplib/pooluserlist-template_impl.h M /trunk/rsplib2/rsplib/poolusernode-template.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h ------------------------------------------------------------------------ r1874 | dreibh | 2008-08-29 13:51:55 +0200 (Fri, 29 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/copyright ------------------------------------------------------------------------ r1873 | dreibh | 2008-08-27 15:47:09 +0200 (Wed, 27 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/debian.conf ------------------------------------------------------------------------ r1865 | dreibh | 2008-08-26 23:34:43 +0200 (Tue, 26 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/rules M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1863 | dreibh | 2008-08-26 15:24:38 +0200 (Tue, 26 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-global.c ------------------------------------------------------------------------ r1862 | dreibh | 2008-08-26 11:45:32 +0200 (Tue, 26 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolusernode-template_impl.h ------------------------------------------------------------------------ r1861 | dreibh | 2008-08-23 16:01:38 +0200 (Sat, 23 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspbasicmode.c Bugfix: CSPReporter has to be set up *after* gRSerPoolSocketSet. Otherwise, the Dispatcher may invoke the reporter function too early and an uninitialized gRSerPoolSocketSet leads to segfault. ------------------------------------------------------------------------ r1860 | dreibh | 2008-08-20 12:47:05 +0200 (Wed, 20 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar-global.c ------------------------------------------------------------------------ r1859 | dreibh | 2008-08-20 12:45:56 +0200 (Wed, 20 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab/comon-host-selector M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/registrar-global.c Added PEs/Pools/Peers to PR statistics output. ------------------------------------------------------------------------ r1858 | dreibh | 2008-08-19 19:23:31 +0200 (Tue, 19 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/comon-host-selector ------------------------------------------------------------------------ r1857 | dreibh | 2008-08-19 18:54:10 +0200 (Tue, 19 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-global.c Fixed bug in PR statistics output generation. ------------------------------------------------------------------------ r1856 | dreibh | 2008-08-19 18:49:07 +0200 (Tue, 19 Aug 2008) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/planetlab/comon-host-selector M /trunk/rsplib2/rsplib/planetlab/comon-query Added CoMon host selector script. ------------------------------------------------------------------------ r1855 | dreibh | 2008-08-19 17:23:05 +0200 (Tue, 19 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/registrar-global.c Fixed detection of SCTP_DELAYED_ACK option (has to be in configure.in). ------------------------------------------------------------------------ r1854 | dreibh | 2008-08-19 16:45:56 +0200 (Tue, 19 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/planetlab/fractal-scenario1 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/planetlab-config M /trunk/rsplib2/rsplib/planetlab/start-process M /trunk/rsplib2/rsplib/planetlab/stop-process M /trunk/rsplib2/rsplib/planetlab/stop-processes PlanetLab updates. ------------------------------------------------------------------------ r1853 | dreibh | 2008-08-19 16:06:04 +0200 (Tue, 19 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab/ComponentControl M /trunk/rsplib2/rsplib/planetlab/ComponentControl.config M /trunk/rsplib2/rsplib/planetlab/RemoteComponentControl M /trunk/rsplib2/rsplib/planetlab/comon-query M /trunk/rsplib2/rsplib/planetlab/create-hosts-files M /trunk/rsplib2/rsplib/planetlab/do-clearall M /trunk/rsplib2/rsplib/planetlab/do-killall M /trunk/rsplib2/rsplib/planetlab/filter-hosts M /trunk/rsplib2/rsplib/planetlab/fractal-scenario1 M /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab/get-results M /trunk/rsplib2/rsplib/planetlab/plot-journal2006.R M /trunk/rsplib2/rsplib/planetlab/plot-kivs2007.R M /trunk/rsplib2/rsplib/planetlab/plot-lcn2006.R M /trunk/rsplib2/rsplib/planetlab/plot-test1.R M /trunk/rsplib2/rsplib/planetlab/plot-test2.R M /trunk/rsplib2/rsplib/planetlab/plot-test3.R M /trunk/rsplib2/rsplib/planetlab/plot-test4.R M /trunk/rsplib2/rsplib/planetlab/plot-test5.R M /trunk/rsplib2/rsplib/planetlab/plot-test6.R M /trunk/rsplib2/rsplib/planetlab/plot-test7.R M /trunk/rsplib2/rsplib/planetlab/plot-test8.R M /trunk/rsplib2/rsplib/planetlab/plot-wp1-dpfpolicies.R M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 M /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario2 M /trunk/rsplib2/rsplib/planetlab/run-messung6 M /trunk/rsplib2/rsplib/planetlab/run-messung6a M /trunk/rsplib2/rsplib/planetlab/run-messung7 M /trunk/rsplib2/rsplib/planetlab/run-planetlabtest M /trunk/rsplib2/rsplib/planetlab/run-tests M /trunk/rsplib2/rsplib/planetlab/run-tests2 M /trunk/rsplib2/rsplib/planetlab/stop-process M /trunk/rsplib2/rsplib/planetlab/stop-registrars M /trunk/rsplib2/rsplib/planetlab/t1.R M /trunk/rsplib2/rsplib/planetlab/test-hosts M /trunk/rsplib2/rsplib/planetlab/test9.R M /trunk/rsplib2/rsplib/planetlab/three-regions-scenario ------------------------------------------------------------------------ r1852 | dreibh | 2008-08-19 15:37:01 +0200 (Tue, 19 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/planetlab/comon-query M /trunk/rsplib2/rsplib/planetlab/compile-and-install M /trunk/rsplib2/rsplib/planetlab/create-binaries M /trunk/rsplib2/rsplib/planetlab/create-hosts-files M /trunk/rsplib2/rsplib/planetlab/do-clearall M /trunk/rsplib2/rsplib/planetlab/do-killall M /trunk/rsplib2/rsplib/planetlab/get M /trunk/rsplib2/rsplib/planetlab/get-coredumps M /trunk/rsplib2/rsplib/planetlab/get-results M /trunk/rsplib2/rsplib/planetlab/go M /trunk/rsplib2/rsplib/planetlab/install-binaries D /trunk/rsplib2/rsplib/planetlab/install-binaries-on-all-nodes M /trunk/rsplib2/rsplib/planetlab/install-sctp D /trunk/rsplib2/rsplib/planetlab/localhost.hosts M /trunk/rsplib2/rsplib/planetlab/planetlab-config D /trunk/rsplib2/rsplib/planetlab/planetlab.hosts M /trunk/rsplib2/rsplib/planetlab/put D /trunk/rsplib2/rsplib/planetlab/remote.hosts D /trunk/rsplib2/rsplib/planetlab/usa.hosts Cleaned up PlanetLab scripts. ------------------------------------------------------------------------ r1851 | dreibh | 2008-08-19 15:10:21 +0200 (Tue, 19 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog D /trunk/rsplib2/rsplib/ComponentControl D /trunk/rsplib2/rsplib/ComponentControl.config D /trunk/rsplib2/rsplib/Lab-User.config D /trunk/rsplib2/rsplib/RemoteComponentControl D /trunk/rsplib2/rsplib/calcappserver D /trunk/rsplib2/rsplib/client D /trunk/rsplib2/rsplib/combine-disaster-scenario1-results D /trunk/rsplib2/rsplib/combine-disaster-scenario2-results D /trunk/rsplib2/rsplib/combine-journal2006 D /trunk/rsplib2/rsplib/combine-test1 D /trunk/rsplib2/rsplib/combine-vectors D /trunk/rsplib2/rsplib/comon-query D /trunk/rsplib2/rsplib/compile-and-install D /trunk/rsplib2/rsplib/create-binaries D /trunk/rsplib2/rsplib/create-hosts-files D /trunk/rsplib2/rsplib/do-clearall D /trunk/rsplib2/rsplib/do-killall D /trunk/rsplib2/rsplib/filter-hosts D /trunk/rsplib2/rsplib/fractal-scenario1 D /trunk/rsplib2/rsplib/fractal-scenario2 D /trunk/rsplib2/rsplib/get D /trunk/rsplib2/rsplib/get-coredumps D /trunk/rsplib2/rsplib/get-results D /trunk/rsplib2/rsplib/go D /trunk/rsplib2/rsplib/install-binaries D /trunk/rsplib2/rsplib/install-binaries-on-all-nodes D /trunk/rsplib2/rsplib/install-sctp D /trunk/rsplib2/rsplib/localhost.hosts D /trunk/rsplib2/rsplib/make-t5 D /trunk/rsplib2/rsplib/perftest D /trunk/rsplib2/rsplib/perftest-version1.R D /trunk/rsplib2/rsplib/perftest-version2 D /trunk/rsplib2/rsplib/perftest-version2.R A /trunk/rsplib2/rsplib/planetlab A /trunk/rsplib2/rsplib/planetlab/ComponentControl (from /trunk/rsplib2/rsplib/ComponentControl:1850) A /trunk/rsplib2/rsplib/planetlab/ComponentControl.config (from /trunk/rsplib2/rsplib/ComponentControl.config:1850) A /trunk/rsplib2/rsplib/planetlab/Lab-User.config (from /trunk/rsplib2/rsplib/Lab-User.config:1850) A /trunk/rsplib2/rsplib/planetlab/RemoteComponentControl (from /trunk/rsplib2/rsplib/RemoteComponentControl:1850) A /trunk/rsplib2/rsplib/planetlab/combine-disaster-scenario1-results (from /trunk/rsplib2/rsplib/combine-disaster-scenario1-results:1850) A /trunk/rsplib2/rsplib/planetlab/combine-disaster-scenario2-results (from /trunk/rsplib2/rsplib/combine-disaster-scenario2-results:1850) A /trunk/rsplib2/rsplib/planetlab/combine-journal2006 (from /trunk/rsplib2/rsplib/combine-journal2006:1850) A /trunk/rsplib2/rsplib/planetlab/combine-test1 (from /trunk/rsplib2/rsplib/combine-test1:1850) A /trunk/rsplib2/rsplib/planetlab/combine-vectors (from /trunk/rsplib2/rsplib/combine-vectors:1850) A /trunk/rsplib2/rsplib/planetlab/comon-query (from /trunk/rsplib2/rsplib/comon-query:1850) A /trunk/rsplib2/rsplib/planetlab/compile-and-install (from /trunk/rsplib2/rsplib/compile-and-install:1850) A /trunk/rsplib2/rsplib/planetlab/create-binaries (from /trunk/rsplib2/rsplib/create-binaries:1850) A /trunk/rsplib2/rsplib/planetlab/create-hosts-files (from /trunk/rsplib2/rsplib/create-hosts-files:1850) A /trunk/rsplib2/rsplib/planetlab/do-clearall (from /trunk/rsplib2/rsplib/do-clearall:1850) A /trunk/rsplib2/rsplib/planetlab/do-killall (from /trunk/rsplib2/rsplib/do-killall:1850) A /trunk/rsplib2/rsplib/planetlab/filter-hosts (from /trunk/rsplib2/rsplib/filter-hosts:1850) A /trunk/rsplib2/rsplib/planetlab/fractal-scenario1 (from /trunk/rsplib2/rsplib/fractal-scenario1:1850) A /trunk/rsplib2/rsplib/planetlab/fractal-scenario2 (from /trunk/rsplib2/rsplib/fractal-scenario2:1850) A /trunk/rsplib2/rsplib/planetlab/get (from /trunk/rsplib2/rsplib/get:1850) A /trunk/rsplib2/rsplib/planetlab/get-coredumps (from /trunk/rsplib2/rsplib/get-coredumps:1850) A /trunk/rsplib2/rsplib/planetlab/get-results (from /trunk/rsplib2/rsplib/get-results:1850) A /trunk/rsplib2/rsplib/planetlab/go (from /trunk/rsplib2/rsplib/go:1850) A /trunk/rsplib2/rsplib/planetlab/install-binaries (from /trunk/rsplib2/rsplib/install-binaries:1850) A /trunk/rsplib2/rsplib/planetlab/install-binaries-on-all-nodes (from /trunk/rsplib2/rsplib/install-binaries-on-all-nodes:1850) A /trunk/rsplib2/rsplib/planetlab/install-sctp (from /trunk/rsplib2/rsplib/install-sctp:1850) A /trunk/rsplib2/rsplib/planetlab/localhost.hosts (from /trunk/rsplib2/rsplib/localhost.hosts:1850) A /trunk/rsplib2/rsplib/planetlab/perftest (from /trunk/rsplib2/rsplib/perftest:1850) A /trunk/rsplib2/rsplib/planetlab/perftest-version1.R (from /trunk/rsplib2/rsplib/perftest-version1.R:1850) A /trunk/rsplib2/rsplib/planetlab/perftest-version2 (from /trunk/rsplib2/rsplib/perftest-version2:1850) A /trunk/rsplib2/rsplib/planetlab/perftest-version2.R (from /trunk/rsplib2/rsplib/perftest-version2.R:1850) A /trunk/rsplib2/rsplib/planetlab/planetlab-config (from /trunk/rsplib2/rsplib/planetlab-config:1850) A /trunk/rsplib2/rsplib/planetlab/planetlab.hosts (from /trunk/rsplib2/rsplib/planetlab.hosts:1850) A /trunk/rsplib2/rsplib/planetlab/plot-journal2006.R (from /trunk/rsplib2/rsplib/plot-journal2006.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-kivs2007.R (from /trunk/rsplib2/rsplib/plot-kivs2007.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-lcn2006.R (from /trunk/rsplib2/rsplib/plot-lcn2006.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-perftest1.R (from /trunk/rsplib2/rsplib/plot-perftest1.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-perftest2.R (from /trunk/rsplib2/rsplib/plot-perftest2.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-perftest3.R (from /trunk/rsplib2/rsplib/plot-perftest3.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test1.R (from /trunk/rsplib2/rsplib/plot-test1.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test2.R (from /trunk/rsplib2/rsplib/plot-test2.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test3.R (from /trunk/rsplib2/rsplib/plot-test3.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test4.R (from /trunk/rsplib2/rsplib/plot-test4.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test5.R (from /trunk/rsplib2/rsplib/plot-test5.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test6.R (from /trunk/rsplib2/rsplib/plot-test6.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test7.R (from /trunk/rsplib2/rsplib/plot-test7.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-test8.R (from /trunk/rsplib2/rsplib/plot-test8.R:1850) A /trunk/rsplib2/rsplib/planetlab/plot-wp1-dpfpolicies.R (from /trunk/rsplib2/rsplib/plot-wp1-dpfpolicies.R:1850) A /trunk/rsplib2/rsplib/planetlab/plotter.R (from /trunk/rsplib2/rsplib/plotter.R:1850) A /trunk/rsplib2/rsplib/planetlab/prepare-compilehost (from /trunk/rsplib2/rsplib/prepare-compilehost:1850) A /trunk/rsplib2/rsplib/planetlab/put (from /trunk/rsplib2/rsplib/put:1850) A /trunk/rsplib2/rsplib/planetlab/remote.hosts (from /trunk/rsplib2/rsplib/remote.hosts:1850) A /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario1 (from /trunk/rsplib2/rsplib/run-disaster-scenario1:1850) A /trunk/rsplib2/rsplib/planetlab/run-disaster-scenario2 (from /trunk/rsplib2/rsplib/run-disaster-scenario2:1850) A /trunk/rsplib2/rsplib/planetlab/run-messung6 (from /trunk/rsplib2/rsplib/run-messung6:1850) A /trunk/rsplib2/rsplib/planetlab/run-messung6a (from /trunk/rsplib2/rsplib/run-messung6a:1850) A /trunk/rsplib2/rsplib/planetlab/run-messung7 (from /trunk/rsplib2/rsplib/run-messung7:1850) A /trunk/rsplib2/rsplib/planetlab/run-perftest1.R (from /trunk/rsplib2/rsplib/run-perftest1.R:1850) A /trunk/rsplib2/rsplib/planetlab/run-perftest2.R (from /trunk/rsplib2/rsplib/run-perftest2.R:1850) A /trunk/rsplib2/rsplib/planetlab/run-perftest3.R (from /trunk/rsplib2/rsplib/run-perftest3.R:1850) A /trunk/rsplib2/rsplib/planetlab/run-planetlabtest (from /trunk/rsplib2/rsplib/run-planetlabtest:1850) A /trunk/rsplib2/rsplib/planetlab/run-tests (from /trunk/rsplib2/rsplib/run-tests:1850) A /trunk/rsplib2/rsplib/planetlab/run-tests2 (from /trunk/rsplib2/rsplib/run-tests2:1850) A /trunk/rsplib2/rsplib/planetlab/start-process (from /trunk/rsplib2/rsplib/start-process:1850) A /trunk/rsplib2/rsplib/planetlab/stop-process (from /trunk/rsplib2/rsplib/stop-process:1850) A /trunk/rsplib2/rsplib/planetlab/stop-processes (from /trunk/rsplib2/rsplib/stop-processes:1850) A /trunk/rsplib2/rsplib/planetlab/stop-registrars (from /trunk/rsplib2/rsplib/stop-registrars:1850) A /trunk/rsplib2/rsplib/planetlab/t1.R (from /trunk/rsplib2/rsplib/t1.R:1850) A /trunk/rsplib2/rsplib/planetlab/test-hosts (from /trunk/rsplib2/rsplib/test-hosts:1850) A /trunk/rsplib2/rsplib/planetlab/test9.R (from /trunk/rsplib2/rsplib/test9.R:1850) A /trunk/rsplib2/rsplib/planetlab/three-regions-scenario (from /trunk/rsplib2/rsplib/three-regions-scenario:1850) A /trunk/rsplib2/rsplib/planetlab/usa.hosts (from /trunk/rsplib2/rsplib/usa.hosts:1850) D /trunk/rsplib2/rsplib/planetlab-config D /trunk/rsplib2/rsplib/planetlab.hosts D /trunk/rsplib2/rsplib/plot-journal2006.R D /trunk/rsplib2/rsplib/plot-kivs2007.R D /trunk/rsplib2/rsplib/plot-lcn2006.R D /trunk/rsplib2/rsplib/plot-perftest1.R D /trunk/rsplib2/rsplib/plot-perftest2.R D /trunk/rsplib2/rsplib/plot-perftest3.R D /trunk/rsplib2/rsplib/plot-test1.R D /trunk/rsplib2/rsplib/plot-test2.R D /trunk/rsplib2/rsplib/plot-test3.R D /trunk/rsplib2/rsplib/plot-test4.R D /trunk/rsplib2/rsplib/plot-test5.R D /trunk/rsplib2/rsplib/plot-test6.R D /trunk/rsplib2/rsplib/plot-test7.R D /trunk/rsplib2/rsplib/plot-test8.R D /trunk/rsplib2/rsplib/plot-wp1-dpfpolicies.R D /trunk/rsplib2/rsplib/plotter.R D /trunk/rsplib2/rsplib/poolelement-example D /trunk/rsplib2/rsplib/pooluser-example D /trunk/rsplib2/rsplib/pr-test D /trunk/rsplib2/rsplib/prepare-compilehost D /trunk/rsplib2/rsplib/put D /trunk/rsplib2/rsplib/registrar-example D /trunk/rsplib2/rsplib/remote.hosts D /trunk/rsplib2/rsplib/run-disaster-scenario1 D /trunk/rsplib2/rsplib/run-disaster-scenario2 D /trunk/rsplib2/rsplib/run-messung6 D /trunk/rsplib2/rsplib/run-messung6a D /trunk/rsplib2/rsplib/run-messung7 D /trunk/rsplib2/rsplib/run-perftest1.R D /trunk/rsplib2/rsplib/run-perftest2.R D /trunk/rsplib2/rsplib/run-perftest3.R D /trunk/rsplib2/rsplib/run-planetlabtest D /trunk/rsplib2/rsplib/run-tests D /trunk/rsplib2/rsplib/run-tests2 D /trunk/rsplib2/rsplib/start-process D /trunk/rsplib2/rsplib/stop-process D /trunk/rsplib2/rsplib/stop-processes D /trunk/rsplib2/rsplib/stop-registrars D /trunk/rsplib2/rsplib/storage/registrar-enrp.c D /trunk/rsplib2/rsplib/storage/solaris.c D /trunk/rsplib2/rsplib/storage/t1.cc D /trunk/rsplib2/rsplib/storage/t10.cc D /trunk/rsplib2/rsplib/storage/t11.cc D /trunk/rsplib2/rsplib/storage/t12.cc D /trunk/rsplib2/rsplib/storage/t13.cc D /trunk/rsplib2/rsplib/storage/t2.cc D /trunk/rsplib2/rsplib/storage/t4.cc D /trunk/rsplib2/rsplib/storage/t5.cc D /trunk/rsplib2/rsplib/storage/t6.cc D /trunk/rsplib2/rsplib/storage/t7.cc D /trunk/rsplib2/rsplib/storage/t8.cc D /trunk/rsplib2/rsplib/storage/t9.cc D /trunk/rsplib2/rsplib/t1.R D /trunk/rsplib2/rsplib/t1.cc D /trunk/rsplib2/rsplib/t2.c D /trunk/rsplib2/rsplib/t3-test D /trunk/rsplib2/rsplib/t3.cc D /trunk/rsplib2/rsplib/t4.cc D /trunk/rsplib2/rsplib/t4.sh D /trunk/rsplib2/rsplib/t5.cc D /trunk/rsplib2/rsplib/t6.cc D /trunk/rsplib2/rsplib/t7.cc D /trunk/rsplib2/rsplib/t7.h D /trunk/rsplib2/rsplib/t8.cc D /trunk/rsplib2/rsplib/t9.cc D /trunk/rsplib2/rsplib/test-hosts D /trunk/rsplib2/rsplib/test.data D /trunk/rsplib2/rsplib/test2.data D /trunk/rsplib2/rsplib/test9.R A /trunk/rsplib2/rsplib/tests A /trunk/rsplib2/rsplib/tests/t1.cc (from /trunk/rsplib2/rsplib/t1.cc:1850) A /trunk/rsplib2/rsplib/tests/t2.c (from /trunk/rsplib2/rsplib/t2.c:1850) A /trunk/rsplib2/rsplib/tests/t3-test (from /trunk/rsplib2/rsplib/t3-test:1850) A /trunk/rsplib2/rsplib/tests/t3.cc (from /trunk/rsplib2/rsplib/t3.cc:1850) A /trunk/rsplib2/rsplib/tests/t4.cc (from /trunk/rsplib2/rsplib/t4.cc:1850) A /trunk/rsplib2/rsplib/tests/t4.sh (from /trunk/rsplib2/rsplib/t4.sh:1850) A /trunk/rsplib2/rsplib/tests/t5.cc (from /trunk/rsplib2/rsplib/t5.cc:1850) A /trunk/rsplib2/rsplib/tests/t6.cc (from /trunk/rsplib2/rsplib/t6.cc:1850) A /trunk/rsplib2/rsplib/tests/t7.cc (from /trunk/rsplib2/rsplib/t7.cc:1850) A /trunk/rsplib2/rsplib/tests/t7.h (from /trunk/rsplib2/rsplib/t7.h:1850) A /trunk/rsplib2/rsplib/tests/t8.cc (from /trunk/rsplib2/rsplib/t8.cc:1850) A /trunk/rsplib2/rsplib/tests/t9.cc (from /trunk/rsplib2/rsplib/t9.cc:1850) D /trunk/rsplib2/rsplib/three-regions-scenario D /trunk/rsplib2/rsplib/usa.hosts Cleaned up the sources directory. ------------------------------------------------------------------------ r1850 | dreibh | 2008-08-18 16:14:16 +0200 (Mon, 18 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1849 | dreibh | 2008-08-18 15:54:42 +0200 (Mon, 18 Aug 2008) | 1 line Changed paths: D /trunk/rsplib2/rsplib/all-planetlab.hosts A /trunk/rsplib2/rsplib/comon-query M /trunk/rsplib2/rsplib/create-hosts-files ------------------------------------------------------------------------ r1848 | dreibh | 2008-08-17 14:58:13 +0200 (Sun, 17 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingserviceexample.8 M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/terminal.8 ------------------------------------------------------------------------ r1847 | dreibh | 2008-08-17 14:42:32 +0200 (Sun, 17 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/registrar.8 ------------------------------------------------------------------------ r1846 | dreibh | 2008-08-17 14:07:13 +0200 (Sun, 17 Aug 2008) | 2 lines Changed paths: M /trunk/rsplib2/debian/control A /trunk/rsplib2/rsplib/manpage-stringfix Debian updates. ------------------------------------------------------------------------ r1845 | dreibh | 2008-08-01 21:43:10 +0200 (Fri, 01 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t9.cc ------------------------------------------------------------------------ r1844 | dreibh | 2008-08-01 21:11:18 +0200 (Fri, 01 Aug 2008) | 3 lines Changed paths: A /trunk/rsplib2/rsplib/t9.cc Updates to work with beta3. ------------------------------------------------------------------------ r1843 | dreibh | 2008-08-01 15:31:44 +0200 (Fri, 01 Aug 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1842 | dreibh | 2008-07-16 13:54:51 +0200 (Wed, 16 Jul 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/ss-server-150 ------------------------------------------------------------------------ r1841 | dreibh | 2008-07-16 13:05:30 +0200 (Wed, 16 Jul 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/install-binaries-on-all-nodes M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts Updated version to 2.5.0-beta9. ------------------------------------------------------------------------ r1840 | dreibh | 2008-07-16 11:21:26 +0200 (Wed, 16 Jul 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ss-pr ------------------------------------------------------------------------ r1839 | dreibh | 2008-07-11 08:28:13 +0200 (Fri, 11 Jul 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1838 | dreibh | 2008-07-06 10:09:59 +0200 (Sun, 06 Jul 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c ------------------------------------------------------------------------ r1837 | dreibh | 2008-07-05 23:28:55 +0200 (Sat, 05 Jul 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/tcplikeserver.cc TCPLikeServer: set backlog always to limit + 1. If backlog goes down to 0, it may not be set to >0 fast enough to accept next session. ------------------------------------------------------------------------ r1836 | dreibh | 2008-07-05 23:06:18 +0200 (Sat, 05 Jul 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h Transport association of a session is broken when rsp_recvmsg() returns value <0 (not only == 0). Problem occurred when PE immediately sent ABORT (due to backlog == 0) => endless loop in rsp_recvmsg(). ------------------------------------------------------------------------ r1835 | dreibh | 2008-07-05 23:05:09 +0200 (Sat, 05 Jul 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h Fixed broken backlog handling: rsp_listen() must be called after threads have been removed. ------------------------------------------------------------------------ r1834 | dreibh | 2008-07-05 11:31:57 +0200 (Sat, 05 Jul 2008) | 7 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc Bugfix: At PE side on shutdown/comm.lost notification, return length 0 for rsp_recvmsg(). => Solves problem with load=100% in case of unloaded scripting PE. Listening handling changed: rsp_listen() must be explicitly called for PE sockets with appropriate backlog. It is not automatically called any more be rsp_register()! ------------------------------------------------------------------------ r1833 | dreibh | 2008-07-04 20:24:13 +0200 (Fri, 04 Jul 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r1832 | dreibh | 2008-07-01 12:05:24 +0200 (Tue, 01 Jul 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc Fix in TCPLikeServer: for timer, there must be a lock for the thread, not for the thread list (which is already locked). ------------------------------------------------------------------------ r1831 | dreibh | 2008-06-30 13:20:08 +0200 (Mon, 30 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r1830 | dreibh | 2008-06-30 12:26:16 +0200 (Mon, 30 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc Bugfix: Destruction of TCPLikeServer also closes RSerPool socket. Upon rejection, no rsp_close() is necessary. ------------------------------------------------------------------------ r1829 | dreibh | 2008-06-27 14:33:43 +0200 (Fri, 27 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r1828 | dreibh | 2008-06-27 11:30:51 +0200 (Fri, 27 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc Fix in TCPLikeServer: close systemNotificationPipe with correct indices (0,1) instead of 1,2. ------------------------------------------------------------------------ r1827 | dreibh | 2008-06-27 11:26:55 +0200 (Fri, 27 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/ss-pr If valgrind is available, mark memory from LK-SCTP sctp_getladdrs()/sctp_getpaddrs() as "defined". This avoids many false positives. ------------------------------------------------------------------------ r1826 | dreibh | 2008-06-27 10:17:43 +0200 (Fri, 27 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc Fixed memory leak in TCPLikeServer: forgot to delete ServiceThread when the session is rejected. ------------------------------------------------------------------------ r1825 | dreibh | 2008-06-27 10:05:46 +0200 (Fri, 27 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingserviceexample ScriptingPU: Added more verbose log output (date + run ID). ------------------------------------------------------------------------ r1824 | dreibh | 2008-06-27 10:05:21 +0200 (Fri, 27 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Fix: PE ID was set to 0 before transmitting in Endpoint Unreachable. ------------------------------------------------------------------------ r1823 | dreibh | 2008-06-26 14:36:20 +0200 (Thu, 26 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c ASAP Action Log fix. ------------------------------------------------------------------------ r1822 | dreibh | 2008-06-26 13:08:48 +0200 (Thu, 26 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1821 | dreibh | 2008-06-25 20:56:25 +0200 (Wed, 25 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r1820 | dreibh | 2008-06-25 09:45:16 +0200 (Wed, 25 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1819 | dreibh | 2008-06-25 09:44:02 +0200 (Wed, 25 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/testregistrator.c Fix for testregistrator (divide by 0 when pools==0). ------------------------------------------------------------------------ r1818 | dreibh | 2008-06-24 19:08:59 +0200 (Tue, 24 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-enrp.c Fix for Presence handling: only send Presence when another PR entry is really new. ------------------------------------------------------------------------ r1817 | dreibh | 2008-06-24 19:08:18 +0200 (Tue, 24 Jun 2008) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/storage/registrar-enrp.c (from /trunk/rsplib2/rsplib/registrar-enrp.c:1815) Backup of registrar-enrp.c ------------------------------------------------------------------------ r1816 | dreibh | 2008-06-24 18:27:21 +0200 (Tue, 24 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h Registrar: Added BZ2 compression option for action log and statistics file. ------------------------------------------------------------------------ r1815 | dreibh | 2008-06-24 14:49:41 +0200 (Tue, 24 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/ss-pr ------------------------------------------------------------------------ r1814 | dreibh | 2008-06-24 09:34:38 +0200 (Tue, 24 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.h ENRP Action Log. ------------------------------------------------------------------------ r1813 | dreibh | 2008-06-23 21:44:43 +0200 (Mon, 23 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h Added ASAP Action Log. ------------------------------------------------------------------------ r1812 | dreibh | 2008-06-17 18:34:02 +0200 (Tue, 17 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control XSBC-Original-Maintainer update for Ubuntu. ------------------------------------------------------------------------ r1811 | dreibh | 2008-06-17 14:10:31 +0200 (Tue, 17 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r1809 | dreibh | 2008-06-17 13:09:00 +0200 (Tue, 17 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control ------------------------------------------------------------------------ r1807 | dreibh | 2008-06-17 12:11:46 +0200 (Tue, 17 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1806 | dreibh | 2008-06-17 11:54:36 +0200 (Tue, 17 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1805 | dreibh | 2008-06-17 11:29:48 +0200 (Tue, 17 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/README M /trunk/rsplib2/clean-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/deb-install M /trunk/rsplib2/deb-uninstall M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/copyright A /trunk/rsplib2/debian/rsplib-fgp-cfgfiles.install M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian/rsplib-services.install M /trunk/rsplib2/debian/rules M /trunk/rsplib2/debian/watch M /trunk/rsplib2/debian.conf M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/add-dummy-interface M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/scriptingserviceexample M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server M /trunk/rsplib2/rsplib.lsm Debian script updates for Ubuntu Intrepid. ------------------------------------------------------------------------ r1804 | dreibh | 2008-06-16 13:22:18 +0200 (Mon, 16 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/acinclude.m4 QT detection now also works under FreeBSD. ------------------------------------------------------------------------ r1803 | dreibh | 2008-06-13 09:55:27 +0200 (Fri, 13 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r1802 | dreibh | 2008-06-11 22:26:26 +0200 (Wed, 11 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/povray/povray-distribute ------------------------------------------------------------------------ r1801 | dreibh | 2008-06-11 22:09:08 +0200 (Wed, 11 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/povray/povray-distribute ------------------------------------------------------------------------ r1800 | dreibh | 2008-06-11 12:42:49 +0200 (Wed, 11 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/povray/povray-distribute ------------------------------------------------------------------------ r1799 | dreibh | 2008-06-11 12:13:31 +0200 (Wed, 11 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/povray/povray-distribute ------------------------------------------------------------------------ r1798 | dreibh | 2008-06-10 22:12:57 +0200 (Tue, 10 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/povray/povray-distribute M /trunk/rsplib2/rsplib/povray/run-povray-for-files ------------------------------------------------------------------------ r1797 | dreibh | 2008-06-10 22:06:32 +0200 (Tue, 10 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/povray/povray-distribute A /trunk/rsplib2/rsplib/povray/run-povray-for-files ------------------------------------------------------------------------ r1796 | dreibh | 2008-06-10 21:45:15 +0200 (Tue, 10 Jun 2008) | 3 lines Changed paths: A /trunk/rsplib2/rsplib/povray A /trunk/rsplib2/rsplib/povray/povray-distribute M /trunk/rsplib2/rsplib/scriptingclient.c - Scripting Client fix: stop when all trials have failed. - Added povray scripting service example. ------------------------------------------------------------------------ r1795 | dreibh | 2008-06-10 18:07:31 +0200 (Tue, 10 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control ------------------------------------------------------------------------ r1794 | dreibh | 2008-06-09 12:36:48 +0200 (Mon, 09 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/combinesummaries.cc Compile fixes for Ubuntu Intrepid. ------------------------------------------------------------------------ r1793 | dreibh | 2008-06-08 18:50:59 +0200 (Sun, 08 Jun 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/subnetcalc.cc Make rsplib compile under Ubuntu Intrepid Ibex. ------------------------------------------------------------------------ r1792 | dreibh | 2008-06-06 17:52:00 +0200 (Fri, 06 Jun 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1791 | dreibh | 2008-05-31 16:56:23 +0200 (Sat, 31 May 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/prepare-compilehost ------------------------------------------------------------------------ r1790 | dreibh | 2008-05-17 16:50:05 +0200 (Sat, 17 May 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c ------------------------------------------------------------------------ r1789 | dreibh | 2008-05-17 16:48:41 +0200 (Sat, 17 May 2008) | 11 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingserviceexample Transmission timeout improvement: sendtoplus(): if transmission is not possible due to EWOULDBLOCK, trying again in a loop until timeout is reached: poll() for POLLOUT -> transmission -> try again ... Change due to observation: At least lksctp gives POLLOUT, even if it cannot accept a new message upon a new sendmsg(). This is probably a bug of lksctp, since message size < MSS. scriptingserviceexample: modified to add 10000 bytes of data in both directions. ------------------------------------------------------------------------ r1786 | dreibh | 2008-05-08 03:47:41 +0200 (Thu, 08 May 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1783 | dreibh | 2008-05-06 09:16:44 +0200 (Tue, 06 May 2008) | 1 line Changed paths: M /trunk/rsplib2/clean-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog A /trunk/rsplib2/debian.conf M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1781 | dreibh | 2008-05-06 06:04:13 +0200 (Tue, 06 May 2008) | 1 line Changed paths: M /trunk/rsplib2/clean-deb M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1774 | dreibh | 2008-05-06 05:20:54 +0200 (Tue, 06 May 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/make-deb Debian script updates. ------------------------------------------------------------------------ r1773 | dreibh | 2008-04-20 16:11:52 +0200 (Sun, 20 Apr 2008) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/Makefile.am - New compiles under FreeBSD 7.0 (added check whether libsctp is necessary). - Updated version. ------------------------------------------------------------------------ r1772 | dreibh | 2008-04-18 10:46:09 +0200 (Fri, 18 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1771 | dreibh | 2008-04-18 10:31:09 +0200 (Fri, 18 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar-enrp.c ------------------------------------------------------------------------ r1770 | dreibh | 2008-04-16 14:42:24 +0200 (Wed, 16 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/scriptingpackets.h ------------------------------------------------------------------------ r1769 | dreibh | 2008-04-16 14:27:04 +0200 (Wed, 16 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/registrar-enrp.c ------------------------------------------------------------------------ r1768 | dreibh | 2008-04-16 13:48:20 +0200 (Wed, 16 Apr 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/pr-test ------------------------------------------------------------------------ r1767 | dreibh | 2008-04-16 13:41:05 +0200 (Wed, 16 Apr 2008) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h - PR sets TTL for outgoing announces to 30 instead of 1. - Parameter to configure TTL setting. ------------------------------------------------------------------------ r1766 | dreibh | 2008-04-16 11:17:52 +0200 (Wed, 16 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/t8.cc ------------------------------------------------------------------------ r1765 | dreibh | 2008-04-15 18:19:44 +0200 (Tue, 15 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1764 | dreibh | 2008-04-15 18:10:39 +0200 (Tue, 15 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1761 | dreibh | 2008-04-10 11:11:38 +0200 (Thu, 10 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1760 | dreibh | 2008-04-09 17:01:16 +0200 (Wed, 09 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c ------------------------------------------------------------------------ r1759 | dreibh | 2008-04-09 11:37:54 +0200 (Wed, 09 Apr 2008) | 1 line Changed paths: D /trunk/rsplib2/.cvsignore ------------------------------------------------------------------------ r1758 | dreibh | 2008-04-09 10:03:31 +0200 (Wed, 09 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1757 | dreibh | 2008-04-09 10:00:28 +0200 (Wed, 09 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1756 | dreibh | 2008-04-09 09:45:32 +0200 (Wed, 09 Apr 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ss-pr M /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1755 | dreibh | 2008-04-09 09:44:38 +0200 (Wed, 09 Apr 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/ss-pr A /trunk/rsplib2/rsplib/ss-server ------------------------------------------------------------------------ r1754 | dreibh | 2008-04-04 15:12:57 +0200 (Fri, 04 Apr 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/registrar-global.c StatsInterval bugfix. No timer for value <= 0! ------------------------------------------------------------------------ r1753 | dreibh | 2008-04-01 08:29:26 +0200 (Tue, 01 Apr 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/registrartable.c Removed test with LOG_END_FATAL. ------------------------------------------------------------------------ r1752 | dreibh | 2008-03-28 17:57:37 +0100 (Fri, 28 Mar 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/go Updated PlanetLab scripts. ------------------------------------------------------------------------ r1750 | dreibh | 2008-03-12 21:27:57 +0100 (Wed, 12 Mar 2008) | 2 lines Changed paths: M /trunk/rsplib2/bootstrap bootstrap update to correctly call aclocal under FreeBSD 7.0. ------------------------------------------------------------------------ r1749 | dreibh | 2008-02-28 20:38:01 +0100 (Thu, 28 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r1748 | dreibh | 2008-02-22 09:48:08 +0100 (Fri, 22 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r1747 | dreibh | 2008-02-21 20:52:37 +0100 (Thu, 21 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog ------------------------------------------------------------------------ r1746 | dreibh | 2008-02-21 20:45:10 +0100 (Thu, 21 Feb 2008) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/rsplib/scriptingservice.cc - Scripting service update. Removed umask(). - Version change. ------------------------------------------------------------------------ r1745 | dreibh | 2008-02-15 12:14:39 +0100 (Fri, 15 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1744 | dreibh | 2008-02-15 09:51:50 +0100 (Fri, 15 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO D /trunk/rsplib2/rsplib/demo-ns1 D /trunk/rsplib2/rsplib/demo-ns2 D /trunk/rsplib2/rsplib/demo-pe1 D /trunk/rsplib2/rsplib/demo-pe2 D /trunk/rsplib2/rsplib/demo-pu1 D /trunk/rsplib2/rsplib/demo-pu2 M /trunk/rsplib2/rsplib/do-clearall M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h D /trunk/rsplib2/rsplib/p1 D /trunk/rsplib2/rsplib/p2 D /trunk/rsplib2/rsplib/r1 D /trunk/rsplib2/rsplib/r2 D /trunk/rsplib2/rsplib/r3 M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/t7.cc A /trunk/rsplib2/rsplib/t7.h D /trunk/rsplib2/rsplib/u1 netutilities.c cleanups. ------------------------------------------------------------------------ r1743 | dreibh | 2008-02-14 18:22:44 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts ------------------------------------------------------------------------ r1742 | dreibh | 2008-02-14 18:15:25 +0100 (Thu, 14 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/testregistrator.c printf format string fix (added cast). ------------------------------------------------------------------------ r1741 | dreibh | 2008-02-14 18:12:54 +0100 (Thu, 14 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c Added casts to get rid of C++ under FreeBSD warnings. ------------------------------------------------------------------------ r1740 | dreibh | 2008-02-14 18:04:44 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolnode-template_impl.h ------------------------------------------------------------------------ r1739 | dreibh | 2008-02-14 18:01:53 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/dispatcher.c ------------------------------------------------------------------------ r1738 | dreibh | 2008-02-14 17:54:22 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.h ------------------------------------------------------------------------ r1737 | dreibh | 2008-02-14 17:51:05 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.h ------------------------------------------------------------------------ r1736 | dreibh | 2008-02-14 17:48:50 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c ------------------------------------------------------------------------ r1735 | dreibh | 2008-02-14 17:23:42 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am ------------------------------------------------------------------------ r1734 | dreibh | 2008-02-14 17:04:29 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r1733 | dreibh | 2008-02-14 16:28:10 +0100 (Thu, 14 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsputilities.c A /trunk/rsplib2/rsplib/t7.cc More usful error numbers when parsing messages. ------------------------------------------------------------------------ r1732 | dreibh | 2008-02-14 13:14:23 +0100 (Thu, 14 Feb 2008) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rsputilities.c - Added default ports. - Setting announce multicast address in rserpool.h. ------------------------------------------------------------------------ r1731 | dreibh | 2008-02-14 12:07:17 +0100 (Thu, 14 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/scriptingpackets.h Got rid of #pragmas for alignment. ------------------------------------------------------------------------ r1730 | dreibh | 2008-02-14 11:53:34 +0100 (Thu, 14 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/registrar-global.c Updated SCTP_DELAYED_SACK tuning to latest draft. ------------------------------------------------------------------------ r1728 | dreibh | 2008-02-14 11:33:57 +0100 (Thu, 14 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Fix for Server Announce. Now handing Transport Parameters correctly. ------------------------------------------------------------------------ r1727 | dreibh | 2008-02-14 11:27:26 +0100 (Thu, 14 Feb 2008) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c - Error handling improvements. - Fix for Server Announce. ------------------------------------------------------------------------ r1726 | dreibh | 2008-02-14 10:56:55 +0100 (Thu, 14 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/timestamphashtable.h M /trunk/rsplib2/rsplib/udplikeserver.cc stdint.h include cleanup -> moved to tdtypes.h. ------------------------------------------------------------------------ r1725 | dreibh | 2008-02-14 10:05:41 +0100 (Thu, 14 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c ------------------------------------------------------------------------ r1724 | dreibh | 2008-02-13 17:37:54 +0100 (Wed, 13 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/testregistrator.c Added cast to compile with g++. ------------------------------------------------------------------------ r1723 | dreibh | 2008-02-13 17:09:23 +0100 (Wed, 13 Feb 2008) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/testregistrator.c - Log message fix. - Update of testregistrator. ------------------------------------------------------------------------ r1722 | dreibh | 2008-02-13 16:21:29 +0100 (Wed, 13 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Fixed cast for printf. ------------------------------------------------------------------------ r1721 | dreibh | 2008-02-13 16:18:51 +0100 (Wed, 13 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Handle error of PR-ID=0 in PoolElementParameters. ------------------------------------------------------------------------ r1720 | dreibh | 2008-02-13 12:57:55 +0100 (Wed, 13 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c Fix: Send IPv4 instead of mapped IPv6 in Presences. ------------------------------------------------------------------------ r1719 | dreibh | 2008-02-13 11:04:53 +0100 (Wed, 13 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/deb-install M /trunk/rsplib2/deb-uninstall M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control D /trunk/rsplib2/debian/rsplib-calcappservice.install D /trunk/rsplib2/debian/rsplib-calcappservice.manpages D /trunk/rsplib2/debian/rsplib-fgpservice.install D /trunk/rsplib2/debian/rsplib-fgpservice.manpages D /trunk/rsplib2/debian/rsplib-pingpongservice.install D /trunk/rsplib2/debian/rsplib-pingpongservice.manpages D /trunk/rsplib2/debian/rsplib-scriptingservice.install D /trunk/rsplib2/debian/rsplib-scriptingservice.manpages A /trunk/rsplib2/debian/rsplib-services.install A /trunk/rsplib2/debian/rsplib-services.manpages M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1718 | dreibh | 2008-02-12 15:18:12 +0100 (Tue, 12 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1712 | dreibh | 2008-02-12 13:30:50 +0100 (Tue, 12 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in ------------------------------------------------------------------------ r1709 | dreibh | 2008-02-11 16:03:22 +0100 (Mon, 11 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1698 | dreibh | 2008-02-09 13:48:05 +0100 (Sat, 09 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/copyright ------------------------------------------------------------------------ r1697 | dreibh | 2008-02-09 12:31:48 +0100 (Sat, 09 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/ChangeLog ------------------------------------------------------------------------ r1696 | dreibh | 2008-02-09 12:27:03 +0100 (Sat, 09 Feb 2008) | 3 lines Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/copyright M /trunk/rsplib2/debian/rules R /trunk/rsplib2/rsplib/wireshark/Makefile.am - Debian file updates. - Removal of Wireshark dissectors from source archive. ------------------------------------------------------------------------ r1695 | dreibh | 2008-02-08 17:32:55 +0100 (Fri, 08 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib.lsm Updated LSM entry. ------------------------------------------------------------------------ r1694 | dreibh | 2008-02-08 17:30:30 +0100 (Fri, 08 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/BUGS M /trunk/rsplib2/README ------------------------------------------------------------------------ r1693 | dreibh | 2008-02-08 15:41:12 +0100 (Fri, 08 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog Version updates. ------------------------------------------------------------------------ r1692 | dreibh | 2008-02-08 08:33:44 +0100 (Fri, 08 Feb 2008) | 3 lines Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/docs/Handbook.lyx A /trunk/rsplib2/docs/Handbook.pdf M /trunk/rsplib2/docs/Makefile.am M /trunk/rsplib2/docs/Referenzarchiv.bib M /trunk/rsplib2/rsplib/planetlab-config - configure update: kernel SCTP is default now. - Updated handbook. ------------------------------------------------------------------------ r1691 | dreibh | 2008-02-07 17:49:54 +0100 (Thu, 07 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1690 | dreibh | 2008-02-07 13:36:20 +0100 (Thu, 07 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/wireshark/dfilters ------------------------------------------------------------------------ r1689 | dreibh | 2008-02-06 15:42:43 +0100 (Wed, 06 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/packet-calcappprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-componentstatus.c M /trunk/rsplib2/rsplib/wireshark/packet-fractalgeneratorprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-pingpongprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c Dissectors update: synchronized with Wireshark SVN. ------------------------------------------------------------------------ r1688 | dreibh | 2008-02-06 14:48:26 +0100 (Wed, 06 Feb 2008) | 1 line Changed paths: A /trunk/rsplib2/rsplib/t6.cc ------------------------------------------------------------------------ r1687 | dreibh | 2008-02-06 14:46:06 +0100 (Wed, 06 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1686 | dreibh | 2008-02-06 13:20:10 +0100 (Wed, 06 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/preferences Wireshark updates. ------------------------------------------------------------------------ r1685 | dreibh | 2008-02-06 12:47:17 +0100 (Wed, 06 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r1684 | dreibh | 2008-02-06 12:47:08 +0100 (Wed, 06 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol M /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h Scripting Service improvements. ------------------------------------------------------------------------ r1683 | dreibh | 2008-02-06 12:46:54 +0100 (Wed, 06 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/wireshark/Makefile.am M /trunk/rsplib2/rsplib/wireshark/colorfilters M /trunk/rsplib2/rsplib/wireshark/dfilters M /trunk/rsplib2/rsplib/wireshark/packet-calcappprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-componentstatus.c M /trunk/rsplib2/rsplib/wireshark/packet-fractalgeneratorprotocol.c M /trunk/rsplib2/rsplib/wireshark/packet-pingpongprotocol.c A /trunk/rsplib2/rsplib/wireshark/packet-scriptingservice.c Dissector and filters for Scripting Service. ------------------------------------------------------------------------ r1682 | dreibh | 2008-02-06 12:43:53 +0100 (Wed, 06 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c Improved connection handling. ------------------------------------------------------------------------ r1681 | dreibh | 2008-02-06 00:34:48 +0100 (Wed, 06 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingserviceexample Scripting service improvements. ------------------------------------------------------------------------ r1680 | dreibh | 2008-02-05 20:22:28 +0100 (Tue, 05 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample Scripting service update: added Ready message to save bandwidth. ------------------------------------------------------------------------ r1679 | dreibh | 2008-02-04 16:15:00 +0100 (Mon, 04 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r1678 | dreibh | 2008-02-04 15:55:25 +0100 (Mon, 04 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc ------------------------------------------------------------------------ r1677 | dreibh | 2008-02-04 15:14:23 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog Debian changelog update. ------------------------------------------------------------------------ r1676 | dreibh | 2008-02-04 14:58:24 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc Added cast to get rid of "missing sentinel" warning. ------------------------------------------------------------------------ r1675 | dreibh | 2008-02-04 14:45:46 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/server.cc Default policy for scripting service is now LUD. ------------------------------------------------------------------------ r1674 | dreibh | 2008-02-04 14:40:40 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h Replaced tempnam() by mkdtemp(). ------------------------------------------------------------------------ r1673 | dreibh | 2008-02-04 14:25:47 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in Version update. ------------------------------------------------------------------------ r1672 | dreibh | 2008-02-04 14:13:37 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c Update interval improvement for CSP Monitor. ------------------------------------------------------------------------ r1671 | dreibh | 2008-02-04 12:03:22 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rsputilities.c Default port for CSP server. ------------------------------------------------------------------------ r1670 | dreibh | 2008-02-04 12:03:09 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c string2address() bugfix: now handling invalid port specification
:. ------------------------------------------------------------------------ r1669 | dreibh | 2008-02-04 12:02:27 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/cspmonitor.c CSP monitor now skips update when there is nothing to print. ------------------------------------------------------------------------ r1668 | dreibh | 2008-02-04 11:28:26 +0100 (Mon, 04 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c ------------------------------------------------------------------------ r1667 | dreibh | 2008-02-04 11:12:05 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/pooluserlist-template.h M /trunk/rsplib2/rsplib/pooluserlist-template_impl.h M /trunk/rsplib2/rsplib/poolusernode-template.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol.8 M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/scriptingserviceexample.8 M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.8 M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timestamphashtable.c M /trunk/rsplib2/rsplib/timestamphashtable.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h Header update. ------------------------------------------------------------------------ r1666 | dreibh | 2008-02-04 11:04:34 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c String update. ------------------------------------------------------------------------ r1665 | dreibh | 2008-02-04 10:49:01 +0100 (Mon, 04 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1664 | dreibh | 2008-02-04 10:48:53 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c Optimization: if not necessary, do not re-establish association to PR (useful for PU). ------------------------------------------------------------------------ r1663 | dreibh | 2008-02-04 10:48:25 +0100 (Mon, 04 Feb 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrartable.c Bugfix: remove PR entry from PR list if sctp_getpaddrs() or sctp_peeloff() fail. ------------------------------------------------------------------------ r1662 | dreibh | 2008-02-03 14:43:14 +0100 (Sun, 03 Feb 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1659 | dreibh | 2008-01-31 17:26:29 +0100 (Thu, 31 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingpackets.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h Scripting service update to handle exit code. Added Status message. ------------------------------------------------------------------------ r1658 | dreibh | 2008-01-31 15:46:00 +0100 (Thu, 31 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/tcplikeserver.cc Removing finished sessions before accepting new ones (avoids abort of new sessions when servers seems to be full). ------------------------------------------------------------------------ r1657 | dreibh | 2008-01-31 13:46:54 +0100 (Thu, 31 Jan 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/server.8 ------------------------------------------------------------------------ r1656 | dreibh | 2008-01-31 13:45:57 +0100 (Thu, 31 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/server.8 Updated "server" manual page. ------------------------------------------------------------------------ r1655 | dreibh | 2008-01-30 10:31:33 +0100 (Wed, 30 Jan 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1652 | dreibh | 2008-01-27 17:43:04 +0100 (Sun, 27 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control Updated Debian scripts. ------------------------------------------------------------------------ r1651 | dreibh | 2008-01-26 00:25:34 +0100 (Sat, 26 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/registrar-global.c Fixed FreeBSD compile warnings. ------------------------------------------------------------------------ r1650 | dreibh | 2008-01-25 23:57:02 +0100 (Fri, 25 Jan 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/t3.cc ------------------------------------------------------------------------ r1649 | dreibh | 2008-01-25 15:28:18 +0100 (Fri, 25 Jan 2008) | 4 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/t3.cc lksctp bugfix: found sctp_getladdrs()/sctp_getpaddrs() bug: too few bytes of the address array are copied. Work-around by adding socket call to kernel to obtain addresses directly without libsctp. ------------------------------------------------------------------------ r1648 | dreibh | 2008-01-25 08:34:52 +0100 (Fri, 25 Jan 2008) | 4 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/scriptingclient.8 M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingcontrol M /trunk/rsplib2/rsplib/t3.cc M /trunk/rsplib2/rsplib/terminal.c - Improved behaviour for sending EndpointUnreachables. - Added Stale Cache Value parameter to rsp_getaddrinfo(), rsp_connect() and rsp_forcefailover(). - t3.cc: Test program for lksctp bug. ------------------------------------------------------------------------ r1647 | dreibh | 2008-01-23 21:43:19 +0100 (Wed, 23 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c Added transmit timeout to scripting client. ------------------------------------------------------------------------ r1646 | dreibh | 2008-01-20 11:27:41 +0100 (Sun, 20 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h TCPLikeServer: replaced 25ms loop interval by pipe-driven notification mechanism => much more efficient policy information updates. ------------------------------------------------------------------------ r1645 | dreibh | 2008-01-12 15:44:19 +0100 (Sat, 12 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/rspbasicmode.c Got rid of typecast warnings. ------------------------------------------------------------------------ r1644 | dreibh | 2008-01-12 15:10:26 +0100 (Sat, 12 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Removed Flags (multicast bit) field from ServerInformationParameter (update to latest draft) and finally got rid the multicast flag. ------------------------------------------------------------------------ r1643 | dreibh | 2008-01-11 11:37:51 +0100 (Fri, 11 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario1 M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/three-regions-scenario Changes of demo scripts due to PlanetLab slice problem: Turned off ASAP/ENRP announce listening on PlanetLab hosts. Was not useful anyway. ------------------------------------------------------------------------ r1642 | dreibh | 2008-01-08 09:31:09 +0100 (Tue, 08 Jan 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1641 | dreibh | 2008-01-08 08:34:49 +0100 (Tue, 08 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc Removed rsp_sendmsg() error message in fractalpooluser (failover is reported anyway). ------------------------------------------------------------------------ r1640 | dreibh | 2008-01-06 16:41:16 +0100 (Sun, 06 Jan 2008) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/prepare-compilehost ------------------------------------------------------------------------ r1639 | dreibh | 2008-01-06 15:22:52 +0100 (Sun, 06 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/rspenhancedmode.c rsp_connect() will now simply call rsp_forcefailover, without returning the actual result. Then, the application can simply failover to another PE when the first one selected is not available. ------------------------------------------------------------------------ r1637 | dreibh | 2008-01-06 15:19:19 +0100 (Sun, 06 Jan 2008) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc - Fixed bug in fractalgeneratorservice: Return "result" instead of EHR_Okay! - Updated strings in fractalpooluser. ------------------------------------------------------------------------ r1628 | dreibh | 2008-01-05 10:37:47 +0100 (Sat, 05 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrartable.c Deletion of registrar table now frees assoc ID list. ------------------------------------------------------------------------ r1627 | dreibh | 2008-01-04 22:37:27 +0100 (Fri, 04 Jan 2008) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/rspbasicmode.c rsp_cleanup() bugfix: socket set must be removed *after* the ASAP main loop thread has been joined! ------------------------------------------------------------------------ r1624 | dreibh | 2007-12-29 15:21:45 +0100 (Sat, 29 Dec 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1623 | dreibh | 2007-12-24 12:37:15 +0100 (Mon, 24 Dec 2007) | 5 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/t5.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h - configure.in fix. - Updated error causes to latest draft. - Fractal Generator Service update (significant speed improvement). - TCPLikeServer: Sync/Async timer support. ------------------------------------------------------------------------ r1622 | dreibh | 2007-12-21 16:29:47 +0100 (Fri, 21 Dec 2007) | 2 lines Changed paths: M /trunk/rsplib2/configure.in configure.in bugfix. ------------------------------------------------------------------------ r1621 | dreibh | 2007-12-20 09:34:15 +0100 (Thu, 20 Dec 2007) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/scriptingclient.c - Update to latest draft (parameter types). - Handling of ServerInformationParameter in ASAP announce. ------------------------------------------------------------------------ r1620 | tuexen | 2007-12-14 17:04:16 +0100 (Fri, 14 Dec 2007) | 3 lines Changed paths: M /trunk/rsplib2/configure.in Handle all Mac OS X version the same way... Might break Panther, but who still uses that? ------------------------------------------------------------------------ r1611 | dreibh | 2007-11-13 17:42:37 +0100 (Tue, 13 Nov 2007) | 1 line Changed paths: M /trunk/rsplib2/BUGS M /trunk/rsplib2/autogen-perf.sh D /trunk/rsplib2/rsplib/scriptingservice ------------------------------------------------------------------------ r1610 | dreibh | 2007-11-08 11:58:41 +0100 (Thu, 08 Nov 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t5.cc ------------------------------------------------------------------------ r1609 | dreibh | 2007-11-07 09:50:19 +0100 (Wed, 07 Nov 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/make-t5 A /trunk/rsplib2/rsplib/t5.cc ------------------------------------------------------------------------ r1608 | dreibh | 2007-11-05 09:45:44 +0100 (Mon, 05 Nov 2007) | 1 line Changed paths: M /trunk/rsplib2/BUGS M /trunk/rsplib2/rsplib/Makefile.am ------------------------------------------------------------------------ r1606 | dreibh | 2007-10-29 20:45:37 +0100 (Mon, 29 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/udplikeserver.cc Fix in UDPLikeServer: obtain initial load value using getLoad(). ------------------------------------------------------------------------ r1605 | dreibh | 2007-10-27 10:01:19 +0200 (Sat, 27 Oct 2007) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/changelog ------------------------------------------------------------------------ r1604 | dreibh | 2007-10-25 11:05:00 +0200 (Thu, 25 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/rspbasicmode.c Fixed rsp_cleanup(): CSPReported is removed *after* ASAPInstance, since ASAPInstance thread may be in timer callback. ------------------------------------------------------------------------ r1603 | dreibh | 2007-10-24 16:08:23 +0200 (Wed, 24 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/debian/changelog D /trunk/rsplib2/stamp-h.in Debian script versioning finally got right. ------------------------------------------------------------------------ r1602 | dreibh | 2007-10-24 14:17:04 +0200 (Wed, 24 Oct 2007) | 1 line Changed paths: M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/make-deb ------------------------------------------------------------------------ r1601 | dreibh | 2007-10-24 13:05:17 +0200 (Wed, 24 Oct 2007) | 2 lines Changed paths: A /trunk/rsplib2/clean-deb M /trunk/rsplib2/debian/changelog M /trunk/rsplib2/debian/control M /trunk/rsplib2/make-deb Debian script updates. ------------------------------------------------------------------------ r1599 | dreibh | 2007-10-21 10:24:35 +0200 (Sun, 21 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/rspbasicmode.c make-deb script update. ------------------------------------------------------------------------ r1598 | tuexen | 2007-10-20 18:04:50 +0200 (Sat, 20 Oct 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c inlude poll.h ------------------------------------------------------------------------ r1597 | tuexen | 2007-10-20 18:03:22 +0200 (Sat, 20 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h For Mac OS X. ------------------------------------------------------------------------ r1596 | tuexen | 2007-10-20 17:33:32 +0200 (Sat, 20 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/bootstrap More searchpath. ------------------------------------------------------------------------ r1595 | tuexen | 2007-10-20 17:33:02 +0200 (Sat, 20 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h Fix compilation. ------------------------------------------------------------------------ r1594 | tuexen | 2007-10-20 17:32:21 +0200 (Sat, 20 Oct 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc Add includes. ------------------------------------------------------------------------ r1593 | tuexen | 2007-10-20 17:31:41 +0200 (Sat, 20 Oct 2007) | 5 lines Changed paths: M /trunk/rsplib2/rsplib/rspbasicmode.c EAI_ADDRFAMILY -> EAI_FAMILY This line, and those below, will be ignored-- M rspbasicmode.c ------------------------------------------------------------------------ r1592 | tuexen | 2007-10-20 17:30:33 +0200 (Sat, 20 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/tdtypes.h Fix includes. ------------------------------------------------------------------------ r1591 | tuexen | 2007-10-20 17:29:41 +0200 (Sat, 20 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/configure.in Add sctp_connecx thing. ------------------------------------------------------------------------ r1590 | dreibh | 2007-10-17 15:29:56 +0200 (Wed, 17 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts A /trunk/rsplib2/rsplib/run-planetlabtest M /trunk/rsplib2/rsplib/three-regions-scenario PlanetLab script updates. ------------------------------------------------------------------------ r1589 | dreibh | 2007-10-09 13:18:03 +0200 (Tue, 09 Oct 2007) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/terminal.c Update of ext_socket.h and required socket API version. Added cast for printf in terminal.c. ------------------------------------------------------------------------ r1578 | dreibh | 2007-10-09 09:32:46 +0200 (Tue, 09 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/rules Debian script updates. ------------------------------------------------------------------------ r1577 | dreibh | 2007-10-04 17:15:38 +0200 (Thu, 04 Oct 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/scriptingclient.c Fixed 3 warnings when compiling with g++. ------------------------------------------------------------------------ r1576 | dreibh | 2007-09-26 15:12:49 +0200 (Wed, 26 Sep 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/scriptingserviceexample M /trunk/rsplib2/rsplib/tcplikeserver.cc calcappclient bugfix: "if" -> "else if". tcplikeserver: fixed %u printing of size_t by cast. ------------------------------------------------------------------------ r1574 | dreibh | 2007-09-21 10:51:45 +0200 (Fri, 21 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/rsplib-scriptingservice.install M /trunk/rsplib2/debian/rsplib-scriptingservice.manpages M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/scriptingserviceexample A /trunk/rsplib2/rsplib/scriptingserviceexample.8 ------------------------------------------------------------------------ r1573 | dreibh | 2007-09-14 22:18:41 +0200 (Fri, 14 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am Makefile.am update for added FGP files. ------------------------------------------------------------------------ r1572 | dreibh | 2007-09-14 16:33:52 +0200 (Fri, 14 Sep 2007) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/deb-install M /trunk/rsplib2/deb-uninstall M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/libcpprspserver-dev.install D /trunk/rsplib2/debian/libcpprspserver.install A /trunk/rsplib2/debian/libcpprspserver2.install (from /trunk/rsplib2/debian/libcpprspserver.install:1566) A /trunk/rsplib2/debian/librsplib-dev.install D /trunk/rsplib2/debian/librsplib.install A /trunk/rsplib2/debian/librsplib2.install (from /trunk/rsplib2/debian/librsplib.install:1566) A /trunk/rsplib2/debian/rsplib-calcappservice.install A /trunk/rsplib2/debian/rsplib-calcappservice.manpages M /trunk/rsplib2/debian/rsplib-doc.install A /trunk/rsplib2/debian/rsplib-fgpservice.install A /trunk/rsplib2/debian/rsplib-fgpservice.manpages A /trunk/rsplib2/debian/rsplib-pingpongservice.install A /trunk/rsplib2/debian/rsplib-pingpongservice.manpages M /trunk/rsplib2/debian/rsplib-registrar.install M /trunk/rsplib2/debian/rsplib-registrar.manpages A /trunk/rsplib2/debian/rsplib-scriptingservice.install A /trunk/rsplib2/debian/rsplib-scriptingservice.manpages M /trunk/rsplib2/debian/rsplib-tools.install M /trunk/rsplib2/debian/rsplib-tools.manpages M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/fgpconfig/b1.fsf D /trunk/rsplib2/rsplib/fgpconfig/b10.fsf D /trunk/rsplib2/rsplib/fgpconfig/b2.fsf D /trunk/rsplib2/rsplib/fgpconfig/b3.fsf D /trunk/rsplib2/rsplib/fgpconfig/b4.fsf D /trunk/rsplib2/rsplib/fgpconfig/b5.fsf D /trunk/rsplib2/rsplib/fgpconfig/b6.fsf D /trunk/rsplib2/rsplib/fgpconfig/b7.fsf D /trunk/rsplib2/rsplib/fgpconfig/b8.fsf D /trunk/rsplib2/rsplib/fgpconfig/b9.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-0.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-001.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b10.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-002.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b1.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-003.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b2.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-004.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b3.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-005.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b4.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-006.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b5.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-007.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b6.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-008.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b7.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-009.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b8.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-010.fsf (from /trunk/rsplib2/rsplib/fgpconfig/b9.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-011.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-0.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-012.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-100.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-013.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-101.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-014.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-102.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-015.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-103.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-016.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-104.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-017.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-105.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-018.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-106.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-019.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-107.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-020.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-108.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-021.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-109.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-022.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-10.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-023.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-110.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-024.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-111.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-025.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-112.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-026.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-113.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-027.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-114.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-028.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-115.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-029.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-116.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-030.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-117.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-031.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-118.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-032.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-119.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-033.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-11.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-034.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-120.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-035.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-121.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-036.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-122.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-037.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-123.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-038.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-124.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-039.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-125.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-040.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-126.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-041.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-127.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-042.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-128.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-043.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-129.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-044.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-12.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-045.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-130.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-046.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-131.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-047.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-132.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-048.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-133.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-049.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-134.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-050.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-135.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-051.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-136.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-052.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-137.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-053.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-138.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-054.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-139.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-055.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-13.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-056.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-140.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-057.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-141.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-058.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-142.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-059.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-143.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-060.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-144.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-061.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-145.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-062.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-146.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-063.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-147.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-064.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-148.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-065.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-149.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-066.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-14.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-067.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-150.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-068.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-151.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-069.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-152.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-070.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-153.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-071.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-154.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-072.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-155.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-073.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-156.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-074.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-157.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-075.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-158.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-076.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-159.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-077.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-15.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-078.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-160.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-079.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-161.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-080.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-16.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-081.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-17.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-082.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-18.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-083.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-19.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-084.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-1.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-085.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-20.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-086.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-21.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-087.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-22.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-088.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-23.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-089.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-24.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-090.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-25.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-091.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-26.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-092.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-27.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-093.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-28.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-094.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-29.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-095.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-2.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-096.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-30.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-097.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-31.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-098.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-32.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-099.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-33.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-1.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-10.fsf R /trunk/rsplib2/rsplib/fgpconfig/input-100.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-34.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-101.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-35.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-102.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-36.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-103.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-37.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-104.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-38.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-105.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-39.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-106.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-3.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-107.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-40.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-108.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-41.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-109.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-42.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-11.fsf R /trunk/rsplib2/rsplib/fgpconfig/input-110.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-43.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-111.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-44.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-112.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-45.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-113.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-46.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-114.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-47.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-115.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-48.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-116.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-49.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-117.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-4.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-118.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-50.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-119.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-51.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-12.fsf R /trunk/rsplib2/rsplib/fgpconfig/input-120.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-52.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-121.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-53.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-122.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-54.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-123.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-55.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-124.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-56.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-125.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-57.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-126.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-58.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-127.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-59.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-128.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-5.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-129.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-60.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-13.fsf R /trunk/rsplib2/rsplib/fgpconfig/input-130.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-61.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-131.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-62.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-132.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-63.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-133.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-64.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-134.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-65.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-135.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-66.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-136.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-67.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-137.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-68.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-138.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-69.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-139.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-6.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-14.fsf R /trunk/rsplib2/rsplib/fgpconfig/input-140.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-70.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-141.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-71.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-142.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-72.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-143.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-73.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-144.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-74.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-145.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-75.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-146.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-76.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-147.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-77.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-148.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-78.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-149.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-79.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-15.fsf R /trunk/rsplib2/rsplib/fgpconfig/input-150.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-7.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-151.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-80.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-152.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-81.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-153.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-82.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-154.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-83.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-155.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-84.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-156.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-85.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-157.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-86.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-158.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-87.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-159.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-88.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-16.fsf R /trunk/rsplib2/rsplib/fgpconfig/input-160.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-89.fsf:1567) R /trunk/rsplib2/rsplib/fgpconfig/input-161.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-8.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-162.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-90.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-163.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-91.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-164.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-92.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-165.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-93.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-166.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-94.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-167.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-95.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-168.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-96.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-169.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-97.fsf:1567) D /trunk/rsplib2/rsplib/fgpconfig/input-17.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-170.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-98.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-171.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-99.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-172.fsf (from /trunk/rsplib2/rsplib/fgpconfig/input-9.fsf:1567) A /trunk/rsplib2/rsplib/fgpconfig/input-173.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k10.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-174.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k11.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-175.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k12.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-176.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k13.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-177.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k14.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-178.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k15.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-179.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k16.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-18.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-180.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k17.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-181.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k18.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-182.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k19.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-183.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k1.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-184.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k20.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-185.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k21.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-186.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k22.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-187.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k23.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-188.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k24.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-189.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k25.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-19.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-190.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k26.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-191.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k27.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-192.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k28.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-193.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k29.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-194.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k2.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-195.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k30.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-196.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k31.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-197.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k32.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-198.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k33.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-199.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k34.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-2.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-20.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-200.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k35.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-201.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k36.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-202.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k37.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-203.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k38.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-204.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k3.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-205.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k4.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-206.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k5.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-207.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k6.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-208.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k7.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-209.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k8.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-21.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-210.fsf (from /trunk/rsplib2/rsplib/fgpconfig/k9.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-211.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q10.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-212.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q1.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-213.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q2.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-214.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q3.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-215.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q4.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-216.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q5.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-217.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q6.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-218.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q7.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-219.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q8.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-22.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-220.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q9.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-221.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t10.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-222.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t1.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-223.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t2.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-224.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t3.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-225.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t4.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-226.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t5.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-227.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t6.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-228.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t7.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-229.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t8.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-23.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-230.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t9.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-231.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u10.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-232.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u1.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-233.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u2.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-234.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u3.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-235.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u4.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-236.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u5.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-237.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u6.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-238.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u7.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-239.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u8.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-24.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-240.fsf (from /trunk/rsplib2/rsplib/fgpconfig/u9.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-241.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x10.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-242.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x1.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-243.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x2.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-244.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x3.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-245.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x4.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-246.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x5.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-247.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x6.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-248.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x7.fsf:1571) A /trunk/rsplib2/rsplib/fgpconfig/input-249.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x8.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-25.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-250.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x9.fsf:1571) D /trunk/rsplib2/rsplib/fgpconfig/input-26.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-27.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-28.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-29.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-3.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-30.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-31.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-32.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-33.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-34.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-35.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-36.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-37.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-38.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-39.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-4.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-40.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-41.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-42.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-43.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-44.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-45.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-46.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-47.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-48.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-49.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-5.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-50.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-51.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-52.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-53.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-54.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-55.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-56.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-57.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-58.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-59.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-6.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-60.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-61.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-62.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-63.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-64.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-65.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-66.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-67.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-68.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-69.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-7.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-70.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-71.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-72.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-73.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-74.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-75.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-76.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-77.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-78.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-79.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-8.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-80.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-81.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-82.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-83.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-84.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-85.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-86.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-87.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-88.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-89.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-9.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-90.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-91.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-92.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-93.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-94.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-95.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-96.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-97.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-98.fsf D /trunk/rsplib2/rsplib/fgpconfig/input-99.fsf D /trunk/rsplib2/rsplib/fgpconfig/k1.fsf D /trunk/rsplib2/rsplib/fgpconfig/k10.fsf D /trunk/rsplib2/rsplib/fgpconfig/k11.fsf D /trunk/rsplib2/rsplib/fgpconfig/k12.fsf D /trunk/rsplib2/rsplib/fgpconfig/k13.fsf D /trunk/rsplib2/rsplib/fgpconfig/k14.fsf D /trunk/rsplib2/rsplib/fgpconfig/k15.fsf D /trunk/rsplib2/rsplib/fgpconfig/k16.fsf D /trunk/rsplib2/rsplib/fgpconfig/k17.fsf D /trunk/rsplib2/rsplib/fgpconfig/k18.fsf D /trunk/rsplib2/rsplib/fgpconfig/k19.fsf D /trunk/rsplib2/rsplib/fgpconfig/k2.fsf D /trunk/rsplib2/rsplib/fgpconfig/k20.fsf D /trunk/rsplib2/rsplib/fgpconfig/k21.fsf D /trunk/rsplib2/rsplib/fgpconfig/k22.fsf D /trunk/rsplib2/rsplib/fgpconfig/k23.fsf D /trunk/rsplib2/rsplib/fgpconfig/k24.fsf D /trunk/rsplib2/rsplib/fgpconfig/k25.fsf D /trunk/rsplib2/rsplib/fgpconfig/k26.fsf D /trunk/rsplib2/rsplib/fgpconfig/k27.fsf D /trunk/rsplib2/rsplib/fgpconfig/k28.fsf D /trunk/rsplib2/rsplib/fgpconfig/k29.fsf D /trunk/rsplib2/rsplib/fgpconfig/k3.fsf D /trunk/rsplib2/rsplib/fgpconfig/k30.fsf D /trunk/rsplib2/rsplib/fgpconfig/k31.fsf D /trunk/rsplib2/rsplib/fgpconfig/k32.fsf D /trunk/rsplib2/rsplib/fgpconfig/k33.fsf D /trunk/rsplib2/rsplib/fgpconfig/k34.fsf D /trunk/rsplib2/rsplib/fgpconfig/k35.fsf D /trunk/rsplib2/rsplib/fgpconfig/k36.fsf D /trunk/rsplib2/rsplib/fgpconfig/k37.fsf D /trunk/rsplib2/rsplib/fgpconfig/k38.fsf D /trunk/rsplib2/rsplib/fgpconfig/k4.fsf D /trunk/rsplib2/rsplib/fgpconfig/k5.fsf D /trunk/rsplib2/rsplib/fgpconfig/k6.fsf D /trunk/rsplib2/rsplib/fgpconfig/k7.fsf D /trunk/rsplib2/rsplib/fgpconfig/k8.fsf D /trunk/rsplib2/rsplib/fgpconfig/k9.fsf D /trunk/rsplib2/rsplib/fgpconfig/q1.fsf D /trunk/rsplib2/rsplib/fgpconfig/q10.fsf D /trunk/rsplib2/rsplib/fgpconfig/q2.fsf D /trunk/rsplib2/rsplib/fgpconfig/q3.fsf D /trunk/rsplib2/rsplib/fgpconfig/q4.fsf D /trunk/rsplib2/rsplib/fgpconfig/q5.fsf D /trunk/rsplib2/rsplib/fgpconfig/q6.fsf D /trunk/rsplib2/rsplib/fgpconfig/q7.fsf D /trunk/rsplib2/rsplib/fgpconfig/q8.fsf D /trunk/rsplib2/rsplib/fgpconfig/q9.fsf D /trunk/rsplib2/rsplib/fgpconfig/t1.fsf D /trunk/rsplib2/rsplib/fgpconfig/t10.fsf D /trunk/rsplib2/rsplib/fgpconfig/t2.fsf D /trunk/rsplib2/rsplib/fgpconfig/t3.fsf D /trunk/rsplib2/rsplib/fgpconfig/t4.fsf D /trunk/rsplib2/rsplib/fgpconfig/t5.fsf D /trunk/rsplib2/rsplib/fgpconfig/t6.fsf D /trunk/rsplib2/rsplib/fgpconfig/t7.fsf D /trunk/rsplib2/rsplib/fgpconfig/t8.fsf D /trunk/rsplib2/rsplib/fgpconfig/t9.fsf D /trunk/rsplib2/rsplib/fgpconfig/u1.fsf D /trunk/rsplib2/rsplib/fgpconfig/u10.fsf D /trunk/rsplib2/rsplib/fgpconfig/u2.fsf D /trunk/rsplib2/rsplib/fgpconfig/u3.fsf D /trunk/rsplib2/rsplib/fgpconfig/u4.fsf D /trunk/rsplib2/rsplib/fgpconfig/u5.fsf D /trunk/rsplib2/rsplib/fgpconfig/u6.fsf D /trunk/rsplib2/rsplib/fgpconfig/u7.fsf D /trunk/rsplib2/rsplib/fgpconfig/u8.fsf D /trunk/rsplib2/rsplib/fgpconfig/u9.fsf D /trunk/rsplib2/rsplib/fgpconfig/x1.fsf D /trunk/rsplib2/rsplib/fgpconfig/x10.fsf D /trunk/rsplib2/rsplib/fgpconfig/x2.fsf D /trunk/rsplib2/rsplib/fgpconfig/x3.fsf D /trunk/rsplib2/rsplib/fgpconfig/x4.fsf D /trunk/rsplib2/rsplib/fgpconfig/x5.fsf D /trunk/rsplib2/rsplib/fgpconfig/x6.fsf D /trunk/rsplib2/rsplib/fgpconfig/x7.fsf D /trunk/rsplib2/rsplib/fgpconfig/x8.fsf D /trunk/rsplib2/rsplib/fgpconfig/x9.fsf - More FGP file updates. - Debian script improvements. ------------------------------------------------------------------------ r1571 | dreibh | 2007-09-14 16:25:41 +0200 (Fri, 14 Sep 2007) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/fgpconfig/b1.fsf A /trunk/rsplib2/rsplib/fgpconfig/b10.fsf A /trunk/rsplib2/rsplib/fgpconfig/b2.fsf A /trunk/rsplib2/rsplib/fgpconfig/b3.fsf A /trunk/rsplib2/rsplib/fgpconfig/b4.fsf A /trunk/rsplib2/rsplib/fgpconfig/b5.fsf A /trunk/rsplib2/rsplib/fgpconfig/b6.fsf A /trunk/rsplib2/rsplib/fgpconfig/b7.fsf A /trunk/rsplib2/rsplib/fgpconfig/b8.fsf A /trunk/rsplib2/rsplib/fgpconfig/b9.fsf A /trunk/rsplib2/rsplib/fgpconfig/k1.fsf A /trunk/rsplib2/rsplib/fgpconfig/k10.fsf A /trunk/rsplib2/rsplib/fgpconfig/k11.fsf A /trunk/rsplib2/rsplib/fgpconfig/k12.fsf A /trunk/rsplib2/rsplib/fgpconfig/k13.fsf A /trunk/rsplib2/rsplib/fgpconfig/k14.fsf A /trunk/rsplib2/rsplib/fgpconfig/k15.fsf A /trunk/rsplib2/rsplib/fgpconfig/k16.fsf A /trunk/rsplib2/rsplib/fgpconfig/k17.fsf A /trunk/rsplib2/rsplib/fgpconfig/k18.fsf A /trunk/rsplib2/rsplib/fgpconfig/k19.fsf A /trunk/rsplib2/rsplib/fgpconfig/k2.fsf A /trunk/rsplib2/rsplib/fgpconfig/k20.fsf A /trunk/rsplib2/rsplib/fgpconfig/k21.fsf A /trunk/rsplib2/rsplib/fgpconfig/k22.fsf A /trunk/rsplib2/rsplib/fgpconfig/k23.fsf A /trunk/rsplib2/rsplib/fgpconfig/k24.fsf A /trunk/rsplib2/rsplib/fgpconfig/k25.fsf A /trunk/rsplib2/rsplib/fgpconfig/k26.fsf A /trunk/rsplib2/rsplib/fgpconfig/k27.fsf A /trunk/rsplib2/rsplib/fgpconfig/k28.fsf A /trunk/rsplib2/rsplib/fgpconfig/k29.fsf A /trunk/rsplib2/rsplib/fgpconfig/k3.fsf A /trunk/rsplib2/rsplib/fgpconfig/k30.fsf A /trunk/rsplib2/rsplib/fgpconfig/k31.fsf A /trunk/rsplib2/rsplib/fgpconfig/k32.fsf A /trunk/rsplib2/rsplib/fgpconfig/k33.fsf A /trunk/rsplib2/rsplib/fgpconfig/k34.fsf A /trunk/rsplib2/rsplib/fgpconfig/k35.fsf A /trunk/rsplib2/rsplib/fgpconfig/k36.fsf A /trunk/rsplib2/rsplib/fgpconfig/k37.fsf A /trunk/rsplib2/rsplib/fgpconfig/k38.fsf A /trunk/rsplib2/rsplib/fgpconfig/k4.fsf A /trunk/rsplib2/rsplib/fgpconfig/k5.fsf A /trunk/rsplib2/rsplib/fgpconfig/k6.fsf A /trunk/rsplib2/rsplib/fgpconfig/k7.fsf A /trunk/rsplib2/rsplib/fgpconfig/k8.fsf A /trunk/rsplib2/rsplib/fgpconfig/k9.fsf A /trunk/rsplib2/rsplib/fgpconfig/q1.fsf A /trunk/rsplib2/rsplib/fgpconfig/q10.fsf A /trunk/rsplib2/rsplib/fgpconfig/q2.fsf A /trunk/rsplib2/rsplib/fgpconfig/q3.fsf A /trunk/rsplib2/rsplib/fgpconfig/q4.fsf A /trunk/rsplib2/rsplib/fgpconfig/q5.fsf A /trunk/rsplib2/rsplib/fgpconfig/q6.fsf A /trunk/rsplib2/rsplib/fgpconfig/q7.fsf A /trunk/rsplib2/rsplib/fgpconfig/q8.fsf A /trunk/rsplib2/rsplib/fgpconfig/q9.fsf M /trunk/rsplib2/rsplib/fgpconfig/renumber-files A /trunk/rsplib2/rsplib/fgpconfig/t1.fsf A /trunk/rsplib2/rsplib/fgpconfig/t10.fsf A /trunk/rsplib2/rsplib/fgpconfig/t2.fsf A /trunk/rsplib2/rsplib/fgpconfig/t3.fsf A /trunk/rsplib2/rsplib/fgpconfig/t4.fsf A /trunk/rsplib2/rsplib/fgpconfig/t5.fsf A /trunk/rsplib2/rsplib/fgpconfig/t6.fsf A /trunk/rsplib2/rsplib/fgpconfig/t7.fsf A /trunk/rsplib2/rsplib/fgpconfig/t8.fsf A /trunk/rsplib2/rsplib/fgpconfig/t9.fsf A /trunk/rsplib2/rsplib/fgpconfig/u1.fsf A /trunk/rsplib2/rsplib/fgpconfig/u10.fsf A /trunk/rsplib2/rsplib/fgpconfig/u2.fsf A /trunk/rsplib2/rsplib/fgpconfig/u3.fsf A /trunk/rsplib2/rsplib/fgpconfig/u4.fsf A /trunk/rsplib2/rsplib/fgpconfig/u5.fsf A /trunk/rsplib2/rsplib/fgpconfig/u6.fsf A /trunk/rsplib2/rsplib/fgpconfig/u7.fsf A /trunk/rsplib2/rsplib/fgpconfig/u8.fsf A /trunk/rsplib2/rsplib/fgpconfig/u9.fsf M /trunk/rsplib2/rsplib/fgpconfig/update-iterations A /trunk/rsplib2/rsplib/fgpconfig/x1.fsf A /trunk/rsplib2/rsplib/fgpconfig/x10.fsf A /trunk/rsplib2/rsplib/fgpconfig/x2.fsf A /trunk/rsplib2/rsplib/fgpconfig/x3.fsf A /trunk/rsplib2/rsplib/fgpconfig/x4.fsf A /trunk/rsplib2/rsplib/fgpconfig/x5.fsf A /trunk/rsplib2/rsplib/fgpconfig/x6.fsf A /trunk/rsplib2/rsplib/fgpconfig/x7.fsf A /trunk/rsplib2/rsplib/fgpconfig/x8.fsf A /trunk/rsplib2/rsplib/fgpconfig/x9.fsf FGP config files added. ------------------------------------------------------------------------ r1570 | dreibh | 2007-09-13 18:16:15 +0200 (Thu, 13 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/docs/Handbook.lyx ------------------------------------------------------------------------ r1569 | dreibh | 2007-09-13 09:34:56 +0200 (Thu, 13 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/README ------------------------------------------------------------------------ r1568 | dreibh | 2007-09-12 09:36:26 +0200 (Wed, 12 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/docs/Handbook.lyx M /trunk/rsplib2/docs/Referenzarchiv.bib ------------------------------------------------------------------------ r1567 | dreibh | 2007-09-11 09:01:28 +0200 (Tue, 11 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc scripting service update. ------------------------------------------------------------------------ r1566 | dreibh | 2007-09-10 21:21:56 +0200 (Mon, 10 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am A /trunk/rsplib2/rsplib/fgpconfig/input-102.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x0.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-103.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x1.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-104.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x2.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-105.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x3.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-106.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x4.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-107.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x5.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-108.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x6.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-109.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x7.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-110.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x8.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-111.fsf (from /trunk/rsplib2/rsplib/fgpconfig/x9.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-112.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y0.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-113.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y11.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-114.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y12.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-115.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y13.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-116.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y14.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-117.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y15.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-118.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y16.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-119.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y17.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-120.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y18.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-121.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y1.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-122.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y2.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-123.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y3.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-124.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y4.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-125.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y5.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-126.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y6.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-127.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y7.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-128.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y8.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-129.fsf (from /trunk/rsplib2/rsplib/fgpconfig/y9.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-130.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z10.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-131.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z11.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-132.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z12.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-133.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z13.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-134.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z14.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-135.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z15.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-136.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z16.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-137.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z17.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-138.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z18.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-139.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z19.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-140.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z1.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-141.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z20.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-142.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z21.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-143.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z22.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-144.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z23.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-145.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z24.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-146.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z25.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-147.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z26.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-148.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z27.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-149.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z28.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-150.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z29.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-151.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z2.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-152.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z30.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-153.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z31.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-154.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z32.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-155.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z3.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-156.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z4.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-157.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z5.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-158.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z6.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-159.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z7.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-160.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z8.fsf:1565) A /trunk/rsplib2/rsplib/fgpconfig/input-161.fsf (from /trunk/rsplib2/rsplib/fgpconfig/z9.fsf:1565) D /trunk/rsplib2/rsplib/fgpconfig/x0.fsf D /trunk/rsplib2/rsplib/fgpconfig/x1.fsf D /trunk/rsplib2/rsplib/fgpconfig/x2.fsf D /trunk/rsplib2/rsplib/fgpconfig/x3.fsf D /trunk/rsplib2/rsplib/fgpconfig/x4.fsf D /trunk/rsplib2/rsplib/fgpconfig/x5.fsf D /trunk/rsplib2/rsplib/fgpconfig/x6.fsf D /trunk/rsplib2/rsplib/fgpconfig/x7.fsf D /trunk/rsplib2/rsplib/fgpconfig/x8.fsf D /trunk/rsplib2/rsplib/fgpconfig/x9.fsf D /trunk/rsplib2/rsplib/fgpconfig/y0.fsf D /trunk/rsplib2/rsplib/fgpconfig/y1.fsf D /trunk/rsplib2/rsplib/fgpconfig/y11.fsf D /trunk/rsplib2/rsplib/fgpconfig/y12.fsf D /trunk/rsplib2/rsplib/fgpconfig/y13.fsf D /trunk/rsplib2/rsplib/fgpconfig/y14.fsf D /trunk/rsplib2/rsplib/fgpconfig/y15.fsf D /trunk/rsplib2/rsplib/fgpconfig/y16.fsf D /trunk/rsplib2/rsplib/fgpconfig/y17.fsf D /trunk/rsplib2/rsplib/fgpconfig/y18.fsf D /trunk/rsplib2/rsplib/fgpconfig/y2.fsf D /trunk/rsplib2/rsplib/fgpconfig/y3.fsf D /trunk/rsplib2/rsplib/fgpconfig/y4.fsf D /trunk/rsplib2/rsplib/fgpconfig/y5.fsf D /trunk/rsplib2/rsplib/fgpconfig/y6.fsf D /trunk/rsplib2/rsplib/fgpconfig/y7.fsf D /trunk/rsplib2/rsplib/fgpconfig/y8.fsf D /trunk/rsplib2/rsplib/fgpconfig/y9.fsf D /trunk/rsplib2/rsplib/fgpconfig/z1.fsf D /trunk/rsplib2/rsplib/fgpconfig/z10.fsf D /trunk/rsplib2/rsplib/fgpconfig/z11.fsf D /trunk/rsplib2/rsplib/fgpconfig/z12.fsf D /trunk/rsplib2/rsplib/fgpconfig/z13.fsf D /trunk/rsplib2/rsplib/fgpconfig/z14.fsf D /trunk/rsplib2/rsplib/fgpconfig/z15.fsf D /trunk/rsplib2/rsplib/fgpconfig/z16.fsf D /trunk/rsplib2/rsplib/fgpconfig/z17.fsf D /trunk/rsplib2/rsplib/fgpconfig/z18.fsf D /trunk/rsplib2/rsplib/fgpconfig/z19.fsf D /trunk/rsplib2/rsplib/fgpconfig/z2.fsf D /trunk/rsplib2/rsplib/fgpconfig/z20.fsf D /trunk/rsplib2/rsplib/fgpconfig/z21.fsf D /trunk/rsplib2/rsplib/fgpconfig/z22.fsf D /trunk/rsplib2/rsplib/fgpconfig/z23.fsf D /trunk/rsplib2/rsplib/fgpconfig/z24.fsf D /trunk/rsplib2/rsplib/fgpconfig/z25.fsf D /trunk/rsplib2/rsplib/fgpconfig/z26.fsf D /trunk/rsplib2/rsplib/fgpconfig/z27.fsf D /trunk/rsplib2/rsplib/fgpconfig/z28.fsf D /trunk/rsplib2/rsplib/fgpconfig/z29.fsf D /trunk/rsplib2/rsplib/fgpconfig/z3.fsf D /trunk/rsplib2/rsplib/fgpconfig/z30.fsf D /trunk/rsplib2/rsplib/fgpconfig/z31.fsf D /trunk/rsplib2/rsplib/fgpconfig/z32.fsf D /trunk/rsplib2/rsplib/fgpconfig/z4.fsf D /trunk/rsplib2/rsplib/fgpconfig/z5.fsf D /trunk/rsplib2/rsplib/fgpconfig/z6.fsf D /trunk/rsplib2/rsplib/fgpconfig/z7.fsf D /trunk/rsplib2/rsplib/fgpconfig/z8.fsf D /trunk/rsplib2/rsplib/fgpconfig/z9.fsf FGP config file updates. ------------------------------------------------------------------------ r1565 | dreibh | 2007-09-10 21:10:00 +0200 (Mon, 10 Sep 2007) | 3 lines Changed paths: M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian/rsplib-tools.install M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am M /trunk/rsplib2/rsplib/fgpconfig/renumber-files D /trunk/rsplib2/rsplib/fgpconfig/scenarios.conf M /trunk/rsplib2/rsplib/fgpconfig/update-iterations A /trunk/rsplib2/rsplib/fgpconfig/x0.fsf A /trunk/rsplib2/rsplib/fgpconfig/x1.fsf A /trunk/rsplib2/rsplib/fgpconfig/x2.fsf A /trunk/rsplib2/rsplib/fgpconfig/x3.fsf A /trunk/rsplib2/rsplib/fgpconfig/x4.fsf A /trunk/rsplib2/rsplib/fgpconfig/x5.fsf A /trunk/rsplib2/rsplib/fgpconfig/x6.fsf A /trunk/rsplib2/rsplib/fgpconfig/x7.fsf A /trunk/rsplib2/rsplib/fgpconfig/x8.fsf A /trunk/rsplib2/rsplib/fgpconfig/x9.fsf A /trunk/rsplib2/rsplib/fgpconfig/y0.fsf A /trunk/rsplib2/rsplib/fgpconfig/y1.fsf A /trunk/rsplib2/rsplib/fgpconfig/y11.fsf A /trunk/rsplib2/rsplib/fgpconfig/y12.fsf A /trunk/rsplib2/rsplib/fgpconfig/y13.fsf A /trunk/rsplib2/rsplib/fgpconfig/y14.fsf A /trunk/rsplib2/rsplib/fgpconfig/y15.fsf A /trunk/rsplib2/rsplib/fgpconfig/y16.fsf A /trunk/rsplib2/rsplib/fgpconfig/y17.fsf A /trunk/rsplib2/rsplib/fgpconfig/y18.fsf A /trunk/rsplib2/rsplib/fgpconfig/y2.fsf A /trunk/rsplib2/rsplib/fgpconfig/y3.fsf A /trunk/rsplib2/rsplib/fgpconfig/y4.fsf A /trunk/rsplib2/rsplib/fgpconfig/y5.fsf A /trunk/rsplib2/rsplib/fgpconfig/y6.fsf A /trunk/rsplib2/rsplib/fgpconfig/y7.fsf A /trunk/rsplib2/rsplib/fgpconfig/y8.fsf A /trunk/rsplib2/rsplib/fgpconfig/y9.fsf A /trunk/rsplib2/rsplib/fgpconfig/z1.fsf A /trunk/rsplib2/rsplib/fgpconfig/z10.fsf A /trunk/rsplib2/rsplib/fgpconfig/z11.fsf A /trunk/rsplib2/rsplib/fgpconfig/z12.fsf A /trunk/rsplib2/rsplib/fgpconfig/z13.fsf A /trunk/rsplib2/rsplib/fgpconfig/z14.fsf A /trunk/rsplib2/rsplib/fgpconfig/z15.fsf A /trunk/rsplib2/rsplib/fgpconfig/z16.fsf A /trunk/rsplib2/rsplib/fgpconfig/z17.fsf A /trunk/rsplib2/rsplib/fgpconfig/z18.fsf A /trunk/rsplib2/rsplib/fgpconfig/z19.fsf A /trunk/rsplib2/rsplib/fgpconfig/z2.fsf A /trunk/rsplib2/rsplib/fgpconfig/z20.fsf A /trunk/rsplib2/rsplib/fgpconfig/z21.fsf A /trunk/rsplib2/rsplib/fgpconfig/z22.fsf A /trunk/rsplib2/rsplib/fgpconfig/z23.fsf A /trunk/rsplib2/rsplib/fgpconfig/z24.fsf A /trunk/rsplib2/rsplib/fgpconfig/z25.fsf A /trunk/rsplib2/rsplib/fgpconfig/z26.fsf A /trunk/rsplib2/rsplib/fgpconfig/z27.fsf A /trunk/rsplib2/rsplib/fgpconfig/z28.fsf A /trunk/rsplib2/rsplib/fgpconfig/z29.fsf A /trunk/rsplib2/rsplib/fgpconfig/z3.fsf A /trunk/rsplib2/rsplib/fgpconfig/z30.fsf A /trunk/rsplib2/rsplib/fgpconfig/z31.fsf A /trunk/rsplib2/rsplib/fgpconfig/z32.fsf A /trunk/rsplib2/rsplib/fgpconfig/z4.fsf A /trunk/rsplib2/rsplib/fgpconfig/z5.fsf A /trunk/rsplib2/rsplib/fgpconfig/z6.fsf A /trunk/rsplib2/rsplib/fgpconfig/z7.fsf A /trunk/rsplib2/rsplib/fgpconfig/z8.fsf A /trunk/rsplib2/rsplib/fgpconfig/z9.fsf M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/fractalpooluser.cc - fractalpooluser update: instead of using scenarios.conf, the directory is now scanned for fsf files. - Debian scripts updates. ------------------------------------------------------------------------ r1564 | dreibh | 2007-09-10 10:07:51 +0200 (Mon, 10 Sep 2007) | 3 lines Changed paths: M /trunk/rsplib2/debian/rsplib-tools.install M /trunk/rsplib2/debian/rsplib-tools.manpages M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c A /trunk/rsplib2/rsplib/scriptingclient.8 A /trunk/rsplib2/rsplib/scriptingcontrol (from /trunk/rsplib2/rsplib/scriptingservice.sh:1562) A /trunk/rsplib2/rsplib/scriptingcontrol.8 A /trunk/rsplib2/rsplib/scriptingservice (from /trunk/rsplib2/rsplib/scriptingservice.sh:1562) M /trunk/rsplib2/rsplib/scriptingservice.cc D /trunk/rsplib2/rsplib/scriptingservice.sh M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/terminal.8 - Man page updates. - Scripting service update (renamed script + added manpages). ------------------------------------------------------------------------ r1562 | dreibh | 2007-09-09 18:03:34 +0200 (Sun, 09 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/rspbasicmode.c Fixed the ASAP Handle Resolution race condition again. Now, the data is copied directly inside a mutex-locked area within asapHandleResolution. ------------------------------------------------------------------------ r1561 | dreibh | 2007-09-09 16:20:41 +0200 (Sun, 09 Sep 2007) | 2 lines Changed paths: A /trunk/rsplib2/deb-install A /trunk/rsplib2/deb-uninstall M /trunk/rsplib2/debian/control M /trunk/rsplib2/make-deb Debian script system improvements. ------------------------------------------------------------------------ r1560 | dreibh | 2007-09-09 15:55:47 +0200 (Sun, 09 Sep 2007) | 3 lines Changed paths: M /trunk/rsplib2/ChangeLog M /trunk/rsplib2/debian/control A /trunk/rsplib2/debian/libcpprspserver-dev.install A /trunk/rsplib2/debian/libcpprspserver.install M /trunk/rsplib2/debian/librsplib.install M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/fractalpooluser.8 M /trunk/rsplib2/rsplib/hsdump.8 M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/terminal.8 Manpage updates and Debian script fixes. Bugfix: ASAP Instance Handle Resolution returns pointers to local structures. They will be invalidated by other threads. Added asapInstanceLock() and asapInstanceUnlock(). ------------------------------------------------------------------------ r1559 | dreibh | 2007-09-09 12:03:32 +0200 (Sun, 09 Sep 2007) | 3 lines Changed paths: M /trunk/rsplib2/debian/control A /trunk/rsplib2/debian/librsplib.install (from /trunk/rsplib2/debian/rsplib-core.install:1557) D /trunk/rsplib2/debian/rsplib-core.install M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/rsplib/registrar.c Added fork option for daemon mode to registrar. Fixed init script for registrar. ------------------------------------------------------------------------ r1558 | dreibh | 2007-09-08 19:00:13 +0200 (Sat, 08 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/debian/rsplib-tools.install M /trunk/rsplib2/debian/rsplib-tools.manpages M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/calcappclient.8 M /trunk/rsplib2/rsplib/cspmonitor.8 A /trunk/rsplib2/rsplib/fractalpooluser.8 A /trunk/rsplib2/rsplib/hsdump.8 A /trunk/rsplib2/rsplib/pingpongclient.8 M /trunk/rsplib2/rsplib/server.8 Added more manual pages. ------------------------------------------------------------------------ r1557 | dreibh | 2007-09-08 11:40:03 +0200 (Sat, 08 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/debian/rsplib-tools.manpages A /trunk/rsplib2/debian/watch M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/cspmonitor.8 M /trunk/rsplib2/rsplib/terminal.8 Manpage updates, added Debian watch file. ------------------------------------------------------------------------ r1556 | dreibh | 2007-09-08 11:19:13 +0200 (Sat, 08 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.8 M /trunk/rsplib2/rsplib/server.8 M /trunk/rsplib2/rsplib/terminal.8 Manual page updates. ------------------------------------------------------------------------ r1555 | dreibh | 2007-09-08 10:36:25 +0200 (Sat, 08 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian/rsplib-registrar.manpages A /trunk/rsplib2/debian/rsplib-tools.manpages D /trunk/rsplib2/man M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/registrar.8 (from /trunk/rsplib2/man/man8/registrar.8:1554) A /trunk/rsplib2/rsplib/server.8 (from /trunk/rsplib2/man/man8/server.8:1554) A /trunk/rsplib2/rsplib/terminal.8 man page updates. ------------------------------------------------------------------------ r1554 | dreibh | 2007-09-08 09:15:50 +0200 (Sat, 08 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/debian/rsplib-registrar.init A /trunk/rsplib2/debian/rsplib-registrar.manpages A /trunk/rsplib2/man/man8/registrar.8 A /trunk/rsplib2/man/man8/server.8 man pages for registrar and server. ------------------------------------------------------------------------ r1553 | dreibh | 2007-09-07 12:07:35 +0200 (Fri, 07 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/rsplib-core.install M /trunk/rsplib2/debian/rsplib-registrar.init M /trunk/rsplib2/debian/rules M /trunk/rsplib2/make-deb A /trunk/rsplib2/man A /trunk/rsplib2/man/man8 ------------------------------------------------------------------------ r1552 | dreibh | 2007-09-05 15:15:58 +0200 (Wed, 05 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Fixed Error message handling. ------------------------------------------------------------------------ r1551 | dreibh | 2007-09-05 13:57:49 +0200 (Wed, 05 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/thread.h Bugfix: Scripting service load setting. ------------------------------------------------------------------------ r1550 | dreibh | 2007-09-05 13:45:11 +0200 (Wed, 05 Sep 2007) | 4 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/scriptingservice.cc Bugfixes: - Added load value setting for scripting service. - Fixed message parser bug deleting error code from message. ------------------------------------------------------------------------ r1549 | dreibh | 2007-09-05 11:28:43 +0200 (Wed, 05 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.sh M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r1548 | dreibh | 2007-09-04 16:07:09 +0200 (Tue, 04 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc Added transmit timeout parameter for scripting service. ------------------------------------------------------------------------ r1547 | dreibh | 2007-09-04 15:56:24 +0200 (Tue, 04 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc Scipting service: Added -sskeeptempdirs option. ------------------------------------------------------------------------ r1546 | dreibh | 2007-09-04 15:41:15 +0200 (Tue, 04 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Message handling bugfix: Send ASAP/ENRP error in case of parsing error. ------------------------------------------------------------------------ r1545 | dreibh | 2007-09-01 21:14:13 +0200 (Sat, 01 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.sh ------------------------------------------------------------------------ r1544 | dreibh | 2007-09-01 15:21:45 +0200 (Sat, 01 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.sh Scripting service updates. ------------------------------------------------------------------------ r1543 | dreibh | 2007-09-01 14:38:42 +0200 (Sat, 01 Sep 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/add-dummy-interface M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h A /trunk/rsplib2/rsplib/scriptingservice.sh M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h ------------------------------------------------------------------------ r1542 | dreibh | 2007-09-01 11:59:07 +0200 (Sat, 01 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/scriptingclient.c M /trunk/rsplib2/rsplib/scriptingservice.cc M /trunk/rsplib2/rsplib/scriptingservice.h Scrpting client updates. ------------------------------------------------------------------------ r1541 | dreibh | 2007-09-01 10:44:20 +0200 (Sat, 01 Sep 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/scriptingclient.c A /trunk/rsplib2/rsplib/scriptingpackets.h A /trunk/rsplib2/rsplib/scriptingservice.cc A /trunk/rsplib2/rsplib/scriptingservice.h M /trunk/rsplib2/rsplib/server.cc Added initial files for scripting service. ------------------------------------------------------------------------ r1540 | dreibh | 2007-08-29 16:20:42 +0200 (Wed, 29 Aug 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrartable.c RegistrarTable fix: send ABORT if peel-off of registrar association fails. ------------------------------------------------------------------------ r1538 | dreibh | 2007-08-25 08:22:59 +0200 (Sat, 25 Aug 2007) | 2 lines Changed paths: A /trunk/rsplib2/rsplib.lsm Added LSM entry. ------------------------------------------------------------------------ r1535 | dreibh | 2007-08-25 05:50:48 +0200 (Sat, 25 Aug 2007) | 3 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/configure.in M /trunk/rsplib2/debian/control D /trunk/rsplib2/debian/dirs D /trunk/rsplib2/debian/docs D /trunk/rsplib2/debian/init.d A /trunk/rsplib2/debian/rsplib-core.install A /trunk/rsplib2/debian/rsplib-registrar.init A /trunk/rsplib2/debian/rsplib-registrar.install A /trunk/rsplib2/debian/rsplib-tools.install M /trunk/rsplib2/debian/rules A /trunk/rsplib2/docs/Makefile.am M /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/Makefile.am More Debian packaging work. ------------------------------------------------------------------------ r1534 | dreibh | 2007-08-24 13:39:27 +0200 (Fri, 24 Aug 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/pingpongclient.c M /trunk/rsplib2/rsplib/registrar.c printf() format fixes (%Lu -> %llu). ------------------------------------------------------------------------ r1533 | dreibh | 2007-08-24 13:25:09 +0200 (Fri, 24 Aug 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h Updated ext_socket.h. ------------------------------------------------------------------------ r1532 | dreibh | 2007-08-24 13:22:04 +0200 (Fri, 24 Aug 2007) | 4 lines Changed paths: M /trunk/rsplib2/BUGS M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/NEWS M /trunk/rsplib2/debian/control M /trunk/rsplib2/debian/dirs M /trunk/rsplib2/debian/rules A /trunk/rsplib2/make-deb M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/pingpong.c A /trunk/rsplib2/rsplib/pingpongclient.c (from /trunk/rsplib2/rsplib/pingpong.c:1521) - Bugfix in registrartable.c: Sending ABORT if peeloff fails. - Renamed pingpong.c to pingpongclient.c. - Debian packaging stuff added. ------------------------------------------------------------------------ r1531 | dreibh | 2007-08-24 09:51:41 +0200 (Fri, 24 Aug 2007) | 2 lines Changed paths: A /trunk/rsplib2/debian A /trunk/rsplib2/debian/changelog A /trunk/rsplib2/debian/compat A /trunk/rsplib2/debian/control A /trunk/rsplib2/debian/copyright A /trunk/rsplib2/debian/dirs A /trunk/rsplib2/debian/docs A /trunk/rsplib2/debian/init.d A /trunk/rsplib2/debian/rsplib-doc.docs A /trunk/rsplib2/debian/rsplib-doc.install A /trunk/rsplib2/debian/rules M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h UDPLikeServer bugfix and Makefile.am improvements. ------------------------------------------------------------------------ r1530 | dreibh | 2007-08-24 06:16:22 +0200 (Fri, 24 Aug 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/prepare-compilehost M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r1527 | dreibh | 2007-08-23 05:35:43 +0200 (Thu, 23 Aug 2007) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspenhancedmode.c A /trunk/rsplib2/rsplib/storage/solaris.c Support for connectx() with associd parameter (configure scripts). Removed deprecated Solaris stuff in netutilities.c. ------------------------------------------------------------------------ r1524 | dreibh | 2007-08-23 04:13:47 +0200 (Thu, 23 Aug 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/poolusernode-template.h hsdump fix. ------------------------------------------------------------------------ r1523 | dreibh | 2007-08-23 03:10:51 +0200 (Thu, 23 Aug 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/registrar.c fork() update. Changed default registrar behaviour to enable multicast by default. ------------------------------------------------------------------------ r1521 | tuexen | 2007-08-22 12:49:14 +0200 (Wed, 22 Aug 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/hsdump.c No C++. ------------------------------------------------------------------------ r1520 | dreibh | 2007-08-22 12:20:46 +0200 (Wed, 22 Aug 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/poolelement-example M /trunk/rsplib2/rsplib/pooluser-example M /trunk/rsplib2/rsplib/pooluserlist-template.h M /trunk/rsplib2/rsplib/pooluserlist-template_impl.h M /trunk/rsplib2/rsplib/poolusernode-template.h M /trunk/rsplib2/rsplib/poolusernode-template_impl.h M /trunk/rsplib2/rsplib/registrar-example A /trunk/rsplib2/rsplib/timestamphashtable.c A /trunk/rsplib2/rsplib/timestamphashtable.h Fork update. Pool user management update. ------------------------------------------------------------------------ r1513 | dreibh | 2007-08-22 04:17:29 +0200 (Wed, 22 Aug 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/t4.cc A /trunk/rsplib2/rsplib/t4.sh ------------------------------------------------------------------------ r1512 | dreibh | 2007-08-21 08:32:51 +0200 (Tue, 21 Aug 2007) | 5 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-core.c Filter messages according to input socket: on UDP socket: only ENRP-Presence on ASAP socket: only ASAP on ENRP socket: only ENRP ------------------------------------------------------------------------ r1509 | dreibh | 2007-08-20 10:19:48 +0200 (Mon, 20 Aug 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c - Added logging options to hsdump. - Message parser skips link-local addresses now. ------------------------------------------------------------------------ r1508 | dreibh | 2007-08-20 04:12:33 +0200 (Mon, 20 Aug 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar-enrp.c Bugfix: When receiving ENRP Presence, use port number from content (if available), not from UDP packet. ------------------------------------------------------------------------ r1503 | dreibh | 2007-08-10 12:12:12 +0200 (Fri, 10 Aug 2007) | 4 lines Changed paths: M /trunk/rsplib2/COPYING M /trunk/rsplib2/README M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/server.cc - Added Fractal Service transmit timeout and cookie parameters. - Updated Priority Policy implementation ------------------------------------------------------------------------ r1502 | dreibh | 2007-08-10 11:28:54 +0200 (Fri, 10 Aug 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/add-dummy-interface (from /trunk/rsplib2/rsplib/add-dummy-route:1501) D /trunk/rsplib2/rsplib/add-dummy-route M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h D /trunk/rsplib2/rsplib/draft-ietf-tsvwg-sctpsocket-10.txt D /trunk/rsplib2/rsplib/draft-silverton-rserpool-api-01.txt M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/poolelement-example M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/pooluser-example A /trunk/rsplib2/rsplib/pooluserlist-template.h A /trunk/rsplib2/rsplib/pooluserlist-template_impl.h A /trunk/rsplib2/rsplib/poolusernode-template.h A /trunk/rsplib2/rsplib/poolusernode-template_impl.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-core.c M /trunk/rsplib2/rsplib/registrar-debug M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-example M /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r1501 | dreibh | 2007-08-03 09:34:12 +0200 (Fri, 03 Aug 2007) | 1 line Changed paths: A /trunk/rsplib2/docs A /trunk/rsplib2/docs/EN-RSerPool-ProtocolStack.pdf A /trunk/rsplib2/docs/EN-RSerPool-Scenario-with-PPE.pdf A /trunk/rsplib2/docs/Handbook.lyx A /trunk/rsplib2/docs/Referenzarchiv.bib ------------------------------------------------------------------------ r1500 | dreibh | 2007-07-31 13:07:40 +0200 (Tue, 31 Jul 2007) | 1 line Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/registrar-example A /trunk/rsplib2/rsplib/storage/ubuntu/interfaces.dummy0 ------------------------------------------------------------------------ r1497 | dreibh | 2007-07-24 23:55:38 +0200 (Tue, 24 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h LU-DEG bugfix (missing degradation reset on update). ------------------------------------------------------------------------ r1496 | dreibh | 2007-07-23 09:52:53 +0200 (Mon, 23 Jul 2007) | 5 lines Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrar-asap.c M /trunk/rsplib2/rsplib/registrar-enrp.c M /trunk/rsplib2/rsplib/registrar-global.c A /trunk/rsplib2/rsplib/registrar-takeover.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrar.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h Finished registrar.c split. New option -quiet for registrar and server. ------------------------------------------------------------------------ r1495 | dreibh | 2007-07-22 19:15:04 +0200 (Sun, 22 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/registrar-asap.c A /trunk/rsplib2/rsplib/registrar-core.c A /trunk/rsplib2/rsplib/registrar-enrp.c A /trunk/rsplib2/rsplib/registrar-global.c M /trunk/rsplib2/rsplib/registrar.c A /trunk/rsplib2/rsplib/registrar.h Finished registrar.c split; untested yet! ------------------------------------------------------------------------ r1494 | dreibh | 2007-07-22 17:52:23 +0200 (Sun, 22 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c Started separating registrar.c into multiple files. ------------------------------------------------------------------------ r1493 | dreibh | 2007-07-21 16:10:46 +0200 (Sat, 21 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/takeoverprocess.c Takeover removal on peer list node disposal update. ------------------------------------------------------------------------ r1492 | dreibh | 2007-07-21 15:57:12 +0200 (Sat, 21 Jul 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h A /trunk/rsplib2/rsplib/registrar-debug M /trunk/rsplib2/rsplib/registrar.c Memory leak fixes. Fork improved (neg.exp. distribution). ------------------------------------------------------------------------ r1491 | dreibh | 2007-07-18 13:38:42 +0200 (Wed, 18 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c More mentor discovery updates (may still not work!) ------------------------------------------------------------------------ r1490 | dreibh | 2007-07-17 16:32:40 +0200 (Tue, 17 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.h Mentor handling improvements (may not work!) ------------------------------------------------------------------------ r1489 | dreibh | 2007-07-15 21:50:27 +0200 (Sun, 15 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h PeerList fix: preserve UserData upon static peer deregistration. ------------------------------------------------------------------------ r1488 | dreibh | 2007-07-13 11:56:23 +0200 (Fri, 13 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h Takeover updates. ------------------------------------------------------------------------ r1487 | dreibh | 2007-07-12 20:55:25 +0200 (Thu, 12 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/transportaddressblock.c More Takeover work. ------------------------------------------------------------------------ r1486 | dreibh | 2007-07-11 20:50:03 +0200 (Wed, 11 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/registrartable.c PeerListManagement enhancement (added function for randomized selection). ------------------------------------------------------------------------ r1485 | dreibh | 2007-07-11 16:40:09 +0200 (Wed, 11 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/transportaddressblock.c Test address type update. ------------------------------------------------------------------------ r1484 | dreibh | 2007-07-10 09:54:22 +0200 (Tue, 10 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h Priority policy + Randomized policies bugfix (wrong MaxIncrement handling). ------------------------------------------------------------------------ r1483 | dreibh | 2007-07-09 15:36:15 +0200 (Mon, 09 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Multicast and IPv6 scope ID fixes. ------------------------------------------------------------------------ r1482 | dreibh | 2007-07-09 13:22:59 +0200 (Mon, 09 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrar.c Multicast improvements, part 3. ------------------------------------------------------------------------ r1481 | dreibh | 2007-07-09 12:54:45 +0200 (Mon, 09 Jul 2007) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrar.c Multicast improvements, part 2. ------------------------------------------------------------------------ r1480 | dreibh | 2007-07-09 12:06:34 +0200 (Mon, 09 Jul 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Multicast improvements, part 1. ------------------------------------------------------------------------ r1476 | dreibh | 2007-07-03 13:42:34 +0200 (Tue, 03 Jul 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/plot-perftest3.R ------------------------------------------------------------------------ r1475 | dreibh | 2007-07-03 12:39:21 +0200 (Tue, 03 Jul 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R ------------------------------------------------------------------------ r1474 | dreibh | 2007-07-02 20:44:51 +0200 (Mon, 02 Jul 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1473 | dreibh | 2007-07-01 11:51:46 +0200 (Sun, 01 Jul 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1472 | dreibh | 2007-06-29 18:20:56 +0200 (Fri, 29 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1471 | dreibh | 2007-06-29 15:29:25 +0200 (Fri, 29 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1470 | dreibh | 2007-06-28 16:35:58 +0200 (Thu, 28 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1469 | dreibh | 2007-06-23 19:33:05 +0200 (Sat, 23 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1468 | dreibh | 2007-06-19 23:19:09 +0200 (Tue, 19 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/plot-perftest3.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1467 | dreibh | 2007-06-19 14:38:54 +0200 (Tue, 19 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/plot-perftest3.R ------------------------------------------------------------------------ r1466 | dreibh | 2007-06-16 23:57:01 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1465 | dreibh | 2007-06-16 23:19:22 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R ------------------------------------------------------------------------ r1464 | dreibh | 2007-06-16 23:16:42 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1463 | dreibh | 2007-06-16 22:55:35 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1462 | dreibh | 2007-06-16 22:52:24 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/plot-perftest3.R M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1461 | dreibh | 2007-06-16 22:34:32 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1460 | dreibh | 2007-06-16 14:55:16 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1459 | dreibh | 2007-06-16 14:46:24 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1458 | dreibh | 2007-06-16 10:31:15 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 ------------------------------------------------------------------------ r1457 | dreibh | 2007-06-16 10:30:39 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1456 | dreibh | 2007-06-16 10:24:23 +0200 (Sat, 16 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1455 | dreibh | 2007-06-15 17:11:35 +0200 (Fri, 15 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/prepare-compilehost ------------------------------------------------------------------------ r1454 | dreibh | 2007-06-15 16:42:06 +0200 (Fri, 15 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1453 | dreibh | 2007-06-15 16:38:46 +0200 (Fri, 15 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/compile-and-install M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/install-binaries-on-all-nodes M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/prepare-compilehost ------------------------------------------------------------------------ r1452 | dreibh | 2007-06-15 14:38:13 +0200 (Fri, 15 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1451 | dreibh | 2007-06-15 14:26:55 +0200 (Fri, 15 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/add-dummy-route ------------------------------------------------------------------------ r1450 | dreibh | 2007-06-15 11:40:27 +0200 (Fri, 15 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/add-dummy-route M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/poolelement-example M /trunk/rsplib2/rsplib/pooluser-example M /trunk/rsplib2/rsplib/registrar-example M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/standardservices.cc A /trunk/rsplib2/rsplib/t3-test A /trunk/rsplib2/rsplib/t3.cc M /trunk/rsplib2/rsplib/terminal.c ------------------------------------------------------------------------ r1449 | dreibh | 2007-06-15 11:39:25 +0200 (Fri, 15 Jun 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/transportaddressblock.c Fixed buffer overflow in address filtering function. ------------------------------------------------------------------------ r1448 | dreibh | 2007-06-14 16:19:11 +0200 (Thu, 14 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1446 | dreibh | 2007-06-14 12:23:16 +0200 (Thu, 14 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/udplikeserver.cc ------------------------------------------------------------------------ r1445 | dreibh | 2007-06-13 22:37:50 +0200 (Wed, 13 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1444 | dreibh | 2007-06-13 18:28:50 +0200 (Wed, 13 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1443 | dreibh | 2007-06-13 18:22:45 +0200 (Wed, 13 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1442 | dreibh | 2007-06-12 16:34:08 +0200 (Tue, 12 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2 ------------------------------------------------------------------------ r1441 | dreibh | 2007-06-12 15:09:09 +0200 (Tue, 12 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/perftest-version2 M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1440 | dreibh | 2007-06-11 22:34:59 +0200 (Mon, 11 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version2.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1439 | dreibh | 2007-06-09 20:34:11 +0200 (Sat, 09 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/hrestest.c A /trunk/rsplib2/rsplib/perftest-version2 A /trunk/rsplib2/rsplib/perftest-version2.R A /trunk/rsplib2/rsplib/plot-perftest3.R M /trunk/rsplib2/rsplib/registrar.c A /trunk/rsplib2/rsplib/run-perftest3.R ------------------------------------------------------------------------ r1438 | dreibh | 2007-06-08 18:15:03 +0200 (Fri, 08 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1437 | dreibh | 2007-06-06 21:11:39 +0200 (Wed, 06 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario1 M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/three-regions-scenario ------------------------------------------------------------------------ r1436 | dreibh | 2007-06-06 14:30:19 +0200 (Wed, 06 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/install-sctp M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/server.cc ------------------------------------------------------------------------ r1435 | dreibh | 2007-06-05 15:20:58 +0200 (Tue, 05 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/fractal-scenario1 M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/perftest-version1.R M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R D /trunk/rsplib2/rsplib/start-calcapppoolelement D /trunk/rsplib2/rsplib/start-registrar D /trunk/rsplib2/rsplib/start-server D /trunk/rsplib2/rsplib/stop-calcapppoolelements D /trunk/rsplib2/rsplib/stop-firewall D /trunk/rsplib2/rsplib/stop-servers ------------------------------------------------------------------------ r1434 | dreibh | 2007-06-05 09:29:53 +0200 (Tue, 05 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest-version1.R M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plot-perftest2.R ------------------------------------------------------------------------ r1433 | dreibh | 2007-06-05 09:29:18 +0200 (Tue, 05 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1432 | dreibh | 2007-06-04 21:21:01 +0200 (Mon, 04 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/combine-disaster-scenario1-results M /trunk/rsplib2/rsplib/combine-disaster-scenario2-results M /trunk/rsplib2/rsplib/combine-journal2006 M /trunk/rsplib2/rsplib/combine-test1 M /trunk/rsplib2/rsplib/combine-vectors M /trunk/rsplib2/rsplib/reniceall ------------------------------------------------------------------------ r1430 | dreibh | 2007-06-04 13:19:14 +0200 (Mon, 04 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Lab-User.config M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1429 | dreibh | 2007-06-01 21:43:37 +0200 (Fri, 01 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Lab-User.config M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/plot-perftest1.R A /trunk/rsplib2/rsplib/plot-perftest2.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1428 | dreibh | 2007-06-01 10:35:00 +0200 (Fri, 01 Jun 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest A /trunk/rsplib2/rsplib/perftest-version1.R M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1427 | dreibh | 2007-05-31 09:44:25 +0200 (Thu, 31 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1426 | dreibh | 2007-05-29 23:07:26 +0200 (Tue, 29 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1425 | dreibh | 2007-05-29 23:06:52 +0200 (Tue, 29 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1422 | dreibh | 2007-05-28 15:03:19 +0200 (Mon, 28 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest ------------------------------------------------------------------------ r1421 | dreibh | 2007-05-28 14:59:23 +0200 (Mon, 28 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/RemoteComponentControl M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1420 | dreibh | 2007-05-27 22:47:51 +0200 (Sun, 27 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1419 | dreibh | 2007-05-27 21:18:15 +0200 (Sun, 27 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1418 | dreibh | 2007-05-27 21:12:08 +0200 (Sun, 27 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1417 | dreibh | 2007-05-27 20:28:13 +0200 (Sun, 27 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1416 | dreibh | 2007-05-27 19:10:26 +0200 (Sun, 27 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1415 | dreibh | 2007-05-27 18:23:21 +0200 (Sun, 27 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ComponentControl ------------------------------------------------------------------------ r1414 | dreibh | 2007-05-27 18:14:40 +0200 (Sun, 27 May 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/make-rootshell M /trunk/rsplib2/rsplib/rootshell.c ------------------------------------------------------------------------ r1413 | dreibh | 2007-05-27 17:54:34 +0200 (Sun, 27 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ComponentControl M /trunk/rsplib2/rsplib/ComponentControl.config ------------------------------------------------------------------------ r1412 | dreibh | 2007-05-25 18:11:40 +0200 (Fri, 25 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1411 | dreibh | 2007-05-24 14:46:44 +0200 (Thu, 24 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/install-sctp M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1410 | dreibh | 2007-05-24 14:06:53 +0200 (Thu, 24 May 2007) | 1 line Changed paths: D /trunk/rsplib2/rsplib/deprecated ------------------------------------------------------------------------ r1409 | dreibh | 2007-05-24 13:01:12 +0200 (Thu, 24 May 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/install-sctp M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1408 | dreibh | 2007-05-24 12:16:38 +0200 (Thu, 24 May 2007) | 1 line Changed paths: M /trunk/rsplib2/configure.in ------------------------------------------------------------------------ r1398 | dreibh | 2007-05-24 10:47:17 +0200 (Thu, 24 May 2007) | 3 lines Changed paths: M /trunk/rsplib2/configure.in configure.in improvements. Used glib-2.0 now. ------------------------------------------------------------------------ r1395 | dreibh | 2007-05-23 23:19:11 +0200 (Wed, 23 May 2007) | 1 line Changed paths: M /trunk/rsplib2/make-rsplib ------------------------------------------------------------------------ r1394 | dreibh | 2007-05-23 23:18:16 +0200 (Wed, 23 May 2007) | 2 lines Changed paths: M /trunk/rsplib2/configure.in A /trunk/rsplib2/make-rsplib configure.in improvements. ------------------------------------------------------------------------ r1393 | dreibh | 2007-05-23 19:33:57 +0200 (Wed, 23 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ComponentControl.config M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1392 | dreibh | 2007-05-23 09:28:54 +0200 (Wed, 23 May 2007) | 1 line Changed paths: A /trunk/rsplib2/autogen-perf.sh ------------------------------------------------------------------------ r1391 | dreibh | 2007-05-23 09:27:45 +0200 (Wed, 23 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r1390 | dreibh | 2007-05-22 19:37:50 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Lab-User.config M /trunk/rsplib2/rsplib/perftest ------------------------------------------------------------------------ r1389 | dreibh | 2007-05-22 19:27:52 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ComponentControl.config M /trunk/rsplib2/rsplib/Lab-User.config M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1388 | dreibh | 2007-05-22 12:18:04 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ComponentControl.config D /trunk/rsplib2/rsplib/Lab.config ------------------------------------------------------------------------ r1387 | dreibh | 2007-05-22 12:10:38 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Lab-User.config A /trunk/rsplib2/rsplib/Lab.config ------------------------------------------------------------------------ r1386 | dreibh | 2007-05-22 12:09:07 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1385 | dreibh | 2007-05-22 11:55:31 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/t2.c ------------------------------------------------------------------------ r1384 | dreibh | 2007-05-22 10:34:00 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/t1.cc A /trunk/rsplib2/rsplib/t2.c ------------------------------------------------------------------------ r1383 | dreibh | 2007-05-22 00:46:06 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t1.cc ------------------------------------------------------------------------ r1382 | dreibh | 2007-05-22 00:37:53 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t1.cc ------------------------------------------------------------------------ r1381 | dreibh | 2007-05-22 00:18:47 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t1.cc ------------------------------------------------------------------------ r1380 | dreibh | 2007-05-22 00:03:09 +0200 (Tue, 22 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/t1.cc ------------------------------------------------------------------------ r1379 | dreibh | 2007-05-21 22:48:54 +0200 (Mon, 21 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1377 | dreibh | 2007-05-19 13:22:41 +0200 (Sat, 19 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/run-perftest1.R M /trunk/rsplib2/rsplib/t1.R ------------------------------------------------------------------------ r1376 | dreibh | 2007-05-19 09:43:01 +0200 (Sat, 19 May 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/reniceall M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r1375 | dreibh | 2007-05-18 19:00:15 +0200 (Fri, 18 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/daytimeserver D /trunk/rsplib2/rsplib/discardserver D /trunk/rsplib2/rsplib/echoserver D /trunk/rsplib2/rsplib/fractalserver D /trunk/rsplib2/rsplib/pingpongclient D /trunk/rsplib2/rsplib/pingpongserver M /trunk/rsplib2/rsplib/run-perftest1.R A /trunk/rsplib2/rsplib/run-perftest2.R ------------------------------------------------------------------------ r1374 | dreibh | 2007-05-17 20:15:40 +0200 (Thu, 17 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1373 | dreibh | 2007-05-17 10:41:34 +0200 (Thu, 17 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1372 | dreibh | 2007-05-16 15:00:48 +0200 (Wed, 16 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/poolelement-example M /trunk/rsplib2/rsplib/pooluser-example M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1371 | dreibh | 2007-05-16 12:25:57 +0200 (Wed, 16 May 2007) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am More configure.in cleanups. ------------------------------------------------------------------------ r1370 | dreibh | 2007-05-16 11:48:53 +0200 (Wed, 16 May 2007) | 2 lines Changed paths: M /trunk/rsplib2/configure.in configure.in cleanup. ------------------------------------------------------------------------ r1369 | dreibh | 2007-05-16 09:51:36 +0200 (Wed, 16 May 2007) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r1368 | dreibh | 2007-05-15 22:18:09 +0200 (Tue, 15 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Lab-User.config M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1367 | dreibh | 2007-05-15 18:19:22 +0200 (Tue, 15 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ComponentControl.config M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1366 | dreibh | 2007-05-15 15:43:38 +0200 (Tue, 15 May 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/ComponentControl A /trunk/rsplib2/rsplib/ComponentControl.config A /trunk/rsplib2/rsplib/Lab-User.config A /trunk/rsplib2/rsplib/RemoteComponentControl M /trunk/rsplib2/rsplib/create-hosts-files D /trunk/rsplib2/rsplib/examplens D /trunk/rsplib2/rsplib/examplepe D /trunk/rsplib2/rsplib/examplepu D /trunk/rsplib2/rsplib/extract-stat D /trunk/rsplib2/rsplib/nameserver D /trunk/rsplib2/rsplib/nameserver-example A /trunk/rsplib2/rsplib/output M /trunk/rsplib2/rsplib/perftest D /trunk/rsplib2/rsplib/prtest1 D /trunk/rsplib2/rsplib/prtest2 D /trunk/rsplib2/rsplib/registrar-example-ipv6 D /trunk/rsplib2/rsplib/registrar-example-stdports M /trunk/rsplib2/rsplib/run-perftest1.R D /trunk/rsplib2/rsplib/test1 D /trunk/rsplib2/rsplib/test2 D /trunk/rsplib2/rsplib/test3 D /trunk/rsplib2/rsplib/test3a D /trunk/rsplib2/rsplib/test4 D /trunk/rsplib2/rsplib/test4a D /trunk/rsplib2/rsplib/test5 ------------------------------------------------------------------------ r1365 | dreibh | 2007-05-14 15:31:33 +0200 (Mon, 14 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1364 | dreibh | 2007-05-14 14:13:44 +0200 (Mon, 14 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1363 | dreibh | 2007-05-11 11:59:35 +0200 (Fri, 11 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1362 | dreibh | 2007-05-10 16:17:13 +0200 (Thu, 10 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/perftest A /trunk/rsplib2/rsplib/plot-perftest1.R M /trunk/rsplib2/rsplib/plotter.R A /trunk/rsplib2/rsplib/run-perftest1.R ------------------------------------------------------------------------ r1361 | dreibh | 2007-05-09 15:55:39 +0200 (Wed, 09 May 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h Fixed stack overflow when there are too many transport addresses. transportAddressNew() now got a parameter with the limit. ------------------------------------------------------------------------ r1360 | dreibh | 2007-05-09 14:12:07 +0200 (Wed, 09 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h ------------------------------------------------------------------------ r1359 | dreibh | 2007-05-09 11:44:37 +0200 (Wed, 09 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/start-process ------------------------------------------------------------------------ r1358 | dreibh | 2007-05-09 11:43:30 +0200 (Wed, 09 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/start-process ------------------------------------------------------------------------ r1357 | dreibh | 2007-05-08 11:39:45 +0200 (Tue, 08 May 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/hrestest.c A /trunk/rsplib2/rsplib/perftest M /trunk/rsplib2/rsplib/start-process ------------------------------------------------------------------------ r1356 | dreibh | 2007-05-07 12:24:44 +0200 (Mon, 07 May 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fractal-scenario2 A /trunk/rsplib2/rsplib/hrestest.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/server.cc Added handle resolution performance tester + PR statistics output. ------------------------------------------------------------------------ r1355 | dreibh | 2007-05-01 10:16:12 +0200 (Tue, 01 May 2007) | 3 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/create-binaries configure.in fix for manual glib detection (--with-glib=...) ------------------------------------------------------------------------ r1354 | dreibh | 2007-04-27 14:26:57 +0200 (Fri, 27 Apr 2007) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/fractal-scenario2 Removed inclusion of libgmodule from configure.in. ------------------------------------------------------------------------ r1353 | dreibh | 2007-04-27 12:54:10 +0200 (Fri, 27 Apr 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/do-clearall M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/prepare-compilehost ------------------------------------------------------------------------ r1352 | dreibh | 2007-04-20 14:55:53 +0200 (Fri, 20 Apr 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc ------------------------------------------------------------------------ r1345 | dreibh | 2007-02-23 12:15:59 +0100 (Fri, 23 Feb 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario2 ------------------------------------------------------------------------ r1344 | dreibh | 2007-02-23 11:22:55 +0100 (Fri, 23 Feb 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/do-clearall M /trunk/rsplib2/rsplib/do-killall M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/start-process ------------------------------------------------------------------------ r1342 | dreibh | 2007-02-23 10:51:44 +0100 (Fri, 23 Feb 2007) | 1 line Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1336 | dreibh | 2007-02-13 15:08:22 +0100 (Tue, 13 Feb 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/rserpoolsocket.c 64-bit fixes. ------------------------------------------------------------------------ r1335 | dreibh | 2007-02-13 13:32:36 +0100 (Tue, 13 Feb 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c Small 64-bit fixes. ------------------------------------------------------------------------ r1331 | dreibh | 2007-02-09 17:39:03 +0100 (Fri, 09 Feb 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/do-clearall M /trunk/rsplib2/rsplib/do-killall M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/prepare-compilehost M /trunk/rsplib2/rsplib/put ------------------------------------------------------------------------ r1320 | dreibh | 2007-02-04 12:21:38 +0100 (Sun, 04 Feb 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/go ------------------------------------------------------------------------ r1314 | dreibh | 2007-02-03 21:54:55 +0100 (Sat, 03 Feb 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c ------------------------------------------------------------------------ r1312 | dreibh | 2007-02-03 20:36:17 +0100 (Sat, 03 Feb 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1303 | dreibh | 2007-01-21 15:58:28 +0100 (Sun, 21 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc ------------------------------------------------------------------------ r1301 | dreibh | 2007-01-19 18:36:11 +0100 (Fri, 19 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h ------------------------------------------------------------------------ r1300 | dreibh | 2007-01-19 17:54:21 +0100 (Fri, 19 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rserpoolsocket.c ------------------------------------------------------------------------ r1296 | dreibh | 2007-01-19 13:24:19 +0100 (Fri, 19 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fgpconfig/Makefile.am M /trunk/rsplib2/rsplib/fractalpooluser.cc ------------------------------------------------------------------------ r1295 | dreibh | 2007-01-18 17:54:14 +0100 (Thu, 18 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fgpconfig/scenarios.conf M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h ------------------------------------------------------------------------ r1294 | dreibh | 2007-01-18 16:06:16 +0100 (Thu, 18 Jan 2007) | 1 line Changed paths: D /trunk/rsplib2/rsplib/fgpconfig/alpha01.fsf D /trunk/rsplib2/rsplib/fgpconfig/alpha02.fsf D /trunk/rsplib2/rsplib/fgpconfig/alpha03.fsf D /trunk/rsplib2/rsplib/fgpconfig/alpha04.fsf D /trunk/rsplib2/rsplib/fgpconfig/alpha05.fsf D /trunk/rsplib2/rsplib/fgpconfig/alpha06.fsf D /trunk/rsplib2/rsplib/fgpconfig/alpha07.fsf D /trunk/rsplib2/rsplib/fgpconfig/alpha08.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe001.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe002.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe003.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe004.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe005.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe006.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe007.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe008.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe009.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe010.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe011.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe012.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe013.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe014.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe015.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe016.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe017.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe018.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe019.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe020.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe021.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe022.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe023.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe024.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe025.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe026.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe027.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe028.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe029.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe030.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe031.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe032.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe033.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe034.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe035.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe036.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe037.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe038.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe039.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe040.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe041.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe042.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe043.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe044.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe045.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe046.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe047.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe048.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe049.fsf D /trunk/rsplib2/rsplib/fgpconfig/eingabe050.fsf A /trunk/rsplib2/rsplib/fgpconfig/input-0.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha01.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-1.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha02.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-10.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe003.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-100.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wG.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-101.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wH.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-11.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe004.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-12.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe005.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-13.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe006.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-14.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe007.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-15.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe008.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-16.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe009.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-17.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe010.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-18.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe011.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-19.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe012.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-2.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha03.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-20.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe013.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-21.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe014.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-22.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe015.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-23.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe016.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-24.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe017.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-25.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe018.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-26.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe019.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-27.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe020.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-28.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe021.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-29.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe022.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-3.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha04.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-30.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe023.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-31.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe024.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-32.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe025.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-33.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe026.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-34.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe027.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-35.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe028.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-36.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe029.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-37.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe030.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-38.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe031.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-39.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe032.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-4.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha05.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-40.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe033.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-41.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe034.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-42.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe035.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-43.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe036.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-44.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe037.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-45.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe038.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-46.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe039.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-47.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe040.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-48.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe041.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-49.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe042.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-5.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha06.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-50.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe043.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-51.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe044.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-52.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe045.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-53.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe046.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-54.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe047.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-55.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe048.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-56.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe049.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-57.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe050.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-58.fsf (from /trunk/rsplib2/rsplib/fgpconfig/mandelbrot3.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-59.fsf (from /trunk/rsplib2/rsplib/fgpconfig/mandelbrot.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-6.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha07.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-60.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q1.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-61.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q2.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-62.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q3.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-63.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q4.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-64.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q5.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-65.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q6.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-66.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q7.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-67.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q8.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-68.fsf (from /trunk/rsplib2/rsplib/fgpconfig/q9.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-69.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qA.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-7.fsf (from /trunk/rsplib2/rsplib/fgpconfig/alpha08.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-70.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qB.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-71.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qD.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-72.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qE.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-73.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qF.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-74.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qG.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-75.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qH.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-76.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qI.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-77.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qJ.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-78.fsf (from /trunk/rsplib2/rsplib/fgpconfig/qK.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-79.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t0.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-8.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe001.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-80.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t1.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-81.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t2.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-82.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t3.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-83.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t4.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-84.fsf (from /trunk/rsplib2/rsplib/fgpconfig/t5.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-85.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w1.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-86.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w2.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-87.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w3.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-88.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w4.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-89.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w5.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-9.fsf (from /trunk/rsplib2/rsplib/fgpconfig/eingabe002.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-90.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w6.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-91.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w7.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-92.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w8.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-93.fsf (from /trunk/rsplib2/rsplib/fgpconfig/w9.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-94.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wA.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-95.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wB.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-96.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wC.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-97.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wD.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-98.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wE.fsf:1293) A /trunk/rsplib2/rsplib/fgpconfig/input-99.fsf (from /trunk/rsplib2/rsplib/fgpconfig/wF.fsf:1293) D /trunk/rsplib2/rsplib/fgpconfig/mandelbrot.fsf D /trunk/rsplib2/rsplib/fgpconfig/mandelbrot3.fsf D /trunk/rsplib2/rsplib/fgpconfig/q1.fsf D /trunk/rsplib2/rsplib/fgpconfig/q2.fsf D /trunk/rsplib2/rsplib/fgpconfig/q3.fsf D /trunk/rsplib2/rsplib/fgpconfig/q4.fsf D /trunk/rsplib2/rsplib/fgpconfig/q5.fsf D /trunk/rsplib2/rsplib/fgpconfig/q6.fsf D /trunk/rsplib2/rsplib/fgpconfig/q7.fsf D /trunk/rsplib2/rsplib/fgpconfig/q8.fsf D /trunk/rsplib2/rsplib/fgpconfig/q9.fsf D /trunk/rsplib2/rsplib/fgpconfig/qA.fsf D /trunk/rsplib2/rsplib/fgpconfig/qB.fsf D /trunk/rsplib2/rsplib/fgpconfig/qD.fsf D /trunk/rsplib2/rsplib/fgpconfig/qE.fsf D /trunk/rsplib2/rsplib/fgpconfig/qF.fsf D /trunk/rsplib2/rsplib/fgpconfig/qG.fsf D /trunk/rsplib2/rsplib/fgpconfig/qH.fsf D /trunk/rsplib2/rsplib/fgpconfig/qI.fsf D /trunk/rsplib2/rsplib/fgpconfig/qJ.fsf D /trunk/rsplib2/rsplib/fgpconfig/qK.fsf D /trunk/rsplib2/rsplib/fgpconfig/t0.fsf D /trunk/rsplib2/rsplib/fgpconfig/t1.fsf D /trunk/rsplib2/rsplib/fgpconfig/t2.fsf D /trunk/rsplib2/rsplib/fgpconfig/t3.fsf D /trunk/rsplib2/rsplib/fgpconfig/t4.fsf D /trunk/rsplib2/rsplib/fgpconfig/t5.fsf M /trunk/rsplib2/rsplib/fgpconfig/update-iterations D /trunk/rsplib2/rsplib/fgpconfig/w1.fsf D /trunk/rsplib2/rsplib/fgpconfig/w2.fsf D /trunk/rsplib2/rsplib/fgpconfig/w3.fsf D /trunk/rsplib2/rsplib/fgpconfig/w4.fsf D /trunk/rsplib2/rsplib/fgpconfig/w5.fsf D /trunk/rsplib2/rsplib/fgpconfig/w6.fsf D /trunk/rsplib2/rsplib/fgpconfig/w7.fsf D /trunk/rsplib2/rsplib/fgpconfig/w8.fsf D /trunk/rsplib2/rsplib/fgpconfig/w9.fsf D /trunk/rsplib2/rsplib/fgpconfig/wA.fsf D /trunk/rsplib2/rsplib/fgpconfig/wB.fsf D /trunk/rsplib2/rsplib/fgpconfig/wC.fsf D /trunk/rsplib2/rsplib/fgpconfig/wD.fsf D /trunk/rsplib2/rsplib/fgpconfig/wE.fsf D /trunk/rsplib2/rsplib/fgpconfig/wF.fsf D /trunk/rsplib2/rsplib/fgpconfig/wG.fsf D /trunk/rsplib2/rsplib/fgpconfig/wH.fsf ------------------------------------------------------------------------ r1293 | dreibh | 2007-01-18 16:01:44 +0100 (Thu, 18 Jan 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/fgpconfig/renumber-files A /trunk/rsplib2/rsplib/fgpconfig/update-iterations ------------------------------------------------------------------------ r1292 | dreibh | 2007-01-18 15:48:39 +0100 (Thu, 18 Jan 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/fgpconfig/eingabe001.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe002.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe003.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe004.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe005.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe006.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe007.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe008.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe009.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe010.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe011.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe012.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe013.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe014.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe015.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe016.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe017.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe018.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe019.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe020.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe021.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe022.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe023.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe024.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe025.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe026.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe027.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe028.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe029.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe030.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe031.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe032.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe033.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe034.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe035.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe036.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe037.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe038.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe039.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe040.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe041.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe042.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe043.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe044.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe045.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe046.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe047.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe048.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe049.fsf A /trunk/rsplib2/rsplib/fgpconfig/eingabe050.fsf M /trunk/rsplib2/rsplib/fgpconfig/scenarios.conf ------------------------------------------------------------------------ r1291 | dreibh | 2007-01-15 18:17:34 +0100 (Mon, 15 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.h ------------------------------------------------------------------------ r1290 | dreibh | 2007-01-12 16:07:20 +0100 (Fri, 12 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files A /trunk/rsplib2/rsplib/install-binaries-on-all-nodes ------------------------------------------------------------------------ r1289 | dreibh | 2007-01-12 12:56:11 +0100 (Fri, 12 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h D /trunk/rsplib2/rsplib/t1.c D /trunk/rsplib2/rsplib/t2.cc D /trunk/rsplib2/rsplib/t3.cc D /trunk/rsplib2/rsplib/t4.cc ------------------------------------------------------------------------ r1288 | dreibh | 2007-01-11 21:07:41 +0100 (Thu, 11 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rsputilities.c D /trunk/rsplib2/rsplib/rsputilities.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/udplikeserver.cc ------------------------------------------------------------------------ r1286 | dreibh | 2007-01-11 09:24:02 +0100 (Thu, 11 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/demo A /trunk/rsplib2/rsplib/fgpconfig/Makefile.am D /trunk/rsplib2/rsplib/icons M /trunk/rsplib2/rsplib/r1 M /trunk/rsplib2/rsplib/r2 M /trunk/rsplib2/rsplib/r3 M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c A /trunk/rsplib2/rsplib/wireshark/Makefile.am ------------------------------------------------------------------------ r1284 | dreibh | 2007-01-10 19:41:25 +0100 (Wed, 10 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/execalarm.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/rsputilities.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r1283 | dreibh | 2007-01-10 16:29:30 +0100 (Wed, 10 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc ------------------------------------------------------------------------ r1280 | dreibh | 2007-01-10 15:28:34 +0100 (Wed, 10 Jan 2007) | 7 lines Changed paths: A /trunk/rsplib2/rsplib/deprecated/fractalpooluser.cc A /trunk/rsplib2/rsplib/deprecated/fractalpooluser.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc A /trunk/rsplib2/rsplib/test9.R M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/udplikeserver.cc Updates: - 32-Bit Policy ID - Do not include ASAP Endpoint in Handle Resolution - Handling of unknown parameters bugfix - Fractal PU improvements ------------------------------------------------------------------------ r1279 | dreibh | 2007-01-09 16:33:03 +0100 (Tue, 09 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h ------------------------------------------------------------------------ r1278 | dreibh | 2007-01-09 13:44:26 +0100 (Tue, 09 Jan 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/combine-journal2006 A /trunk/rsplib2/rsplib/plot-journal2006.R ------------------------------------------------------------------------ r1271 | dreibh | 2007-01-08 14:08:26 +0100 (Mon, 08 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/prtest1 ------------------------------------------------------------------------ r1270 | dreibh | 2007-01-08 13:53:19 +0100 (Mon, 08 Jan 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h A /trunk/rsplib2/rsplib/prtest1 A /trunk/rsplib2/rsplib/prtest2 Handling of dynamic peer bug fix. ------------------------------------------------------------------------ r1269 | dreibh | 2007-01-08 11:30:05 +0100 (Mon, 08 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h ------------------------------------------------------------------------ r1266 | dreibh | 2007-01-07 16:03:33 +0100 (Sun, 07 Jan 2007) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO A /trunk/rsplib2/rsplib/p2 M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h Some bug fixes. ------------------------------------------------------------------------ r1265 | dreibh | 2007-01-07 14:45:53 +0100 (Sun, 07 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts ------------------------------------------------------------------------ r1264 | dreibh | 2007-01-07 14:15:19 +0100 (Sun, 07 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/create-binaries M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1262 | dreibh | 2007-01-07 10:38:18 +0100 (Sun, 07 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h ------------------------------------------------------------------------ r1261 | dreibh | 2007-01-07 10:23:30 +0100 (Sun, 07 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1258 | dreibh | 2007-01-06 21:54:49 +0100 (Sat, 06 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r1255 | dreibh | 2007-01-06 15:28:29 +0100 (Sat, 06 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/udplikeserver.cc ------------------------------------------------------------------------ r1254 | dreibh | 2007-01-05 19:16:58 +0100 (Fri, 05 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/wireshark/colorfilters M /trunk/rsplib2/rsplib/wireshark/dfilters ------------------------------------------------------------------------ r1253 | dreibh | 2007-01-05 19:15:35 +0100 (Fri, 05 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1252 | dreibh | 2007-01-05 19:07:42 +0100 (Fri, 05 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1251 | dreibh | 2007-01-05 15:43:08 +0100 (Fri, 05 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/create-hosts-files A /trunk/rsplib2/rsplib/fractal-scenario2 M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1249 | dreibh | 2007-01-05 12:53:09 +0100 (Fri, 05 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/p1 A /trunk/rsplib2/rsplib/u1 M /trunk/rsplib2/rsplib/wireshark/colorfilters A /trunk/rsplib2/rsplib/wireshark/demo.pcap M /trunk/rsplib2/rsplib/wireshark/dfilters M /trunk/rsplib2/rsplib/wireshark/preferences ------------------------------------------------------------------------ r1248 | dreibh | 2007-01-05 11:48:28 +0100 (Fri, 05 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/wireshark/colorfilters M /trunk/rsplib2/rsplib/wireshark/dfilters ------------------------------------------------------------------------ r1247 | dreibh | 2007-01-04 17:34:26 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/messagebuffer.c ------------------------------------------------------------------------ r1246 | dreibh | 2007-01-04 17:15:04 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1245 | dreibh | 2007-01-04 16:40:41 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: D /trunk/rsplib2/rsplib/takeoverprocesslist.c D /trunk/rsplib2/rsplib/takeoverprocesslist.h ------------------------------------------------------------------------ r1244 | dreibh | 2007-01-04 16:39:01 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/wireshark/colorfilters M /trunk/rsplib2/rsplib/wireshark/dfilters ------------------------------------------------------------------------ r1243 | dreibh | 2007-01-04 16:36:45 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: R /trunk/rsplib2/rsplib/takeoverprocess.c R /trunk/rsplib2/rsplib/takeoverprocess.h ------------------------------------------------------------------------ r1242 | dreibh | 2007-01-04 16:36:36 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am ------------------------------------------------------------------------ r1241 | dreibh | 2007-01-04 16:36:08 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/deprecated/takeoverprocess.c (from /trunk/rsplib2/rsplib/takeoverprocess.c:1239) A /trunk/rsplib2/rsplib/deprecated/takeoverprocess.h (from /trunk/rsplib2/rsplib/takeoverprocess.h:1239) A /trunk/rsplib2/rsplib/deprecated/takeoverprocesslist.c (from /trunk/rsplib2/rsplib/takeoverprocesslist.c:1239) A /trunk/rsplib2/rsplib/deprecated/takeoverprocesslist.h (from /trunk/rsplib2/rsplib/takeoverprocesslist.h:1239) ------------------------------------------------------------------------ r1240 | dreibh | 2007-01-04 16:35:19 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1239 | dreibh | 2007-01-04 10:57:14 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/wireshark/colorfilters M /trunk/rsplib2/rsplib/wireshark/dfilters ------------------------------------------------------------------------ r1238 | dreibh | 2007-01-04 09:30:32 +0100 (Thu, 04 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/p1 M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/r1 M /trunk/rsplib2/rsplib/r2 M /trunk/rsplib2/rsplib/r3 ------------------------------------------------------------------------ r1237 | dreibh | 2007-01-03 19:22:31 +0100 (Wed, 03 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/combine-test1 M /trunk/rsplib2/rsplib/plot-test6.R M /trunk/rsplib2/rsplib/plot-test7.R M /trunk/rsplib2/rsplib/plot-test8.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1236 | dreibh | 2007-01-03 15:27:03 +0100 (Wed, 03 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test7.R M /trunk/rsplib2/rsplib/plot-test8.R M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/test.data A /trunk/rsplib2/rsplib/test2.data ------------------------------------------------------------------------ r1235 | dreibh | 2007-01-03 13:35:36 +0100 (Wed, 03 Jan 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/combine-test1 M /trunk/rsplib2/rsplib/plot-test7.R A /trunk/rsplib2/rsplib/plot-test8.R ------------------------------------------------------------------------ r1234 | dreibh | 2007-01-03 09:41:25 +0100 (Wed, 03 Jan 2007) | 1 line Changed paths: A /trunk/rsplib2/rsplib/plot-test6.R A /trunk/rsplib2/rsplib/plot-test7.R M /trunk/rsplib2/rsplib/plotter.R A /trunk/rsplib2/rsplib/test.data ------------------------------------------------------------------------ r1233 | dreibh | 2007-01-02 15:39:17 +0100 (Tue, 02 Jan 2007) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ubuntu/install M /trunk/rsplib2/rsplib/storage/ubuntu/sources.list ------------------------------------------------------------------------ r1232 | dreibh | 2006-12-22 19:45:24 +0100 (Fri, 22 Dec 2006) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/add-dummy-route ------------------------------------------------------------------------ r1231 | dreibh | 2006-12-22 16:26:06 +0100 (Fri, 22 Dec 2006) | 1 line Changed paths: A /trunk/rsplib2/autogen-test.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netutilities.c ------------------------------------------------------------------------ r1230 | dreibh | 2006-12-11 17:24:27 +0100 (Mon, 11 Dec 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario1 ------------------------------------------------------------------------ r1225 | dreibh | 2006-11-18 20:09:07 +0100 (Sat, 18 Nov 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1224 | dreibh | 2006-11-18 19:58:21 +0100 (Sat, 18 Nov 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1221 | dreibh | 2006-11-03 14:20:31 +0100 (Fri, 03 Nov 2006) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1218 | dreibh | 2006-10-16 14:24:54 +0200 (Mon, 16 Oct 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files ------------------------------------------------------------------------ r1213 | dreibh | 2006-09-21 13:21:38 +0200 (Thu, 21 Sep 2006) | 1 line Changed paths: D /trunk/rsplib2/rsplib/ethereal A /trunk/rsplib2/rsplib/wireshark (from /trunk/rsplib2/rsplib/ethereal:1207) R /trunk/rsplib2/rsplib/wireshark/dfilters (from /trunk/rsplib2/rsplib/ethereal/dfilters:1212) A /trunk/rsplib2/rsplib/wireshark/preferences ------------------------------------------------------------------------ r1212 | dreibh | 2006-09-21 13:16:39 +0200 (Thu, 21 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/combine-disaster-scenario2-results M /trunk/rsplib2/rsplib/ethereal/dfilters ------------------------------------------------------------------------ r1211 | dreibh | 2006-09-20 13:41:28 +0200 (Wed, 20 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/storage/ubuntu/install M /trunk/rsplib2/rsplib/storage/ubuntu/sources.list ------------------------------------------------------------------------ r1210 | dreibh | 2006-09-20 10:06:24 +0200 (Wed, 20 Sep 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/combine-disaster-scenario2-results ------------------------------------------------------------------------ r1209 | dreibh | 2006-09-15 15:31:10 +0200 (Fri, 15 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-kivs2007.R M /trunk/rsplib2/rsplib/plot-test5.R ------------------------------------------------------------------------ r1208 | dreibh | 2006-09-15 15:30:45 +0200 (Fri, 15 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-disaster-scenario2 ------------------------------------------------------------------------ r1207 | dreibh | 2006-09-14 17:27:40 +0200 (Thu, 14 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t4.cc ------------------------------------------------------------------------ r1206 | dreibh | 2006-09-14 10:05:22 +0200 (Thu, 14 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test5.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1205 | dreibh | 2006-09-13 15:33:55 +0200 (Wed, 13 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/plot-test3.R A /trunk/rsplib2/rsplib/plot-test5.R A /trunk/rsplib2/rsplib/run-disaster-scenario2 ------------------------------------------------------------------------ r1204 | dreibh | 2006-09-13 10:25:33 +0200 (Wed, 13 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t4.cc ------------------------------------------------------------------------ r1203 | dreibh | 2006-09-12 16:04:44 +0200 (Tue, 12 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/t3.cc M /trunk/rsplib2/rsplib/t4.cc ------------------------------------------------------------------------ r1202 | dreibh | 2006-09-12 10:01:57 +0200 (Tue, 12 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/t4.cc ------------------------------------------------------------------------ r1201 | dreibh | 2006-09-05 13:41:50 +0200 (Tue, 05 Sep 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/plot-kivs2007.R M /trunk/rsplib2/rsplib/plot-test4.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1199 | dreibh | 2006-09-04 23:07:41 +0200 (Mon, 04 Sep 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/combine-disaster-scenario1-results M /trunk/rsplib2/rsplib/plot-test3.R M /trunk/rsplib2/rsplib/plot-test4.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1198 | dreibh | 2006-09-01 14:34:54 +0200 (Fri, 01 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files A /trunk/rsplib2/rsplib/run-disaster-scenario1 M /trunk/rsplib2/rsplib/run-messung6 M /trunk/rsplib2/rsplib/test5 A /trunk/rsplib2/rsplib/three-regions-scenario ------------------------------------------------------------------------ r1197 | dreibh | 2006-09-01 11:12:20 +0200 (Fri, 01 Sep 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files D /trunk/rsplib2/rsplib/pe-asia.hosts D /trunk/rsplib2/rsplib/pe-australia.hosts D /trunk/rsplib2/rsplib/pe-europe.hosts D /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/plot-test3.R D /trunk/rsplib2/rsplib/pr-asia.hosts D /trunk/rsplib2/rsplib/pr-australia.hosts D /trunk/rsplib2/rsplib/pr-europe.hosts D /trunk/rsplib2/rsplib/pr-usa.hosts D /trunk/rsplib2/rsplib/pu-asia.hosts D /trunk/rsplib2/rsplib/pu-australia.hosts D /trunk/rsplib2/rsplib/pu-europe.hosts D /trunk/rsplib2/rsplib/pu-usa.hosts M /trunk/rsplib2/rsplib/run-messung6 M /trunk/rsplib2/rsplib/test-hosts ------------------------------------------------------------------------ r1196 | dreibh | 2006-08-30 15:45:20 +0200 (Wed, 30 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-hosts-files M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/run-messung6 ------------------------------------------------------------------------ r1195 | dreibh | 2006-08-30 15:03:04 +0200 (Wed, 30 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/create-hosts-files A /trunk/rsplib2/rsplib/execalarm.cc A /trunk/rsplib2/rsplib/exectime.cc M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/pe-asia.hosts M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/pr-asia.hosts M /trunk/rsplib2/rsplib/pr-europe.hosts M /trunk/rsplib2/rsplib/pu-asia.hosts M /trunk/rsplib2/rsplib/pu-australia.hosts M /trunk/rsplib2/rsplib/pu-europe.hosts ------------------------------------------------------------------------ r1194 | dreibh | 2006-08-29 14:13:41 +0200 (Tue, 29 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/pe-asia.hosts M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/pr-australia.hosts M /trunk/rsplib2/rsplib/pr-europe.hosts M /trunk/rsplib2/rsplib/pr-usa.hosts M /trunk/rsplib2/rsplib/pu-asia.hosts M /trunk/rsplib2/rsplib/pu-australia.hosts M /trunk/rsplib2/rsplib/pu-europe.hosts M /trunk/rsplib2/rsplib/pu-usa.hosts M /trunk/rsplib2/rsplib/r1 M /trunk/rsplib2/rsplib/r2 M /trunk/rsplib2/rsplib/r3 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/run-messung6 M /trunk/rsplib2/rsplib/test-hosts ------------------------------------------------------------------------ r1190 | dreibh | 2006-08-28 12:14:42 +0200 (Mon, 28 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/storage/ubuntu/install M /trunk/rsplib2/rsplib/storage/ubuntu/sources.list ------------------------------------------------------------------------ r1188 | dreibh | 2006-08-25 10:01:29 +0200 (Fri, 25 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc ------------------------------------------------------------------------ r1185 | dreibh | 2006-08-10 11:47:17 +0200 (Thu, 10 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/configure.in ------------------------------------------------------------------------ r1183 | dreibh | 2006-08-10 11:46:18 +0200 (Thu, 10 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/demo-ns1 M /trunk/rsplib2/rsplib/demo-ns2 M /trunk/rsplib2/rsplib/demo-pe1 M /trunk/rsplib2/rsplib/demo-pe2 M /trunk/rsplib2/rsplib/demo-pu1 M /trunk/rsplib2/rsplib/demo-pu2 M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rspbasicmode.c ------------------------------------------------------------------------ r1182 | dreibh | 2006-08-09 18:03:40 +0200 (Wed, 09 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/add-dummy-route ------------------------------------------------------------------------ r1181 | dreibh | 2006-08-04 04:19:39 +0200 (Fri, 04 Aug 2006) | 6 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h A /trunk/rsplib2/rsplib/registrar-example-stdports M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/udplikeserver.cc Various fixes for partial delivery. Fixed problem with notifications - rsp_forcefailover did not flush notification list - handleCommLost() did not find connected session ------------------------------------------------------------------------ r1176 | dreibh | 2006-08-03 04:34:02 +0200 (Thu, 03 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/cspmonitor.c ------------------------------------------------------------------------ r1175 | dreibh | 2006-08-03 02:27:08 +0200 (Thu, 03 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/pingpong.c A /trunk/rsplib2/rsplib/registrar-example-ipv6 M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/terminal.c ------------------------------------------------------------------------ r1174 | dreibh | 2006-08-02 21:55:35 +0200 (Wed, 02 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/netutilities.c ------------------------------------------------------------------------ r1173 | dreibh | 2006-08-01 17:34:41 +0200 (Tue, 01 Aug 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/plot-lcn2006.R A /trunk/rsplib2/rsplib/plot-wp1-dpfpolicies.R M /trunk/rsplib2/rsplib/pr-australia.hosts M /trunk/rsplib2/rsplib/pu-australia.hosts M /trunk/rsplib2/rsplib/pu-usa.hosts M /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r1172 | dreibh | 2006-07-31 20:36:14 +0200 (Mon, 31 Jul 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c ------------------------------------------------------------------------ r1171 | dreibh | 2006-07-31 20:15:17 +0200 (Mon, 31 Jul 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r1170 | dreibh | 2006-07-31 19:59:03 +0200 (Mon, 31 Jul 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r1169 | dreibh | 2006-07-31 19:11:11 +0200 (Mon, 31 Jul 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/t2.cc ------------------------------------------------------------------------ r1167 | dreibh | 2006-07-31 04:22:17 +0200 (Mon, 31 Jul 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c ------------------------------------------------------------------------ r1166 | dreibh | 2006-07-31 03:54:31 +0200 (Mon, 31 Jul 2006) | 6 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h A /trunk/rsplib2/rsplib/messagebuffer.c A /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/tcplikeserver.cc RSerPool Bakeoff updates: - Partial delivery fix - Multicast to all interfaces - MSG_SEND_TO_ALL for Peer Presences and Handle Updates ------------------------------------------------------------------------ r1165 | dreibh | 2006-07-30 04:07:12 +0200 (Sun, 30 Jul 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c ------------------------------------------------------------------------ r1164 | dreibh | 2006-07-18 14:04:21 +0200 (Tue, 18 Jul 2006) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c Fixed a problem with COOKIE_ECHO not being handled when immediately in recvfromplus() loop of rsp_recvmsg(). ------------------------------------------------------------------------ r1163 | dreibh | 2006-06-25 18:43:49 +0200 (Sun, 25 Jun 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/storage/ubuntu/install ------------------------------------------------------------------------ r1162 | dreibh | 2006-06-22 10:47:21 +0200 (Thu, 22 Jun 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/storage/ubuntu A /trunk/rsplib2/rsplib/storage/ubuntu/install A /trunk/rsplib2/rsplib/storage/ubuntu/sources.list ------------------------------------------------------------------------ r1159 | dreibh | 2006-06-19 17:41:26 +0200 (Mon, 19 Jun 2006) | 1 line Changed paths: M /trunk/rsplib2/autogen.sh ------------------------------------------------------------------------ r1156 | dreibh | 2006-06-19 13:13:43 +0200 (Mon, 19 Jun 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r1155 | dreibh | 2006-06-02 10:06:08 +0200 (Fri, 02 Jun 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1154 | tuexen | 2006-06-01 19:21:08 +0200 (Thu, 01 Jun 2006) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h Remove not working stuff. ------------------------------------------------------------------------ r1153 | dreibh | 2006-06-01 14:10:54 +0200 (Thu, 01 Jun 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/pr-australia.hosts M /trunk/rsplib2/rsplib/pu-australia.hosts ------------------------------------------------------------------------ r1152 | dreibh | 2006-06-01 12:21:28 +0200 (Thu, 01 Jun 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc ------------------------------------------------------------------------ r1151 | dreibh | 2006-05-31 16:19:53 +0200 (Wed, 31 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/ethereal/packet-calcappprotocol.c M /trunk/rsplib2/rsplib/ethereal/packet-componentstatus.c M /trunk/rsplib2/rsplib/ethereal/packet-fractalgeneratorprotocol.c M /trunk/rsplib2/rsplib/ethereal/packet-pingpongprotocol.c M /trunk/rsplib2/rsplib/pu-usa.hosts ------------------------------------------------------------------------ r1146 | dreibh | 2006-05-24 15:40:59 +0200 (Wed, 24 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h ------------------------------------------------------------------------ r1145 | dreibh | 2006-05-24 15:40:33 +0200 (Wed, 24 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rserpool-internals.h ------------------------------------------------------------------------ r1144 | dreibh | 2006-05-24 15:36:58 +0200 (Wed, 24 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1143 | dreibh | 2006-05-24 15:30:12 +0200 (Wed, 24 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessageparser.c ------------------------------------------------------------------------ r1142 | dreibh | 2006-05-24 15:17:42 +0200 (Wed, 24 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/fractal-scenario1 M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/get-results M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpool-internals.h A /trunk/rsplib2/rsplib/rserpool-policytypes.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c A /trunk/rsplib2/rsplib/run-messung7 M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r1139 | dreibh | 2006-05-19 13:25:07 +0200 (Fri, 19 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-lcn2006.R M /trunk/rsplib2/rsplib/plot-test4.R M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/run-messung6 M /trunk/rsplib2/rsplib/run-messung6a ------------------------------------------------------------------------ r1138 | dreibh | 2006-05-18 18:13:41 +0200 (Thu, 18 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/combine-vectors M /trunk/rsplib2/rsplib/combinesummaries.cc M /trunk/rsplib2/rsplib/get-results M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/plot-test4.R M /trunk/rsplib2/rsplib/run-messung6 M /trunk/rsplib2/rsplib/run-messung6a M /trunk/rsplib2/rsplib/start-process M /trunk/rsplib2/rsplib/stop-process M /trunk/rsplib2/rsplib/test5 ------------------------------------------------------------------------ r1137 | dreibh | 2006-05-18 15:12:05 +0200 (Thu, 18 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc ------------------------------------------------------------------------ r1136 | dreibh | 2006-05-18 01:09:43 +0200 (Thu, 18 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/test5 ------------------------------------------------------------------------ r1135 | dreibh | 2006-05-18 00:30:26 +0200 (Thu, 18 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/get-results ------------------------------------------------------------------------ r1134 | dreibh | 2006-05-17 23:29:03 +0200 (Wed, 17 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc ------------------------------------------------------------------------ r1133 | dreibh | 2006-05-17 23:04:33 +0200 (Wed, 17 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/plot-test4.R M /trunk/rsplib2/rsplib/run-messung6 A /trunk/rsplib2/rsplib/run-messung6a ------------------------------------------------------------------------ r1132 | dreibh | 2006-05-17 19:30:06 +0200 (Wed, 17 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/plot-test4.R ------------------------------------------------------------------------ r1131 | dreibh | 2006-05-17 16:41:55 +0200 (Wed, 17 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/plot-test4.R A /trunk/rsplib2/rsplib/run-messung6 ------------------------------------------------------------------------ r1130 | dreibh | 2006-05-17 14:08:53 +0200 (Wed, 17 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/plot-lcn2006.R M /trunk/rsplib2/rsplib/plot-test4.R ------------------------------------------------------------------------ r1129 | dreibh | 2006-05-16 19:28:39 +0200 (Tue, 16 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/plot-test4.R M /trunk/rsplib2/rsplib/run-tests2 M /trunk/rsplib2/rsplib/test5 ------------------------------------------------------------------------ r1128 | dreibh | 2006-05-16 18:31:01 +0200 (Tue, 16 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/get-results M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/plot-lcn2006.R M /trunk/rsplib2/rsplib/plot-test4.R A /trunk/rsplib2/rsplib/put M /trunk/rsplib2/rsplib/run-tests A /trunk/rsplib2/rsplib/run-tests2 M /trunk/rsplib2/rsplib/t1.R A /trunk/rsplib2/rsplib/test5 ------------------------------------------------------------------------ r1127 | dreibh | 2006-05-16 12:17:10 +0200 (Tue, 16 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-lcn2006.R ------------------------------------------------------------------------ r1126 | dreibh | 2006-05-15 21:48:26 +0200 (Mon, 15 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test3.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1125 | dreibh | 2006-05-15 21:00:31 +0200 (Mon, 15 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test3.R M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test3a M /trunk/rsplib2/rsplib/test4a ------------------------------------------------------------------------ r1124 | dreibh | 2006-05-15 16:27:34 +0200 (Mon, 15 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/pe-asia.hosts M /trunk/rsplib2/rsplib/planetlab-config A /trunk/rsplib2/rsplib/plot-lcn2006.R M /trunk/rsplib2/rsplib/plot-test3.R A /trunk/rsplib2/rsplib/plot-test4.R M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/pu-asia.hosts M /trunk/rsplib2/rsplib/pu-usa.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test3a M /trunk/rsplib2/rsplib/test4a ------------------------------------------------------------------------ r1123 | dreibh | 2006-05-14 22:28:30 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests A /trunk/rsplib2/rsplib/test3a A /trunk/rsplib2/rsplib/test4a ------------------------------------------------------------------------ r1122 | dreibh | 2006-05-14 20:06:06 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1121 | dreibh | 2006-05-14 17:56:01 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config D /trunk/rsplib2/rsplib/pr-deutschland.hosts M /trunk/rsplib2/rsplib/pu-europe.hosts ------------------------------------------------------------------------ r1120 | dreibh | 2006-05-14 17:39:28 +0200 (Sun, 14 May 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/test-hosts ------------------------------------------------------------------------ r1119 | dreibh | 2006-05-14 17:35:52 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pe-europe.hosts ------------------------------------------------------------------------ r1118 | dreibh | 2006-05-14 16:41:50 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pu-asia.hosts ------------------------------------------------------------------------ r1117 | dreibh | 2006-05-14 16:30:05 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/plot-test2.R M /trunk/rsplib2/rsplib/pu-europe.hosts ------------------------------------------------------------------------ r1116 | dreibh | 2006-05-14 14:32:28 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test3.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1115 | dreibh | 2006-05-14 11:38:30 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test3.R ------------------------------------------------------------------------ r1114 | dreibh | 2006-05-14 10:29:48 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/compile-and-install M /trunk/rsplib2/rsplib/t1.R ------------------------------------------------------------------------ r1113 | dreibh | 2006-05-14 10:02:09 +0200 (Sun, 14 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1112 | dreibh | 2006-05-13 23:08:26 +0200 (Sat, 13 May 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/plot-test3.R ------------------------------------------------------------------------ r1111 | dreibh | 2006-05-13 22:08:17 +0200 (Sat, 13 May 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/extract-stat M /trunk/rsplib2/rsplib/plot-test2.R ------------------------------------------------------------------------ r1110 | dreibh | 2006-05-13 20:54:33 +0200 (Sat, 13 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-binaries M /trunk/rsplib2/rsplib/plot-test2.R M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 M /trunk/rsplib2/rsplib/test3 M /trunk/rsplib2/rsplib/test4 ------------------------------------------------------------------------ r1109 | dreibh | 2006-05-13 13:03:20 +0200 (Sat, 13 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1108 | dreibh | 2006-05-13 13:01:10 +0200 (Sat, 13 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1107 | dreibh | 2006-05-13 13:00:30 +0200 (Sat, 13 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 M /trunk/rsplib2/rsplib/test3 M /trunk/rsplib2/rsplib/test4 ------------------------------------------------------------------------ r1106 | dreibh | 2006-05-13 11:33:29 +0200 (Sat, 13 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test2.R ------------------------------------------------------------------------ r1105 | dreibh | 2006-05-13 09:42:14 +0200 (Sat, 13 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1104 | dreibh | 2006-05-12 22:11:26 +0200 (Fri, 12 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1103 | dreibh | 2006-05-12 16:48:40 +0200 (Fri, 12 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test2.R M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1102 | dreibh | 2006-05-12 16:18:36 +0200 (Fri, 12 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/compile-and-install M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/plot-test2.R M /trunk/rsplib2/rsplib/pu-europe.hosts M /trunk/rsplib2/rsplib/pu-usa.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1101 | dreibh | 2006-05-12 10:08:27 +0200 (Fri, 12 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test2.R M /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r1100 | dreibh | 2006-05-11 21:20:37 +0200 (Thu, 11 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/test4 ------------------------------------------------------------------------ r1099 | dreibh | 2006-05-11 21:18:01 +0200 (Thu, 11 May 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/plot-test2.R M /trunk/rsplib2/rsplib/run-tests A /trunk/rsplib2/rsplib/test4 ------------------------------------------------------------------------ r1098 | dreibh | 2006-05-11 19:29:32 +0200 (Thu, 11 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test3 ------------------------------------------------------------------------ r1097 | dreibh | 2006-05-11 18:27:12 +0200 (Thu, 11 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/test3 ------------------------------------------------------------------------ r1096 | dreibh | 2006-05-11 18:17:47 +0200 (Thu, 11 May 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/pu-usa.hosts ------------------------------------------------------------------------ r1095 | tuexen | 2006-05-11 17:36:17 +0200 (Thu, 11 May 2006) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h Bring in changes wiped out by Thomas... ------------------------------------------------------------------------ r1094 | dreibh | 2006-05-11 14:50:12 +0200 (Thu, 11 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/plot-test1.R M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/pr-australia.hosts M /trunk/rsplib2/rsplib/pr-europe.hosts M /trunk/rsplib2/rsplib/pu-australia.hosts M /trunk/rsplib2/rsplib/run-tests A /trunk/rsplib2/rsplib/test3 ------------------------------------------------------------------------ r1093 | dreibh | 2006-05-10 16:11:50 +0200 (Wed, 10 May 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/compile-and-install M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/pr-usa.hosts M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1092 | dreibh | 2006-05-09 14:01:07 +0200 (Tue, 09 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/t1.R M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1091 | dreibh | 2006-05-09 10:48:20 +0200 (Tue, 09 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/transportaddressblock.c ------------------------------------------------------------------------ r1088 | dreibh | 2006-05-05 10:16:53 +0200 (Fri, 05 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/plot-test1.R M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1087 | dreibh | 2006-05-03 10:20:50 +0200 (Wed, 03 May 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1085 | dreibh | 2006-04-25 12:29:42 +0200 (Tue, 25 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1084 | tuexen | 2006-04-20 15:50:41 +0200 (Thu, 20 Apr 2006) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspenhancedmode.c Fix warnings, use select in Tiger. ------------------------------------------------------------------------ r1083 | dreibh | 2006-04-18 12:40:37 +0200 (Tue, 18 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rspbasicmode.c ------------------------------------------------------------------------ r1082 | dreibh | 2006-04-18 11:56:33 +0200 (Tue, 18 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c ------------------------------------------------------------------------ r1079 | dreibh | 2006-04-18 10:30:40 +0200 (Tue, 18 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h ------------------------------------------------------------------------ r1078 | dreibh | 2006-04-13 10:13:02 +0200 (Thu, 13 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c ------------------------------------------------------------------------ r1077 | dreibh | 2006-04-12 20:23:03 +0200 (Wed, 12 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h ------------------------------------------------------------------------ r1076 | dreibh | 2006-04-10 14:12:15 +0200 (Mon, 10 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r1075 | dreibh | 2006-04-10 14:10:34 +0200 (Mon, 10 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/plot-test1.R M /trunk/rsplib2/rsplib/prepare-compilehost M /trunk/rsplib2/rsplib/pu-europe.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/t1.R M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1074 | dreibh | 2006-04-07 15:49:56 +0200 (Fri, 07 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/pe-europe.hosts A /trunk/rsplib2/rsplib/pu-australia.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1073 | dreibh | 2006-04-06 16:31:52 +0200 (Thu, 06 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/prepare-compilehost M /trunk/rsplib2/rsplib/pu-europe.hosts M /trunk/rsplib2/rsplib/remote.hosts M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r1070 | dreibh | 2006-04-05 14:49:24 +0200 (Wed, 05 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/do-clearall M /trunk/rsplib2/rsplib/do-killall M /trunk/rsplib2/rsplib/get-results M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r1068 | dreibh | 2006-04-04 11:57:26 +0200 (Tue, 04 Apr 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/planetlab.hosts M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1055 | dreibh | 2006-03-31 15:59:57 +0200 (Fri, 31 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/run-tests ------------------------------------------------------------------------ r1054 | dreibh | 2006-03-31 15:46:45 +0200 (Fri, 31 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/do-clearall M /trunk/rsplib2/rsplib/do-killall ------------------------------------------------------------------------ r1053 | dreibh | 2006-03-31 13:54:20 +0200 (Fri, 31 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/all-planetlab.hosts M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h D /trunk/rsplib2/rsplib/pe-test.hosts M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/pr-asia.hosts M /trunk/rsplib2/rsplib/pr-usa.hosts M /trunk/rsplib2/rsplib/pu-europe.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/usa.hosts ------------------------------------------------------------------------ r1052 | dreibh | 2006-03-31 11:43:01 +0200 (Fri, 31 Mar 2006) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/server.cc Some registrar hunt bugfixes. Default stale cache value is now 0. ------------------------------------------------------------------------ r1049 | dreibh | 2006-03-30 15:31:05 +0200 (Thu, 30 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1047 | dreibh | 2006-03-29 13:21:49 +0200 (Wed, 29 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c ------------------------------------------------------------------------ r1046 | dreibh | 2006-03-27 15:51:02 +0200 (Mon, 27 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1044 | dreibh | 2006-03-24 15:50:27 +0100 (Fri, 24 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/pr-deutschland.hosts M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c ------------------------------------------------------------------------ r1043 | dreibh | 2006-03-23 11:47:50 +0100 (Thu, 23 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/autogen.sh ------------------------------------------------------------------------ r1042 | tuexen | 2006-03-23 11:46:40 +0100 (Thu, 23 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/BUGS ------------------------------------------------------------------------ r1041 | dreibh | 2006-03-22 17:03:47 +0100 (Wed, 22 Mar 2006) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc Bugfix in fractalpooluser: PU thread still running when calling rsp_cleanup(). ------------------------------------------------------------------------ r1040 | dreibh | 2006-03-22 12:55:56 +0100 (Wed, 22 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario1 ------------------------------------------------------------------------ r1039 | dreibh | 2006-03-21 15:51:37 +0100 (Tue, 21 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario1 ------------------------------------------------------------------------ r1038 | dreibh | 2006-03-21 15:47:12 +0100 (Tue, 21 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario1 ------------------------------------------------------------------------ r1037 | dreibh | 2006-03-21 15:42:55 +0100 (Tue, 21 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractal-scenario1 M /trunk/rsplib2/rsplib/pe-australia.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/usa.hosts ------------------------------------------------------------------------ r1035 | dreibh | 2006-03-21 09:25:56 +0100 (Tue, 21 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/fractal-scenario1 A /trunk/rsplib2/rsplib/pe-australia.hosts A /trunk/rsplib2/rsplib/pr-australia.hosts ------------------------------------------------------------------------ r1028 | dreibh | 2006-03-16 17:07:07 +0100 (Thu, 16 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/plot-test1.R M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1026 | dreibh | 2006-03-16 12:42:56 +0100 (Thu, 16 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/debug M /trunk/rsplib2/rsplib/r1 M /trunk/rsplib2/rsplib/r2 M /trunk/rsplib2/rsplib/r3 M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c ------------------------------------------------------------------------ r1024 | dreibh | 2006-03-16 10:30:05 +0100 (Thu, 16 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/p1 A /trunk/rsplib2/rsplib/r3 ------------------------------------------------------------------------ r1023 | dreibh | 2006-03-16 10:28:25 +0100 (Thu, 16 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc ------------------------------------------------------------------------ r1022 | dreibh | 2006-03-16 10:00:38 +0100 (Thu, 16 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/plot-test1.R M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/r1 M /trunk/rsplib2/rsplib/r2 M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1021 | dreibh | 2006-03-15 16:23:38 +0100 (Wed, 15 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r1019 | dreibh | 2006-03-13 13:35:26 +0100 (Mon, 13 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r1018 | dreibh | 2006-03-13 13:31:33 +0100 (Mon, 13 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r1017 | dreibh | 2006-03-11 19:21:06 +0100 (Sat, 11 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/t1.R ------------------------------------------------------------------------ r1016 | dreibh | 2006-03-11 19:20:31 +0100 (Sat, 11 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r1015 | dreibh | 2006-03-10 16:29:02 +0100 (Fri, 10 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test1.R M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1014 | dreibh | 2006-03-10 14:36:51 +0100 (Fri, 10 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/plot-test1.R ------------------------------------------------------------------------ r1013 | dreibh | 2006-03-10 13:56:32 +0100 (Fri, 10 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pu-europe.hosts ------------------------------------------------------------------------ r1012 | dreibh | 2006-03-10 13:52:25 +0100 (Fri, 10 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc D /trunk/rsplib2/rsplib/pe-australasia.hosts M /trunk/rsplib2/rsplib/planetlab-config D /trunk/rsplib2/rsplib/pr-australasia.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r1011 | dreibh | 2006-03-10 13:08:59 +0100 (Fri, 10 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r1010 | dreibh | 2006-03-10 11:45:07 +0100 (Fri, 10 Mar 2006) | 1 line Changed paths: D /trunk/rsplib2/rsplib/planetlab-package-install D /trunk/rsplib2/rsplib/starter ------------------------------------------------------------------------ r1009 | dreibh | 2006-03-10 11:42:51 +0100 (Fri, 10 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/rserpoolmessageparser.c ------------------------------------------------------------------------ r1006 | dreibh | 2006-03-09 16:31:57 +0100 (Thu, 09 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/pr-asia.hosts M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1004 | dreibh | 2006-03-09 13:35:26 +0100 (Thu, 09 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h ------------------------------------------------------------------------ r1001 | dreibh | 2006-03-08 15:01:01 +0100 (Wed, 08 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/get-coredumps M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/run-tests M /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r1000 | dreibh | 2006-03-08 14:56:52 +0100 (Wed, 08 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/pe-asia.hosts M /trunk/rsplib2/rsplib/planetlab-config A /trunk/rsplib2/rsplib/pu-asia.hosts ------------------------------------------------------------------------ r994 | dreibh | 2006-03-07 20:06:55 +0100 (Tue, 07 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/combinesummaries.cc M /trunk/rsplib2/rsplib/cspmonitor.c A /trunk/rsplib2/rsplib/run-tests A /trunk/rsplib2/rsplib/test2 ------------------------------------------------------------------------ r993 | dreibh | 2006-03-07 16:01:17 +0100 (Tue, 07 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/create-binaries M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/plotter.R M /trunk/rsplib2/rsplib/pu-europe.hosts M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r991 | dreibh | 2006-03-07 12:37:40 +0100 (Tue, 07 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/combine-vectors M /trunk/rsplib2/rsplib/create-binaries M /trunk/rsplib2/rsplib/do-killall M /trunk/rsplib2/rsplib/get-coredumps M /trunk/rsplib2/rsplib/get-results M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/plot-test1.R A /trunk/rsplib2/rsplib/pu-europe.hosts M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r990 | dreibh | 2006-03-07 10:25:17 +0100 (Tue, 07 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/combinesummaries.cc A /trunk/rsplib2/rsplib/plot-test1.R A /trunk/rsplib2/rsplib/plotter.R ------------------------------------------------------------------------ r989 | dreibh | 2006-03-06 16:38:29 +0100 (Mon, 06 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/get-results M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r988 | dreibh | 2006-03-06 15:38:55 +0100 (Mon, 06 Mar 2006) | 5 lines Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/get-results M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/test1 M /trunk/rsplib2/rsplib/udplikeserver.cc Fixed PE reregistration timer deadlock. Updates of CalcAppPE and CalcAppPU. Improved PlanetLab scripts. ------------------------------------------------------------------------ r987 | dreibh | 2006-03-06 11:08:16 +0100 (Mon, 06 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/get-coredumps A /trunk/rsplib2/rsplib/get-results ------------------------------------------------------------------------ r986 | dreibh | 2006-03-03 16:19:39 +0100 (Fri, 03 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.cc ------------------------------------------------------------------------ r985 | dreibh | 2006-03-03 15:55:14 +0100 (Fri, 03 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcappclient.cc M /trunk/rsplib2/rsplib/ethereal/colorfilters M /trunk/rsplib2/rsplib/install-binaries D /trunk/rsplib2/rsplib/pe-australia.hosts A /trunk/rsplib2/rsplib/pe-test.hosts M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h D /trunk/rsplib2/rsplib/pr-australia.hosts M /trunk/rsplib2/rsplib/stop-process M /trunk/rsplib2/rsplib/stop-processes M /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r983 | dreibh | 2006-03-03 10:23:08 +0100 (Fri, 03 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/pe-australasia.hosts M /trunk/rsplib2/rsplib/pe-europe.hosts M /trunk/rsplib2/rsplib/pe-usa.hosts M /trunk/rsplib2/rsplib/planetlab-config A /trunk/rsplib2/rsplib/pr-australasia.hosts ------------------------------------------------------------------------ r982 | dreibh | 2006-03-02 15:05:53 +0100 (Thu, 02 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c ------------------------------------------------------------------------ r981 | dreibh | 2006-03-02 13:50:54 +0100 (Thu, 02 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r980 | dreibh | 2006-03-02 13:31:26 +0100 (Thu, 02 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r979 | dreibh | 2006-03-02 12:44:21 +0100 (Thu, 02 Mar 2006) | 1 line Changed paths: D /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcappservice.cc M /trunk/rsplib2/rsplib/calcappservice.h M /trunk/rsplib2/rsplib/fractalgeneratorservice.cc M /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r978 | dreibh | 2006-03-02 12:41:59 +0100 (Thu, 02 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/calcappserver ------------------------------------------------------------------------ r977 | dreibh | 2006-03-02 10:08:36 +0100 (Thu, 02 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/calcappclient.cc (from /trunk/rsplib2/rsplib/calcapppooluser.cc:975) M /trunk/rsplib2/rsplib/calcapppoolelement.cc D /trunk/rsplib2/rsplib/calcapppooluser.cc A /trunk/rsplib2/rsplib/calcappservice.cc A /trunk/rsplib2/rsplib/calcappservice.h D /trunk/rsplib2/rsplib/deprecated/fractalpoolelement.cc D /trunk/rsplib2/rsplib/deprecated/leaflinkedredblacktree.c D /trunk/rsplib2/rsplib/deprecated/leaflinkedredblacktree.h D /trunk/rsplib2/rsplib/deprecated/messagebuffer.c D /trunk/rsplib2/rsplib/deprecated/messagebuffer.h D /trunk/rsplib2/rsplib/deprecated/rsplib-internals.h D /trunk/rsplib2/rsplib/deprecated/rsplib-tags.h D /trunk/rsplib2/rsplib/deprecated/rsplib.c D /trunk/rsplib2/rsplib/deprecated/rsplib.h D /trunk/rsplib2/rsplib/deprecated/rspsession.c A /trunk/rsplib2/rsplib/fractalgeneratorservice.cc A /trunk/rsplib2/rsplib/fractalgeneratorservice.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h D /trunk/rsplib2/rsplib/storage/binarytree.c D /trunk/rsplib2/rsplib/storage/binarytree.h D /trunk/rsplib2/rsplib/storage/leaflinkedbinarytree.c D /trunk/rsplib2/rsplib/storage/leaflinkedbinarytree.h D /trunk/rsplib2/rsplib/storage/leaflinkedtreap.c D /trunk/rsplib2/rsplib/storage/leaflinkedtreap.h D /trunk/rsplib2/rsplib/storage/linearlist.c D /trunk/rsplib2/rsplib/storage/linearlist.h A /trunk/rsplib2/rsplib/storage/t1.cc (from /trunk/rsplib2/rsplib/t1.cc:975) A /trunk/rsplib2/rsplib/storage/t10.cc (from /trunk/rsplib2/rsplib/t10.cc:975) A /trunk/rsplib2/rsplib/storage/t11.cc (from /trunk/rsplib2/rsplib/t11.cc:975) A /trunk/rsplib2/rsplib/storage/t12.cc (from /trunk/rsplib2/rsplib/t12.cc:975) A /trunk/rsplib2/rsplib/storage/t13.cc (from /trunk/rsplib2/rsplib/t13.cc:975) A /trunk/rsplib2/rsplib/storage/t2.cc (from /trunk/rsplib2/rsplib/t2.cc:975) A /trunk/rsplib2/rsplib/storage/t4.cc (from /trunk/rsplib2/rsplib/t4.cc:975) A /trunk/rsplib2/rsplib/storage/t5.cc (from /trunk/rsplib2/rsplib/t5.cc:975) A /trunk/rsplib2/rsplib/storage/t6.cc (from /trunk/rsplib2/rsplib/t6.cc:975) A /trunk/rsplib2/rsplib/storage/t7.cc (from /trunk/rsplib2/rsplib/t7.cc:975) A /trunk/rsplib2/rsplib/storage/t8.cc (from /trunk/rsplib2/rsplib/t8.cc:975) A /trunk/rsplib2/rsplib/storage/t9.cc (from /trunk/rsplib2/rsplib/t9.cc:975) D /trunk/rsplib2/rsplib/t1.cc D /trunk/rsplib2/rsplib/t10.cc D /trunk/rsplib2/rsplib/t11.cc D /trunk/rsplib2/rsplib/t12.cc D /trunk/rsplib2/rsplib/t13.cc D /trunk/rsplib2/rsplib/t2.cc D /trunk/rsplib2/rsplib/t4.cc D /trunk/rsplib2/rsplib/t5.cc D /trunk/rsplib2/rsplib/t6.cc D /trunk/rsplib2/rsplib/t7.cc D /trunk/rsplib2/rsplib/t8.cc D /trunk/rsplib2/rsplib/t9.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r976 | dreibh | 2006-03-01 22:18:34 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r975 | dreibh | 2006-03-01 22:11:38 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/rsputilities.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/t1.c M /trunk/rsplib2/rsplib/t1.cc M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t11.cc M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t13.cc M /trunk/rsplib2/rsplib/t2.cc M /trunk/rsplib2/rsplib/t4.cc M /trunk/rsplib2/rsplib/t5.cc M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/t8.cc M /trunk/rsplib2/rsplib/t9.cc M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/takeoverprocess.c M /trunk/rsplib2/rsplib/takeoverprocess.h M /trunk/rsplib2/rsplib/takeoverprocesslist.c M /trunk/rsplib2/rsplib/takeoverprocesslist.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r974 | dreibh | 2006-03-01 22:10:38 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/subnetcalc.cc ------------------------------------------------------------------------ r973 | dreibh | 2006-03-01 22:07:50 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/subnetcalc.cc ------------------------------------------------------------------------ r972 | dreibh | 2006-03-01 22:07:03 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/subnetcalc.cc ------------------------------------------------------------------------ r971 | dreibh | 2006-03-01 22:06:13 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/subnetcalc.cc ------------------------------------------------------------------------ r970 | dreibh | 2006-03-01 21:51:22 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/redblacktree_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/rsputilities.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/t1.c M /trunk/rsplib2/rsplib/t1.cc M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t11.cc M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t13.cc M /trunk/rsplib2/rsplib/t2.cc M /trunk/rsplib2/rsplib/t4.cc M /trunk/rsplib2/rsplib/t5.cc M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/t8.cc M /trunk/rsplib2/rsplib/t9.cc M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h A /trunk/rsplib2/rsplib/takeoverprocess.c A /trunk/rsplib2/rsplib/takeoverprocess.h A /trunk/rsplib2/rsplib/takeoverprocesslist.c A /trunk/rsplib2/rsplib/takeoverprocesslist.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r969 | dreibh | 2006-03-01 17:37:13 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/pe-australia.hosts A /trunk/rsplib2/rsplib/pe-europe.hosts A /trunk/rsplib2/rsplib/pe-usa.hosts A /trunk/rsplib2/rsplib/pr-australia.hosts A /trunk/rsplib2/rsplib/pr-europe.hosts A /trunk/rsplib2/rsplib/pr-usa.hosts M /trunk/rsplib2/rsplib/start-calcapppoolelement M /trunk/rsplib2/rsplib/start-process M /trunk/rsplib2/rsplib/start-registrar M /trunk/rsplib2/rsplib/start-server M /trunk/rsplib2/rsplib/stop-calcapppoolelements A /trunk/rsplib2/rsplib/stop-process M /trunk/rsplib2/rsplib/stop-processes M /trunk/rsplib2/rsplib/stop-registrars M /trunk/rsplib2/rsplib/stop-servers A /trunk/rsplib2/rsplib/test1 ------------------------------------------------------------------------ r968 | dreibh | 2006-03-01 17:25:55 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r967 | dreibh | 2006-03-01 14:49:46 +0100 (Wed, 01 Mar 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolsocket.c ------------------------------------------------------------------------ r964 | dreibh | 2006-02-27 11:31:57 +0100 (Mon, 27 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/subnetcalc.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r962 | dreibh | 2006-02-23 14:40:15 +0100 (Thu, 23 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r961 | dreibh | 2006-02-23 14:31:45 +0100 (Thu, 23 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config A /trunk/rsplib2/rsplib/usa.hosts ------------------------------------------------------------------------ r960 | dreibh | 2006-02-23 14:31:27 +0100 (Thu, 23 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am ------------------------------------------------------------------------ r959 | dreibh | 2006-02-23 13:57:18 +0100 (Thu, 23 Feb 2006) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/go M /trunk/rsplib2/rsplib/interthreadmessageport.h M /trunk/rsplib2/rsplib/start-process Fixed bug in AITM handling leading to never returning HandleResolution request when there is no registrar available. ------------------------------------------------------------------------ r958 | dreibh | 2006-02-23 12:58:55 +0100 (Thu, 23 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/t13.cc ------------------------------------------------------------------------ r957 | dreibh | 2006-02-23 10:35:20 +0100 (Thu, 23 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/go M /trunk/rsplib2/rsplib/start-process ------------------------------------------------------------------------ r956 | dreibh | 2006-02-22 17:25:40 +0100 (Wed, 22 Feb 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/stop-servers ------------------------------------------------------------------------ r955 | dreibh | 2006-02-22 17:12:05 +0100 (Wed, 22 Feb 2006) | 1 line Changed paths: A /trunk/rsplib2/rsplib/do-killall M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/start-calcapppoolelement M /trunk/rsplib2/rsplib/start-process M /trunk/rsplib2/rsplib/start-registrar A /trunk/rsplib2/rsplib/start-server ------------------------------------------------------------------------ r954 | dreibh | 2006-02-22 13:49:19 +0100 (Wed, 22 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h ------------------------------------------------------------------------ r953 | dreibh | 2006-02-22 10:05:42 +0100 (Wed, 22 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolpolicysettings.c D /trunk/rsplib2/rsplib/redblacktree-impl.h A /trunk/rsplib2/rsplib/redblacktree_impl.h (from /trunk/rsplib2/rsplib/redblacktree-impl.h:952) M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h ------------------------------------------------------------------------ r952 | dreibh | 2006-02-21 17:49:32 +0100 (Tue, 21 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/BUGS M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/prepare-compilehost M /trunk/rsplib2/rsplib/redblacktree-impl.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r951 | dreibh | 2006-02-21 10:23:45 +0100 (Tue, 21 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/crashtest.c M /trunk/rsplib2/rsplib/create-binaries M /trunk/rsplib2/rsplib/get M /trunk/rsplib2/rsplib/get-coredumps M /trunk/rsplib2/rsplib/go M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/prepare-compilehost M /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/start-process M /trunk/rsplib2/rsplib/stop-processes ------------------------------------------------------------------------ r950 | dreibh | 2006-02-20 19:29:01 +0100 (Mon, 20 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c A /trunk/rsplib2/rsplib/crashtest.c A /trunk/rsplib2/rsplib/get-coredumps M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/planetlab-config A /trunk/rsplib2/rsplib/planetlab.hosts A /trunk/rsplib2/rsplib/prepare-compilehost M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/remote.hosts A /trunk/rsplib2/rsplib/rootshell.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/start-registrar M /trunk/rsplib2/rsplib/starter ------------------------------------------------------------------------ r945 | dreibh | 2006-02-20 10:31:53 +0100 (Mon, 20 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/start-process M /trunk/rsplib2/rsplib/start-registrar A /trunk/rsplib2/rsplib/starter M /trunk/rsplib2/rsplib/stop-registrars ------------------------------------------------------------------------ r944 | dreibh | 2006-02-17 19:36:12 +0100 (Fri, 17 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/go M /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/start-process M /trunk/rsplib2/rsplib/start-registrar ------------------------------------------------------------------------ r942 | dreibh | 2006-02-17 18:25:13 +0100 (Fri, 17 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/create-binaries M /trunk/rsplib2/rsplib/dispatcher.c A /trunk/rsplib2/rsplib/get A /trunk/rsplib2/rsplib/go M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/planetlab-config A /trunk/rsplib2/rsplib/planetlab-package-install A /trunk/rsplib2/rsplib/pr-deutschland.hosts A /trunk/rsplib2/rsplib/r1 A /trunk/rsplib2/rsplib/r2 A /trunk/rsplib2/rsplib/redblacktree-impl.h (from /trunk/rsplib2/rsplib/redblacktree.c:941) D /trunk/rsplib2/rsplib/redblacktree.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/simpleredblacktree.c M /trunk/rsplib2/rsplib/start-calcapppoolelement M /trunk/rsplib2/rsplib/start-process A /trunk/rsplib2/rsplib/start-registrar A /trunk/rsplib2/rsplib/stop-registrars ------------------------------------------------------------------------ r941 | dreibh | 2006-02-17 10:10:13 +0100 (Fri, 17 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/planetlab-config A /trunk/rsplib2/rsplib/start-calcapppoolelement M /trunk/rsplib2/rsplib/start-process A /trunk/rsplib2/rsplib/stop-calcapppoolelements M /trunk/rsplib2/rsplib/stop-processes ------------------------------------------------------------------------ r940 | dreibh | 2006-02-16 10:18:27 +0100 (Thu, 16 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r939 | dreibh | 2006-02-15 16:19:54 +0100 (Wed, 15 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r938 | dreibh | 2006-02-15 15:56:36 +0100 (Wed, 15 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/hsdump.c M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/server.cc ------------------------------------------------------------------------ r935 | dreibh | 2006-02-14 14:25:41 +0100 (Tue, 14 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessionstorage.h A /trunk/rsplib2/rsplib/simpleredblacktree.c A /trunk/rsplib2/rsplib/simpleredblacktree.h M /trunk/rsplib2/rsplib/testregistrator.c ------------------------------------------------------------------------ r934 | dreibh | 2006-02-13 16:27:44 +0100 (Mon, 13 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h ------------------------------------------------------------------------ r932 | dreibh | 2006-02-10 15:17:18 +0100 (Fri, 10 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/planetlab-config ------------------------------------------------------------------------ r929 | dreibh | 2006-02-10 11:11:05 +0100 (Fri, 10 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/configure.in ------------------------------------------------------------------------ r928 | dreibh | 2006-02-10 11:10:30 +0100 (Fri, 10 Feb 2006) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/componentstatuspackets.h M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/cpprspserver.h A /trunk/rsplib2/rsplib/create-binaries M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h A /trunk/rsplib2/rsplib/deprecated/leaflinkedredblacktree.c (from /trunk/rsplib2/rsplib/leaflinkedredblacktree.c:896) A /trunk/rsplib2/rsplib/deprecated/leaflinkedredblacktree.h (from /trunk/rsplib2/rsplib/leaflinkedredblacktree.h:896) M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h A /trunk/rsplib2/rsplib/filter-hosts M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h A /trunk/rsplib2/rsplib/install-binaries M /trunk/rsplib2/rsplib/interthreadmessageport.c M /trunk/rsplib2/rsplib/interthreadmessageport.h R /trunk/rsplib2/rsplib/leaflinkedredblacktree.c R /trunk/rsplib2/rsplib/leaflinkedredblacktree.h A /trunk/rsplib2/rsplib/localhost.hosts M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/pingpongpackets.h A /trunk/rsplib2/rsplib/planetlab-config M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h A /trunk/rsplib2/rsplib/redblacktree.c A /trunk/rsplib2/rsplib/redblacktree.h M /trunk/rsplib2/rsplib/registrartable.c A /trunk/rsplib2/rsplib/remote.hosts M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/rsputilities.c M /trunk/rsplib2/rsplib/rsputilities.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/sessionstorage.h M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h A /trunk/rsplib2/rsplib/start-process A /trunk/rsplib2/rsplib/stop-processes M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t5.cc M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r891 | dreibh | 2005-11-16 07:07:15 +0100 (Wed, 16 Nov 2005) | 1 line Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r890 | dreibh | 2005-11-09 10:12:19 +0100 (Wed, 09 Nov 2005) | 2 lines Changed paths: D /trunk/rsplib2/admin M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/bootstrap automake fixes. ------------------------------------------------------------------------ r884 | dreibh | 2005-11-04 14:06:32 +0100 (Fri, 04 Nov 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc Fixed bug resulting in infinite sendParameter() loop of fractalpooluser. ------------------------------------------------------------------------ r883 | dreibh | 2005-11-03 14:05:46 +0100 (Thu, 03 Nov 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c Fixed bug in cookie handling. ------------------------------------------------------------------------ r882 | dreibh | 2005-11-03 13:46:24 +0100 (Thu, 03 Nov 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc ------------------------------------------------------------------------ r881 | dreibh | 2005-11-02 17:33:01 +0100 (Wed, 02 Nov 2005) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am ------------------------------------------------------------------------ r880 | dreibh | 2005-11-02 16:39:41 +0100 (Wed, 02 Nov 2005) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/tcplikeserver.cc Fixed bug in rsp_recvmsg() (-1 returned on cookie and notification received). Fixed bugs in fractalpooluser (correct handling of failures with/without cookies). ------------------------------------------------------------------------ r879 | dreibh | 2005-11-02 15:21:23 +0100 (Wed, 02 Nov 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r874 | dreibh | 2005-10-26 17:36:20 +0200 (Wed, 26 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ethereal/packet-calcappprotocol.c ------------------------------------------------------------------------ r872 | dreibh | 2005-10-26 12:22:16 +0200 (Wed, 26 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/debug.h A /trunk/rsplib2/rsplib/demo A /trunk/rsplib2/rsplib/demo/demo-background.fsf A /trunk/rsplib2/rsplib/demo/demo-background.png M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h ------------------------------------------------------------------------ r870 | dreibh | 2005-10-25 10:14:52 +0200 (Tue, 25 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r869 | dreibh | 2005-10-24 17:42:55 +0200 (Mon, 24 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/testregistrator.c ------------------------------------------------------------------------ r866 | dreibh | 2005-10-24 09:57:55 +0200 (Mon, 24 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/TODO A /trunk/rsplib2/rsplib/gettimestamp.c M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r865 | dreibh | 2005-10-21 17:52:50 +0200 (Fri, 21 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc ------------------------------------------------------------------------ r864 | dreibh | 2005-10-21 15:45:44 +0200 (Fri, 21 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc ------------------------------------------------------------------------ r863 | dreibh | 2005-10-21 15:45:01 +0200 (Fri, 21 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/ethereal/colorfilters ------------------------------------------------------------------------ r858 | dreibh | 2005-10-19 10:06:03 +0200 (Wed, 19 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/t8.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h ------------------------------------------------------------------------ r857 | dreibh | 2005-10-18 14:49:52 +0200 (Tue, 18 Oct 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h ASAP registrar hunt bugfixed. ------------------------------------------------------------------------ r856 | dreibh | 2005-10-14 17:18:58 +0200 (Fri, 14 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r855 | dreibh | 2005-10-14 14:52:27 +0200 (Fri, 14 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c ------------------------------------------------------------------------ r854 | dreibh | 2005-10-14 14:46:05 +0200 (Fri, 14 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c ------------------------------------------------------------------------ r853 | dreibh | 2005-10-12 14:06:24 +0200 (Wed, 12 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r852 | dreibh | 2005-10-12 13:38:10 +0200 (Wed, 12 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/netutilities.c A /trunk/rsplib2/rsplib/storage/sha512.c M /trunk/rsplib2/rsplib/terminal.c ------------------------------------------------------------------------ r851 | dreibh | 2005-10-10 10:25:49 +0200 (Mon, 10 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc ------------------------------------------------------------------------ r850 | dreibh | 2005-10-07 16:00:40 +0200 (Fri, 07 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc ------------------------------------------------------------------------ r849 | dreibh | 2005-10-07 15:02:15 +0200 (Fri, 07 Oct 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h Corrected bug that prevented session ID from being set in rsp_sndrcvinfo for Cookie Echo. ------------------------------------------------------------------------ r848 | dreibh | 2005-10-07 14:23:16 +0200 (Fri, 07 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc ------------------------------------------------------------------------ r847 | dreibh | 2005-10-07 14:12:17 +0200 (Fri, 07 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc ------------------------------------------------------------------------ r845 | dreibh | 2005-10-05 10:06:47 +0200 (Wed, 05 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/t8.cc M /trunk/rsplib2/rsplib/udplikeserver.cc ------------------------------------------------------------------------ r844 | dreibh | 2005-10-04 17:31:05 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r843 | dreibh | 2005-10-04 14:41:21 +0200 (Tue, 04 Oct 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrartable.c Fixed bug in SHUTDOWN_EVENT handling. ------------------------------------------------------------------------ r842 | dreibh | 2005-10-04 14:01:31 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r841 | dreibh | 2005-10-04 13:40:10 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r840 | dreibh | 2005-10-04 13:25:56 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: A /trunk/rsplib2/rsplib/ethereal/packet-componentstatus.c M /trunk/rsplib2/rsplib/ethereal/packet-pingpongprotocol.c ------------------------------------------------------------------------ r839 | dreibh | 2005-10-04 11:38:53 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h ------------------------------------------------------------------------ r838 | dreibh | 2005-10-04 11:36:31 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r837 | dreibh | 2005-10-04 10:36:47 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r836 | dreibh | 2005-10-04 10:35:42 +0200 (Tue, 04 Oct 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h ------------------------------------------------------------------------ r833 | dreibh | 2005-09-30 17:12:38 +0200 (Fri, 30 Sep 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h Added timeout for requests to registrars. ------------------------------------------------------------------------ r832 | dreibh | 2005-09-30 15:51:10 +0200 (Fri, 30 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r830 | dreibh | 2005-09-30 14:05:15 +0200 (Fri, 30 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/standardservices.h ------------------------------------------------------------------------ r829 | dreibh | 2005-09-29 15:28:28 +0200 (Thu, 29 Sep 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c A /trunk/rsplib2/rsplib/client M /trunk/rsplib2/rsplib/componentstatusreporter.c A /trunk/rsplib2/rsplib/daytimeserver A /trunk/rsplib2/rsplib/deprecated/fractalpoolelement.cc (from /trunk/rsplib2/rsplib/fractalpoolelement.cc:827) A /trunk/rsplib2/rsplib/deprecated/simpleexamplepe.c (from /trunk/rsplib2/rsplib/simpleexamplepe.c:827) A /trunk/rsplib2/rsplib/deprecated/simpleexamplepu.c (from /trunk/rsplib2/rsplib/simpleexamplepu.c:827) A /trunk/rsplib2/rsplib/discardserver A /trunk/rsplib2/rsplib/echoserver M /trunk/rsplib2/rsplib/examplepe M /trunk/rsplib2/rsplib/examplepu D /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/fractalpooluser.cc A /trunk/rsplib2/rsplib/fractalserver A /trunk/rsplib2/rsplib/pingpongclient A /trunk/rsplib2/rsplib/pingpongserver M /trunk/rsplib2/rsplib/server.cc D /trunk/rsplib2/rsplib/simpleexamplepe.c D /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h Last part of upgrade to new RSerPool API. ------------------------------------------------------------------------ r828 | dreibh | 2005-09-29 13:56:26 +0200 (Thu, 29 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r827 | dreibh | 2005-09-29 10:00:45 +0200 (Thu, 29 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.c M /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/poolelement-example M /trunk/rsplib2/rsplib/pooluser-example M /trunk/rsplib2/rsplib/registrar-example M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rsputilities.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/terminal.c ------------------------------------------------------------------------ r826 | dreibh | 2005-09-28 17:07:48 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/t12.cc ------------------------------------------------------------------------ r825 | dreibh | 2005-09-28 16:38:42 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r824 | dreibh | 2005-09-28 16:38:34 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r823 | dreibh | 2005-09-28 16:26:17 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/fractalpooluser.cc M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/tdtypes.h ------------------------------------------------------------------------ r822 | dreibh | 2005-09-28 15:42:18 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/rserpool.h ------------------------------------------------------------------------ r821 | dreibh | 2005-09-28 15:32:22 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/tcplikeserver.cc ------------------------------------------------------------------------ r820 | dreibh | 2005-09-28 15:31:33 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/autogen.sh ------------------------------------------------------------------------ r819 | dreibh | 2005-09-28 15:27:54 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: A /trunk/rsplib2/acinclude.m4 M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/fgpconfig (from /trunk/rsplib2/rsplib/fractalexample/config:818) D /trunk/rsplib2/rsplib/fractalexample A /trunk/rsplib2/rsplib/fractalpooluser.cc (from /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc:818) A /trunk/rsplib2/rsplib/fractalpooluser.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/t9.cc M /trunk/rsplib2/rsplib/tdtypes.h ------------------------------------------------------------------------ r818 | dreibh | 2005-09-28 10:28:35 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r817 | dreibh | 2005-09-28 10:24:48 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rsputilities.c ------------------------------------------------------------------------ r815 | dreibh | 2005-09-28 10:04:26 +0200 (Wed, 28 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/componentstatusreporter.c M /trunk/rsplib2/rsplib/componentstatusreporter.h M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rspbasicmode.c M /trunk/rsplib2/rsplib/rspenhancedmode.c A /trunk/rsplib2/rsplib/rsputilities.c A /trunk/rsplib2/rsplib/rsputilities.h M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/t8.cc M /trunk/rsplib2/rsplib/t9.cc M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c ------------------------------------------------------------------------ r814 | dreibh | 2005-09-27 17:21:58 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r812 | dreibh | 2005-09-27 15:13:57 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t9.cc ------------------------------------------------------------------------ r811 | dreibh | 2005-09-27 14:14:24 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/sessioncontrol.c ------------------------------------------------------------------------ r810 | dreibh | 2005-09-27 13:42:32 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r809 | dreibh | 2005-09-27 13:41:31 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspenhancedmode.c ------------------------------------------------------------------------ r808 | dreibh | 2005-09-27 13:39:30 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/notificationqueue.c M /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/t9.cc M /trunk/rsplib2/rsplib/testregistrator.c ------------------------------------------------------------------------ r807 | dreibh | 2005-09-27 12:23:58 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c ------------------------------------------------------------------------ r806 | dreibh | 2005-09-27 11:33:34 +0200 (Tue, 27 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/server.cc M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/udplikeserver.cc ------------------------------------------------------------------------ r805 | dreibh | 2005-09-26 19:20:16 +0200 (Mon, 26 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/notificationqueue.c A /trunk/rsplib2/rsplib/notificationqueue.h M /trunk/rsplib2/rsplib/pingpong.c M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/session.h M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/terminal.c ------------------------------------------------------------------------ r803 | dreibh | 2005-09-26 12:05:34 +0200 (Mon, 26 Sep 2005) | 1 line Changed paths: A /trunk/rsplib2/rsplib/draft-ietf-tsvwg-sctpsocket-10.txt A /trunk/rsplib2/rsplib/draft-silverton-rserpool-api-01.txt A /trunk/rsplib2/rsplib/server.cc ------------------------------------------------------------------------ r802 | dreibh | 2005-09-26 11:45:19 +0200 (Mon, 26 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/calcapppackets.h A /trunk/rsplib2/rsplib/componentstatuspackets.h D /trunk/rsplib2/rsplib/componentstatusprotocol.c D /trunk/rsplib2/rsplib/componentstatusprotocol.h A /trunk/rsplib2/rsplib/componentstatusreporter.c (from /trunk/rsplib2/rsplib/componentstatusprotocol.c:799) A /trunk/rsplib2/rsplib/componentstatusreporter.h (from /trunk/rsplib2/rsplib/componentstatusprotocol.h:799) M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/ethereal/packet-pingpongprotocol.c A /trunk/rsplib2/rsplib/examplepe A /trunk/rsplib2/rsplib/examplepu M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h A /trunk/rsplib2/rsplib/pingpong.c A /trunk/rsplib2/rsplib/pingpongpackets.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpool-internals.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rserpoolsocket.h M /trunk/rsplib2/rsplib/rspbasicmode.c D /trunk/rsplib2/rsplib/rspbasicmode.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessioncontrol.c M /trunk/rsplib2/rsplib/sessionstorage.c M /trunk/rsplib2/rsplib/standardservices.cc M /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/tcplikeserver.cc M /trunk/rsplib2/rsplib/tcplikeserver.h M /trunk/rsplib2/rsplib/terminal.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/udplikeserver.cc M /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r799 | dreibh | 2005-09-23 19:26:43 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/cpprspserver.h M /trunk/rsplib2/rsplib/rserpool.h M /trunk/rsplib2/rsplib/rserpoolsocket.c M /trunk/rsplib2/rsplib/rspbasicmode.c A /trunk/rsplib2/rsplib/rspbasicmode.h M /trunk/rsplib2/rsplib/rspenhancedmode.c M /trunk/rsplib2/rsplib/sessionstorage.h A /trunk/rsplib2/rsplib/standardservices.cc A /trunk/rsplib2/rsplib/standardservices.h M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t11.cc M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t7.cc A /trunk/rsplib2/rsplib/tcplikeserver.cc A /trunk/rsplib2/rsplib/tcplikeserver.h A /trunk/rsplib2/rsplib/terminal.c A /trunk/rsplib2/rsplib/udplikeserver.cc A /trunk/rsplib2/rsplib/udplikeserver.h ------------------------------------------------------------------------ r798 | dreibh | 2005-09-23 18:28:23 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: A /trunk/rsplib2/rsplib/sessionstorage.c A /trunk/rsplib2/rsplib/sessionstorage.h ------------------------------------------------------------------------ r797 | dreibh | 2005-09-23 18:23:38 +0200 (Fri, 23 Sep 2005) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h A /trunk/rsplib2/rsplib/asapinterthreadmessage.c A /trunk/rsplib2/rsplib/asapinterthreadmessage.h M /trunk/rsplib2/rsplib/componentstatusprotocol.c A /trunk/rsplib2/rsplib/deprecated A /trunk/rsplib2/rsplib/deprecated/examplepe.c (from /trunk/rsplib2/rsplib/examplepe.c:796) A /trunk/rsplib2/rsplib/deprecated/examplepu.c (from /trunk/rsplib2/rsplib/examplepu.c:796) A /trunk/rsplib2/rsplib/deprecated/messagebuffer.c (from /trunk/rsplib2/rsplib/messagebuffer.c:796) A /trunk/rsplib2/rsplib/deprecated/messagebuffer.h (from /trunk/rsplib2/rsplib/messagebuffer.h:796) A /trunk/rsplib2/rsplib/deprecated/rsplib-internals.h (from /trunk/rsplib2/rsplib/rsplib-internals.h:796) A /trunk/rsplib2/rsplib/deprecated/rsplib-tags.h (from /trunk/rsplib2/rsplib/rsplib-tags.h:796) A /trunk/rsplib2/rsplib/deprecated/rsplib.c (from /trunk/rsplib2/rsplib/rsplib.c:796) A /trunk/rsplib2/rsplib/deprecated/rsplib.h (from /trunk/rsplib2/rsplib/rsplib.h:796) A /trunk/rsplib2/rsplib/deprecated/rspsession.c (from /trunk/rsplib2/rsplib/rspsession.c:796) D /trunk/rsplib2/rsplib/examplepe.c D /trunk/rsplib2/rsplib/examplepu.c D /trunk/rsplib2/rsplib/messagebuffer.c D /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c A /trunk/rsplib2/rsplib/rserpool-internals.h A /trunk/rsplib2/rsplib/rserpool.h A /trunk/rsplib2/rsplib/rserpoolsocket.c A /trunk/rsplib2/rsplib/rserpoolsocket.h A /trunk/rsplib2/rsplib/rspbasicmode.c A /trunk/rsplib2/rsplib/rspenhancedmode.c D /trunk/rsplib2/rsplib/rsplib-internals.h D /trunk/rsplib2/rsplib/rsplib-tags.h D /trunk/rsplib2/rsplib/rsplib.c D /trunk/rsplib2/rsplib/rsplib.h D /trunk/rsplib2/rsplib/rspsession.c A /trunk/rsplib2/rsplib/session.h A /trunk/rsplib2/rsplib/sessioncontrol.c A /trunk/rsplib2/rsplib/sessioncontrol.h M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t7.cc First part of update to standard RSerPool API. ------------------------------------------------------------------------ r796 | dreibh | 2005-09-23 14:19:11 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/binarytree.c D /trunk/rsplib2/rsplib/binarytree.h A /trunk/rsplib2/rsplib/interthreadmessageport.c A /trunk/rsplib2/rsplib/interthreadmessageport.h D /trunk/rsplib2/rsplib/leaflinkedbinarytree.c D /trunk/rsplib2/rsplib/leaflinkedbinarytree.h D /trunk/rsplib2/rsplib/leaflinkedtreap.c D /trunk/rsplib2/rsplib/leaflinkedtreap.h D /trunk/rsplib2/rsplib/linearlist.c D /trunk/rsplib2/rsplib/linearlist.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h A /trunk/rsplib2/rsplib/storage A /trunk/rsplib2/rsplib/storage/binarytree.c (from /trunk/rsplib2/rsplib/binarytree.c:790) A /trunk/rsplib2/rsplib/storage/binarytree.h (from /trunk/rsplib2/rsplib/binarytree.h:790) A /trunk/rsplib2/rsplib/storage/leaflinkedbinarytree.c (from /trunk/rsplib2/rsplib/leaflinkedbinarytree.c:790) A /trunk/rsplib2/rsplib/storage/leaflinkedbinarytree.h (from /trunk/rsplib2/rsplib/leaflinkedbinarytree.h:790) A /trunk/rsplib2/rsplib/storage/leaflinkedtreap.c (from /trunk/rsplib2/rsplib/leaflinkedtreap.c:790) A /trunk/rsplib2/rsplib/storage/leaflinkedtreap.h (from /trunk/rsplib2/rsplib/leaflinkedtreap.h:790) A /trunk/rsplib2/rsplib/storage/linearlist.c (from /trunk/rsplib2/rsplib/linearlist.c:790) A /trunk/rsplib2/rsplib/storage/linearlist.h (from /trunk/rsplib2/rsplib/linearlist.h:790) M /trunk/rsplib2/rsplib/t12.cc ------------------------------------------------------------------------ r795 | dreibh | 2005-09-23 13:24:09 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/t11.cc ------------------------------------------------------------------------ r793 | dreibh | 2005-09-23 13:10:46 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t10.cc ------------------------------------------------------------------------ r792 | dreibh | 2005-09-23 13:09:59 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c ------------------------------------------------------------------------ r791 | dreibh | 2005-09-23 12:07:41 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/ext_socket.h ------------------------------------------------------------------------ r790 | dreibh | 2005-09-23 11:55:23 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/binarytree.c M /trunk/rsplib2/rsplib/binarytree.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/identifierbitmap.c M /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/leaflinkedbinarytree.c M /trunk/rsplib2/rsplib/leaflinkedbinarytree.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/rsplib2/rsplib/leaflinkedtreap.h M /trunk/rsplib2/rsplib/linearlist.c M /trunk/rsplib2/rsplib/linearlist.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rsplib-internals.h M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/statistics.cc M /trunk/rsplib2/rsplib/statistics.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/t1.c M /trunk/rsplib2/rsplib/t1.cc M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t11.cc M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t2.cc M /trunk/rsplib2/rsplib/t4.cc M /trunk/rsplib2/rsplib/t5.cc M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/t8.cc M /trunk/rsplib2/rsplib/t9.cc M /trunk/rsplib2/rsplib/tagitem.c M /trunk/rsplib2/rsplib/tagitem.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/threadsignal.c M /trunk/rsplib2/rsplib/threadsignal.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h ------------------------------------------------------------------------ r789 | dreibh | 2005-09-23 10:49:10 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/identifierbitmap.h ------------------------------------------------------------------------ r788 | dreibh | 2005-09-23 10:48:42 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/identifierbitmap.h ------------------------------------------------------------------------ r787 | dreibh | 2005-09-23 10:48:19 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/identifierbitmap.h ------------------------------------------------------------------------ r786 | dreibh | 2005-09-23 10:47:50 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/identifierbitmap.c A /trunk/rsplib2/rsplib/identifierbitmap.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/t11.cc M /trunk/rsplib2/rsplib/threadsignal.h ------------------------------------------------------------------------ r785 | dreibh | 2005-09-23 10:00:43 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/breakdetector.h M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t7.cc A /trunk/rsplib2/rsplib/threadsignal.c A /trunk/rsplib2/rsplib/threadsignal.h ------------------------------------------------------------------------ r784 | dreibh | 2005-09-23 10:00:16 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrar.c ------------------------------------------------------------------------ r783 | dreibh | 2005-09-23 09:59:25 +0200 (Fri, 23 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/threadsafety.c M /trunk/rsplib2/rsplib/threadsafety.h ------------------------------------------------------------------------ r781 | dreibh | 2005-09-22 16:17:33 +0200 (Thu, 22 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ethereal/packet-fractalgeneratorprotocol.c M /trunk/rsplib2/rsplib/ethereal/packet-pingpongprotocol.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/t8.cc ------------------------------------------------------------------------ r779 | dreibh | 2005-09-22 10:04:23 +0200 (Thu, 22 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/t12.cc ------------------------------------------------------------------------ r778 | dreibh | 2005-09-21 19:30:57 +0200 (Wed, 21 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fdcallback.h A /trunk/rsplib2/rsplib/t11.cc A /trunk/rsplib2/rsplib/t12.cc M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r777 | dreibh | 2005-09-21 13:45:34 +0200 (Wed, 21 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r776 | dreibh | 2005-09-21 10:11:35 +0200 (Wed, 21 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/mutex.cc M /trunk/rsplib2/rsplib/mutex.h M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t7.cc M /trunk/rsplib2/rsplib/thread.cc M /trunk/rsplib2/rsplib/thread.h ------------------------------------------------------------------------ r775 | dreibh | 2005-09-20 17:44:38 +0200 (Tue, 20 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r774 | dreibh | 2005-09-20 16:36:40 +0200 (Tue, 20 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/ethereal/packet-calcappprotocol.c A /trunk/rsplib2/rsplib/ethereal/packet-fractalgeneratorprotocol.c A /trunk/rsplib2/rsplib/ethereal/packet-pingpongprotocol.c ------------------------------------------------------------------------ r773 | dreibh | 2005-09-20 16:31:52 +0200 (Tue, 20 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/t10.cc M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r772 | dreibh | 2005-09-20 11:08:42 +0200 (Tue, 20 Sep 2005) | 1 line Changed paths: A /trunk/rsplib2/rsplib/t10.cc ------------------------------------------------------------------------ r771 | dreibh | 2005-09-20 10:37:32 +0200 (Tue, 20 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r770 | dreibh | 2005-09-19 18:09:25 +0200 (Mon, 19 Sep 2005) | 1 line Changed paths: A /trunk/rsplib2/rsplib/ethereal/packet-calcappprotocol.c ------------------------------------------------------------------------ r769 | dreibh | 2005-09-19 18:06:33 +0200 (Mon, 19 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r768 | dreibh | 2005-09-19 17:34:51 +0200 (Mon, 19 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r764 | dreibh | 2005-09-19 10:39:53 +0200 (Mon, 19 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalgeneratorpackets.h M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netdouble.h M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r763 | dreibh | 2005-09-16 15:17:55 +0200 (Fri, 16 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r762 | dreibh | 2005-09-16 15:11:22 +0200 (Fri, 16 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r761 | tuexen | 2005-09-16 14:15:07 +0200 (Fri, 16 Sep 2005) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am Bump version. Include statistics.h. ------------------------------------------------------------------------ r760 | dreibh | 2005-09-16 12:06:31 +0200 (Fri, 16 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/calcapppooluser.cc A /trunk/rsplib2/rsplib/t9.cc ------------------------------------------------------------------------ r756 | dreibh | 2005-09-16 10:10:02 +0200 (Fri, 16 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/t7.cc A /trunk/rsplib2/rsplib/t8.cc M /trunk/rsplib2/rsplib/tagitem.c ------------------------------------------------------------------------ r755 | dreibh | 2005-09-15 16:16:28 +0200 (Thu, 15 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r754 | dreibh | 2005-09-15 11:20:16 +0200 (Thu, 15 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/rspsession.c ------------------------------------------------------------------------ r753 | dreibh | 2005-09-15 10:02:28 +0200 (Thu, 15 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/t6.cc M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r752 | dreibh | 2005-09-14 16:24:47 +0200 (Wed, 14 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r751 | dreibh | 2005-09-14 10:14:55 +0200 (Wed, 14 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r750 | dreibh | 2005-09-13 18:19:31 +0200 (Tue, 13 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/t6.cc A /trunk/rsplib2/rsplib/t7.cc ------------------------------------------------------------------------ r749 | dreibh | 2005-09-13 12:09:39 +0200 (Tue, 13 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r748 | dreibh | 2005-09-13 10:40:04 +0200 (Tue, 13 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h ------------------------------------------------------------------------ r747 | dreibh | 2005-09-08 14:44:39 +0200 (Thu, 08 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am ------------------------------------------------------------------------ r746 | dreibh | 2005-09-08 14:01:34 +0200 (Thu, 08 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r745 | dreibh | 2005-09-08 13:57:03 +0200 (Thu, 08 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/statistics.cc A /trunk/rsplib2/rsplib/statistics.h A /trunk/rsplib2/rsplib/t6.cc ------------------------------------------------------------------------ r744 | dreibh | 2005-09-07 13:47:06 +0200 (Wed, 07 Sep 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h ------------------------------------------------------------------------ r736 | tuexen | 2005-08-27 13:59:32 +0200 (Sat, 27 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Include examplens in dist. ------------------------------------------------------------------------ r735 | tuexen | 2005-08-26 21:32:12 +0200 (Fri, 26 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/loglevel.c Fix too verbose output. ------------------------------------------------------------------------ r734 | dreibh | 2005-08-26 16:38:08 +0200 (Fri, 26 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c ------------------------------------------------------------------------ r733 | dreibh | 2005-08-26 15:32:44 +0200 (Fri, 26 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/rspsession.c ------------------------------------------------------------------------ r732 | dreibh | 2005-08-26 14:57:17 +0200 (Fri, 26 Aug 2005) | 1 line Changed paths: A /trunk/rsplib2/rsplib/examplens M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/nameserver M /trunk/rsplib2/rsplib/registrar-example M /trunk/rsplib2/rsplib/rspsession.c ------------------------------------------------------------------------ r731 | tuexen | 2005-08-25 19:17:42 +0200 (Thu, 25 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Get rid of false warinings also on IPv4 ------------------------------------------------------------------------ r730 | dreibh | 2005-08-25 16:09:34 +0200 (Thu, 25 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r729 | dreibh | 2005-08-25 15:08:45 +0200 (Thu, 25 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r728 | dreibh | 2005-08-23 16:14:05 +0200 (Tue, 23 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r727 | dreibh | 2005-08-23 15:37:12 +0200 (Tue, 23 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r726 | dreibh | 2005-08-22 13:40:39 +0200 (Mon, 22 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/examplepe.c ------------------------------------------------------------------------ r725 | dreibh | 2005-08-22 10:59:19 +0200 (Mon, 22 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rspsession.c ------------------------------------------------------------------------ r724 | tuexen | 2005-08-19 22:35:38 +0200 (Fri, 19 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib ------------------------------------------------------------------------ r723 | tuexen | 2005-08-19 22:29:19 +0200 (Fri, 19 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrartable.c Fix warning. ------------------------------------------------------------------------ r722 | tuexen | 2005-08-19 22:28:01 +0200 (Fri, 19 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Fix name. ------------------------------------------------------------------------ r721 | tuexen | 2005-08-19 22:18:12 +0200 (Fri, 19 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Use appropiate constants. ------------------------------------------------------------------------ r720 | tuexen | 2005-08-19 15:36:46 +0200 (Fri, 19 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/.cvsignore Ignore binaries. ------------------------------------------------------------------------ r719 | tuexen | 2005-08-19 15:34:52 +0200 (Fri, 19 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Do not compile t[45]. ------------------------------------------------------------------------ r718 | tuexen | 2005-08-19 15:20:37 +0200 (Fri, 19 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am Do not build t? stuff. ------------------------------------------------------------------------ r717 | tuexen | 2005-08-19 15:18:03 +0200 (Fri, 19 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/Makefile.am M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am Fix Makefile problems. ------------------------------------------------------------------------ r716 | dreibh | 2005-08-19 12:48:30 +0200 (Fri, 19 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r715 | dreibh | 2005-08-19 12:29:02 +0200 (Fri, 19 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/netutilities.c ------------------------------------------------------------------------ r714 | dreibh | 2005-08-18 11:38:38 +0200 (Thu, 18 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/rspsession.c ------------------------------------------------------------------------ r713 | dreibh | 2005-08-17 17:31:56 +0200 (Wed, 17 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpoolmessage.h ------------------------------------------------------------------------ r712 | dreibh | 2005-08-17 17:05:32 +0200 (Wed, 17 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppackets.h M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c ------------------------------------------------------------------------ r711 | dreibh | 2005-08-16 18:10:33 +0200 (Tue, 16 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r710 | dreibh | 2005-08-16 10:01:45 +0200 (Tue, 16 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/calcapppoolelement.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rspsession.c ------------------------------------------------------------------------ r709 | dreibh | 2005-08-12 17:31:47 +0200 (Fri, 12 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/calcapppackets.h A /trunk/rsplib2/rsplib/calcapppoolelement.cc A /trunk/rsplib2/rsplib/calcapppooluser.cc ------------------------------------------------------------------------ r708 | dreibh | 2005-08-12 13:50:44 +0200 (Fri, 12 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalexample/Makefile ------------------------------------------------------------------------ r707 | dreibh | 2005-08-12 13:38:08 +0200 (Fri, 12 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalexample/Makefile M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrartable.c ------------------------------------------------------------------------ r706 | dreibh | 2005-08-12 10:08:32 +0200 (Fri, 12 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c A /trunk/rsplib2/rsplib/t5.cc ------------------------------------------------------------------------ r703 | dreibh | 2005-08-09 10:15:37 +0200 (Tue, 09 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalpoolelement.cc ------------------------------------------------------------------------ r702 | dreibh | 2005-08-08 17:32:22 +0200 (Mon, 08 Aug 2005) | 1 line Changed paths: M /trunk/rsplib2/rsplib/fractalexample/Makefile ------------------------------------------------------------------------ r698 | dreibh | 2005-08-08 11:28:36 +0200 (Mon, 08 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/transportaddressblock.c *** empty log message *** ------------------------------------------------------------------------ r697 | dreibh | 2005-08-08 11:26:18 +0200 (Mon, 08 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/fractalexample/Makefile D /trunk/rsplib2/rsplib/fractalgeneratorexample.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/treaptest/Makefile M /trunk/treaptest/poolelementnode-template_impl.h M /trunk/treaptest/poolhandlespacechecksum.h M /trunk/treaptest/randomizer.c M /trunk/treaptest/rserpoolerror.c M /trunk/treaptest/rserpoolerror.h M /trunk/treaptest/sockaddrunion.h M /trunk/treaptest/stringutilities.c M /trunk/treaptest/tdtypes.h M /trunk/treaptest/transportaddressblock.c M /trunk/treaptest/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r696 | dreibh | 2005-08-05 12:55:33 +0200 (Fri, 05 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/t4.cc *** empty log message *** ------------------------------------------------------------------------ r695 | dreibh | 2005-08-05 11:07:37 +0200 (Fri, 05 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrar.c *** empty log message *** ------------------------------------------------------------------------ r694 | dreibh | 2005-08-04 19:03:17 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/socketapi/socketapi/ext_socket.h *** empty log message *** ------------------------------------------------------------------------ r693 | dreibh | 2005-08-04 18:45:42 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/socketapi/configure.in M /trunk/socketapi/socketapi/ext_socket.h *** empty log message *** ------------------------------------------------------------------------ r692 | dreibh | 2005-08-04 18:35:59 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/treaptest/leaflinkedredblacktree.c M /trunk/treaptest/leaflinkedtreap.c *** empty log message *** ------------------------------------------------------------------------ r691 | dreibh | 2005-08-04 18:24:48 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am *** empty log message *** ------------------------------------------------------------------------ r690 | dreibh | 2005-08-04 18:01:57 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/Makefile *** empty log message *** ------------------------------------------------------------------------ r688 | dreibh | 2005-08-04 17:11:57 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/fractalexample/Makefile M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/rsplib2/rsplib/t1.c M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/threadsafety.c *** empty log message *** ------------------------------------------------------------------------ r687 | dreibh | 2005-08-04 13:19:38 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/registrar.c *** empty log message *** ------------------------------------------------------------------------ r684 | dreibh | 2005-08-04 11:28:46 +0200 (Thu, 04 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c A /trunk/rsplib2/rsplib/stop-firewall M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/transportaddressblock.c *** empty log message *** ------------------------------------------------------------------------ r680 | dreibh | 2005-08-03 12:40:27 +0200 (Wed, 03 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/add-dummy-route M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrartable.c *** empty log message *** ------------------------------------------------------------------------ r679 | dreibh | 2005-08-03 11:53:42 +0200 (Wed, 03 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/registrartable.c *** empty log message *** ------------------------------------------------------------------------ r677 | dreibh | 2005-08-01 19:32:58 +0200 (Mon, 01 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/add-dummy-route M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r676 | dreibh | 2005-08-01 12:01:31 +0200 (Mon, 01 Aug 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netdouble.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/socketapi/socketapi/ext_socket.h M /trunk/socketapi/socketapi/sctpsocketwrapper.cc *** empty log message *** ------------------------------------------------------------------------ r675 | dreibh | 2005-07-29 14:46:45 +0200 (Fri, 29 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r674 | dreibh | 2005-07-29 13:26:51 +0200 (Fri, 29 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c *** empty log message *** ------------------------------------------------------------------------ r673 | dreibh | 2005-07-29 11:18:56 +0200 (Fri, 29 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/treaptest/poolnode-template_impl.h *** empty log message *** ------------------------------------------------------------------------ r670 | dreibh | 2005-07-28 17:53:38 +0200 (Thu, 28 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/sctplib1/sctplib/sctp/recvctrl.c *** empty log message *** ------------------------------------------------------------------------ r669 | dreibh | 2005-07-28 17:10:37 +0200 (Thu, 28 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ethereal/dfilters Ethereal filters update. ------------------------------------------------------------------------ r667 | dreibh | 2005-07-28 16:15:15 +0200 (Thu, 28 Jul 2005) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/fractalgeneratorpackets.h A /trunk/rsplib2/rsplib/netdouble.c A /trunk/rsplib2/rsplib/netdouble.h *** empty log message *** ------------------------------------------------------------------------ r666 | dreibh | 2005-07-28 15:34:52 +0200 (Thu, 28 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO *** empty log message *** ------------------------------------------------------------------------ r665 | dreibh | 2005-07-28 15:05:00 +0200 (Thu, 28 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/TODO M /trunk/rsplib2/rsplib/add-dummy-route M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c Fixes of several memory leaks. ------------------------------------------------------------------------ r663 | dreibh | 2005-07-27 12:27:21 +0200 (Wed, 27 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/Makefile *** empty log message *** ------------------------------------------------------------------------ r662 | dreibh | 2005-07-27 12:26:18 +0200 (Wed, 27 Jul 2005) | 6 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacechecksum.c M /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/registrartable.c M /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rsplib-internals.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c D /trunk/rsplib2/rsplib/servertable.c D /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/tdtypes.h Update to handlespace management with Internet-32-checksum. Update to UDP-like registrar connection handling including incoming registrar change after takeover. Fractal example programs now correctly uses host-independent double datatype. Bugfixes in fractal PU. ------------------------------------------------------------------------ r653 | dreibh | 2005-07-19 10:46:31 +0200 (Tue, 19 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c A /trunk/rsplib2/rsplib/registrartable.c A /trunk/rsplib2/rsplib/registrartable.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r648 | dreibh | 2005-07-07 16:21:54 +0200 (Thu, 07 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c *** empty log message *** ------------------------------------------------------------------------ r647 | dreibh | 2005-07-05 16:07:23 +0200 (Tue, 05 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/treaptest/hsmgttest.cc M /trunk/treaptest/peerlistmanagement-template_impl.h M /trunk/treaptest/poolhandlespacenode-template.h M /trunk/treaptest/poolhandlespacenode-template_impl.h M /trunk/treaptest/t4.cc *** empty log message *** ------------------------------------------------------------------------ r646 | dreibh | 2005-07-05 12:45:09 +0200 (Tue, 05 Jul 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h A /trunk/rsplib2/rsplib/poolhandlespacechecksum.c A /trunk/rsplib2/rsplib/poolhandlespacechecksum.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement.c M /trunk/rsplib2/rsplib/poolhandlespacemanagement.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r627 | dreibh | 2005-04-13 18:17:14 +0200 (Wed, 13 Apr 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r626 | dreibh | 2005-04-13 17:16:49 +0200 (Wed, 13 Apr 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/transportaddressblock.c *** empty log message *** ------------------------------------------------------------------------ r623 | dreibh | 2005-04-12 16:34:04 +0200 (Tue, 12 Apr 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/treaptest/poolhandlespacemanagement-template_impl.h *** empty log message *** ------------------------------------------------------------------------ r622 | dreibh | 2005-04-12 13:00:22 +0200 (Tue, 12 Apr 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/treaptest/contel2005-createpdf.R *** empty log message *** ------------------------------------------------------------------------ r621 | tuexen | 2005-04-02 20:44:26 +0200 (Sat, 02 Apr 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rspsession.c Bug fixes from Anibal. ------------------------------------------------------------------------ r612 | tuexen | 2005-03-08 18:10:06 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rsplib.c Update address familiy. ------------------------------------------------------------------------ r611 | tuexen | 2005-03-08 18:04:41 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c Use spp_flags only when available. ------------------------------------------------------------------------ r610 | tuexen | 2005-03-08 18:04:14 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/configure.in Check for spp_flags. ------------------------------------------------------------------------ r609 | dreibh | 2005-03-08 14:47:19 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolnode-template_impl.h *** empty log message *** ------------------------------------------------------------------------ r607 | dreibh | 2005-03-08 14:27:08 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r606 | dreibh | 2005-03-08 14:00:53 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am *** empty log message *** ------------------------------------------------------------------------ r605 | dreibh | 2005-03-08 13:51:03 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h M /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/sctplib1/configure.in M /trunk/sctplib1/sctplib/sctp/sctp.h M /trunk/socketapi/configure.in M /trunk/socketapi/socketapi/ext_socket.h M /trunk/socketapi/socketapi/sctpsocketwrapper.cc *** empty log message *** ------------------------------------------------------------------------ r604 | dreibh | 2005-03-08 11:59:23 +0100 (Tue, 08 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r600 | tuexen | 2005-03-05 01:06:12 +0100 (Sat, 05 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/ext_socket.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/sctplib1/configure.in M /trunk/sctplib1/sctplib/sctp/Makefile.am M /trunk/socketapi/configure.in M /trunk/socketapi/socketapi/ext_socket.h Update for release. ------------------------------------------------------------------------ r599 | dreibh | 2005-03-04 14:25:26 +0100 (Fri, 04 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/debug M /trunk/rsplib2/rsplib/netutilities.c M /trunk/socketapi/admin/config.guess M /trunk/socketapi/admin/config.sub M /trunk/socketapi/socket_programs/Makefile.am A /trunk/socketapi/socket_programs/t3.cc M /trunk/socketapi/socketapi/sctpsocket.cc *** empty log message *** ------------------------------------------------------------------------ r596 | dreibh | 2005-03-02 18:01:02 +0100 (Wed, 02 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c *** empty log message *** ------------------------------------------------------------------------ r595 | dreibh | 2005-03-02 14:34:16 +0100 (Wed, 02 Mar 2005) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rsplib-internals.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r581 | dreibh | 2004-12-16 17:16:59 +0100 (Thu, 16 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/README M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r580 | dreibh | 2004-12-09 16:29:05 +0100 (Thu, 09 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h *** empty log message *** ------------------------------------------------------------------------ r579 | dreibh | 2004-12-09 16:04:27 +0100 (Thu, 09 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc *** empty log message *** ------------------------------------------------------------------------ r578 | dreibh | 2004-12-08 17:13:28 +0100 (Wed, 08 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolnode-template_impl.h *** empty log message *** ------------------------------------------------------------------------ r577 | dreibh | 2004-12-08 16:57:33 +0100 (Wed, 08 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r576 | dreibh | 2004-12-08 16:51:19 +0100 (Wed, 08 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r575 | dreibh | 2004-12-08 15:54:48 +0100 (Wed, 08 Dec 2004) | 3 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c Added missing mutex locking in asapInstanceDoNameResolution (removed in *FromCache) ------------------------------------------------------------------------ r573 | dreibh | 2004-12-08 09:57:50 +0100 (Wed, 08 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r572 | dreibh | 2004-12-06 14:09:52 +0100 (Mon, 06 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r571 | dreibh | 2004-12-06 13:23:25 +0100 (Mon, 06 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpoolelement.cc *** empty log message *** ------------------------------------------------------------------------ r570 | dreibh | 2004-12-06 10:29:00 +0100 (Mon, 06 Dec 2004) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/fractalexample/config/alpha01.fsf A /trunk/rsplib2/rsplib/fractalexample/config/alpha02.fsf A /trunk/rsplib2/rsplib/fractalexample/config/alpha03.fsf A /trunk/rsplib2/rsplib/fractalexample/config/alpha04.fsf A /trunk/rsplib2/rsplib/fractalexample/config/alpha05.fsf A /trunk/rsplib2/rsplib/fractalexample/config/alpha06.fsf A /trunk/rsplib2/rsplib/fractalexample/config/alpha07.fsf A /trunk/rsplib2/rsplib/fractalexample/config/alpha08.fsf M /trunk/rsplib2/rsplib/fractalexample/config/mandelbrot.fsf M /trunk/rsplib2/rsplib/fractalexample/config/mandelbrot3.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q1.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q2.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q3.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q4.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q5.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q6.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q7.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q8.fsf A /trunk/rsplib2/rsplib/fractalexample/config/q9.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qA.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qB.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qD.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qE.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qF.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qG.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qH.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qI.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qJ.fsf A /trunk/rsplib2/rsplib/fractalexample/config/qK.fsf M /trunk/rsplib2/rsplib/fractalexample/config/scenarios.conf A /trunk/rsplib2/rsplib/fractalexample/config/t0.fsf A /trunk/rsplib2/rsplib/fractalexample/config/t1.fsf A /trunk/rsplib2/rsplib/fractalexample/config/t2.fsf A /trunk/rsplib2/rsplib/fractalexample/config/t3.fsf A /trunk/rsplib2/rsplib/fractalexample/config/t4.fsf A /trunk/rsplib2/rsplib/fractalexample/config/t5.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w1.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w2.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w3.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w4.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w5.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w6.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w7.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w8.fsf A /trunk/rsplib2/rsplib/fractalexample/config/w9.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wA.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wB.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wC.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wD.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wE.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wF.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wG.fsf A /trunk/rsplib2/rsplib/fractalexample/config/wH.fsf M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc *** empty log message *** ------------------------------------------------------------------------ r569 | rohde | 2004-12-03 19:29:43 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r568 | rohde | 2004-12-03 19:27:51 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/fractalexample/config A /trunk/rsplib2/rsplib/fractalexample/config/mandelbrot.fsf A /trunk/rsplib2/rsplib/fractalexample/config/mandelbrot3.fsf A /trunk/rsplib2/rsplib/fractalexample/config/scenarios.conf M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r567 | dreibh | 2004-12-03 18:55:09 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r566 | rohde | 2004-12-03 18:40:29 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r565 | dreibh | 2004-12-03 18:39:55 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalpoolelement.cc *** empty log message *** ------------------------------------------------------------------------ r564 | rohde | 2004-12-03 18:31:24 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalgeneratorexample.h *** empty log message *** ------------------------------------------------------------------------ r563 | dreibh | 2004-12-03 18:16:03 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r562 | dreibh | 2004-12-03 17:58:19 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r561 | dreibh | 2004-12-03 11:30:59 +0100 (Fri, 03 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r560 | dreibh | 2004-12-02 17:59:59 +0100 (Thu, 02 Dec 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc *** empty log message *** ------------------------------------------------------------------------ r559 | dreibh | 2004-11-23 17:56:38 +0100 (Tue, 23 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/admin/config.guess M /trunk/rsplib2/admin/config.sub *** empty log message *** ------------------------------------------------------------------------ r558 | dreibh | 2004-11-23 13:17:47 +0100 (Tue, 23 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r557 | dreibh | 2004-11-23 12:49:33 +0100 (Tue, 23 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r552 | dreibh | 2004-11-22 19:07:53 +0100 (Mon, 22 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r550 | dreibh | 2004-11-22 16:28:11 +0100 (Mon, 22 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/demo-ns1 M /trunk/rsplib2/rsplib/demo-ns2 M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/fractalexample/Makefile M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalgeneratorexample.h M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r549 | tuexen | 2004-11-21 21:23:45 +0100 (Sun, 21 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r541 | dreibh | 2004-11-19 18:25:33 +0100 (Fri, 19 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in *** empty log message *** ------------------------------------------------------------------------ r539 | dreibh | 2004-11-19 17:44:48 +0100 (Fri, 19 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/binarytree.c M /trunk/rsplib2/rsplib/binarytree.h M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fractalexample/Makefile M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/leaflinkedbinarytree.c M /trunk/rsplib2/rsplib/leaflinkedbinarytree.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/rsplib2/rsplib/leaflinkedtreap.h M /trunk/rsplib2/rsplib/linearlist.c M /trunk/rsplib2/rsplib/linearlist.h A /trunk/rsplib2/rsplib/nameserver D /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolhandle.c M /trunk/rsplib2/rsplib/poolhandle.h A /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.c A /trunk/rsplib2/rsplib/poolhandlespacemanagement-basics.h A /trunk/rsplib2/rsplib/poolhandlespacemanagement-template.h A /trunk/rsplib2/rsplib/poolhandlespacemanagement-template_impl.h A /trunk/rsplib2/rsplib/poolhandlespacemanagement.c A /trunk/rsplib2/rsplib/poolhandlespacemanagement.h A /trunk/rsplib2/rsplib/poolhandlespacenode-template.h A /trunk/rsplib2/rsplib/poolhandlespacenode-template_impl.h D /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c D /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h D /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h D /trunk/rsplib2/rsplib/poolnamespacemanagement-template_impl.h D /trunk/rsplib2/rsplib/poolnamespacemanagement.c D /trunk/rsplib2/rsplib/poolnamespacemanagement.h D /trunk/rsplib2/rsplib/poolnamespacenode-template.h D /trunk/rsplib2/rsplib/poolnamespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/randomizer.h A /trunk/rsplib2/rsplib/registrar-example A /trunk/rsplib2/rsplib/registrar.c M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/timeutilities.c M /trunk/rsplib2/rsplib/timeutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/treaptest/Makefile M /trunk/treaptest/binarytree.c M /trunk/treaptest/binarytree.h M /trunk/treaptest/debug.h M /trunk/treaptest/doublelinkedringlist.h M /trunk/treaptest/leaflinkedbinarytree.c M /trunk/treaptest/leaflinkedbinarytree.h M /trunk/treaptest/leaflinkedredblacktree.c M /trunk/treaptest/leaflinkedredblacktree.h M /trunk/treaptest/leaflinkedtreap.c M /trunk/treaptest/leaflinkedtreap.h M /trunk/treaptest/linearlist.c M /trunk/treaptest/linearlist.h M /trunk/treaptest/peerlist-template.c M /trunk/treaptest/peerlist-template.h A /trunk/treaptest/peerlist-template_impl.h M /trunk/treaptest/peerlistmanagement-template.c M /trunk/treaptest/peerlistmanagement-template.h A /trunk/treaptest/peerlistmanagement-template_impl.h M /trunk/treaptest/peerlistnode-template.c M /trunk/treaptest/peerlistnode-template.h A /trunk/treaptest/peerlistnode-template_impl.h M /trunk/treaptest/poolelementnode-template.c M /trunk/treaptest/poolelementnode-template.h A /trunk/treaptest/poolelementnode-template_impl.h M /trunk/treaptest/poolhandle.c M /trunk/treaptest/poolhandle.h A /trunk/treaptest/poolhandlespacemanagement-basics.c A /trunk/treaptest/poolhandlespacemanagement-basics.h A /trunk/treaptest/poolhandlespacemanagement-template.h A /trunk/treaptest/poolhandlespacemanagement-template_impl.h A /trunk/treaptest/poolhandlespacemanagement.c A /trunk/treaptest/poolhandlespacemanagement.h A /trunk/treaptest/poolhandlespacenode-template.h A /trunk/treaptest/poolhandlespacenode-template_impl.h D /trunk/treaptest/poolnamespacemanagement-basics.c D /trunk/treaptest/poolnamespacemanagement-basics.h D /trunk/treaptest/poolnamespacemanagement-template.c D /trunk/treaptest/poolnamespacemanagement-template.h D /trunk/treaptest/poolnamespacemanagement.c D /trunk/treaptest/poolnamespacemanagement.h D /trunk/treaptest/poolnamespacenode-template.c D /trunk/treaptest/poolnamespacenode-template.h M /trunk/treaptest/poolnode-template.c M /trunk/treaptest/poolnode-template.h A /trunk/treaptest/poolnode-template_impl.h M /trunk/treaptest/poolpolicy-template.c M /trunk/treaptest/poolpolicy-template.h A /trunk/treaptest/poolpolicy-template_impl.h M /trunk/treaptest/poolpolicysettings.c M /trunk/treaptest/poolpolicysettings.h M /trunk/treaptest/randomizer.c M /trunk/treaptest/randomizer.h M /trunk/treaptest/regtest-random.h M /trunk/treaptest/regtest-registration.h M /trunk/treaptest/regtest-roundrobin.h M /trunk/treaptest/regtest-update.h M /trunk/treaptest/regtest-weightedrandom.h M /trunk/treaptest/regtest-weightedroundrobin.h M /trunk/treaptest/regtest.cc M /trunk/treaptest/rserpoolerror.c M /trunk/treaptest/rserpoolerror.h M /trunk/treaptest/sockaddrunion.h M /trunk/treaptest/stringutilities.c M /trunk/treaptest/stringutilities.h M /trunk/treaptest/t1.cc M /trunk/treaptest/t2.cc M /trunk/treaptest/t3.cc M /trunk/treaptest/t4.cc M /trunk/treaptest/t5.cc M /trunk/treaptest/t6.cc M /trunk/treaptest/timeutilities.c M /trunk/treaptest/timeutilities.h M /trunk/treaptest/transportaddressblock.c M /trunk/treaptest/transportaddressblock.h A /trunk/treaptest/update A /trunk/treaptest/update-it A /trunk/treaptest/update.sed *** empty log message *** ------------------------------------------------------------------------ r538 | dreibh | 2004-11-18 13:30:38 +0100 (Thu, 18 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/transportaddressblock.c *** empty log message *** ------------------------------------------------------------------------ r537 | dreibh | 2004-11-18 13:23:51 +0100 (Thu, 18 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r536 | dreibh | 2004-11-18 13:23:36 +0100 (Thu, 18 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r530 | tuexen | 2004-11-16 22:37:06 +0100 (Tue, 16 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/servertable.c Get it compiling on Solaris. ------------------------------------------------------------------------ r528 | dreibh | 2004-11-13 04:24:13 +0100 (Sat, 13 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/messagebuffer.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r527 | dreibh | 2004-11-12 17:28:52 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c *** empty log message *** ------------------------------------------------------------------------ r526 | tuexen | 2004-11-12 17:06:35 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in *** empty log message *** ------------------------------------------------------------------------ r525 | dreibh | 2004-11-12 16:56:49 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/deprecated M /trunk/rsplib2/rsplib/examplepe.c D /trunk/rsplib2/rsplib/localaddresses.c D /trunk/rsplib2/rsplib/localaddresses.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/rsplib2/rsplib/testregistrator.c *** empty log message *** ------------------------------------------------------------------------ r524 | tuexen | 2004-11-12 16:51:56 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in *** empty log message *** ------------------------------------------------------------------------ r523 | dreibh | 2004-11-12 16:15:59 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/poolelement-example *** empty log message *** ------------------------------------------------------------------------ r522 | dreibh | 2004-11-12 15:43:16 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r520 | tuexen | 2004-11-12 15:21:11 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r519 | dreibh | 2004-11-12 01:25:16 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/tdtypes.h *** empty log message *** ------------------------------------------------------------------------ r518 | dreibh | 2004-11-12 01:17:18 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h *** empty log message *** ------------------------------------------------------------------------ r517 | tuexen | 2004-11-12 01:10:33 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/rsplib.h *** empty log message *** ------------------------------------------------------------------------ r516 | dreibh | 2004-11-12 01:02:34 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/localaddresses.c *** empty log message *** ------------------------------------------------------------------------ r515 | dreibh | 2004-11-12 01:01:49 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/localaddresses.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/testregistrator.c *** empty log message *** ------------------------------------------------------------------------ r514 | tuexen | 2004-11-12 00:56:49 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusprotocol.h *** empty log message *** ------------------------------------------------------------------------ r513 | dreibh | 2004-11-12 00:28:06 +0100 (Fri, 12 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepu.c *** empty log message *** ------------------------------------------------------------------------ r512 | dreibh | 2004-11-11 23:48:06 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r511 | dreibh | 2004-11-11 23:44:20 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolnamespacenode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/rsplib2/rsplib/t1.c M /trunk/rsplib2/rsplib/testregistrator.c *** empty log message *** ------------------------------------------------------------------------ r510 | dreibh | 2004-11-11 22:45:47 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/ext_socket.h *** empty log message *** ------------------------------------------------------------------------ r508 | tuexen | 2004-11-11 22:29:33 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am *** empty log message *** ------------------------------------------------------------------------ r507 | dreibh | 2004-11-11 22:25:17 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/binarytree.c M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/leaflinkedbinarytree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/rsplib2/rsplib/linearlist.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/peerlistnode-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolnamespacenode-template_impl.h M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r506 | tuexen | 2004-11-11 22:17:53 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib M /trunk/rsplib2/rsplib/.cvsignore *** empty log message *** ------------------------------------------------------------------------ r505 | tuexen | 2004-11-11 22:08:17 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/threadsafety.c *** empty log message *** ------------------------------------------------------------------------ r504 | dreibh | 2004-11-11 20:33:49 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r503 | tuexen | 2004-11-11 19:50:54 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in *** empty log message *** ------------------------------------------------------------------------ r502 | dreibh | 2004-11-11 19:46:16 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/peerlist-template_impl.h M /trunk/rsplib2/rsplib/poolelementnode-template_impl.h M /trunk/rsplib2/rsplib/poolnode-template_impl.h M /trunk/rsplib2/rsplib/poolpolicy-template_impl.h *** empty log message *** ------------------------------------------------------------------------ r501 | tuexen | 2004-11-11 19:33:49 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r500 | tuexen | 2004-11-11 19:19:10 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/tdtypes.h *** empty log message *** ------------------------------------------------------------------------ r499 | dreibh | 2004-11-11 19:15:07 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/ext_socket.h D /trunk/rsplib2/rsplib/peerlist-template.c A /trunk/rsplib2/rsplib/peerlist-template_impl.h D /trunk/rsplib2/rsplib/peerlistmanagement-template.c A /trunk/rsplib2/rsplib/peerlistmanagement-template_impl.h D /trunk/rsplib2/rsplib/peerlistnode-template.c A /trunk/rsplib2/rsplib/peerlistnode-template_impl.h D /trunk/rsplib2/rsplib/poolelementnode-template.c A /trunk/rsplib2/rsplib/poolelementnode-template_impl.h D /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c A /trunk/rsplib2/rsplib/poolnamespacemanagement-template_impl.h M /trunk/rsplib2/rsplib/poolnamespacemanagement.h D /trunk/rsplib2/rsplib/poolnamespacenode-template.c A /trunk/rsplib2/rsplib/poolnamespacenode-template_impl.h D /trunk/rsplib2/rsplib/poolnode-template.c A /trunk/rsplib2/rsplib/poolnode-template_impl.h D /trunk/rsplib2/rsplib/poolpolicy-template.c A /trunk/rsplib2/rsplib/poolpolicy-template_impl.h *** empty log message *** ------------------------------------------------------------------------ r498 | dreibh | 2004-11-11 15:27:43 +0100 (Thu, 11 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/demo-ns1 M /trunk/rsplib2/rsplib/demo-ns2 M /trunk/rsplib2/rsplib/demo-pe1 M /trunk/rsplib2/rsplib/demo-pe2 M /trunk/rsplib2/rsplib/demo-pu1 M /trunk/rsplib2/rsplib/demo-pu2 M /trunk/rsplib2/rsplib/tdtypes.h *** empty log message *** ------------------------------------------------------------------------ r497 | dreibh | 2004-11-10 23:07:34 +0100 (Wed, 10 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/autogen.sh M /trunk/rsplib2/rsplib/binarytree.c M /trunk/rsplib2/rsplib/binarytree.h M /trunk/rsplib2/rsplib/breakdetector.c M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/leaflinkedbinarytree.c M /trunk/rsplib2/rsplib/leaflinkedbinarytree.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/rsplib2/rsplib/leaflinkedtreap.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/poolpolicy-template.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/transportaddressblock.c *** empty log message *** ------------------------------------------------------------------------ r496 | dreibh | 2004-11-10 22:31:26 +0100 (Wed, 10 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r495 | dreibh | 2004-11-10 20:33:55 +0100 (Wed, 10 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r494 | dreibh | 2004-11-10 20:31:12 +0100 (Wed, 10 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r493 | dreibh | 2004-11-10 20:25:12 +0100 (Wed, 10 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/netutilities.c M /trunk/sctplib1/sctplib/sctp/distribution.c M /trunk/sctplib1/sctplib/sctp/sctp.h M /trunk/socketapi/configure.in M /trunk/socketapi/cppsocket_programs/sctpterminal.cc M /trunk/socketapi/socketapi/ext_socket.h M /trunk/socketapi/socketapi/sctpsocket.cc M /trunk/socketapi/socketapi/sctpsocketwrapper.cc *** empty log message *** ------------------------------------------------------------------------ r492 | tuexen | 2004-11-10 17:46:15 +0100 (Wed, 10 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/bootstrap M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/tdtypes.h *** empty log message *** ------------------------------------------------------------------------ r491 | dreibh | 2004-11-10 15:44:38 +0100 (Wed, 10 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/tdtypes.h *** empty log message *** ------------------------------------------------------------------------ r490 | dreibh | 2004-11-09 23:03:30 +0100 (Tue, 09 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/configure.in M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistnode-template.c M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/poolelementnode-template.c M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h M /trunk/rsplib2/rsplib/poolnamespacenode-template.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.h M /trunk/rsplib2/rsplib/poolnode-template.c M /trunk/rsplib2/rsplib/poolnode-template.h M /trunk/rsplib2/rsplib/poolpolicy-template.c M /trunk/rsplib2/rsplib/poolpolicysettings.c M /trunk/rsplib2/rsplib/poolpolicysettings.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h *** empty log message *** ------------------------------------------------------------------------ r489 | dreibh | 2004-11-09 21:00:31 +0100 (Tue, 09 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/binarytree.c M /trunk/rsplib2/rsplib/binarytree.h A /trunk/rsplib2/rsplib/doublelinkedringlist.c M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/leaflinkedbinarytree.c M /trunk/rsplib2/rsplib/leaflinkedbinarytree.h M /trunk/rsplib2/rsplib/leaflinkedredblacktree.c M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/rsplib2/rsplib/leaflinkedtreap.h M /trunk/rsplib2/rsplib/linearlist.c M /trunk/rsplib2/rsplib/linearlist.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h A /trunk/rsplib2/rsplib/rsplib-internals.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r488 | dreibh | 2004-11-09 20:03:22 +0100 (Tue, 09 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/leaflinkedredblacktree.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/tdtypes.h *** empty log message *** ------------------------------------------------------------------------ r487 | tuexen | 2004-11-09 14:54:17 +0100 (Tue, 09 Nov 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnamespacenode-template.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/transportaddressblock.h Get it compiling. ------------------------------------------------------------------------ r485 | dreibh | 2004-10-13 17:32:37 +0200 (Wed, 13 Oct 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/doublelinkedringlist.h M /trunk/rsplib2/rsplib/linearlist.c M /trunk/rsplib2/rsplib/linearlist.h M /trunk/treaptest/Makefile M /trunk/treaptest/doublelinkedringlist.h M /trunk/treaptest/linearlist.c M /trunk/treaptest/linearlist.h M /trunk/treaptest/regtest.cc M /trunk/treaptest/t2.cc *** empty log message *** ------------------------------------------------------------------------ r484 | dreibh | 2004-10-08 13:00:23 +0200 (Fri, 08 Oct 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolpolicy-template.c M /trunk/treaptest/poolpolicy-template.c *** empty log message *** ------------------------------------------------------------------------ r483 | dreibh | 2004-09-28 14:41:27 +0200 (Tue, 28 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c *** empty log message *** ------------------------------------------------------------------------ r482 | dreibh | 2004-09-28 14:35:23 +0200 (Tue, 28 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am *** empty log message *** ------------------------------------------------------------------------ r481 | dreibh | 2004-09-28 14:30:26 +0200 (Tue, 28 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h A /trunk/rsplib2/rsplib/t1.cc *** empty log message *** ------------------------------------------------------------------------ r480 | dreibh | 2004-09-25 18:44:17 +0200 (Sat, 25 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolpolicy-template.c M /trunk/treaptest/poolpolicy-template.c *** empty log message *** ------------------------------------------------------------------------ r479 | dreibh | 2004-09-23 12:37:17 +0200 (Thu, 23 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/demo-pe1 M /trunk/rsplib2/rsplib/demo-pe2 M /trunk/rsplib2/rsplib/demo-pu1 M /trunk/rsplib2/rsplib/demo-pu2 M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/t2.cc M /trunk/rsplib2/rsplib/thread.cc *** empty log message *** ------------------------------------------------------------------------ r478 | dreibh | 2004-09-21 14:22:45 +0200 (Tue, 21 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/demo-ns1 M /trunk/rsplib2/rsplib/demo-ns2 A /trunk/rsplib2/rsplib/demo-pu2 *** empty log message *** ------------------------------------------------------------------------ r477 | dreibh | 2004-09-21 13:44:56 +0200 (Tue, 21 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/debug M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/nameserver.c *** empty log message *** ------------------------------------------------------------------------ r476 | dreibh | 2004-09-17 15:54:09 +0200 (Fri, 17 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/cspmonitor.c A /trunk/rsplib2/rsplib/demo-ns1 A /trunk/rsplib2/rsplib/demo-ns2 A /trunk/rsplib2/rsplib/demo-pe1 A /trunk/rsplib2/rsplib/demo-pe2 A /trunk/rsplib2/rsplib/demo-pu1 M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r475 | dreibh | 2004-09-16 18:24:43 +0200 (Thu, 16 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/simpleexamplepu.c *** empty log message *** ------------------------------------------------------------------------ r474 | dreibh | 2004-09-16 16:33:56 +0200 (Thu, 16 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r473 | dreibh | 2004-09-15 13:26:38 +0200 (Wed, 15 Sep 2004) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/icons A /trunk/rsplib2/rsplib/icons/NameServer.fig A /trunk/rsplib2/rsplib/icons/NameServer.gif A /trunk/rsplib2/rsplib/icons/NameServer.png A /trunk/rsplib2/rsplib/icons/PoolElement.fig A /trunk/rsplib2/rsplib/icons/PoolElement.gif A /trunk/rsplib2/rsplib/icons/PoolElement.png A /trunk/rsplib2/rsplib/icons/PoolUser.fig A /trunk/rsplib2/rsplib/icons/PoolUser.gif A /trunk/rsplib2/rsplib/icons/PoolUser.png A /trunk/rsplib2/rsplib/icons/RSerPool-Icons.html A /trunk/rsplib2/rsplib/icons/background_essen.png *** empty log message *** ------------------------------------------------------------------------ r472 | dreibh | 2004-09-15 11:47:12 +0200 (Wed, 15 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/componentstatusprotocol.h A /trunk/rsplib2/rsplib/cspmonitor.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c *** empty log message *** ------------------------------------------------------------------------ r471 | dreibh | 2004-09-02 17:31:05 +0200 (Thu, 02 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlistnode-template.c M /trunk/rsplib2/rsplib/poolelementnode-template.c M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h M /trunk/rsplib2/rsplib/poolnode-template.c M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/treaptest/poolelementnode-template.c M /trunk/treaptest/poolnamespacemanagement-template.c M /trunk/treaptest/poolnode-template.c M /trunk/treaptest/regtest-random.h M /trunk/treaptest/regtest-registration.h M /trunk/treaptest/regtest-roundrobin.h M /trunk/treaptest/regtest-update.h M /trunk/treaptest/regtest-weightedrandom.h M /trunk/treaptest/regtest-weightedroundrobin.h M /trunk/treaptest/regtest.cc M /trunk/treaptest/t3.cc M /trunk/treaptest/t4.cc M /trunk/treaptest/t5.cc M /trunk/treaptest/transportaddressblock.c M /trunk/treaptest/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r469 | dreibh | 2004-09-01 17:49:27 +0200 (Wed, 01 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r468 | dreibh | 2004-09-01 11:58:42 +0200 (Wed, 01 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/componentstatusprotocol.c M /trunk/rsplib2/rsplib/componentstatusprotocol.h *** empty log message *** ------------------------------------------------------------------------ r467 | dreibh | 2004-09-01 11:55:31 +0200 (Wed, 01 Sep 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/componentstatusprotocol.c A /trunk/rsplib2/rsplib/componentstatusprotocol.h M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h *** empty log message *** ------------------------------------------------------------------------ r466 | dreibh | 2004-08-30 10:32:41 +0200 (Mon, 30 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/poolelementnode-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rspsession.c *** empty log message *** ------------------------------------------------------------------------ r465 | dreibh | 2004-08-27 13:51:50 +0200 (Fri, 27 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc M /trunk/rsplib2/rsplib/fractalgeneratorexample.h M /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/nameserver.c *** empty log message *** ------------------------------------------------------------------------ r464 | dreibh | 2004-08-26 11:12:25 +0200 (Thu, 26 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/threadsafety.h M /trunk/rsplib2/rsplib/timer.c M /trunk/treaptest/poolnamespacenode-template.c M /trunk/treaptest/poolnamespacenode-template.h *** empty log message *** ------------------------------------------------------------------------ r463 | dreibh | 2004-08-25 19:27:33 +0200 (Wed, 25 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/fdcallback.c M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r461 | dreibh | 2004-08-25 11:33:25 +0200 (Wed, 25 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h M /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/treaptest/t1.cc *** empty log message *** ------------------------------------------------------------------------ r460 | dreibh | 2004-08-24 18:06:38 +0200 (Tue, 24 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/dispatcher.h A /trunk/rsplib2/rsplib/fdcallback.c A /trunk/rsplib2/rsplib/fdcallback.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h A /trunk/rsplib2/rsplib/t2.cc M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h *** empty log message *** ------------------------------------------------------------------------ r457 | dreibh | 2004-08-24 13:55:13 +0200 (Tue, 24 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/poolelementnode-template.c M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h M /trunk/rsplib2/rsplib/poolnamespacenode-template.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.h M /trunk/rsplib2/rsplib/testregistrator.c M /trunk/treaptest/poolelementnode-template.c M /trunk/treaptest/poolelementnode-template.h M /trunk/treaptest/poolnamespacemanagement-template.c M /trunk/treaptest/poolnamespacemanagement-template.h M /trunk/treaptest/poolnamespacenode-template.c M /trunk/treaptest/poolnamespacenode-template.h *** empty log message *** ------------------------------------------------------------------------ r456 | dreibh | 2004-08-24 11:38:49 +0200 (Tue, 24 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib.c *** empty log message *** ------------------------------------------------------------------------ r455 | dreibh | 2004-08-24 11:23:20 +0200 (Tue, 24 Aug 2004) | 2 lines Changed paths: D /trunk/rsplib2/rsplib/colorfilters A /trunk/rsplib2/rsplib/ethereal A /trunk/rsplib2/rsplib/ethereal/colorfilters A /trunk/rsplib2/rsplib/ethereal/dfilters M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/poolelementnode-template.c M /trunk/rsplib2/rsplib/poolelementnode-template.h D /trunk/rsplib2/rsplib/poolhandle.o M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h M /trunk/rsplib2/rsplib/poolnamespacenode-template.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c D /trunk/rsplib2/rsplib/stringutilities.o D /trunk/rsplib2/rsplib/timeutilities.o M /trunk/treaptest/poolelementnode-template.c M /trunk/treaptest/poolelementnode-template.h M /trunk/treaptest/poolnamespacemanagement-basics.h M /trunk/treaptest/poolnamespacemanagement-template.c M /trunk/treaptest/poolnamespacemanagement-template.h M /trunk/treaptest/poolnamespacenode-template.c M /trunk/treaptest/poolnamespacenode-template.h M /trunk/treaptest/regtest-random.h M /trunk/treaptest/regtest-registration.h M /trunk/treaptest/regtest-roundrobin.h M /trunk/treaptest/regtest-update.h M /trunk/treaptest/regtest-weightedrandom.h M /trunk/treaptest/regtest-weightedroundrobin.h M /trunk/treaptest/regtest.cc M /trunk/treaptest/t3.cc M /trunk/treaptest/t4.cc M /trunk/treaptest/t5.cc *** empty log message *** ------------------------------------------------------------------------ r454 | dreibh | 2004-08-23 18:17:59 +0200 (Mon, 23 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/peerlistnode-template.h A /trunk/rsplib2/rsplib/testregistrator.c A /trunk/treaptest/config.h M /trunk/treaptest/peerlistmanagement-template.c M /trunk/treaptest/peerlistnode-template.h A /trunk/treaptest/randomizer.c A /trunk/treaptest/randomizer.h *** empty log message *** ------------------------------------------------------------------------ r453 | dreibh | 2004-08-23 17:17:31 +0200 (Mon, 23 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlistnode-template.c M /trunk/rsplib2/rsplib/poolelementnode-template.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r451 | dreibh | 2004-08-23 13:10:56 +0200 (Mon, 23 Aug 2004) | 2 lines Changed paths: A /trunk/rsplib2/rsplib/fractalgeneratorexample.h A /trunk/rsplib2/rsplib/mutex.cc A /trunk/rsplib2/rsplib/mutex.h A /trunk/rsplib2/rsplib/thread.cc A /trunk/rsplib2/rsplib/thread.h *** empty log message *** ------------------------------------------------------------------------ r450 | dreibh | 2004-08-23 12:48:57 +0200 (Mon, 23 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/examplepe.c A /trunk/rsplib2/rsplib/fractalexample A /trunk/rsplib2/rsplib/fractalexample/Makefile A /trunk/rsplib2/rsplib/fractalexample/fractalpooluser.cc A /trunk/rsplib2/rsplib/fractalpoolelement.cc M /trunk/rsplib2/rsplib/localaddresses.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/transportaddressblock.c *** empty log message *** ------------------------------------------------------------------------ r449 | dreibh | 2004-08-19 13:05:15 +0200 (Thu, 19 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/poolelementnode-template.c M /trunk/rsplib2/rsplib/poolelementnode-template.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/treaptest/Makefile M /trunk/treaptest/peerlist-template.c M /trunk/treaptest/peerlist-template.h M /trunk/treaptest/peerlistmanagement-template.h M /trunk/treaptest/poolelementnode-template.c M /trunk/treaptest/poolelementnode-template.h M /trunk/treaptest/poolnamespacemanagement-basics.h M /trunk/treaptest/poolnamespacemanagement-template.c M /trunk/treaptest/poolnamespacenode-template.c M /trunk/treaptest/poolnamespacenode-template.h M /trunk/treaptest/regtest-update.h *** empty log message *** ------------------------------------------------------------------------ r427 | dreibh | 2004-08-06 17:43:25 +0200 (Fri, 06 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c *** empty log message *** ------------------------------------------------------------------------ r426 | dreibh | 2004-08-04 03:02:39 +0200 (Wed, 04 Aug 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/poolpolicy-template.c M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/tdtypes.h M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/treaptest/poolnamespacemanagement.h M /trunk/treaptest/poolpolicy-template.c M /trunk/treaptest/regtest.cc M /trunk/treaptest/t3.cc M /trunk/treaptest/t4.cc M /trunk/treaptest/t5.cc M /trunk/treaptest/t6.cc M /trunk/treaptest/transportaddressblock.c M /trunk/treaptest/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r419 | dreibh | 2004-07-30 13:03:43 +0200 (Fri, 30 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolnamespacemanagement.h M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/socketapi/socketapi/sctpassociation.cc *** empty log message *** ------------------------------------------------------------------------ r415 | dreibh | 2004-07-29 18:32:55 +0200 (Thu, 29 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r413 | dreibh | 2004-07-29 17:15:41 +0200 (Thu, 29 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/localaddresses.c M /trunk/rsplib2/rsplib/localaddresses.h M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/poolelement-example M /trunk/rsplib2/rsplib/pooluser-example M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepe.c A /trunk/rsplib2/rsplib/tracelevels.in M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/socketapi/socketapi/ext_socket.h M /trunk/socketapi/socketapi/sctpassociation.cc M /trunk/socketapi/socketapi/sctpsocket.cc M /trunk/socketapi/socketapi/sctpsocketmaster.cc M /trunk/socketapi/socketapi/sctpsocketwrapper.cc M /trunk/treaptest/peerlist-template.c M /trunk/treaptest/peerlist-template.h M /trunk/treaptest/peerlistmanagement-template.h D /trunk/treaptest/poolhandle.o D /trunk/treaptest/stringutilities.o D /trunk/treaptest/timeutilities.o *** empty log message *** ------------------------------------------------------------------------ r408 | dreibh | 2004-07-26 18:36:38 +0200 (Mon, 26 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.h *** empty log message *** ------------------------------------------------------------------------ r405 | dreibh | 2004-07-26 14:50:18 +0200 (Mon, 26 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c A /trunk/rsplib2/rsplib/colorfilters M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistnode-template.c M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r404 | dreibh | 2004-07-25 20:02:32 +0200 (Sun, 25 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r403 | dreibh | 2004-07-25 18:55:19 +0200 (Sun, 25 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/socketapi/configure.in M /trunk/socketapi/socketapi/sctpsocketwrapper.cc *** empty log message *** ------------------------------------------------------------------------ r402 | dreibh | 2004-07-25 17:26:28 +0200 (Sun, 25 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlist-template.h M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistnode-template.c M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h *** empty log message *** ------------------------------------------------------------------------ r401 | dreibh | 2004-07-25 12:40:05 +0200 (Sun, 25 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r399 | dreibh | 2004-07-23 14:57:24 +0200 (Fri, 23 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/rserpoolmessage.h M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c *** empty log message *** ------------------------------------------------------------------------ r397 | dreibh | 2004-07-22 19:30:14 +0200 (Thu, 22 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c *** empty log message *** ------------------------------------------------------------------------ r396 | dreibh | 2004-07-22 18:37:46 +0200 (Thu, 22 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c *** empty log message *** ------------------------------------------------------------------------ r395 | dreibh | 2004-07-22 17:48:24 +0200 (Thu, 22 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/servertable.c *** empty log message *** ------------------------------------------------------------------------ r390 | dreibh | 2004-07-22 11:47:44 +0200 (Thu, 22 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h M /trunk/rsplib2/rsplib/rserpoolmessage.c M /trunk/rsplib2/rsplib/rserpoolmessagecreator.c M /trunk/rsplib2/rsplib/rserpoolmessageparser.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/simpleexamplepu.c *** empty log message *** ------------------------------------------------------------------------ r389 | dreibh | 2004-07-21 16:39:53 +0200 (Wed, 21 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/asapcreator.c D /trunk/rsplib2/rsplib/asapcreator.h M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h D /trunk/rsplib2/rsplib/asapmessage.c D /trunk/rsplib2/rsplib/asapmessage.h D /trunk/rsplib2/rsplib/asapparser.c D /trunk/rsplib2/rsplib/asapparser.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h A /trunk/rsplib2/rsplib/rserpoolmessage.c A /trunk/rsplib2/rsplib/rserpoolmessage.h A /trunk/rsplib2/rsplib/rserpoolmessagecreator.c A /trunk/rsplib2/rsplib/rserpoolmessagecreator.h A /trunk/rsplib2/rsplib/rserpoolmessageparser.c A /trunk/rsplib2/rsplib/rserpoolmessageparser.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/timer.c M /trunk/rsplib2/rsplib/timer.h *** empty log message *** ------------------------------------------------------------------------ r388 | dreibh | 2004-07-20 17:38:27 +0200 (Tue, 20 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapmessage.c M /trunk/rsplib2/rsplib/asapparser.c M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/poolhandle.o M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/rsplib2/rsplib/stringutilities.o M /trunk/rsplib2/rsplib/timeutilities.o M /trunk/treaptest/poolnamespacemanagement-basics.h M /trunk/treaptest/poolnode-template.c M /trunk/treaptest/rserpoolerror.c M /trunk/treaptest/rserpoolerror.h M /trunk/treaptest/sockaddrunion.h *** empty log message *** ------------------------------------------------------------------------ r387 | dreibh | 2004-07-20 10:54:22 +0200 (Tue, 20 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/bootstrap M /trunk/rsplib2/configure.in *** empty log message *** ------------------------------------------------------------------------ r386 | dreibh | 2004-07-20 10:48:17 +0200 (Tue, 20 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/add-dummy-route M /trunk/rsplib2/rsplib/asapcreator.c D /trunk/rsplib2/rsplib/asaperror.c D /trunk/rsplib2/rsplib/asaperror.h M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapmessage.c M /trunk/rsplib2/rsplib/asapmessage.h M /trunk/rsplib2/rsplib/asapparser.c M /trunk/rsplib2/rsplib/deprecated/asaperror.c M /trunk/rsplib2/rsplib/deprecated/asaperror.h M /trunk/rsplib2/rsplib/messagebuffer.c M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/poolhandle.o M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnode-template.c M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/stringutilities.o M /trunk/rsplib2/rsplib/timeutilities.o *** empty log message *** ------------------------------------------------------------------------ r385 | dreibh | 2004-07-19 18:24:42 +0200 (Mon, 19 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapcreator.c M /trunk/rsplib2/rsplib/asapparser.c M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/treaptest/rserpoolerror.h *** empty log message *** ------------------------------------------------------------------------ r384 | dreibh | 2004-07-19 11:06:54 +0200 (Mon, 19 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am D /trunk/rsplib2/rsplib/asapcache.c D /trunk/rsplib2/rsplib/asapcache.h M /trunk/rsplib2/rsplib/asapcreator.c M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapmessage.c M /trunk/rsplib2/rsplib/asapmessage.h M /trunk/rsplib2/rsplib/asapparser.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.h M /trunk/rsplib2/rsplib/peerlistnode-template.h M /trunk/rsplib2/rsplib/randomizer.c D /trunk/rsplib2/rsplib/serverannounce.c D /trunk/rsplib2/rsplib/serverannounce.h M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/transportaddressblock.c D /trunk/rsplib2/rsplib/utilities.c D /trunk/rsplib2/rsplib/utilities.h M /trunk/treaptest/peerlistmanagement-template.c M /trunk/treaptest/peerlistmanagement-template.h M /trunk/treaptest/peerlistnode-template.h M /trunk/treaptest/transportaddressblock.c *** empty log message *** ------------------------------------------------------------------------ r382 | dreibh | 2004-07-18 17:30:43 +0200 (Sun, 18 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/add-dummy-route M /trunk/rsplib2/rsplib/asapcreator.c M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapmessage.c M /trunk/rsplib2/rsplib/asapparser.c M /trunk/rsplib2/rsplib/breakdetector.c A /trunk/rsplib2/rsplib/deprecated/asapcache.c A /trunk/rsplib2/rsplib/deprecated/asapcache.h A /trunk/rsplib2/rsplib/deprecated/asaperror.c A /trunk/rsplib2/rsplib/deprecated/asaperror.h A /trunk/rsplib2/rsplib/deprecated/nameserver.c A /trunk/rsplib2/rsplib/deprecated/serverannounce.c A /trunk/rsplib2/rsplib/deprecated/serverannounce.h A /trunk/rsplib2/rsplib/deprecated/utilities.c A /trunk/rsplib2/rsplib/deprecated/utilities.h M /trunk/rsplib2/rsplib/dispatcher.c M /trunk/rsplib2/rsplib/examplepe.c M /trunk/rsplib2/rsplib/examplepu.c M /trunk/rsplib2/rsplib/fork.c M /trunk/rsplib2/rsplib/leaflinkedtreap.c M /trunk/rsplib2/rsplib/loglevel.c M /trunk/rsplib2/rsplib/loglevel.h M /trunk/rsplib2/rsplib/nameserver-example M /trunk/rsplib2/rsplib/nameserver.c M /trunk/rsplib2/rsplib/netutilities.c M /trunk/rsplib2/rsplib/netutilities.h A /trunk/rsplib2/rsplib/poolhandle.c A /trunk/rsplib2/rsplib/poolhandle.h A /trunk/rsplib2/rsplib/poolhandle.o M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/randomizer.c M /trunk/rsplib2/rsplib/randomizer.h M /trunk/rsplib2/rsplib/rserpoolerror.c M /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/rsplib-tags.h M /trunk/rsplib2/rsplib/rsplib.c M /trunk/rsplib2/rsplib/rsplib.h M /trunk/rsplib2/rsplib/rspsession.c M /trunk/rsplib2/rsplib/servertable.c M /trunk/rsplib2/rsplib/servertable.h M /trunk/rsplib2/rsplib/simpleexamplepe.c M /trunk/rsplib2/rsplib/simpleexamplepu.c M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h A /trunk/rsplib2/rsplib/stringutilities.o M /trunk/rsplib2/rsplib/t1.c M /trunk/rsplib2/rsplib/timer.c A /trunk/rsplib2/rsplib/timeutilities.c A /trunk/rsplib2/rsplib/timeutilities.h A /trunk/rsplib2/rsplib/timeutilities.o M /trunk/rsplib2/rsplib/transportaddressblock.c M /trunk/rsplib2/rsplib/transportaddressblock.h *** empty log message *** ------------------------------------------------------------------------ r381 | dreibh | 2004-07-16 17:35:40 +0200 (Fri, 16 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/Makefile.am M /trunk/rsplib2/rsplib/asapinstance.c M /trunk/rsplib2/rsplib/asapinstance.h M /trunk/rsplib2/rsplib/asapmessage.h M /trunk/rsplib2/rsplib/debug.h M /trunk/rsplib2/rsplib/peerlist-template.c M /trunk/rsplib2/rsplib/peerlistmanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h M /trunk/rsplib2/rsplib/poolnamespacemanagement.h M /trunk/rsplib2/rsplib/poolnamespacenode-template.c M /trunk/rsplib2/rsplib/poolnamespacenode-template.h M /trunk/rsplib2/rsplib/poolnode-template.c M /trunk/rsplib2/rsplib/poolnode-template.h A /trunk/rsplib2/rsplib/rserpoolerror.c A /trunk/rsplib2/rsplib/rserpoolerror.h M /trunk/rsplib2/rsplib/serverannounce.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/treaptest/Makefile M /trunk/treaptest/debug.h M /trunk/treaptest/peerlist-template.c M /trunk/treaptest/peerlistmanagement-template.c M /trunk/treaptest/poolnamespacemanagement-basics.c M /trunk/treaptest/poolnamespacemanagement-basics.h M /trunk/treaptest/poolnamespacemanagement-template.c M /trunk/treaptest/poolnamespacemanagement-template.h M /trunk/treaptest/poolnamespacemanagement.h M /trunk/treaptest/poolnamespacenode-template.c M /trunk/treaptest/poolnamespacenode-template.h M /trunk/treaptest/poolnode-template.c M /trunk/treaptest/poolnode-template.h M /trunk/treaptest/regtest-random.h M /trunk/treaptest/regtest-registration.h M /trunk/treaptest/regtest-roundrobin.h M /trunk/treaptest/regtest-update.h M /trunk/treaptest/regtest-weightedrandom.h M /trunk/treaptest/regtest-weightedroundrobin.h M /trunk/treaptest/regtest.cc A /trunk/treaptest/rserpoolerror.c A /trunk/treaptest/rserpoolerror.h M /trunk/treaptest/stringutilities.h M /trunk/treaptest/t3.cc M /trunk/treaptest/t4.cc M /trunk/treaptest/t5.cc M /trunk/treaptest/t6.cc *** empty log message *** ------------------------------------------------------------------------ r379 | dreibh | 2004-07-13 16:23:38 +0200 (Tue, 13 Jul 2004) | 2 lines Changed paths: M /trunk/rsplib2/rsplib/asapcreator.c M /trunk/rsplib2/rsplib/asapmessage.c M /trunk/rsplib2/rsplib/asapmessage.h M /trunk/rsplib2/rsplib/asapparser.c M /trunk/rsplib2/rsplib/netutilities.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c M /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h M /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c M /trunk/rsplib2/rsplib/poolnamespacemanagement.h M /trunk/rsplib2/rsplib/poolnode-template.c A /trunk/rsplib2/rsplib/sockaddrunion.h M /trunk/rsplib2/rsplib/stringutilities.c M /trunk/rsplib2/rsplib/stringutilities.h M /trunk/rsplib2/rsplib/transportaddressblock.h M /trunk/rsplib2/rsplib/utilities.c M /trunk/rsplib2/rsplib/utilities.h *** empty log message *** ------------------------------------------------------------------------ r373 | dreibh | 2004-07-13 11:12:08 +0200 (Tue, 13 Jul 2004) | 2 lines Changed paths: A /trunk/rsplib2 A /trunk/rsplib2/.cvsignore A /trunk/rsplib2/AUTHORS A /trunk/rsplib2/BUGS A /trunk/rsplib2/COPYING A /trunk/rsplib2/ChangeLog A /trunk/rsplib2/INSTALL A /trunk/rsplib2/Makefile.am A /trunk/rsplib2/NEWS A /trunk/rsplib2/README A /trunk/rsplib2/admin A /trunk/rsplib2/admin/.cvsignore A /trunk/rsplib2/admin/ChangeLog A /trunk/rsplib2/admin/Makefile.common A /trunk/rsplib2/admin/am_edit A /trunk/rsplib2/admin/am_edit.py A /trunk/rsplib2/admin/conf.change.pl A /trunk/rsplib2/admin/config.guess A /trunk/rsplib2/admin/config.pl A /trunk/rsplib2/admin/config.sub A /trunk/rsplib2/admin/configure.in.min A /trunk/rsplib2/admin/debianrules A /trunk/rsplib2/admin/depcomp A /trunk/rsplib2/admin/install-sh A /trunk/rsplib2/admin/libtool.m4.in A /trunk/rsplib2/admin/ltcf-c.sh A /trunk/rsplib2/admin/ltcf-cxx.sh A /trunk/rsplib2/admin/ltcf-gcj.sh A /trunk/rsplib2/admin/ltconfig A /trunk/rsplib2/admin/missing A /trunk/rsplib2/admin/mkinstalldirs A /trunk/rsplib2/admin/ylwrap A /trunk/rsplib2/autogen.sh A /trunk/rsplib2/bootstrap A /trunk/rsplib2/configure.in A /trunk/rsplib2/install-sh A /trunk/rsplib2/missing A /trunk/rsplib2/mkinstalldirs A /trunk/rsplib2/rsplib A /trunk/rsplib2/rsplib/.cvsignore A /trunk/rsplib2/rsplib/Makefile.am A /trunk/rsplib2/rsplib/TODO A /trunk/rsplib2/rsplib/asapcache.c A /trunk/rsplib2/rsplib/asapcache.h A /trunk/rsplib2/rsplib/asapcreator.c A /trunk/rsplib2/rsplib/asapcreator.h A /trunk/rsplib2/rsplib/asaperror.c A /trunk/rsplib2/rsplib/asaperror.h A /trunk/rsplib2/rsplib/asapinstance.c A /trunk/rsplib2/rsplib/asapinstance.h A /trunk/rsplib2/rsplib/asapmessage.c A /trunk/rsplib2/rsplib/asapmessage.h A /trunk/rsplib2/rsplib/asapparser.c A /trunk/rsplib2/rsplib/asapparser.h A /trunk/rsplib2/rsplib/binarytree.c A /trunk/rsplib2/rsplib/binarytree.h A /trunk/rsplib2/rsplib/breakdetector.c A /trunk/rsplib2/rsplib/breakdetector.h A /trunk/rsplib2/rsplib/debug A /trunk/rsplib2/rsplib/debug.h A /trunk/rsplib2/rsplib/deprecated A /trunk/rsplib2/rsplib/deprecated/asap.conf A /trunk/rsplib2/rsplib/deprecated/asapconnection.c A /trunk/rsplib2/rsplib/deprecated/asapconnection.h A /trunk/rsplib2/rsplib/deprecated/examplepe2.c A /trunk/rsplib2/rsplib/deprecated/examplepu2.c A /trunk/rsplib2/rsplib/deprecated/pool.c A /trunk/rsplib2/rsplib/deprecated/pool.h A /trunk/rsplib2/rsplib/deprecated/poolelement.c A /trunk/rsplib2/rsplib/deprecated/poolelement.h A /trunk/rsplib2/rsplib/deprecated/poolelementhandle.c A /trunk/rsplib2/rsplib/deprecated/poolelementhandle.h A /trunk/rsplib2/rsplib/deprecated/poolelementidentifier.c A /trunk/rsplib2/rsplib/deprecated/poolelementidentifier.h A /trunk/rsplib2/rsplib/deprecated/poolhandle.c A /trunk/rsplib2/rsplib/deprecated/poolhandle.h A /trunk/rsplib2/rsplib/deprecated/poolnamespace.c A /trunk/rsplib2/rsplib/deprecated/poolnamespace.h A /trunk/rsplib2/rsplib/deprecated/poolpolicy.c A /trunk/rsplib2/rsplib/deprecated/poolpolicy.h A /trunk/rsplib2/rsplib/deprecated/transportaddress.c A /trunk/rsplib2/rsplib/deprecated/transportaddress.h A /trunk/rsplib2/rsplib/dispatcher.c A /trunk/rsplib2/rsplib/dispatcher.h A /trunk/rsplib2/rsplib/doublelinkedringlist.h A /trunk/rsplib2/rsplib/examplepe.c A /trunk/rsplib2/rsplib/examplepu.c A /trunk/rsplib2/rsplib/fork.c A /trunk/rsplib2/rsplib/leaflinkedbinarytree.c A /trunk/rsplib2/rsplib/leaflinkedbinarytree.h A /trunk/rsplib2/rsplib/leaflinkedredblacktree.c A /trunk/rsplib2/rsplib/leaflinkedredblacktree.h A /trunk/rsplib2/rsplib/leaflinkedtreap.c A /trunk/rsplib2/rsplib/leaflinkedtreap.h A /trunk/rsplib2/rsplib/linearlist.c A /trunk/rsplib2/rsplib/linearlist.h A /trunk/rsplib2/rsplib/localaddresses.c A /trunk/rsplib2/rsplib/localaddresses.h A /trunk/rsplib2/rsplib/loglevel.c A /trunk/rsplib2/rsplib/loglevel.h A /trunk/rsplib2/rsplib/messagebuffer.c A /trunk/rsplib2/rsplib/messagebuffer.h A /trunk/rsplib2/rsplib/nameserver-example A /trunk/rsplib2/rsplib/nameserver.c A /trunk/rsplib2/rsplib/netutilities.c A /trunk/rsplib2/rsplib/netutilities.h A /trunk/rsplib2/rsplib/peerlist-template.c A /trunk/rsplib2/rsplib/peerlist-template.h A /trunk/rsplib2/rsplib/peerlistmanagement-template.c A /trunk/rsplib2/rsplib/peerlistmanagement-template.h A /trunk/rsplib2/rsplib/peerlistnode-template.c A /trunk/rsplib2/rsplib/peerlistnode-template.h A /trunk/rsplib2/rsplib/poolelement-example A /trunk/rsplib2/rsplib/poolelementnode-template.c A /trunk/rsplib2/rsplib/poolelementnode-template.h A /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.c A /trunk/rsplib2/rsplib/poolnamespacemanagement-basics.h A /trunk/rsplib2/rsplib/poolnamespacemanagement-template.c A /trunk/rsplib2/rsplib/poolnamespacemanagement-template.h A /trunk/rsplib2/rsplib/poolnamespacemanagement.c A /trunk/rsplib2/rsplib/poolnamespacemanagement.h A /trunk/rsplib2/rsplib/poolnamespacenode-template.c A /trunk/rsplib2/rsplib/poolnamespacenode-template.h A /trunk/rsplib2/rsplib/poolnode-template.c A /trunk/rsplib2/rsplib/poolnode-template.h A /trunk/rsplib2/rsplib/poolpolicy-template.c A /trunk/rsplib2/rsplib/poolpolicy-template.h A /trunk/rsplib2/rsplib/poolpolicysettings.c A /trunk/rsplib2/rsplib/poolpolicysettings.h A /trunk/rsplib2/rsplib/pooluser-example A /trunk/rsplib2/rsplib/randomizer.c A /trunk/rsplib2/rsplib/randomizer.h A /trunk/rsplib2/rsplib/rsplib-tags.h A /trunk/rsplib2/rsplib/rsplib.c A /trunk/rsplib2/rsplib/rsplib.h A /trunk/rsplib2/rsplib/rspsession.c A /trunk/rsplib2/rsplib/serverannounce.c A /trunk/rsplib2/rsplib/serverannounce.h A /trunk/rsplib2/rsplib/servertable.c A /trunk/rsplib2/rsplib/servertable.h A /trunk/rsplib2/rsplib/simpleexamplepe.c A /trunk/rsplib2/rsplib/simpleexamplepu.c A /trunk/rsplib2/rsplib/stringutilities.c A /trunk/rsplib2/rsplib/stringutilities.h A /trunk/rsplib2/rsplib/t1.c A /trunk/rsplib2/rsplib/tagitem.c A /trunk/rsplib2/rsplib/tagitem.h A /trunk/rsplib2/rsplib/tdtypes.h A /trunk/rsplib2/rsplib/threadsafety.c A /trunk/rsplib2/rsplib/threadsafety.h A /trunk/rsplib2/rsplib/timer.c A /trunk/rsplib2/rsplib/timer.h A /trunk/rsplib2/rsplib/transportaddressblock.c A /trunk/rsplib2/rsplib/transportaddressblock.h A /trunk/rsplib2/rsplib/utilities.c A /trunk/rsplib2/rsplib/utilities.h A /trunk/rsplib2/stamp-h.in Initial revision ------------------------------------------------------------------------ rsplib-3.0.1/COPYING0000664000175000017500000010451311777021057010777 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . rsplib-3.0.1/bootstrap0000775000175000017500000000507211777021057011707 00000000000000#! /bin/sh # $Id: bootstrap 2295 2010-05-24 17:32:18Z dreibh $ # -------------------------------------------------------------------------- # # //===// //===== //===// // // //===// # // // // // // // // // // # //===// //===== //===// // // //===<< # // \\ // // // // // // # // \\ =====// // //===== // //===// Version II # # ------------- An Efficient RSerPool Prototype Implementation ------------- # # Copyright (C) 2002-2009 by Thomas Dreibholz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Contact: dreibh@iem.uni-due.de set -x rm -rf admin mkdir admin if [ -e /usr/bin/glibtoolize ] ; then glibtoolize --force elif [ -e /usr/bin/libtoolize ] ; then libtoolize --force elif [ -e /usr/local/bin/libtoolize ] ; then libtoolize --force else echo "ERROR: I cannot find libtoolize or glibtoolize!" exit 1 fi ACLOCALDIR= if [ -e /usr/local/share/aclocal ] ; then ACLOCALDIR=/usr/local/share/aclocal elif [ -e /usr/share/aclocal ] ; then ACLOCALDIR=/usr/share/aclocal else echo >&2 "ERROR: No aclocal directory found!" exit 1 fi if [ ! -e $ACLOCALDIR/pkg.m4 ] ; then echo >&2 "ERROR: pkg.m4 not found in $ACLOCALDIR; install pkg-config first!" exit 1 fi if [ -e /usr/bin/aclocal ] ; then /usr/bin/aclocal -I $ACLOCALDIR elif [ -e /usr/local/bin/aclocal ] ; then /usr/local/bin/aclocal -I $ACLOCALDIR elif [ -e /usr/bin/aclocal-1.10 ] ; then /usr/bin/aclocal-1.10 -I $ACLOCALDIR else echo >&2 "ERROR: No aclocal installation found!" exit 1 fi autoheader if [ -e /usr/bin/automake ] ; then /usr/bin/automake --gnu --add-missing --copy elif [ -e /usr/local/bin/automake ] ; then /usr/local/bin/automake --gnu --add-missing --copy elif [ -e /usr/bin/automake-1.10 ] ; then /usr/bin/automake-1.10 --gnu --add-missing --copy else echo >&2 "ERROR: No automake installation found!" exit 1 fi autoconf