LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Want to implement Ting protocol similar to Ping protocol (https://www.linuxquestions.org/questions/linux-newbie-8/want-to-implement-ting-protocol-similar-to-ping-protocol-4175530774/)

gp1986 01-12-2015 08:32 AM

Want to implement Ting protocol similar to Ping protocol
 
Hello!
I want to implement a new protocol Ting which is exactly similar to Ping but for learning purpose I have changed its name and its classes for ping to ting.
Even I am able to make but while validation it is giving Agent/Ting command doesn't exist.

Kindly help me!
I am trying to implement since 4 days but couldn't succeed.

knudfl 01-12-2015 09:31 AM

Welcome to LQ.

Did you add the new "Agent/Ting" to tcl/lib/{ files.tcl } ?
Code:

[knudfl@localhost lib]$ grep -Rn Ping *
ns-default.tcl:830:Agent/Ping set packetSize_ 64
ns-packet.tcl:164:      Ping    # Ping
ns-packet.tcl:279:#    { Ping off_ping_ }


And how about common/packet.h :
Code:

[knudfl@localhost common]$ grep -Rin Ping *

packet.h:140:static const packet_t PT_PING = 44;
packet.h:360:          name_[PT_PING]="ping";

Ns-2.35 was used for the above.


-


All times are GMT -5. The time now is 06:56 AM.