[ns] wireless ping broadcast questions

2006-05-12 Thread Sanjay Raghani
Hi, The code for the ping agent in apps/ping.cc is written for "connected agents" it assumes that you connect the agents in the tcl file to associate the address. But when you use broadcast address, you would not connect the agents so one has to set the address fields of ip header. What is req

Re: [ns] wireless ping broadcast questions

2006-05-12 Thread zze-TOUROLLE Benjamin RD-CORE-CAE
egards Benjamin -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED] Envoyé : vendredi 12 mai 2006 00:27 À : ns-users@ISI.EDU Objet : [ns] wireless ping broadcast questions Hi, I was messing around with the ping agent from Marc Greis

Re: [ns] wireless ping broadcast questions

2006-05-12 Thread Hajer FERJANI
Hi Kathy, May be all you need is to assign a port number for the ping agent that you will use when sending packets in your c++ code. Then, in TCL script, you have to create ping agents and to attach them to nodes with this port number. Example : - In .h and .cc files: #define MY_PING_PORT 113

Re: [ns] wireless ping broadcast questions

2006-05-11 Thread k s
Hi Faisal, I wasn't aware of any other settings besides the IP_BROADCAST. Which ones are you referring to? Kathy _ From: Faisal Siddiqui [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 7:40 PM To: [EMAIL PROTECTED] Cc: ns-users@isi.edu Subject: Re: [ns] wireless

Re: [ns] wireless ping broadcast questions

2006-05-11 Thread Faisal Siddiqui
Hi Kathy, Are you properly enabling/setting multicast protocol settings in your Tcl script for the simulation? I think this error screams about that setting. - Faisal On 5/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > > I was messing around with the ping agent from Marc Greis

[ns] wireless ping broadcast questions

2006-05-11 Thread smythek
Hi, I was messing around with the ping agent from Marc Greis' Tutorial, and wanted to change the ping to a broadcast. I added the IP header stuff as I've seen elsewhere online, hdr_ip *ip = hdr_ip::access(pkt); ip->daddr() = IP_BROADCAST; and now I get this error: -- Classfier::no-