Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
If you're a university student, you should know by now how to ask a question...and you should also know that this is NOT URGENT for ANYONE here. Unless you tell us WHAT error(s) you're getting, and where you're getting them, it's pointless to say "some error is created".
[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]
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.
ERROR:
[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]
hello sir
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
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
pdf document:USING ACK REPLY TO IMPROVE PERFORMANCE OF DYNAMIC SOURCE ROUTING PROTOCOL FOR MOBILE AD HOC NETWORKS
hello sir,
i want to reduce end to end delay in dsr routing protocol. which modification needed in dsragent or dsr header file
Yes, we know what you want...posting it over and over doesn't get folks to answer any sooner.
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
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]
It's telling you what lines the errors are on, and what the errors ARE. So:
Define a class type for DSRAgent::recv (lines 1483 and 1484)
Remover reference to cmnh or declare it (line 1502)
srh and cmh are unused (warnings: either use them or ignore messages for 1493 and 1495)
Put inthe appropriate endif (1523)
Again, if you're a student and you're doing this for a project, shouldn't your instructor be able to help you? Have you not progressed ANY since your post over two weeks ago?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.