[ns] Adding your own header Type

obaid abbasi obaidabbasi at gmail.com
Thu Jan 1 02:16:27 PST 2009


Hello


I have added my own header type namely "myHeader". Althought I made the
necessary changes in file "ns-packet.tcl" , packet.h. But still when I want
to access the header of my packet (hdr_myHeader* my=
hdr_myHeader::access(p);), following error occurs

apps/rtp.o: In function `hdr_myHeader::access(Packet const*)':
rtp.cc:(.gnu.linkonce.t._ZN12hdr_myHeader6accessEPK6Packet+0xb): undefined
reference to `hdr_myHeader::offset_


Anyone having idea about this problem and solution.


Thanks


More information about the Ns-users mailing list