<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Erlend&#039;s Lookout Post</title>
	<atom:link href="http://erl1.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://erl1.wordpress.com</link>
	<description>Concerning ns-2, Ubuntu and other stuff.</description>
	<lastBuildDate>Mon, 30 Jan 2012 16:29:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='erl1.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/24258d2244b4e83990b0caaf5e322d48?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Erlend&#039;s Lookout Post</title>
		<link>http://erl1.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://erl1.wordpress.com/osd.xml" title="Erlend&#039;s Lookout Post" />
	<atom:link rel='hub' href='http://erl1.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Using TCP with ns-2</title>
		<link>http://erl1.wordpress.com/2012/01/17/using-tcp-with-ns-2/</link>
		<comments>http://erl1.wordpress.com/2012/01/17/using-tcp-with-ns-2/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 14:16:28 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[ns-2]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=320</guid>
		<description><![CDATA[Having experimented a bit with TCP over MANETs in ns-2, I&#8217;ve made some learning points. I try to distillate these below. Firstly, ns-2 has both one-way and two-way implementations of TCP to be employed. The two-way TCP only implements the Reno congestion avoidance algorithm, but on the other hand provides full establishment and tear-down procedures. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=320&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having experimented a bit with TCP over MANETs in ns-2, I&#8217;ve made some learning points. I try to distillate these below.</p>
<p>Firstly, ns-2 has both one-way and two-way implementations of TCP to be employed. The two-way TCP only implements the Reno congestion avoidance algorithm, but on the other hand provides full establishment and tear-down procedures. The one-way TCP with a TCP sink as the destination can be used with several congestion avoidance implementations. Among these are Tahoe, Reno, Newreno, Vegas and Linux. I have experimented mostly with Tahoe, Reno and Newreno. Tahoe is the first implementation of TCP&#8217;s congestion control. The difference between Tahoe and Reno is that Reno implements fast retransmit and recovery upon receiving three duplicate ACKs. The difference between Reno and Newreno is that Newreno allows new retransmissions during the fast recovery phase, to keep the transmit window full.</p>
<p>TCP can be used by the FTP agent as follows:<br />
<code>set tcp(0) [new Agent/TCP/Newreno]<br />
set sink(0) [new Agent/TCPSink]<br />
set ftp(0) [new Application/FTP]<br />
$sink(0) listen<br />
$ns_ attach-agent $node_(0) $tcp(0)<br />
$ns_ attach-agent $node_(1) $sink(0)<br />
$ns_ connect $tcp(0) $sink(0)<br />
$ftp(0) set packetSize_ 1024<br />
$ftp(0) set random_ 1<br />
$ftp(0) attach-agent $tcp(0)<br />
$ns_ at $opt(ftpstart) "$ftp(0) start"</code></p>
<p>Note that the default receiver window is set at 20 packets, which can limit the throughput if the path has long transmission delay. The window can be set like this:<br />
<code>Agent/TCP set window_ 200 ;# max bound on window size</code><br />
If flow control is unwanted, the window size can be set very high. However, if it is set too high, the default value of 20 will be used. Be aware!</p>
<p>Another discovery is that, using a propagation model with bit errors, link layer notification may render the recovery improvements of Reno and Newreno unused in case no other paths to the destination exist. When the link is taken down because of LLN, the (proactive) routing protocol must reestablish a symmetrical link. In the meantime, TCP retransmissions are denied because of a lack of route, with the consequence that fast recovery is botched.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/320/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/320/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=320&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2012/01/17/using-tcp-with-ns-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Using ns-2 with Eclipse</title>
		<link>http://erl1.wordpress.com/2012/01/11/using-ns-2-with-eclipse/</link>
		<comments>http://erl1.wordpress.com/2012/01/11/using-ns-2-with-eclipse/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 09:57:37 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[ns-2]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=128</guid>
		<description><![CDATA[Using Eclipse to debug ns-2 c++ code is very useful. Karthik Sankar has made a very good walkthrough for setting this up: http://blog.karthiksankar.com/ns2-eclipse/ However, I encountered some problems when following the walkthrough. Therefore, I repeat the walkthrough with the needed changes here. This solution should work with newer versions of ns-2 (i.e. 31-35) and Eclipse [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=128&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using Eclipse to debug ns-2 c++ code is very useful. Karthik Sankar has made a very good walkthrough for setting this up: <a href="http://blog.karthiksankar.com/ns2-eclipse/">http://blog.karthiksankar.com/ns2-eclipse/</a> However, I encountered some problems when following the walkthrough. Therefore, I repeat the walkthrough with the needed changes here. This solution should work with newer versions of ns-2 (i.e. 31-35) and Eclipse Indigo in Linux.</p>
<p><strong>Setting up Eclipse:</strong><br />
Download Eclipse SDK<br />
Extract the SDK to a folder<br />
Open Eclipse<br />
Go to Help -&gt; Install New Software. In the Work With bar type this:</p>
<p>http://download.eclipse.org/tools/cdt/releases/galileo</p>
<p>Choose CDT Main Features and CDT Optional Features. Install them.<br />
CDT stands for “C/C++ Development Tooling”<br />
If you do not have a working internet connection in the system you have installed Eclipse, instead of steps 4 and 5, download the CDT from the above mentioned site. Then move to Install New Software (see step 4) -&gt; Add and add the archive downloaded.</p>
<p><strong>Installing NS-2:</strong><br />
Download NS-2<br />
Extract NS-2 to a folder, i.e. /home/username/ns-allinone-2.34<br />
Edit Makefile:<br />
Open &#8220;&#8230;/ns-allinone-2.34/ns-2.34/Makefile.in&#8221; and<br />
Add -g to the line CCOPT = @V_CCOPT@ as follows<br />
<code>CCOPT = @V_CCOPT@ <strong>-g</strong></code><br />
Add -DNDEBUG -DDEBUG to the end of the following line:<br />
<code>DEFINE = -DTCP_DELAY_BIND_ALL -DNO_TK @V_DEFINE@ @V_DEFINES@ @DEFS@-DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=@CPP_NAMESPACE@-DUSE_SINGLE_ADDRESS_SPACE -Drng_test <strong>-DNDEBUG -DDEBUG</strong></code><br />
Navigate to …/ns-allinone-2.34/ns-2.34 and run &#8220;./configure&#8221;<br />
Navigate to the NS-2 folder using terminal and type ./install<br />
Also, follow the instructions are displayed at the end of a successful installation. These instructions are to modify the PATH variable and other environment variables as needed.<br />
You may encounter compilation troubles, due to the DEBUG flag being enabled. My experience was that several printf statements needed to be disabled (commented out):<br />
mobile/shadowing-vis.cc line 293<br />
aodv/aodv.cc line 210<br />
aomdv/aomdv_rtable.cc line 186<br />
aomdv/aomdv.cc line 283</p>
<p><strong>Adding NS-2 as a Project in Eclipse:</strong><br />
Open Eclipse<br />
Set the workspace as the ns installation path( /home/username/ns-allinone-2.34 ) by selecting File -&gt; Switch Workspace<br />
Choose File -&gt; New -&gt; Project -&gt; C++ Project<br />
<em>Select Project Type as Makefile Project -&gt; Empty C++ Project.</em><br />
Toolchains: Linux GCC<br />
Enter Project Name as ns-2.34<br />
<del datetime="2012-01-11T09:39:33+00:00">Uncheck &#8220;Use default location&#8221; then browse to the directory NS-2 source directory ( …/ns-allione-2.34/ns-2.34 )</del><br />
In Eclipse Indigo, you may not be allowed to create a new project in the existing ns-2.34 subfolder if you uncheck the &#8220;Use default location&#8221; checkbox. You will not need to, anyway, if you have chosen the parent folder as workspace. In this case, Eclipse will only warn you that you are creating a project in a directory which already exists.<br />
Select &#8220;Next&#8221; and &#8220;Finish&#8221;.<br />
From the workspace, Selecting the NS-2 Project and choosing Project -&gt; Build All should not give Error.<br />
Running the project must open the console with the NS-2 prompt, %</p>
<p><strong>Setting Debug Configuration:</strong><br />
Select Run -&gt; Debug Configurations<br />
Choose C/C++ Application. Type in any name.<br />
Under the Main tab, Choose the following:<br />
Project as ns-2.34.<br />
C/C++ Application as ns. (Search Project and Choose this)<br />
Under the Debugger tab, choose GDB Debugger. Uncheck the &#8220;Stop on startup at&#8221; option.<br />
Apply and Debug.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/128/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/128/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/128/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=128&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2012/01/11/using-ns-2-with-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing ns-2.34 on Ubuntu 11.10 Oneiric Ocelot</title>
		<link>http://erl1.wordpress.com/2011/10/14/installing-ns-2-34-on-ubuntu-11-10-oneiric-ocelot/</link>
		<comments>http://erl1.wordpress.com/2011/10/14/installing-ns-2-34-on-ubuntu-11-10-oneiric-ocelot/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 12:25:15 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[ns-2]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=300</guid>
		<description><![CDATA[This is almost identical to the way ns-2.34 is installed on Ubuntu 11.04, except for the lines in bold face: Install the development files for X Windows plus the g++ compiler: sudo apt-get install xorg-dev g++ xgraph Fix the error in the linking of otcl by editing line 6304 of otcl-1.13/configure so that it reads [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=300&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is almost identical to <a href="http://erl1.wordpress.com/2011/05/12/installing-ns-2-34-on-ubuntu-11-04/">the way ns-2.34 is installed on Ubuntu 11.04</a>, except for the lines in bold face:</p>
<p>Install the development files for X Windows plus the g++ compiler:<br />
<code>sudo apt-get install xorg-dev g++ xgraph</code></p>
<p>Fix the error in the linking of otcl by editing line 6304 of <em>otcl-1.13/configure</em> so that it reads<br />
<code>SHLIB_LD="gcc -shared"</code><br />
instead of<br />
<code>SHLIB_LD="ld -shared"</code></p>
<p>Then, edit the file ns-2.34/tools/ranvar.cc and change the line 219 from<br />
<code>return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);</code><br />
to<br />
<code>return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);</code></p>
<p>Next, change the lines 183 and 185 in file ns-2.34/mobile/nakagami.cc to read<br />
<code>resultPower = ErlangRandomVariable(Pr/m, int_m).value();</code><br />
and<br />
<code>resultPower = GammaRandomVariable(m, Pr/m).value();</code></p>
<p><strong>Add a line after line 64 in ns-2.34/mac/mac-802_11Ext.h to read:<br />
<code>#include &lt;stddef.h&gt;</code></strong></p>
<p>Now the code will compile if you run <code>./install</code>. However, you may not be able to run the ns executable. If you get an error stating that there has been a buffer overflow <code>*** buffer overflow detected ***: ./ns terminated</code> including a backtrace, you need to do the following to make it work:</p>
<p>Install gcc-4.4 and g++-4.4 including dependencies using the code below:<br />
<code>$ sudo apt-get install gcc-4.4 g++-4.4</code></p>
<p><strong>Change the line 270 in tcl8.4.18/unix/Makefile.in that reads<br />
<code>CC			= @CC@</code><br />
so it uses gcc version 4.4:<br />
<code>CC			= gcc-4.4</code></strong></p>
<p>Finally, run <code>./install</code> from the ns-allinone-2.34 top folder again.</p>
<p>P.S. If you are moving and renaming ns-2 folders as time goes by, check the tip <a href="http://erl1.wordpress.com/2009/12/10/renaming-the-ns-2-folder/">here</a> on a potential problem with tk.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/300/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/300/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/300/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=300&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/10/14/installing-ns-2-34-on-ubuntu-11-10-oneiric-ocelot/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Switch Between GDM, LightDM Or KDM In Ubuntu</title>
		<link>http://erl1.wordpress.com/2011/10/14/how-to-switch-between-gdm-lightdm-or-kdm-in-ubuntu/</link>
		<comments>http://erl1.wordpress.com/2011/10/14/how-to-switch-between-gdm-lightdm-or-kdm-in-ubuntu/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 08:57:36 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=291</guid>
		<description><![CDATA[From http://www.webupd8.org/2011/07/how-to-switch-between-gdm-lightdm-or.html First, make sure you have the GDM display manager installed on your computer. LightDM is default but let&#8217;s say you want to switch to GDM &#8211; to do this, run the command below in a terminal: $ sudo dpkg-reconfigure gdm Select the display manager you want to use by default and hit enter. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=291&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.webupd8.org/2011/07/how-to-switch-between-gdm-lightdm-or.html">http://www.webupd8.org/2011/07/how-to-switch-between-gdm-lightdm-or.html</a></p>
<p>First, make sure you have the GDM display manager installed on your computer. LightDM is default but let&#8217;s say you want to switch to GDM &#8211; to do this, run the command below in a terminal:</p>
<p><code>$ sudo dpkg-reconfigure gdm</code></p>
<p>Select the display manager you want to use by default and hit enter. <strong>Then, restart your computer.</strong></p>
<p>If GDM is installed, you can run the same command (&#8220;sudo dpkg-reconfigure gdm&#8221;) to switch to any display manager, be it LightDM, KDM, Slim, GDM and so on. If GDM is not installed, replace &#8220;gdm&#8221; in the command above with one of the installed display managers (example: &#8220;sudo dpkg-reconfigure lightdm&#8221;).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/291/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=291&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/10/14/how-to-switch-between-gdm-lightdm-or-kdm-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Resize windows in Gnome/Metacity easier</title>
		<link>http://erl1.wordpress.com/2011/09/07/resize-windows-in-gnomemetacity-easier/</link>
		<comments>http://erl1.wordpress.com/2011/09/07/resize-windows-in-gnomemetacity-easier/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 06:54:52 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=289</guid>
		<description><![CDATA[If you have problems resizing windows by dragging the borders of the window, change the properties for the theme you are using, e.g.: sudo gedit /usr/share/themes/New\ Wave/metacity-1/metacity-theme-1.xml E.g., as follows: &#60;!-- general window layout --&#62; ... &#60;distance name="left_width" value="5"/&#62; &#60;distance name="right_width" value="5"/&#62; &#60;distance name="bottom_height" value="5"/&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=289&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you have problems resizing windows by dragging the borders of the window, change the properties for the theme you are using, e.g.:</p>
<p><code>sudo gedit /usr/share/themes/New\ Wave/metacity-1/metacity-theme-1.xml</code></p>
<p>E.g., as follows:<br />
<code><br />
  &lt;!-- general window layout --&gt;<br />
...<br />
  &lt;distance name="left_width" value="5"/&gt;<br />
  &lt;distance name="right_width" value="5"/&gt;<br />
  &lt;distance name="bottom_height" value="5"/&gt;<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=289&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/09/07/resize-windows-in-gnomemetacity-easier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Mount remote linux directory using ssh in Ubuntu</title>
		<link>http://erl1.wordpress.com/2011/09/06/mount-remote-linux-directory-using-ssh-in-ubuntu/</link>
		<comments>http://erl1.wordpress.com/2011/09/06/mount-remote-linux-directory-using-ssh-in-ubuntu/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 19:28:14 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=287</guid>
		<description><![CDATA[From http://linuxers.org/howto/how-mount-remote-directores-using-sshfs sudo apt-get install sshfs sshfs user@remote:/mnt/dir /mnt<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=287&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From http://linuxers.org/howto/how-mount-remote-directores-using-sshfs<br />
<code>sudo apt-get install sshfs<br />
sshfs user@remote:/mnt/dir /mnt</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/287/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=287&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/09/06/mount-remote-linux-directory-using-ssh-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable a non-root user to mount a windows share in Linux</title>
		<link>http://erl1.wordpress.com/2011/07/07/enable-a-non-root-user-to-mount-a-windows-share-in-linux/</link>
		<comments>http://erl1.wordpress.com/2011/07/07/enable-a-non-root-user-to-mount-a-windows-share-in-linux/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 17:47:55 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=282</guid>
		<description><![CDATA[Simply add the line for mounting to the /etc/fstab file, and be sure that it says user &#8211; do not replace with an actual user name! //10.0.0.4/mediastorage /media/tvpc smbfs rw,user,auto,unhide 0 0<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=282&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Simply add the line for mounting to the /etc/fstab file, and be sure that it says user &#8211; do not replace with an actual user name!</p>
<p><code>//10.0.0.4/mediastorage	/media/tvpc	smbfs	rw,user,auto,unhide	0	0</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=282&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/07/07/enable-a-non-root-user-to-mount-a-windows-share-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Enabling wireless on Compaq nx6325 with Ubuntu 11.04</title>
		<link>http://erl1.wordpress.com/2011/06/19/enabling-wireless-on-compaq-nx6325-with-ubuntu-11-04/</link>
		<comments>http://erl1.wordpress.com/2011/06/19/enabling-wireless-on-compaq-nx6325-with-ubuntu-11-04/#comments</comments>
		<pubDate>Sun, 19 Jun 2011 14:36:06 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=278</guid>
		<description><![CDATA[From here. In System&#62;Administration&#62;Synaptic package manager, search for &#8220;bcmwl-kernel-source&#8221;. Uninstall it if its already installed. Search &#8220;firmware-b43-installer&#8221; and &#8220;b43-fwcutter&#8221; in Synaptic package manager. Then install them. Next I saw Additional Drivers icon at the top panel on the screen. Finally, I installed Broadcom STA wireless driver.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=278&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.baibhav.com.np/article/6-computer-tips-a-tricks/25-broadcom-wireless-card-is-not-working-in-ubuntu-1104-solved.html">here</a>.</p>
<blockquote><p>
In System&gt;Administration&gt;Synaptic package manager, search for &#8220;bcmwl-kernel-source&#8221;. Uninstall it if its already installed. </p>
<p>Search &#8220;firmware-b43-installer&#8221; and &#8220;b43-fwcutter&#8221; in Synaptic package manager. Then install them.</p>
<p>Next I saw Additional Drivers icon at the top panel on the screen. Finally, I installed Broadcom STA wireless driver.
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/278/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/278/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/278/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=278&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/06/19/enabling-wireless-on-compaq-nx6325-with-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing ns-2.34 on Ubuntu 11.04</title>
		<link>http://erl1.wordpress.com/2011/05/12/installing-ns-2-34-on-ubuntu-11-04/</link>
		<comments>http://erl1.wordpress.com/2011/05/12/installing-ns-2-34-on-ubuntu-11-04/#comments</comments>
		<pubDate>Thu, 12 May 2011 07:47:26 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[ns-2]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=272</guid>
		<description><![CDATA[First, do the same things as you would do for the ns-2.34 and Ubuntu 10.10 installation, i.e.: Install the development files for X Windows plus the g++ compiler: sudo apt-get install xorg-dev g++ xgraph Fix the error in the linking of otcl by editing line 6304 of otcl-1.13/configure so that it reads SHLIB_LD="gcc -shared" instead [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=272&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First, <a href="http://erl1.wordpress.com/2011/03/01/installing-ns-2-34-on-ubuntu-10-10/">do the same things as you would do for the ns-2.34 and Ubuntu 10.10 installation</a>, i.e.:</p>
<p>Install the development files for X Windows plus the g++ compiler:<br />
<code>sudo apt-get install xorg-dev g++ xgraph</code></p>
<p>Fix the error in the linking of otcl by editing line 6304 of <em>otcl-1.13/configure</em> so that it reads<br />
<code>SHLIB_LD="gcc -shared"</code><br />
instead of<br />
<code>SHLIB_LD="ld -shared"</code></p>
<p>Then, edit the file ns-2.34/tools/ranvar.cc and change the line 219 from<br />
<code>return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);</code><br />
to<br />
<code>return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_);</code></p>
<p>Next, change the lines 183 and 185 in file ns-2.34/mobile/nakagami.cc to read<br />
<code>resultPower = ErlangRandomVariable(Pr/m, int_m).value();</code><br />
and<br />
<code>resultPower = GammaRandomVariable(m, Pr/m).value();</code></p>
<p>Now the code will compile if you run <code>./install</code>. However, you may not be able to run the ns executable. If you get an error stating that there has been a buffer overflow <code>*** buffer overflow detected ***: ./ns terminated</code> including a backtrace, you need to do the following to make it work:</p>
<p>Install gcc-4.4 and g++-4.4 including dependencies using the code below:<br />
<code>$ sudo apt-get install gcc-4.4 g++-4.4</code></p>
<p>Change the line 270 in tcl8.4.18/unix/Makefile.in that reads<br />
<code>CC			= @CC@</code><br />
so it appends the version parameter for version 4.4:<br />
<code>CC			= @CC@ -V 4.4</code><br />
Make sure it is a capital V.</p>
<p>Finally, run <code>./install</code> from the ns-allinone-2.34 top folder again.</p>
<p><em>See also: <a href="http://erl1.wordpress.com/2011/10/14/installing-ns-2-34-on-ubuntu-11-10-oneiric-ocelot/">Installing ns-2.34 on Ubuntu 11.10 Oneiric Ocelot</a></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=272&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/05/12/installing-ns-2-34-on-ubuntu-11-04/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
		<item>
		<title>Disabling ARP in ns-2.34</title>
		<link>http://erl1.wordpress.com/2011/03/02/disabling-arp-in-ns-2-34/</link>
		<comments>http://erl1.wordpress.com/2011/03/02/disabling-arp-in-ns-2-34/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 15:08:41 +0000</pubDate>
		<dc:creator>Erlend</dc:creator>
				<category><![CDATA[ns-2]]></category>

		<guid isPermaLink="false">http://erl1.wordpress.com/?p=266</guid>
		<description><![CDATA[For some purposes, disabling ARP may be desired, in order to study network properties in the ns-2 simulator. In ns-2, the MAC and IP addresses are the same, making ARP disabling very easy. To disable the ARP protocol in ns-2.34, add these lines to the top of ARPTable::arpresolve in the file mac/arp.cc: hdr_cmn *ch = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=266&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some purposes, disabling ARP may be desired, in order to study network properties in the ns-2 simulator.  In ns-2, the MAC and IP addresses are the same, making ARP disabling very easy. To disable the ARP protocol in ns-2.34, add these lines to the top of <strong>ARPTable::arpresolve</strong> in the file <em>mac/arp.cc</em>:</p>
<p><code>hdr_cmn *ch = HDR_CMN(p);<br />
mac_-&gt;hdr_dst((char*) HDR_MAC(p), ch-&gt;next_hop());<br />
return 0;</code></p>
<p>Referred from a <a href="http://mailman.isi.edu/pipermail/ns-users/2007-March/059275.html">mail exchange</a> between Ahmad Khayyat and Pedro Vale Estrela.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/erl1.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/erl1.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/erl1.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/erl1.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/erl1.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/erl1.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/erl1.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/erl1.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/erl1.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/erl1.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/erl1.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/erl1.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/erl1.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/erl1.wordpress.com/266/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=erl1.wordpress.com&amp;blog=252620&amp;post=266&amp;subd=erl1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://erl1.wordpress.com/2011/03/02/disabling-arp-in-ns-2-34/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ece71230546a2cce123df293d62bf768?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Erlend</media:title>
		</media:content>
	</item>
	</channel>
</rss>
