dsr code implimantation
hello sir
i harshil student of M.E. I WANT TO MODIFICATION OF dsr ROUTING PROTOCOL IN dsragent.CC FILE BY USING THIS CODE .but some error is created so please help me.urgent void MDSRAgent::getRouteForPacket(SRPacket &p, bool retry) { Entry *e = request_table.getEntry(p.dest); Time time = Scheduler::instance().clock(); if snooze==1&&recv.ACK==1 SRPacket rrp = p; rrp.pkt = p.pkt->copy(); hdr_sr *srh = hdr_sr::access(rrp.pkt); hdr_ip *iph = hdr_ip::access(rrp.pkt); hdr_cmn *cmh = hdr_cmn::access(rrp.pkt); iph>daddr()=Address::instance().create_ipaddr(p.dest.getNSAddr_t(),RT_PORT); iph->dport() = RT_PORT; iph>saddr()=Address::instance().create_ipaddr(net_id.getNSAddr_t(),RT_PORT); iph->sport() = RT_PORT; cmnh->ptype() = PT_DSR; cmnh->size() = size_; cmnh->num_forwards() = 0; }#endif |
It would much easier to help you if you told us what error message you are getting instead of just showing a code snippet.
And please do use code tags if you are posting code. Cheers |
Quote:
|
dsr routing protocol modification
hello sir ,
when i modification in dsr routing protocol in ns-2.34 by adding this code in dsragent.cc file then creat this type of error. Quote:
[dsr/dsragent.cc:1483:5: error: ‘((DSRAgent*)this)->DSRAgent::recv’ does not have class type dsr/dsragent.cc:1484:22: error: ‘((DSRAgent*)this)->DSRAgent::recv’ does not have class type dsr/dsragent.cc:1502:3: error: ‘cmnh’ was not declared in this scope dsr/dsragent.cc:1493:11: warning: unused variable ‘srh’ [-Wunused-variable] dsr/dsragent.cc:1495:12: warning: unused variable ‘cmh’ [-Wunused-variable] dsr/dsragent.cc:1523:3: error: ‘endif’ was not declared in this scope dsr/dsragent.cc:1525:3: error: expected ‘;’ before ‘srh’ dsr/dsragent.cc:1512:11: warning: unused variable ‘srh’ [-Wunused-variable] dsr/dsragent.cc: In member function ‘void DSRAgent::undeliverablePkt(Packet*, int)’: dsr/dsragent.cc:2390:48: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] make: *** [dsr/dsragent.o] Error 1] |
Quote:
i want to modified dsragent.cc file in ns-2.34 by according this document. In this document giveen, how to improve performance of dsr routinfg protocol by using ack path reply? so modification code is also avialable in this document. so please give me step for modification thank you for previous good response |
dsr routing protocol modification
Quote:
site:http://dspace.fsktm.um.edu.my/bitstr...20NETWORKS.pdf |
Quote:
i want to reduce end to end delay in dsr routing protocol. which modification needed in dsragent or dsr header file |
Quote:
And did you read what you posted? Did you understand it? Code:
dsr/dsragent.cc:1483:5: error: ‘((DSRAgent*)this)->DSRAgent::recv’ does not have class type
|
All times are GMT -5. The time now is 08:33 PM. |