Adding A new Protocol in ns 2.35
Just Remember from my last post that is for ns .2.34
but i am also updating a patch that when you are adding protocol on ns2.35
in packet header you please add at
last
but i am also updating a patch that when you are adding protocol on ns2.35
in packet header you please add at
last
// WFRP packet
static const packet_t PT_WFRP = 73;
// insert new packet types here
static packet_t PT_NTYPE = 74; // This MUST be the LAST one
so this protocol will work.
as in my last post please put on line
272 in packet.h
type == PT_WFRP ||
andname_[PT_WFRP] =
"WFRP"
;
in line 424
note : this above line should be above on this line
name_[PT_NTYPE]= “undefined”;
next changes in cmu-trace.h and cmu-trace.cc. files
at trace/cmu-trace.h
at line 163 addvoid
format_wfrp(Packet *p,
int
offset);
.......................................
and other things are added on that post (last)