Mehic.info

Greedy Perimeter Stateless Routing (GPSR) in ns3.25

Please find the updated Greedy Perimeter Stateless Routing protocol (GPSR) code which works in the latest ns3.25 version. Just copy it into your /src folder and execute “./waf configure” and “./waf”. Also, move the examples from /src/gprs/examples to /scratch and test it. It works fine for me in ns3.25 version. Enjoy! — Files to download: […]

Read more

How to install wkhtmltopdf on shared hosting (Ubuntu)?

First obtain .deb file from http://wkhtmltopdf.org/downloads.html. Be sure that you select proper version for your operation system. Following steps are for Ubuntu 12.04. : Execute: wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-precise-amd64.deb You should have wkhtmltox-0.12.2.1_linux-precise-amd64.deb downloaded in your directory Execute: ar vx wkhtmltox-0.12.2.1_linux-precise-amd64.deb You should now have these folders: debian-binary control.tar.gz data.tar.xz Execute: tar -xvf data.tar.xz You should now have folder […]

Read more

IP ToS fields with UDPSockets – implementation issue

For the purposes of my project, I needed to add TOS tag to UDP packets which are generated by OLSR routing protocol. In olsr-routing-protocol.cc I added ToS Values: // Create a socket to listen only on this interface Ptr socket = Socket::CreateSocket (GetObject (),UdpSocketFactory::GetTypeId ()); socket->SetAllowBroadcast (true); socket->SetIpTos(6); socket->SetIpRecvTos(true); And when I executed the code […]

Read more