debian/0000775000000000000000000000000012254232001007157 5ustar debian/ns2.lintian-overrides0000664000000000000000000000050511766434267013272 0ustar ns2 binary: binary-without-manpage usr/bin/calcdest ns2 binary: binary-without-manpage usr/bin/dec-tr-stat ns2 binary: binary-without-manpage usr/bin/epa-tr-stat ns2 binary: binary-without-manpage usr/bin/nlanr-tr-stat ns2 binary: binary-without-manpage usr/bin/setdest ns2 binary: binary-without-manpage usr/bin/ucb-tr-stat debian/rules0000775000000000000000000000172112254227061010252 0ustar #!/usr/bin/make -f # -*- makefile -*- export DH_VERBOSE=1 DEB_HOST_MULTIARCH ?= dpkg-architecture -qDEB_HOST_MULTIARCH # in doc dir ,make will be failed. CFLAGS += $(CPPFLAGS) CXXFLAGS += $(CPPFLAGS) %: dh $@ --with autotools_dev override_dh_auto_configure: dh_auto_configure -- --x-libraries=/usr/lib/$(DEB_HOST_MULTIARCH) override_dh_strip: dh_strip --dbg-package=ns2-dbg override_dh_auto_test: #it takes too long time. -dh_auto_test override_dh_installchangelogs: dh_installchangelogs CHANGES.html override_dh_compress: dh_compress -X.tcl -Xvalidate dfsg-orig: cd ..; \ TAR_NAME=`ls ns2_2.*.orig.tar.gz`; \ tar xzf $$TAR_NAME; \ rm ns-2.*/indep-utils/model-gen/crl_to_pcap; \ rm ns-2.*/indep-utils/model-gen/output_format.pdf; \ rm ns-2.*/indep-utils/model-gen/trace_processing.pdf; \ rm ns-2.*/wpan/WPAN_ZBR_pub.pdf; \ chmod a-x ns-2.*/tcl/test/test-sack; \ tar Jcf `echo $$TAR_NAME| sed s/.orig.tar.gz/+dfsg.orig.tar.xz/g` ns-2.*/; \ rm -rf ns-2.* debian/watch0000664000000000000000000000013111766434267010234 0ustar version=3 opts="dversionmangle=s/\+dfsg//" \ http://sf.net/nsnam/ns-src-(2\..*)\.tar\.gz debian/ns2.install0000664000000000000000000000004711766434267011303 0ustar usr/bin/* nse /usr/bin/ nstk /usr/bin/ debian/changelog0000664000000000000000000000636612254231770011060 0ustar ns2 (2.35+dfsg-1ubuntu2) trusty; urgency=medium * Cherrypick 0005-fix-for-multiarch-tcltk.patch from Debian's BTS to fix multiarch Tcl/Tk paths (see: #725079). Thanks to Sergei Golovan. -- Logan Rosen Wed, 18 Dec 2013 00:34:04 -0500 ns2 (2.35+dfsg-1ubuntu1) trusty; urgency=medium * Use autotools-dev to update config.{guess,sub} for new arches. -- Logan Rosen Wed, 18 Dec 2013 00:10:38 -0500 ns2 (2.35+dfsg-1) unstable; urgency=low * New upstream stable release. * add dfsg-orig tag to debian/rules. * add ns2-dbg package. * Fix FTBFS (Closes: #654261, #669431). * Don't compress tcl and validate files (lp: #939306) -- YunQiang Su Sun, 03 Jun 2012 13:59:44 +0800 ns2 (2.35~rc10+dfsg-1) unstable; urgency=low * New upstream RC release. drop ftbfs-kfreebsd-bpf.patch, ns-man-Poison-reverse, accept by upstream. * Install some useful tools in indep-utils. patches/install-indep-utils.diff * Remove an bin file from source: dfsg it. indep-utils/model-gen/crl_to_pcap indep-utils/model-gen/output_format.pdf indep-utils/model-gen/trace_processing.pdf wpan/WPAN_ZBR_pub.pdf * switch to team maintain. * chmod -x tcl/test/test-sack -- YunQiang Su Sat, 29 Oct 2011 21:31:47 +0800 ns2 (2.35~rc9-1) unstable; urgency=low * New upstream release. * drop mac-802_11Ext_missing_cstddef.patch Merged into upstream. -- YunQiang Su Mon, 24 Oct 2011 16:22:36 +0800 ns2 (2.35~RC8-1) unstable; urgency=low * New upstream release. * drop call-constructor-directly.patch, mergered into upstream. * fix FTBFS: expected primary-expression before 'struct' add debian/patches/mac-802_11Ext_missing_cstddef.patch (Closes: #624935). -- YunQiang Su Wed, 10 Aug 2011 14:41:03 +0800 ns2 (2.35~RC6-4) unstable; urgency=low * add DM-Upload-Allowed: yes * update VCS info: go to git.debian.org now. * workaround FTBFS on kfreebsd-* (Closes: #619684) assigned it to libpcap -- YunQiang Su Sat, 16 Apr 2011 14:56:30 +0800 ns2 (2.35~RC6-3) unstable; urgency=low * build nse now add build dep libpcap0.8-dev and patch for moving tclcl's headers * fix FTBFS for gcc 4.5 (Closes: #618105) -- YunQiang Su Mon, 21 Mar 2011 15:56:30 +0800 ns2 (2.35~RC6-2) unstable; urgency=low * depends on tk-dev and tcl-dev instead 8.4 one * depends on libxt-dev now,fixed FTBFS (Closes: #613021) -- YunQiang Su Mon, 28 Feb 2011 00:26:30 +0800 ns2 (2.35~RC6-1) unstable; urgency=low * new upstream version. * bump standard to 3.9.1. -- YunQiang Su Fri, 17 Sep 2010 14:29:37 +0800 ns2 (2.35~RC5-1) unstable; urgency=low * new upstream version * modify descript (Closes: #584642) * add suggestion of ns2 in ns2-examples * add doc-base -- YunQiang Su Wed, 30 Jun 2010 14:33:57 +0800 ns2 (2.35~RC4-1) unstable; urgency=low * New upstream version -- YunQiang Su Wed, 02 Jun 2010 08:52:57 +0800 ns2 (2.35~RC3-1) unstable; urgency=low * Initial release (Closes: #576241) -- YunQiang Su Fri, 02 Apr 2010 08:52:57 +0800 debian/ns2-doc.install0000664000000000000000000000004511766434267012044 0ustar doc/everything.pdf usr/share/doc/ns2 debian/compat0000664000000000000000000000000211766434267010406 0ustar 9 debian/CMakeLists/0000775000000000000000000000000011766434267011207 5ustar debian/CMakeLists/CMakeLists.txt0000664000000000000000000000754311766434267013760 0ustar project(ns) cmake_minimum_required(VERSION 2.6) set(TARNAME ns) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) # program name, version etc set(PACKAGE_VERSION "2.35") set(PACKAGE_NAME "ns") set(PACKAGE_TARNAME "${TARNAME}") set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") set(PACKAGE_BUGREPORT "http://sourceforge.net/projects/nsnam") find_package(PkgConfig REQUIRED) ########################################################################## if(NOT DEFINED BIN_INSTALL_DIR) set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin") endif(NOT DEFINED BIN_INSTALL_DIR) if(NOT DEFINED DATA_INSTALL_DIR) set(DATA_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share") endif(NOT DEFINED DATA_INSTALL_DIR) if(NOT DEFINED MAN_INSTALL_DIR) set(MAN_INSTALL_DIR "${DATA_INSTALL_DIR}/man") endif(NOT DEFINED MAN_INSTALL_DIR) add_definitions(-DHAVE_CONFIG_H) add_definitions(-DCPP_NAMESPACE=std) add_definitions(-DSTL_NAMESPACE=std) INCLUDE(CheckModules) ####################################################################### ## common/ptypes2tcl include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/common/ ) set(ptypes2tcl_SRC common/ptypes2tcl.cc ) add_executable(ptypes2tcl ${ptypes2tcl_SRC}) target_link_libraries(ptypes2tcl) ####################################################################### ### source code files include(SourceFiles) ################################################################ ### ns include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH} ${OTCL_INCLUDE_DIRS} ${TCLCL_INCLUDE_DIRS} ${INCLUDE_SUB_DIR} ) set(ns_SRC common/tclAppInit.cc common/main-monolithic.cc ${OBJ} ) add_executable(ns ${ns_SRC}) target_link_libraries(ns -lnsl -ldl -lm ${X11_LIBRARIES} ${X11_Xext_LIB} ${TCL_LIBRARY} ${TCL_STUB_LIBRARY} ${TK_LIBRARY} ${TK_STUB_LIBRARY} ${OTCL_LIBRARIES} ${TCLCL_LIBRARIES}) install(TARGETS ns RUNTIME DESTINATION ${BIN_INSTALL_DIR}) install(FILES ns.1 DESTINATION ${MAN_INSTALL_DIR}/man1) ####################################################################################### ### nse include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH} ${OTCL_INCLUDE_DIRS} ${TCLCL_INCLUDE_DIRS} ${INCLUDE_SUB_DIR} ${PCAP_INCLUDE_DIRS} ) set(nse_SRC common/tclAppInit.cc common/main-monolithic.cc ${OBJ} ${OBJ_EMULATE_CC} ${OBJ_EMULATE_C} ) add_executable(nse ${nse_SRC}) target_link_libraries(nse -lnsl -ldl -lm ${X11_LIBRARIES} ${X11_Xext_LIB} ${PCAP_LIBRARIES} ${TCL_LIBRARY} ${TCL_STUB_LIBRARY} ${TK_LIBRARY} ${TK_STUB_LIBRARY} ${OTCL_LIBRARIES} ${TCLCL_LIBRARIES}) install(TARGETS nse RUNTIME DESTINATION ${BIN_INSTALL_DIR}) ####################################################################################### ### nstk include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${TCL_INCLUDE_PATH} ${TK_INCLUDE_PATH} ${OTCL_INCLUDE_DIRS} ${TCLCL_INCLUDE_DIRS} ${INCLUDE_SUB_DIR} ) set(nstk_SRC common/tkAppInit.cc ${OBJ} ) add_executable(nstk ${nstk_SRC}) target_link_libraries(nstk ${TCL_LIBRARY} ${TCL_STUB_LIBRARY} ${TK_LIBRARY} ${TK_STUB_LIBRARY} ${OTCL_LIBRARIES} ${TCLCL_LIBRARIES}) install(TARGETS nstk RUNTIME DESTINATION ${BIN_INSTALL_DIR}) ######################################################################################### #### indep-utils add_subdirectory(indep-utils/cmu-scen-gen/setdest) add_subdirectory(indep-utils/webtrace-conv/dec) add_subdirectory(indep-utils/webtrace-conv/epa) add_subdirectory(indep-utils/webtrace-conv/nlanr) add_subdirectory(indep-utils/webtrace-conv/ucb) #========================================================================================= ### test enable_testing() add_test(NAME ns_TEST COMMAND ./validate) debian/CMakeLists/CMakeLists.txt-webtrace-conv-dec0000664000000000000000000000100411766434267017230 0ustar ####################################################################################### ### dec-tr-stat include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${TCL_INCLUDE_PATH} ) set(dec_SRC proxytrace.cc formsquid.cc formtxt.cc my-endian.cc proxytrace2any.cc tr-stat.cc ) add_executable(dec-tr-stat ${dec_SRC}) target_link_libraries(dec-tr-stat ${TCL_LIBRARY} ${TCL_STUB_LIBRARY} -lm) install(TARGETS dec-tr-stat RUNTIME DESTINATION ${BIN_INSTALL_DIR}) debian/CMakeLists/CMakeLists.txt-webtrace-conv-nlanr0000664000000000000000000000070411766434267017615 0ustar ####################################################################################### ### nlanr-tr-stat include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${TCL_INCLUDE_PATH} ) set(nlanr_SRC tr-stat.cc logparse.cc ) add_executable(nlanr-tr-stat ${nlanr_SRC}) target_link_libraries(nlanr-tr-stat ${TCL_LIBRARY} ${TCL_STUB_LIBRARY}) install(TARGETS nlanr-tr-stat RUNTIME DESTINATION ${BIN_INSTALL_DIR}) debian/CMakeLists/config-ns.h.cmake0000664000000000000000000000274111766434267014326 0ustar #ifndef _CONFIG_H_ #define _CONFIG_H_ #cmakedefine PACKAGE_BUGREPORT "${PACKAGE_BUGREPORT}" #cmakedefine PACKAGE_NAME "${PACKAGE_NAME}" #cmakedefine PACKAGE_STRING "${PACKAGE_STRING}" #cmakedefine PACKAGE_TARNAME "${PACKAGE_TARNAME}" #cmakedefine PACKAGE_VERSION "${PACKAGE_VERSION}" #cmakedefine NSPERL_PATH "${PERL_EXECUTABLE}" #cmakedefine NSTCLSH_PATH "${TCL_TCLSH}" #ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED #endif #define RANDOM_RETURN_TYPE long int #cmakedefine SIZEOF_LONG ${SIZEOF_LONG} #cmakedefine HAVE_SOCKLEN_T 1 #cmakedefine HAVE_BCOPY 1 #cmakedefine HAVE_BZERO 1 #cmakedefine HAVE_GETRUSAGE 1 #cmakedefine HAVE_SBRK 1 #cmakedefine HAVE_SNPRINTF 1 #cmakedefine HAVE_STRTOLL 1 #cmakedefine HAVE_STRTOQ 1 #cmakedefine HAVE_ADDR2ASCII 1 #cmakedefine HAVE_FEENABLEEXCEPT 1 #cmakedefine STDC_HEADERS 1 #cmakedefine HAVE_STRING_H 1 #cmakedefine HAVE_STRINGS_H 1 #cmakedefine HAVE_ARPA_INET_H 1 #cmakedefine HAVE_NETINET_IN_H 1 #cmakedefine HAVE_NET_ETHERNET_H 1 #cmakedefine HAVE_FENV_H 1 #cmakedefine HAVE_ETHER_HEADER_STRUCT 1 #cmakedefine HAVE_ETHER_ADDRESS_STRUCT 1 #define TCP_DELAY_BIND_ALL #define NO_TK #define NS_DIFFUSION #define SMAC_NO_SYNC #define USE_SINGLE_ADDRESS_SPACE #define rng_test /* stl */ #ifdef __cplusplus #define HAVE_STL #undef CPP_REQUIRES_NAMESPACE #ifdef CPP_REQUIRES_NAMESPACE #ifndef CPP_NAMESPACE #define CPP_NAMESPACE std #endif using namespace CPP_NAMESPACE; #endif /* CPP_NAMESPACE */ #endif /* __cplusplus */ #endif //_CONFIG_H_ debian/CMakeLists/cmake/0000775000000000000000000000000011766434267012267 5ustar debian/CMakeLists/cmake/CheckModules.cmake0000664000000000000000000000265511766434267015647 0ustar find_package(TCL REQUIRED) find_package(TclStub REQUIRED) find_package(X11 REQUIRED) find_package(PCAP) pkg_check_modules(OTCL REQUIRED otcl) pkg_check_modules(TCLCL REQUIRED tclcl) INCLUDE (CheckFunctionExists) INCLUDE (CheckIncludeFiles) INCLUDE (CheckTypeSize) INCLUDE (CheckSymbolExists) CHECK_INCLUDE_FILES(stdlib.h STDC_HEADERS) CHECK_INCLUDE_FILES(string.h HAVE_STRING_H) CHECK_INCLUDE_FILES(strings.h STRINGS_H) CHECK_INCLUDE_FILES(arpa/inet.h HAVE_ARPA_INET_H) CHECK_INCLUDE_FILES(netinet/in.h HAVE_NETINET_IN_H) CHECK_INCLUDE_FILES(net/ethernet.h HAVE_NET_ETHERNET_H) CHECK_INCLUDE_FILES(fenv.h HAVE_FENV_H) CHECK_TYPE_SIZE("long" SIZEOF_LONG) CHECK_TYPE_SIZE("socklen_t" SOCKLEN_T) CHECK_FUNCTION_EXISTS(bcopy HAVE_BCOPY) CHECK_FUNCTION_EXISTS(bzero HAVE_BZERO) CHECK_FUNCTION_EXISTS(getrusage HAVE_GETRUSAGE) CHECK_FUNCTION_EXISTS(sbrk HAVE_SBRK) CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF) CHECK_FUNCTION_EXISTS(strtoll HAVE_STRTOLL) CHECK_FUNCTION_EXISTS(strtoq HAVE_STRTOQ) CHECK_FUNCTION_EXISTS(addr2ascii HAVE_ADDR2ASCII) CHECK_FUNCTION_EXISTS(feenableexcept HAVE_FEENABLEEXCEPT) SET(CMAKE_EXTRA_INCLUDE_FILES net/ethernet.h) CHECK_TYPE_SIZE("struct ether_header" HAVE_ETHER_HEADER_STRUCT) CHECK_TYPE_SIZE("struct ether_addr" HAVE_ETHER_ADDRESS_STRUCT) SET(CMAKE_EXTRA_INCLUDE_FILES) CHECK_SYMBOL_EXISTS("SIOCGIFHWADDR" net/ethernet.h HAVE_SIOCGIFHWADDR) configure_file(config-ns.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/autoconf.h) debian/CMakeLists/cmake/FindPCAP.cmake0000664000000000000000000000754411766434267014627 0ustar ################################################################### # # Copyright (c) 2006 Frederic Heem, # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in # the documentation and/or other materials provided with the # distribution. # # * Neither the name of the Telsey nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # ################################################################### # - Find pcap # Find the PCAP includes and library # http://www.tcpdump.org/ # # The environment variable PCAPDIR allows to specficy where to find # libpcap in non standard location. # # PCAP_INCLUDE_DIRS - where to find pcap.h, etc. # PCAP_LIBRARIES - List of libraries when using pcap. # PCAP_FOUND - True if pcap found. IF(EXISTS $ENV{PCAPDIR}) FIND_PATH(PCAP_INCLUDE_DIR NAMES pcap/pcap.h pcap.h PATHS $ENV{PCAPDIR} NO_DEFAULT_PATH ) FIND_LIBRARY(PCAP_LIBRARY NAMES pcap PATHS $ENV{PCAPDIR} NO_DEFAULT_PATH ) ELSE(EXISTS $ENV{PCAPDIR}) FIND_PATH(PCAP_INCLUDE_DIR NAMES pcap/pcap.h pcap.h ) FIND_LIBRARY(PCAP_LIBRARY NAMES pcap ) ENDIF(EXISTS $ENV{PCAPDIR}) SET(PCAP_INCLUDE_DIRS ${PCAP_INCLUDE_DIR}) SET(PCAP_LIBRARIES ${PCAP_LIBRARY}) IF(PCAP_INCLUDE_DIRS) MESSAGE(STATUS "Pcap include dirs set to ${PCAP_INCLUDE_DIRS}") ELSE(PCAP_INCLUDE_DIRS) MESSAGE(FATAL " Pcap include dirs cannot be found") ENDIF(PCAP_INCLUDE_DIRS) IF(PCAP_LIBRARIES) MESSAGE(STATUS "Pcap library set to ${PCAP_LIBRARIES}") ELSE(PCAP_LIBRARIES) MESSAGE(FATAL "Pcap library cannot be found") ENDIF(PCAP_LIBRARIES) #Functions INCLUDE(CheckFunctionExists) SET(CMAKE_REQUIRED_INCLUDES ${PCAP_INCLUDE_DIRS}) SET(CMAKE_REQUIRED_LIBRARIES ${PCAP_LIBRARIES}) CHECK_FUNCTION_EXISTS("pcap_breakloop" HAVE_PCAP_BREAKLOOP) CHECK_FUNCTION_EXISTS("pcap_datalink_name_to_val" HAVE_PCAP_DATALINK_NAME_TO_VAL) CHECK_FUNCTION_EXISTS("pcap_datalink_val_to_name" HAVE_PCAP_DATALINK_VAL_TO_NAME) CHECK_FUNCTION_EXISTS("pcap_findalldevs" HAVE_PCAP_FINDALLDEVS) CHECK_FUNCTION_EXISTS("pcap_freecode" HAVE_PCAP_FREECODE) CHECK_FUNCTION_EXISTS("pcap_get_selectable_fd" HAVE_PCAP_GET_SELECTABLE_FD) CHECK_FUNCTION_EXISTS("pcap_lib_version" HAVE_PCAP_LIB_VERSION) CHECK_FUNCTION_EXISTS("pcap_list_datalinks" HAVE_PCAP_LIST_DATALINKS) CHECK_FUNCTION_EXISTS("pcap_open_dead" HAVE_PCAP_OPEN_DEAD) CHECK_FUNCTION_EXISTS("pcap_set_datalink" HAVE_PCAP_SET_DATALINK) #Is pcap found ? IF(PCAP_INCLUDE_DIRS AND PCAP_LIBRARIES) SET( PCAP_FOUND "YES" ) ENDIF(PCAP_INCLUDE_DIRS AND PCAP_LIBRARIES) MARK_AS_ADVANCED( PCAP_LIBRARIES PCAP_INCLUDE_DIRS ) debian/CMakeLists/cmake/SourceFiles.cmake0000664000000000000000000002571211766434267015523 0ustar set(OBJ_EMULATE_CC emulate/net-ip.cc emulate/net.cc emulate/tap.cc emulate/ether.cc emulate/internet.cc emulate/ping_responder.cc emulate/arp.cc emulate/icmp.cc emulate/net-pcap.cc emulate/nat.cc emulate/iptap.cc emulate/tcptap.cc ) set(OBJ_EMULATE_C emulate/inet.c ) set(INCLUDE_SUB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/tcp ${CMAKE_CURRENT_SOURCE_DIR}/sctp ${CMAKE_CURRENT_SOURCE_DIR}/common ${CMAKE_CURRENT_SOURCE_DIR}/link ${CMAKE_CURRENT_SOURCE_DIR}/queue ${CMAKE_CURRENT_SOURCE_DIR}/adc ${CMAKE_CURRENT_SOURCE_DIR}/apps ${CMAKE_CURRENT_SOURCE_DIR}/mac ${CMAKE_CURRENT_SOURCE_DIR}/mobile ${CMAKE_CURRENT_SOURCE_DIR}/trace ${CMAKE_CURRENT_SOURCE_DIR}/routing ${CMAKE_CURRENT_SOURCE_DIR}/tools ${CMAKE_CURRENT_SOURCE_DIR}/classifier ${CMAKE_CURRENT_SOURCE_DIR}/mcast ${CMAKE_CURRENT_SOURCE_DIR}/diffusion3/lib/main ${CMAKE_CURRENT_SOURCE_DIR}/diffusion3/lib ${CMAKE_CURRENT_SOURCE_DIR}/diffusion3/lib/nr ${CMAKE_CURRENT_SOURCE_DIR}/diffusion3/ns ${CMAKE_CURRENT_SOURCE_DIR}/diffusion3/filter_core ${CMAKE_CURRENT_SOURCE_DIR}/asim ${CMAKE_CURRENT_SOURCE_DIR}/qs ${CMAKE_CURRENT_SOURCE_DIR}/diffserv ${CMAKE_CURRENT_SOURCE_DIR}/satellite ${CMAKE_CURRENT_SOURCE_DIR}/wpan ) set(NS_TCL_LIB_STL tcl/lib/ns-diffusion.tcl tcl/delaybox/delaybox.tcl tcl/packmime/packmime.tcl tcl/tmix/tmix.tcl tcl/tmix/tmix_delaybox.tcl ) STRING(REPLACE ";" " " NS_TCL_LIB_STL "${NS_TCL_LIB_STL}") add_custom_command(OUTPUT version.c ns_tcl.cc ptypes.cc COMMAND ${TCL_TCLSH} ${CMAKE_CURRENT_SOURCE_DIR}/bin/string2c.tcl version_string < ${CMAKE_CURRENT_SOURCE_DIR}/VERSION > version.c COMMAND ./ptypes2tcl > ptypes.cc COMMAND ${TCL_TCLSH} ${CMAKE_CURRENT_SOURCE_DIR}/bin/tcl-expand.tcl ${CMAKE_CURRENT_SOURCE_DIR}/tcl/lib/ns-lib.tcl ${NS_TCL_LIB_STL} | tcl2c++ et_ns_lib > ns_tcl.cc DEPENDS ptypes2tcl ) set(OBJ_GEN version.c ns_tcl.cc ptypes.cc ) set(OBJ_COMPAT common/win32.c ) set(OBJ_STL diffusion3/lib/nr/nr.cc diffusion3/lib/dr.cc diffusion3/filters/diffusion/one_phase_pull.cc diffusion3/filters/diffusion/two_phase_pull.cc diffusion3/lib/diffapp.cc diffusion3/ns/diffagent.cc diffusion3/ns/diffrtg.cc diffusion3/ns/difftimer.cc diffusion3/filter_core/filter_core.cc diffusion3/filter_core/iolog.cc diffusion3/filter_core/iostats.cc diffusion3/lib/main/attrs.cc diffusion3/lib/main/events.cc diffusion3/lib/main/iodev.cc diffusion3/lib/main/iohook.cc diffusion3/lib/main/timers.cc diffusion3/lib/main/message.cc diffusion3/lib/main/tools.cc diffusion3/apps/gear_examples/gear_common.cc diffusion3/apps/gear_examples/gear_receiver.cc diffusion3/apps/gear_examples/gear_sender.cc diffusion3/apps/rmst_examples/rmst_sink.cc diffusion3/apps/rmst_examples/rmst_source.cc diffusion3/apps/ping/1pp_ping_sender.cc diffusion3/apps/ping/1pp_ping_receiver.cc diffusion3/apps/ping/2pp_ping_sender.cc diffusion3/apps/ping/2pp_ping_receiver.cc diffusion3/apps/ping/ping_common.cc diffusion3/apps/ping/push_receiver.cc diffusion3/apps/ping/push_sender.cc diffusion3/filters/gear/gear_attr.cc diffusion3/filters/gear/gear.cc diffusion3/filters/gear/gear_tools.cc diffusion3/filters/misc/log.cc diffusion3/filters/misc/srcrt.cc diffusion3/filters/misc/tag.cc diffusion3/filters/rmst/rmst.cc diffusion3/filters/rmst/rmst_filter.cc delaybox/delaybox.cc packmime/packmime_HTTP.cc packmime/packmime_HTTP_rng.cc packmime/packmime_OL.cc packmime/packmime_OL_ranvar.cc packmime/packmime_ranvar.cc tmix/tmix.cc tmix/tmixAgent.cc tmix/tmix_delaybox.cc ) set(OBJ_CC tools/random.cc tools/rng.cc tools/ranvar.cc common/misc.cc common/timer-handler.cc common/scheduler.cc common/object.cc common/packet.cc common/ip.cc routing/route.cc common/connector.cc common/ttl.cc trace/trace.cc trace/trace-ip.cc classifier/classifier.cc classifier/classifier-addr.cc classifier/classifier-hash.cc classifier/classifier-virtual.cc classifier/classifier-mcast.cc classifier/classifier-bst.cc classifier/classifier-mpath.cc mcast/replicator.cc classifier/classifier-mac.cc classifier/classifier-qs.cc classifier/classifier-port.cc src_rtg/classifier-sr.cc src_rtg/sragent.cc src_rtg/hdr_src.cc adc/ump.cc qs/qsagent.cc qs/hdr_qs.cc apps/app.cc apps/telnet.cc tcp/tcplib-telnet.cc tools/trafgen.cc trace/traffictrace.cc tools/pareto.cc tools/expoo.cc tools/cbr_traffic.cc adc/tbf.cc adc/resv.cc adc/sa.cc tcp/saack.cc tools/measuremod.cc adc/estimator.cc adc/adc.cc adc/ms-adc.cc adc/timewindow-est.cc adc/acto-adc.cc adc/pointsample-est.cc adc/salink.cc adc/actp-adc.cc adc/hb-adc.cc adc/expavg-est.cc adc/param-adc.cc adc/null-estimator.cc adc/adaptive-receiver.cc apps/vatrcvr.cc adc/consrcvr.cc common/agent.cc common/message.cc apps/udp.cc common/session-rtp.cc apps/rtp.cc tcp/rtcp.cc common/ivs.cc common/messpass.cc common/tp.cc common/tpm.cc apps/worm.cc tcp/tcp.cc tcp/tcp-sink.cc tcp/tcp-reno.cc tcp/tcp-newreno.cc tcp/tcp-vegas.cc tcp/tcp-rbp.cc tcp/tcp-full.cc tcp/rq.cc baytcp/tcp-full-bay.cc baytcp/ftpc.cc baytcp/ftps.cc tcp/scoreboard.cc tcp/scoreboard-rq.cc tcp/tcp-sack1.cc tcp/tcp-fack.cc tcp/scoreboard1.cc tcp/tcp-linux.cc tcp/linux/ns-linux-util.cc tcp/tcp-asym.cc tcp/tcp-asym-sink.cc tcp/tcp-fs.cc tcp/tcp-asym-fs.cc tcp/tcp-int.cc tcp/chost.cc tcp/tcp-session.cc tcp/nilist.cc sctp/sctp.cc apps/sctp_app1.cc sctp/sctp-timestamp.cc sctp/sctp-hbAfterRto.cc sctp/sctp-multipleFastRtx.cc sctp/sctp-mfrHbAfterRto.cc sctp/sctp-mfrTimestamp.cc sctp/sctp-cmt.cc sctp/sctpDebug.cc dccp/dccp_sb.cc dccp/dccp_opt.cc dccp/dccp_ackv.cc dccp/dccp_packets.cc dccp/dccp.cc dccp/dccp_tcplike.cc dccp/dccp_tfrc.cc tools/integrator.cc tools/queue-monitor.cc tools/flowmon.cc tools/loss-monitor.cc queue/queue.cc queue/drop-tail.cc adc/simple-intserv-sched.cc queue/red.cc queue/semantic-packetqueue.cc queue/semantic-red.cc tcp/ack-recons.cc queue/sfq.cc queue/fq.cc queue/drr.cc queue/srr.cc queue/cbq.cc queue/jobs.cc queue/marker.cc queue/demarker.cc link/hackloss.cc queue/errmodel.cc queue/fec.cc link/delay.cc tcp/snoop.cc gaf/gaf.cc link/dynalink.cc routing/rtProtoDV.cc common/net-interface.cc mcast/ctrMcast.cc mcast/mcast_ctrl.cc mcast/srm.cc common/sessionhelper.cc queue/delaymodel.cc mcast/srm-ssm.cc mcast/srm-topo.cc routing/alloc-address.cc routing/address.cc lib/int.Vec.cc lib/int.RVec.cc lib/dmalloc_support.cc webcache/http.cc webcache/tcp-simple.cc webcache/pagepool.cc webcache/inval-agent.cc webcache/tcpapp.cc webcache/http-aux.cc webcache/mcache.cc webcache/webtraf.cc webcache/webserver.cc webcache/logweb.cc empweb/empweb.cc empweb/empftp.cc realaudio/realaudio.cc mac/lanRouter.cc classifier/filter.cc common/pkt-counter.cc common/Decapsulator.cc common/Encapsulator.cc common/encap.cc mac/channel.cc mac/mac.cc mac/ll.cc mac/mac-802_11.cc mac/mac-802_11Ext.cc mac/mac-802_3.cc mac/mac-tdma.cc mac/smac.cc mobile/mip.cc mobile/mip-reg.cc mobile/gridkeeper.cc mobile/propagation.cc mobile/tworayground.cc mobile/nakagami.cc mobile/antenna.cc mobile/omni-antenna.cc mobile/shadowing.cc mobile/shadowing-vis.cc mobile/dumb-agent.cc common/bi-connector.cc common/node.cc common/mobilenode.cc mac/arp.cc mobile/god.cc mobile/dem.cc mobile/topography.cc mobile/modulation.cc queue/priqueue.cc queue/dsr-priqueue.cc mac/phy.cc mac/wired-phy.cc mac/wireless-phy.cc mac/wireless-phyExt.cc mac/mac-timers.cc trace/cmu-trace.cc mac/varp.cc mac/mac-simple.cc satellite/sat-hdlc.cc dsdv/dsdv.cc dsdv/rtable.cc queue/rtqueue.cc routing/rttable.cc imep/imep.cc imep/dest_queue.cc imep/imep_api.cc imep/imep_rt.cc imep/rxmit_queue.cc imep/imep_timers.cc imep/imep_util.cc imep/imep_io.cc tora/tora.cc tora/tora_api.cc tora/tora_dest.cc tora/tora_io.cc tora/tora_logs.cc tora/tora_neighbor.cc dsr/dsragent.cc dsr/hdr_sr.cc dsr/mobicache.cc dsr/path.cc dsr/requesttable.cc dsr/routecache.cc dsr/add_sr.cc dsr/dsr_proto.cc dsr/flowstruct.cc dsr/linkcache.cc dsr/simplecache.cc dsr/sr_forwarder.cc aodv/aodv_logs.cc aodv/aodv.cc aodv/aodv_rtable.cc aodv/aodv_rqueue.cc aomdv/aomdv_logs.cc aomdv/aomdv.cc aomdv/aomdv_rtable.cc aomdv/aomdv_rqueue.cc puma/puma.cc mdart/mdart_adp.cc mdart/mdart_dht.cc mdart/mdart_ndp.cc mdart/mdart_neighbor.cc mdart/mdart_queue.cc mdart/mdart_table.cc mdart/mdart.cc common/ns-process.cc satellite/satgeometry.cc satellite/sathandoff.cc satellite/satlink.cc satellite/satnode.cc satellite/satposition.cc satellite/satroute.cc satellite/sattrace.cc rap/raplist.cc rap/rap.cc rap/media-app.cc rap/utilities.cc common/fsm.cc tcp/tcp-abs.cc diffusion/diffusion.cc diffusion/diff_rate.cc diffusion/diff_prob.cc diffusion/diff_sink.cc diffusion/flooding.cc diffusion/omni_mcast.cc diffusion/hash_table.cc diffusion/routing_table.cc diffusion/iflist.cc tcp/tfrc.cc tcp/tfrc-sink.cc mobile/energy-model.cc apps/ping.cc tcp/tcp-rfc793edu.cc queue/rio.cc queue/semantic-rio.cc tcp/tcp-sack-rh.cc tcp/scoreboard-rh.cc plm/loss-monitor-plm.cc plm/cbr-traffic-PP.cc linkstate/hdr-ls.cc mpls/classifier-addr-mpls.cc mpls/ldp.cc mpls/mpls-module.cc routing/rtmodule.cc classifier/classifier-hier.cc routing/addr-params.cc nix/hdr_nv.cc nix/classifier-nix.cc nix/nixnode.cc routealgo/rnode.cc routealgo/bfs.cc routealgo/rbitmap.cc routealgo/rlookup.cc routealgo/routealgo.cc nix/nixvec.cc nix/nixroute.cc diffserv/dsred.cc diffserv/dsredq.cc diffserv/dsEdge.cc diffserv/dsCore.cc diffserv/dsPolicy.cc diffserv/ew.cc diffserv/dewp.cc queue/red-pd.cc queue/pi.cc queue/vq.cc queue/rem.cc queue/gk.cc pushback/rate-limit.cc pushback/rate-limit-strategy.cc pushback/ident-tree.cc pushback/agg-spec.cc pushback/logging-data-struct.cc pushback/rate-estimator.cc pushback/pushback-queue.cc pushback/pushback.cc common/parentnode.cc trace/basetrace.cc common/simulator.cc asim/asim.cc common/scheduler-map.cc common/splay-scheduler.cc linkstate/ls.cc linkstate/rtProtoLS.cc pgm/classifier-pgm.cc pgm/pgm-agent.cc pgm/pgm-sender.cc pgm/pgm-receiver.cc mcast/rcvbuf.cc mcast/classifier-lms.cc mcast/lms-agent.cc mcast/lms-receiver.cc mcast/lms-sender.cc queue/delayer.cc xcp/xcpq.cc xcp/xcp.cc xcp/xcp-end-sys.cc wpan/p802_15_4csmaca.cc wpan/p802_15_4fail.cc wpan/p802_15_4hlist.cc wpan/p802_15_4mac.cc wpan/p802_15_4nam.cc wpan/p802_15_4phy.cc wpan/p802_15_4sscs.cc wpan/p802_15_4timer.cc wpan/p802_15_4trace.cc wpan/p802_15_4transac.cc apps/pbc.cc ${OBJ_STL} ) set(OBJ_C tcp/linux/tcp_naivereno.c tcp/linux/src/tcp_cong.c tcp/linux/src/tcp_highspeed.c tcp/linux/src/tcp_bic.c tcp/linux/src/tcp_htcp.c tcp/linux/src/tcp_scalable.c tcp/linux/src/tcp_cubic.c tcp/linux/src/tcp_westwood.c tcp/linux/src/tcp_vegas.c tcp/linux/src/tcp_hybla.c tcp/linux/src/tcp_illinois.c tcp/linux/src/tcp_yeah.c tcp/linux/src/tcp_veno.c tcp/linux/src/tcp_compound.c tcp/linux/src/tcp_lp.c tcp/linux/ns-linux-c.c tcp/linux/ns-linux-param.c ) set(OBJ ${OBJ_C} ${OBJ_CC} ${OBJ_GEN} ${OBJ_COMPAT} ) debian/CMakeLists/CMakeLists.txt-setdest0000664000000000000000000000163011766434267015420 0ustar ####################################################################################### ### setdest add_definitions(-Dstand_alone) add_definitions(-DSTL_NAMESPACE=std) add_definitions(-DCPP_NAMESPACE=std) include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${INCLUDE_SUB_DIR} ) set(setdest_SRC setdest.cc ../../../tools/rng.cc ) add_executable(setdest ${setdest_SRC}) target_link_libraries(setdest -lm) install(TARGETS setdest RUNTIME DESTINATION ${BIN_INSTALL_DIR}) ############################################################################### ### calcdest include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${INCLUDE_SUB_DIR} ) set(calcdest_SRC calcdest.cc ../../../tools/rng.cc ) add_executable(calcdest ${calcdest_SRC}) target_link_libraries(calcdest -lm) install(TARGETS calcdest RUNTIME DESTINATION ${BIN_INSTALL_DIR}) debian/CMakeLists/CMakeLists.txt-webtrace-conv-ucb0000664000000000000000000000071411766434267017255 0ustar ####################################################################################### ### nlanr-tr-stat add_definitions(-DCPP_NAMESPACE=std) include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${TCL_INCLUDE_PATH} ) set(ucb_SRC tr-stat.cc logparse.cc utils.cc ) add_executable(ucb-tr-stat ${ucb_SRC}) target_link_libraries(ucb-tr-stat ${TCL_LIBRARY} ${TCL_STUB_LIBRARY}) install(TARGETS ucb-tr-stat RUNTIME DESTINATION ${BIN_INSTALL_DIR}) debian/CMakeLists/CMakeLists.txt-webtrace-conv-epa0000664000000000000000000000064711766434267017256 0ustar ####################################################################################### ### epa-tr-stat include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${TCL_INCLUDE_PATH} ) set(epa_SRC tr-stat.cc ) add_executable(epa-tr-stat ${epa_SRC}) target_link_libraries(epa-tr-stat ${TCL_LIBRARY} ${TCL_STUB_LIBRARY}) install(TARGETS epa-tr-stat RUNTIME DESTINATION ${BIN_INSTALL_DIR}) debian/nstk.10000664000000000000000000000056411766434267010256 0ustar .\" Process this file with .\" groff -man -Tascii nstk.1 .\" .TH nstk 1 "APRIL 2010" Linux "User Manuals" .SH NAME nstk \- ns with tk support .SH SYNOPSIS .na .B ns [ .I file [ .I arg arg ... ] ] .ad .SH DESCRIPTION .B nstk is same as ns,but with tk GUI support. See ns (1) for more details. .SH AUTHOR YunQiang Su .SH "SEE ALSO" .BR ns (1) nse (1) debian/nse.10000664000000000000000000000061311766434267010057 0ustar .\" Process this file with .\" groff -man -Tascii nstk.1 .\" .TH nse 1 "APRIL 2011" Linux "User Manuals" .SH NAME nse \- ns in emulation mode to emulate real network .SH SYNOPSIS .na .B ns [ .I file [ .I arg arg ... ] ] .ad .SH DESCRIPTION .B nstk is same as ns,but in emulation mode. See ns (1) for more details. .SH AUTHOR YunQiang Su .SH "SEE ALSO" .BR ns (1) nstk (1) debian/copyright0000664000000000000000000001301711766434267011145 0ustar This work was packaged for Debian by: YunQiang Su It was downloaded from http://sourceforge.net/projects/otcl-tclcl/ Upstream Author: The ns Team Copyright: * Copyright (C) Free Software Foundation * Copyright (c) 1987 Regents of the University of California. * Copyright (c) Intel Corporation. All rights reserved. * Copyright (c) @ Regents of the University of California. * Copyright (c) Sun Microsystems, Inc. All rights reserved. * Copyright (c) Xerox Corporation. All rights reserved. * Copyright (C) artofcode LLC, Benicia, CA. All rights reserved. * Copyright (c) Gaeil Ahn. * Copyright (C) Mingzhou Sun. All rights reserved. * Copyright (c) the Protocol Engineering Lab, University of Delaware * Copyright (c) the University of Southern California * Copyright (C) USC/ISI * Copyright (c) International Computer Science Institute * Copyright (c) Marcello Caleffi, , * Copyright (c) Nortel Networks * Copyright (C) Pierre L'Ecuyer (lecuyer@iro.umontreal.ca) * Copyright (c) Regents of the SIGNET lab, University of * Copyright (c) Regents of the University of Southern California. * Copyright (c) Samsung/CUNY * Copyright (C) Stephen Hemminger * Copyright (C) Stephen Hemminger * Copyright (c) The Regents of the University of California. * Copyright (c) Tom Kelly, University of Cambridge * Copyright (c) Trustees of Boston University * Copyright (C) John Heidemann * Copyright (C) John Heidemann * Copyright (c) the Protocol Engineering Lab, U of Delaware * Copyright (c) the Rector and Board of Visitors * Copyright (c) by the Rector and Board of Visitors of the University of Virginia. * Copyright (c) Carnegie Mellon University. All Rights * Copyright (c) Samsung Advanced Institute of Technology and The City University of New York * Copyright (c) Gray Watson * Copyright (c) Old Dominion University * Copyright (c) Statistics Research, Bell Labs, Lucent Technologies and * Copyright (c) The University of North Carolina at Chapel Hill License: The source files in NS contain a number of different copyrights and software licenses from various individuals and institutions. In 2005, the code base was relicensed to a collection of GNU GPL compatible, free software licenses. See http://www.gnu.org/philosophy/license-list.html for a collection of definitions of these terms. Note: See also the COPYRIGHTS file in this directory regarding the copyrights on the ns-2 software. The majority of software licenses use following types of licenses: i) GNU GPL, with specific exception allowing the linking of the GPL covered software with other software licensed with clauses in conflict with the GPL (see below) ii) original Berkeley-style licenses with advertising clauses iii) modified Berkeley-style licenses (w/o advertising clause) Other software licenses (e.g., Apache 2.0) also exist. If you are considering the contribution of code to ns-2, please pick a GNU GPL-compatible software license. If you prefer GNU GPL, please add the specific exception text listed below. If you are considering the use of ns-2, consider that derivative works or redistribution may be governed by the terms of the software licenses used herein, including the GNU GPL and Berkeley-style licenses with advertising clauses. GNU GPL license with specific exception (for use on ns-2 project): ------------------------------------------------------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. 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, visit http://www.gnu.org/licenses/gpl.html The copyright of this module includes the following linking-with-specific-other-licenses addition: In addition, as a special exception, the copyright holders of this module give you permission to combine (via static or dynamic linking) this module with free software programs or libraries that are released under the GNU LGPL and with code included in the standard release of ns-2 under the Apache 2.0 license or under otherwise-compatible licenses with advertising requirements (or modified versions of such code, with unchanged license). You may copy and distribute such a system following the terms of the GNU GPL for this module and the licenses of the other code concerned, provided that you include the source code of that other code when and as the GNU GPL requires distribution of source code. Note that people who make modified versions of this module are not obligated to grant this special exception for their modified versions; it is their choice whether to do so. The GNU General Public License gives permission to release a modified version without this exception; this exception also makes it possible to release a modified version which carries forward this exception. The Debian packaging is: Copyright (C) 2010 YunQiang Su and is licensed under the GPL version 3, see `/usr/share/common-licenses/GPL-3'. debian/source/0000775000000000000000000000000011766434267010510 5ustar debian/source/format0000664000000000000000000000001411766434267011716 0ustar 3.0 (quilt) debian/ns2-examples.install0000664000000000000000000000011211766434267013110 0ustar tcl/* usr/share/doc/ns2/examples/tcl validate usr/share/doc/ns2/examples/ debian/README.Debian0000664000000000000000000000042611766434267011253 0ustar ns2 for Debian --------------------- This is ns2 packaged for Debian. This document contains information specific to the Debian packages of ns2. When packaging,We did not run test. If you want to test it: install ns2-examples cd usr/share/doc/ns2/examples/ ./validate debian/ns2.manpages0000664000000000000000000000004011766434267011421 0ustar ns.1 debian/nstk.1 debian/nse.1 debian/ns2-doc.doc-base0000664000000000000000000000037711766434267012063 0ustar Document: ns2-everything-pdf Title: The ns Manual Author: The VINT Project Abstract: This document (ns Notes and Documentation) provides reference documentation for ns. Section: Programming/ns2 Format: PDF Files: /usr/share/doc/ns2/everything.pdf.gz debian/control0000664000000000000000000001066112254227137010604 0ustar Source: ns2 Section: net Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Network Simulators Team Uploaders: YunQiang Su DM-Upload-Allowed: yes Build-Depends: debhelper (>= 9), quilt (>= 0.46-7~), cmake, tcl-dev, tk-dev, libxext-dev, libxt-dev, xgraph, libpcap0.8-dev, libotcl1-dev, tclcl, libtclcl1-dev (>=1.20-6~), perl (>=5.003), autotools-dev Standards-Version: 3.9.3 Vcs-git: git://git.debian.org/git/pkg-netsim/ns2.git Vcs-Browser: http://git.debian.org/?p=pkg-netsim/ns2.git Homepage: http://www.isi.edu/nsnam/ns/ Package: ns2 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: gnuplot Description: Discrete event simulator targeted at networking research Provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. Ns-2 is written in C++ and an Object oriented version of Tcl called OTcl. . Ns began as a variant of the REAL network simulator in 1989 and has evolved substantially over the past few years. In 1995 ns development was supported by DARPA through the VINT project at LBL, Xerox PARC, UCB, and USC/ISI. Currently ns development is support through DARPA with SAMAN and through NSF with CONSER, both in collaboration with other researchers including ACIRI. Ns has always included substantal contributions from other researchers, including wireless code from the UCB Daedelus and CMU Monarch projects and Sun Microsystems. Package: ns2-dbg Architecture: any Priority: extra Section: debug Depends: ns2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: debug symbols of ns2 Provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. Ns-2 is written in C++ and an Object oriented version of Tcl called OTcl. . Ns began as a variant of the REAL network simulator in 1989 and has evolved substantially over the past few years. In 1995 ns development was supported by DARPA through the VINT project at LBL, Xerox PARC, UCB, and USC/ISI. Currently ns development is support through DARPA with SAMAN and through NSF with CONSER, both in collaboration with other researchers including ACIRI. Ns has always included substantal contributions from other researchers, including wireless code from the UCB Daedelus and CMU Monarch projects and Sun Microsystems. . This package contains debug symbols which can be used by gdb. Package: ns2-doc Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Section: doc Description: docs of ns2 Provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. Ns-2 is written in C++ and an Object oriented version of Tcl called OTcl. . Ns began as a variant of the REAL network simulator in 1989 and has evolved substantially over the past few years. In 1995 ns development was supported by DARPA through the VINT project at LBL, Xerox PARC, UCB, and USC/ISI. Currently ns development is support through DARPA with SAMAN and through NSF with CONSER, both in collaboration with other researchers including ACIRI. Ns has always included substantal contributions from other researchers, including wireless code from the UCB Daedelus and CMU Monarch projects and Sun Microsystems. . This package contains docs of ns2 Package: ns2-examples Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: ns2 Description: examples of ns2 Provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks. Ns-2 is written in C++ and an Object oriented version of Tcl called OTcl. . Ns began as a variant of the REAL network simulator in 1989 and has evolved substantially over the past few years. In 1995 ns development was supported by DARPA through the VINT project at LBL, Xerox PARC, UCB, and USC/ISI. Currently ns development is support through DARPA with SAMAN and through NSF with CONSER, both in collaboration with other researchers including ACIRI. Ns has always included substantal contributions from other researchers, including wireless code from the UCB Daedelus and CMU Monarch projects and Sun Microsystems. . This package contains examples of ns2 debian/docs0000664000000000000000000000004311766434267010060 0ustar README release_steps.txt TODO.html debian/patches/0000775000000000000000000000000012254231711010615 5ustar debian/patches/0002-tclcl-header-move.patch.patch0000664000000000000000000000645511766434267016642 0ustar From: YunQiang Su Date: Fri, 15 Jun 2012 03:01:12 +0800 Subject: tclcl-header-move.patch --- Makefile.in | 2 +- configure | 3 ++- indep-utils/cmu-scen-gen/setdest/Makefile.in | 2 +- packmime/packmime_OL.h | 2 +- tools/queue-monitor.h | 14 -------------- 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/Makefile.in b/Makefile.in index f53d78a..55800ee 100644 --- a/Makefile.in +++ b/Makefile.in @@ -542,7 +542,7 @@ common/ptypes2tcl: common/ptypes2tcl.o common/ptypes2tcl.o: common/ptypes2tcl.cc common/packet.h dirs: - for d in $(DESTDIR)$(MANDEST)/man1; do \ + for d in $(DESTDIR)$(MANDEST)/man1 $(DESTDIR)$(BINDEST); do \ if [ ! -d $$d ]; then \ mkdir -p $$d ;\ fi;\ diff --git a/configure b/configure index 9031812..2429fad 100755 --- a/configure +++ b/configure @@ -6650,7 +6650,8 @@ TCLCL_H_PLACES="\ /import/Tcl/include \ /usr/local/include \ /usr/contrib/include \ - /usr/include" + /usr/include \ + /usr/include/tclcl" TCLCL_H_PLACES_D="$d \ $d/include" TCLCL_LIB_PLACES="\ diff --git a/indep-utils/cmu-scen-gen/setdest/Makefile.in b/indep-utils/cmu-scen-gen/setdest/Makefile.in index 21f75c2..b69aa7d 100644 --- a/indep-utils/cmu-scen-gen/setdest/Makefile.in +++ b/indep-utils/cmu-scen-gen/setdest/Makefile.in @@ -81,7 +81,7 @@ setbox: setbox.o $(CCX) -o setbox $@.o $(LDFLAGS) $(CFLAGS) $(LIBS) clean: - @rm -f setdest setbox *.o *.core + @rm -f setdest calcdest setbox *.o *.core .SUFFIXES: .cc diff --git a/packmime/packmime_OL.h b/packmime/packmime_OL.h index 59dce30..d4bc037 100644 --- a/packmime/packmime_OL.h +++ b/packmime/packmime_OL.h @@ -73,7 +73,7 @@ class PackMimeOpenLoop : public TrafficGenerator { void init(); int size_; int seqno_; - int64_t maxpkts_; + int maxpkts_; // statistics objects RandomVariable* pm_pac_ia_; diff --git a/tools/queue-monitor.h b/tools/queue-monitor.h index 789c8db..aabb5e3 100644 --- a/tools/queue-monitor.h +++ b/tools/queue-monitor.h @@ -100,17 +100,10 @@ public: int size() const { return (size_); } int pkts() const { return (pkts_); } -#if defined(HAVE_INT64) - int64_t parrivals() const { return (parrivals_); } - int64_t barrivals() const { return (barrivals_); } - int64_t pdepartures() const { return (pdepartures_); } - int64_t bdepartures() const { return (bdepartures_); } -#else /* no 64-bit integer */ int parrivals() const { return (parrivals_); } int barrivals() const { return (barrivals_); } int pdepartures() const { return (pdepartures_); } int bdepartures() const { return (bdepartures_); } -#endif int pdrops() const { return (pdrops_); } int pmarks() const { return (pmarks_); } int bdrops() const { return (bdrops_); } @@ -136,17 +129,10 @@ protected: int size_; // current queue size (bytes) int pkts_; // current queue size (packets) // aggregate counters bytes/packets -#if defined(HAVE_INT64) - int64_t parrivals_; - int64_t barrivals_; - int64_t pdepartures_; - int64_t bdepartures_; -#else /* no 64-bit integer */ int parrivals_; int barrivals_; int pdepartures_; int bdepartures_; -#endif int pdrops_; int pmarks_; int bdrops_; -- debian/patches/0001-install-indep-utils.diff.patch0000664000000000000000000000076711766434267017060 0ustar From: YunQiang Su Date: Fri, 15 Jun 2012 03:01:12 +0800 Subject: install-indep-utils.diff --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 2e6ff5f..f53d78a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -549,7 +549,7 @@ dirs: done -install: dirs force install-ns install-man +install: dirs force install-ns install-man install-recursive install-ns: force $(INSTALL) -m 755 ns $(DESTDIR)$(BINDEST) -- debian/patches/series0000664000000000000000000000026212254231711012032 0ustar 0001-install-indep-utils.diff.patch 0002-tclcl-header-move.patch.patch 0003-fix-gcc-4.7-ftbfs.patch.patch 0004-correct-paths-in-examples.patch 0005-fix-for-multiarch-tcltk.patch debian/patches/0005-fix-for-multiarch-tcltk.patch0000664000000000000000000000200212254231664016700 0ustar --- a/conf/configure.in.tcl +++ b/conf/configure.in.tcl @@ -199,6 +199,7 @@ $x_libs \ /usr/lib64 \ /usr/lib \ + /usr/lib/$DEB_HOST_MULTIARCH \ " dnl Decide which set of .tcl library files to use --- a/conf/configure.in.tk +++ b/conf/configure.in.tk @@ -163,7 +163,9 @@ $x_libs/tk \ $x_libs \ /usr/lib64 \ - /usr/lib" + /usr/lib \ + /usr/lib/$DEB_HOST_MULTIARCH \ + " NS_BEGIN_PACKAGE(tk) NS_CHECK_HEADER_PATH(tk.h,$TK_H_PLACES,$d,$TK_H_PLACES_D,V_INCLUDE_TK,tk) --- a/configure +++ b/configure @@ -5641,6 +5641,7 @@ $x_libs \ /usr/lib64 \ /usr/lib \ + /usr/lib/$DEB_HOST_MULTIARCH \ " @@ -6208,7 +6209,9 @@ $x_libs/tk \ $x_libs \ /usr/lib64 \ - /usr/lib" + /usr/lib \ + /usr/lib/$DEB_HOST_MULTIARCH \ + " NS_PACKAGE_tk_UNDERWAY=false debian/patches/0003-fix-gcc-4.7-ftbfs.patch.patch0000664000000000000000000000121411766434267016264 0ustar From: YunQiang Su Date: Fri, 15 Jun 2012 03:01:12 +0800 Subject: fix-gcc-4.7-ftbfs.patch --- linkstate/ls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkstate/ls.h b/linkstate/ls.h index 5a7800a..ba91c3d 100644 --- a/linkstate/ls.h +++ b/linkstate/ls.h @@ -134,7 +134,7 @@ public: return ib.second ? ib.first : baseMap::end(); } - void eraseAll() { erase(baseMap::begin(), baseMap::end()); } + void eraseAll() { baseMap::erase(baseMap::begin(), baseMap::end()); } T* findPtr(Key key) { iterator it = baseMap::find(key); return (it == baseMap::end()) ? (T *)NULL : &((*it).second); -- debian/patches/0004-correct-paths-in-examples.patch0000664000000000000000000000575211766434267017250 0ustar From: Aron Xu Date: Fri, 15 Jun 2012 03:11:02 +0800 Subject: correct paths in examples --- tcl/ex/asym/asym-test-2.tcl | 2 +- tcl/ex/tcp-fs/drop.awk | 2 +- tcl/ex/tcp-fs/inst-thruput.awk | 2 +- tcl/ex/tcp-fs/process.awk | 2 +- tcl/ex/tcp-fs/resptime.awk | 2 +- tcl/ex/tcp-fs/run-fs-asym.tcl | 2 +- tcl/ex/tcp-fs/run.tcl | 2 +- tcl/ex/tcp-fs/thruput.awk | 2 +- tcl/session/scaling-tree.tcl | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tcl/ex/asym/asym-test-2.tcl b/tcl/ex/asym/asym-test-2.tcl index 9db1928..912b42b 100755 --- a/tcl/ex/asym/asym-test-2.tcl +++ b/tcl/ex/asym/asym-test-2.tcl @@ -1,4 +1,4 @@ -#!../../../../ns +#!/usr/bin/ns #source ../../../lan/ns-lan.tcl source ../../../ex/asym/util.tcl diff --git a/tcl/ex/tcp-fs/drop.awk b/tcl/ex/tcp-fs/drop.awk index 6dbbc11..3625993 100755 --- a/tcl/ex/tcp-fs/drop.awk +++ b/tcl/ex/tcp-fs/drop.awk @@ -1,4 +1,4 @@ -#!/usr/local/bin/gawk -f +#!/usr/bin/gawk -f BEGIN { fsDrops = 0; otherDrops = 0; diff --git a/tcl/ex/tcp-fs/inst-thruput.awk b/tcl/ex/tcp-fs/inst-thruput.awk index b26f626..ae081ae 100755 --- a/tcl/ex/tcp-fs/inst-thruput.awk +++ b/tcl/ex/tcp-fs/inst-thruput.awk @@ -1,4 +1,4 @@ -#!/usr/local/bin/gawk -f +#!/usr/bin/gawk -f { time = $2; saddr = $4; diff --git a/tcl/ex/tcp-fs/process.awk b/tcl/ex/tcp-fs/process.awk index 48ce788..825bd4f 100755 --- a/tcl/ex/tcp-fs/process.awk +++ b/tcl/ex/tcp-fs/process.awk @@ -1,4 +1,4 @@ -#!/usr/local/bin/gawk -f +#!/usr/bin/gawk -f BEGIN { erriter = -1; } diff --git a/tcl/ex/tcp-fs/resptime.awk b/tcl/ex/tcp-fs/resptime.awk index 39b74b9..cc4178b 100755 --- a/tcl/ex/tcp-fs/resptime.awk +++ b/tcl/ex/tcp-fs/resptime.awk @@ -1,4 +1,4 @@ -#!/usr/local/bin/gawk -f +#!/usr/bin/gawk -f { if (NR > 1) sum += ($3 - $2); diff --git a/tcl/ex/tcp-fs/run-fs-asym.tcl b/tcl/ex/tcp-fs/run-fs-asym.tcl index aefe248..d9530c0 100755 --- a/tcl/ex/tcp-fs/run-fs-asym.tcl +++ b/tcl/ex/tcp-fs/run-fs-asym.tcl @@ -1,4 +1,4 @@ -#! /usr/sww/bin/tclsh +#! /usr/bin/tclsh set burstsize 30 set firstburstsize 0 diff --git a/tcl/ex/tcp-fs/run.tcl b/tcl/ex/tcp-fs/run.tcl index d0a7e1c..791447c 100755 --- a/tcl/ex/tcp-fs/run.tcl +++ b/tcl/ex/tcp-fs/run.tcl @@ -1,4 +1,4 @@ -#! /usr/local/bin/tclsh +#! /usr/bin/tclsh #set pdrop_opt {-null -null "-recn -rdrop" "-pdrop" "-recn -rdrop -pdrop"} #set tcptype_opt {-fack -fackfs -fackfs -fackfs -fackfs} diff --git a/tcl/ex/tcp-fs/thruput.awk b/tcl/ex/tcp-fs/thruput.awk index 79c8e4e..e8e7911 100755 --- a/tcl/ex/tcp-fs/thruput.awk +++ b/tcl/ex/tcp-fs/thruput.awk @@ -1,4 +1,4 @@ -#!/usr/local/bin/gawk -f +#!/usr/bin/gawk -f BEGIN { s = ""; } diff --git a/tcl/session/scaling-tree.tcl b/tcl/session/scaling-tree.tcl index c8c4931..310ded1 100755 --- a/tcl/session/scaling-tree.tcl +++ b/tcl/session/scaling-tree.tcl @@ -1,4 +1,4 @@ -#! ../../ns +#!/usr/bin/ns source scaling-defaults.tcl # Usage tree.tcl -rand 1.0 -det 0.05 -seed -size $max >! tmp.dat --