LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2015, 09:32 AM   #1
gp1986
LQ Newbie
 
Registered: Jan 2015
Posts: 1

Rep: Reputation: Disabled
Post 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.
 
Old 01-12-2015, 10:31 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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.


-

Last edited by knudfl; 01-12-2015 at 10:35 AM.
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to implement GPRS routing protocol in ns 2.33 en.khalid82 Linux - Software 34 12-02-2014 05:34 AM
How to implement my own protocol with AgenjJ dissou Programming 2 02-14-2011 09:49 AM
How to implement my own protocol with AgentJ dissou Linux - Networking 0 02-10-2011 04:25 AM
How to implement network protocol in Linux? jamespayne Programming 2 12-03-2004 02:29 PM


All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration