Hi everybody
I am trying implement my own MAODV protocol into NS-2.34. I already have done
structure of packets, routing tables and now I would like programme
communication between nodes. So I created “class node” in file “node.h” where I
define the IP address and seq. num of node and functions such as “void
recv(Packet*, Handler*)”. In file “node.cc” in function “void recv(Packet* p,
Handler* h)” I put following code:
void node::recv(Packet* p, Handler* h)
{
struct hdr_maodv* maodvh = HDR_MAODV(p);
struct hdr_ip* iph = HDR_IP(p);
}
..and when I make compilation, the following error appears:
In function ‘hdr_ip::access(Packet const*)’:
node.cc: (.text.ZN6hdr_ip6accessEPK6Packet[hdr_ip::access(Packet const*)]+0×7):
undefined reference to ‘hdr_ip::offset_’
collect2: ld returned 1 exit status
Could you help me? Do you have any idea where could be a problem?
Regards
Daniel