I am trying to compile  MOR (Multipath On-demand Routing protocol) under
ns-2.30 on the following version of Linux:
2.6.19-1.2911.6.5.fc6 #1 SMP Sun Mar 4 15:47:41 EST 2007 i686 athlon i386
GNU/Linux

However, I get the following error messages:
podr/podrPacket.h: In function ?unsigned char* pkt_push(pkt_t*, int)?:
podr/podrPacket.h:138: error: invalid lvalue in assignment
podr/podrPacket.h: In function ?unsigned char* pkt_pull(pkt_t*, int)?:
podr/podrPacket.h:163: error: invalid lvalue in assignment
podr/podrAgent.cc: In member function ?void podrPacketHeader::recvAdjust()?:
podr/podrAgent.cc:146: error: invalid lvalue in assignment
podr/podrAgent.cc:147: error: invalid lvalue in assignment

The offending lines of code are:
podr/podrPacket.h:138: (uint8_t *) pkt->data -= len;
podr/podrPacket.h:163: return (uint8_t *) pkt->data += len;
podr/podrAgent.cc:146: (uint8_t *) data -= (uint8_t *) head;
podr/podrAgent.cc:147: (uint8_t *) tail -= (uint8_t *) head;

You can get podrPacket.h and podrAgent.cc from
http://www.ittc.ku.edu/~fokumdt/podrPacket.h and
http://www.ittc.ku.edu/~fokumdt/podrAgent.cc

MOR may be downloaded from
http://red2.ics.hawaii.edu/~shuc/podr/ns-2.30-podr-20061031.tar.gz

Thanks in advance for any help.
Daniel

Reply via email to