Hi, i have few questions about ur query, you havent specified where exactly have you written the code for broadcasting..are you creating a new agent or within the code of DSDV... second i would like to know how do you start sending the cbr traffic....
I have used broadcasting but with AODV... if u give that information may be i can try to solve the problem... actually if u have written the broadcasting code withing DSDV, then you cant generate CBR traffic upon it, CBR agent has to be attached to a transport agent and not to a routing agent..also the error signify that there is some problem in the port values... regards sanjay raghani Message: 9 Date: Thu, 1 Jun 2006 11:54:24 +0200 From: "Golnaz Karbaschi" <[EMAIL PROTECTED] > Subject: [ns] broadcasting a new packet at IP layer To: "'[email protected]'" < [email protected]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Dear all, I am dealing with MANET and I need to generate a new broadcast packet in DSDV. I have genrate it like below: Packet *p1 = allocpkt(); hdr_ip *iph1 = hdr_ip::access(p1); hdr_cmn *hdrc1 = HDR_CMN (p1); hdrc1->next_hop_ = IP_BROADCAST; hdrc1->addr_type_ = NS_AF_INET; iph1->daddr() = IP_BROADCAST ; iph1->dport() = ROUTER_PORT; // it is 0xff iph1->sport() = ROUTER_PORT; iph1->ttl() =1; It works till I don't start sending Data packet ( Cbr) . when Data packet are sent in the network I get the following error : --- Classfier::no-slot{} default handler (tcl/lib/ns- lib.tcl) --- _o32: no target for slot 0 _o32 type: Classifier/Port content dump: classifier _o32 0 offset 0 shift 2147483647 mask 1 slots slot 255: _o19 (Agent/DSDV) ---------- Finished standard no-slot{} default handler ---------- I saw the same question in the mailing list but the non of the proposed solution didn't work. Thank you for your help, Golnaz Karbaschi
