I have set it as you say but it doesn't work ! hdrc1->addr_type_ =NS_AF_NONE;
for sending my packet I use this command: s.schedule(target_,p1,jitter); it seems that there is a conflict in sending data packet and these new broadcast packet, because when I don't send any data it works very well . thank you for your help Golnaz -----Original Message----- From: Güzin Ulutaş [mailto:[EMAIL PROTECTED] Sent: jeudi 1 juin 2006 15:35 To: Golnaz Karbaschi; [email protected] Subject: Re: [ns] broadcasting a new packet at IP layer you must set ch->addr_type() = NS_AF_NONE; >Dear all, > > > >I am dealing with MANET and I need to generate a new broadcast packet in >DSDV. >[Golnaz Karbaschi] >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 > > > > > > > >
