[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] packet type error
Hi,
I have defined a new packet type, and I have inserted the needed
information in the file packet.h:
enum packet_t {
......
PT_AGREGE, // my packet type
PT_NTYPE
};
p_info () {
...
name_[PT_AGREGE] = "agrege";
name_[PT_NTYPE] = "undefined";
}
when i run my simulation example I have this error :
ns:
global ptype pvals
set ptype(error) -1
set pvals(-1) error
set ptype(tcp) 0
set pvals (0) tcp
........
set ptype(rap_ack) 40
set pvlas (40) rap_ack
agregeset ptype (agrege) 41
agregeset pvals (41) agrege
...
invalid command name "agregeset"
I didn't find why I have agregeset and not set
I have examined the file ptypes2tcl.cc, but i haven't fins any thing
that helps
Have you any idea ?
thanks
hajer