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
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
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
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
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
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-