http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_beginners.html#_Toc128325749
UPDATE: You should refer to this post on the ns2 mailing list to know the
additional steps required on the ping agent on the newest versions of NS2.
http://mailman.isi.edu/pipermail/ns-users/2006-January/053697.html
If you find this information useful, then please volunteer some of your time
and help other users to move this tutorial into the new NS2 wiki and update
its information to the latest NS2. Thanks!
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of juan manuel gomez garcia
> Sent: quarta-feira, 8 de Março de 2006 16:18
> To: Ns-users@ISI.EDU
> Subject: [ns] ping protocol
>
>
> hello,
> I make the ping protocol of Marc Greis' tutorial but when I change the
> 'makefile' , I obtain the error when I do 'make':
>
> n -o ping/ping.o ping/ping.cc
> ping/ping.cc: In member function `virtual void pingAgent::recv(Packet*,
> Handler*)':
> ping/ping.cc:64: error: `off_ip_' undeclared (first use this function)
> ping/ping.cc:64: error: (Each undeclared identifier is reported only once
> for each function it appears in.)
> ping/ping.cc:93: error: no match for 'operator>>' in 'hdrip->hdr_ip::src_
> >> *(Address::instance()->Address::NodeShift_ + 4)'
> make: *** [ping/ping.o] Error 1
>
> In my directory there isn't any ping.o file. How i make it?. I do all
> things
> that Marc Greis tutorial say. Please help me. Thank you.
>
> _________________________________________________________________
> ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras
> en
> MSN Motor. http://motor.msn.es/researchcentre/