summaryrefslogtreecommitdiff
path: root/net/ns/Makefile
diff options
context:
space:
mode:
authorminskim <minskim>2004-03-08 23:55:23 +0000
committerminskim <minskim>2004-03-08 23:55:23 +0000
commit3997b43a096e3853add95b32a722b0a9ca03fbf6 (patch)
tree875d93c3c2120eed319aa1f393dc550b02c45793 /net/ns/Makefile
parentb6a7c32c9f3a367080239c382e8343e7c3c65a46 (diff)
downloadpkgsrc-3997b43a096e3853add95b32a722b0a9ca03fbf6.tar.gz
Update ns to 2.27 and take maintainership.
Changes: - Changed list-based improvement to allow changing of channels. Previously only a single (static) list of nodes maintained. Now list of nodes maintained for each channel. Maybe extended for mobilenodes with multiple netif (talking to multiple channels) once the multiple netif support is in place. - Added validation test-suite for RNG in ns. - Added modified version of setdest from U. of Michigan. Also added an argument to setdest API that defines the version of setdest being used. - Change the name of dumbPolicy to nullPolicy for consistency with diffserv documentations (suggested by Alexander Sayenko <sayenko@cc.jyu.fi>) - Added list-based improvement to ns-2. Code contributed by Valerie Naoumuv (naoumov@inf.ethz.ch). The improvement involves maintaining a doubly-linked list to organise mobilenodes based on their X-coordinates. When sending a packet only those neighbor nodes are considered who are within a circle corresponding to the carrier-sense threshold energy level, below which a node cannot hear the packet. Improvement on original version where all nodes in topology is considered. considerable gain in run-time performance- goes down by about 4 to 20 times, depending on the size of the topology. The larger the topology and greater the no of nodes, greater the improvement seen with the list-based implementation. Pl see relevant papaer "simulation of large adhoc networks", appeared at MSWiM'03, san diego, USA for details. - Added script <color-event.pl> that takes event/color pairs and colors pkts in nam output files in order to highlight nam events. - Modified ns to build with tcl/tk8.4 and new otcl/tclcl (release pending). - Diffusion documentation added to ns-manual. - Diffusion changes made includes (1)Added tcl example scripts for 2 phase-pull, push, 1 phase-pull and gear (with push and 2pp) scenarios. For gear and other node-position dependent routing in diffusion, need to have a callback to update node positions. since the routing filter (like gear) is init'ed before node positions are assigned gear doesn't get the correct node positions, hence the callback is required. callback would also be reqd to support node movements in diffusion in future. For now start gear filters (in tcl scripts) after node positions are assigned to nodes. This will go away once callbacks are implemented. (2)Added fix suggested by Andreas Koepke <koepke@ee.tu-berlin.de> for overflow problem in lib/main/tools.cc - Added worm model to support simulations of Internet worm attacks. This model supports different abstract levels in simulations. It simulates a detailed sub-network at packet level, and the rest of the Internet with an analytical model (SIR). It supports two worm scanning behaviors: random and local-preferred. - Added event tracing function for simple-mac and 802.11. It was contributed by <a href="mailto:singal@nunki.usc.edu">Sushmita</a> to support wireless animations. - Added directory for nam animations under ns/tcl/edu. Each subdirecotry contains on animation, including short description, simulation script, trace file, and nam trace. These animations are ready to use in classroom. The current three animations are contributed by Sushmita <singal@nunki.usc.edu> as the outcome of her directed research project. - Integrated support for infrastructure mode in 802.11 MAC. The code was was written by Mike Moreton - Fixed bug (reported by Fred Stann) in diffusion3 that caused overflow while reading time ( > 2147 sec). - New module Delayer for introducing delay variation and channel allocation delay. This is useful for modeling the effects of wireless links. Validation tests in "./test-all-links". Code contributed by Andrei Gurtov. - Ported SCTP into ns-2. It was actually ported into ns-2.26 by Armando L. Caro Jr. <acaro@@cis.udel.edu> and his group at PEL, Univ of delaware. The implementation includes a test-suite-sctp and doc for sctp (see chapter on SCTP in ns-manual). - Added APIs for diffusion filters to node-config command. See tcl/ex/diffusion3 for examples. Also changed UIDs in common pkt hdr. It now reflects pkt_num_ as in diffusion message hdr. - Adding ts_resetRTO_ to TCP to control whether or not a timestamp-enabled sender unbacks a backed-off RTO after making a valid RTT measurement from an acknowledged, retransmitted packet. Validation tests are in "./test-all-tcpOptions" in "tcl/test": "./test-all-tcpOptions timeouts_sack2" (with ts_resetRTO_ true) "./test-all-tcpOptions timeouts_sack3" (with ts_resetRTO_ false). The suggestion and initial code for this change are from Andrei Gurtov. Also adding exitFastRetrans_ to TCP, to fix a problem with clean exits from Fast Recovery. Set to false for the old buggy behavior, or set to true for the new good behavior. The default is true. "./test-all-tcpOptions timeouts_reno_noexitFR" shows the old behavior, and: "./test-all-tcpOptions timeouts_reno" shows the fixed new behavior. The problem was that data was sent in response to dup acks even after Fast Recovery was over. From a bug report by Andrei Gurtov. - Improved portability for C++ namespaces (required for gcc-3.2 where the standard C++ libraries like iostream are in namespace stl only). - Added trace support for smac. The "mactype" info stored in simulator is used to trace data as well as mac pkts (smac or 802.11). - Ported diffusion3.2.0 into ns. A lot of changes: all applications re-categorized under gear, ping and rmst. Filters have a separate dir. gradient now replaced with one-and two-phase-pull-filter under filter_core. - Changed the defaults for Agent/TCP/Newreno's newreno_changes1_ and partial_window_deflation_ to "1", to reflect RFC 2582. - Adding avoidReordering_ to DelayLink, set to true to avoid reordering when changing link bandwidth or delay. The code was contributed by Andrei Gurtov, and the validation test is in ./test-all-links in the directory tcl/test. The default is for avoidReordering_ to be false, for no change in past behavior.
Diffstat (limited to 'net/ns/Makefile')
-rw-r--r--net/ns/Makefile31
1 files changed, 20 insertions, 11 deletions
diff --git a/net/ns/Makefile b/net/ns/Makefile
index 4f7ba1cfb0f..44a3aefc3f3 100644
--- a/net/ns/Makefile
+++ b/net/ns/Makefile
@@ -1,29 +1,43 @@
-# $NetBSD: Makefile,v 1.12 2004/03/08 20:27:15 minskim Exp $
+# $NetBSD: Makefile,v 1.13 2004/03/08 23:55:23 minskim Exp $
-DISTNAME= ns-src-2.26
+DISTNAME= ns-src-2.27
PKGNAME= ${DISTNAME:S/-src//}
-PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.isi.edu/nsnam/dist/
-MAINTAINER= tech-pkg@NetBSD.org
+MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://www.isi.edu/nsnam/ns/
COMMENT= The UCB/LBNL Network Simulator Version 2
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
+USE_BUILDLINK3= yes
+USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
-USE_BUILDLINK2= yes
USE_X11= yes
-PTHREAD_OPTS+= require
+PTHREAD_OPTS+= require
# Perl is only needed if you want to run the validation tests.
#USE_PERL5= build
CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}
+CONFIGURE_ARGS+= --with-tcl-ver=8.4
CONFIGURE_ARGS+= --with-tk=${BUILDLINK_PREFIX.tk}
+CONFIGURE_ARGS+= --with-tk-ver=8.4
+CONFIGURE_ARGS+= --with-otcl=${BUILDLINK_PREFIX.tcl-otcl}
CONFIGURE_ARGS+= --with-tclcl=${BUILDLINK_PREFIX.tcl-tclcl}
MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE}
+INSTALLATION_DIRS= bin man/man1
+
+.include "../../devel/tcl-tclcl/buildlink3.mk"
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../lang/tcl-otcl/buildlink3.mk"
+.include "../../net/libpcap/buildlink3.mk"
+.include "../../x11/tk83/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
# Remove a left over executable in the source tarball.
post-extract:
${_PKG_SILENT}${_PKG_DEBUG} \
@@ -33,9 +47,4 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/ns
${INSTALL_DATA} ${WRKSRC}/CHANGES.html ${PREFIX}/share/doc/html/ns
-.include "../../net/libpcap/buildlink2.mk"
-.include "../../devel/tcl-tclcl/buildlink2.mk"
-.include "../../lang/tcl-otcl/buildlink2.mk"
-.include "../../x11/tk83/buildlink2.mk"
-.include "../../mk/pthread.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"