Thanks for the help, any idea how I can send this information using a
packet ? Can I add this information to a particular packet's data/header
somehow ?


On Thu, Jun 26, 2014 at 11:08 AM, Fazlullah Khan <fazlullah....@gmail.com>
wrote:

>
> @Muhammad Waqar Cheema
>
> //Getting energy of current node
> double
> UCR::get_node_energy() {
>
> double energy;
>
> Node* node_;
>
> node_ = MobileNode::get_node_by_address(index); //index is the addr of a
>
> energy = node_>energy_model()>energy();
> return energy;
>
> }
>
> //Getting energy of any node anywhere
>
> double
> UCR::get_energy(nsaddr_t n) {
>
> double energy;
>
> Node* node_;
>
> node_ = MobileNode::get_node_by_address(n); //index is the addr of a
>
> energy = node_>energy_model()>energy();
> return energy;
>
> }
>
>
> On Thu, Jun 26, 2014 at 5:00 AM, <ns-users-requ...@isi.edu> wrote:
>
> > Send Ns-users mailing list submissions to
> >         ns-users@isi.edu
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >         http://mailman.isi.edu/mailman/listinfo/ns-users
> > or, via email, send a message with subject or body 'help' to
> >         ns-users-requ...@isi.edu
> >
> > You can reach the person managing the list at
> >         ns-users-ow...@isi.edu
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Ns-users digest..."
> >
> >
> > Today's Topics:
> >
> >    1. Disable Link Layer notification of broken links in AODV /
> >       Enable Hello intervals (Roberto. R.)
> >    2. How to get energy of neighbouring nodes (Muhammad Waqar Cheema)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Wed, 25 Jun 2014 10:56:55 -0300
> > From: "Roberto. R." <colletti...@gmail.com>
> > Subject: [ns] Disable Link Layer notification of broken links in AODV
> >         / Enable Hello intervals
> > To: ns-users@isi.edu
> > Message-ID:
> >         <CAGdj+YWSS_g=c9kBHD2PGUarTKHSWkVaMG=
> > x+abwrfft2yu...@mail.gmail.com>
> > Content-Type: text/plain; charset=UTF-8
> >
> > Hi all,
> >
> > I am using NS-2 to investigate the performance of AODV using hello
> > intervals. As it should be known, the AODV implementation in NS-2
> disables
> > hello intervals by default. After enabling it, now I need to disable
> > Link Layer notification of broken links, so as to investigate AODV under
> > the sole influence of Hello intervals.
> >
> > Does anyone know how to disable Link Layer notification from 802.11 in
> > AODV?
> >
> > *Ps: Hello_intervals are enabled using the following procedure:*
> >
> > *comment the following two lines present in aodv.cc*
> >
> > *#ifndef AODV LINK LAYER DETECTION*
> >
> > *#endif LINK LAYER DETECTION*
> >
> > *recompile ns2 by using the following commands on the terminal:*
> >
> > *make clean*
> >
> > *make*
> >
> > *sudo make install*
> >
> > Thank all in advance,
> >
> > Roberto Colletti.
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Wed, 25 Jun 2014 19:05:40 +0500
> > From: Muhammad Waqar Cheema <11mseemche...@seecs.edu.pk>
> > Subject: [ns] How to get energy of neighbouring nodes
> > To: ns-users@isi.edu
> > Message-ID:
> >         <CAAyEC5YvSwP8x8vXq82z0vseq=
> > wsbexcwdmi8csf7cz5o8i...@mail.gmail.com>
> > Content-Type: text/plain; charset=UTF-8
> >
> > Hello/Asalam-Alikum
> >
> > I require some help in implementing my protocol in NS2, any help/guidance
> > would be appreciated.
> >
> > 1. Send a broadcast Hello/Beacon message from the Sink to neighbour
> nodes.
> > ( How can I do this ?)
> > 2. Neighbour nodes reply with their energy to the sink. ( How can I do
> this
> > ?)
> >
> > Help on any/both parts would be welcome.
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Ns-users mailing list
> > Ns-users@isi.edu
> > http://mailman.isi.edu/mailman/listinfo/ns-users
> >
> >
> > End of Ns-users Digest, Vol 126, Issue 22
> > *****************************************
> >
>
>
>
> --
> Regards
> Fazlullah Khan
> Cell # +92 313 433 4334
>

Reply via email to