[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] adding packet header
Hi,
i'm trying to add a new packet header following the steps in 12.1.1 of
documentation. I've edited packet.h, /tcl/lib/ns-packet.tcl, Makefile and
when i run ./configure and make, it gives me errors pointing to packet.h
file. In the new header, the structure has a new char variable, offset_
(static int) and offset() and access() method which is..
inline static hdr_xyz* access(const Packet* p)
{
return (hdr_xyz*) p->access(offset_);
}
and i'm including 'packet.h' file in this file....
I've also performed the OTcl linkage (PacketHeader/hdrxyz)
Basically, I'm designing an application which relates to this packets.
Thanks.
J Smith