Mehic.info

Category Archives: Technology

Posts related to my job or interests

NS3 – undefined reference to..

I received following bug when I tried to install new module and build NS3 : ./libns3.22-network-debug.so: undefined reference to `ns3::Queue::IsFull() const’ collect2: error: ld returned 1 exit status The problem was that my point-to-point-net-device.cc was calling function return !(m_queue->IsFull ()); which was not implemented in src/networking/utils/queue.cc. The function was declared in queue.h as virtual but […]

Read more

How to print routing tables of DSDV in NS3?

Open “src/dsdv/model/dsdv-routing-protocol.h” and add  “Ptr routingStream;” in public attributes: class RoutingProtocol : public Ipv4RoutingProtocol { public: …. virtual void DoDispose (); Ptr routingStream; … Then in “src/dsdv/model/dsdv-routing-protocol.cc” at line 250 add the new function: void RoutingProtocol::PrintRoutingTable (Ptr stream) const { *stream->GetStream () GetId ()

Read more

How to install Netanim in NS3

For this tutorial, I assume that you already have installed NS3 on your ubuntu machine. If you installed NS3 withe examples and other components, than you should see in your root NS3 folder netanim directory: /home/mickey/ns3_git/qkd-routing/ns-allinone-3.22# ls bake build.py constants.py constants.pyc netanim-3.105 ns-3.22 pybindgen-0.17.0.886 README util.py util.pyc Now, go to your netanim directory and execute: […]

Read more

How to install NS3 on Ubuntu 14.10

On the beginning, we need to install prerequisites as root sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml git […]

Read more