[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Packet offset variables



Hi!

I have a question about adding new packets to ns:

When I'm adding a new packet I have to define an offset variable
off_newhdr and bind it to a tclvariable:
bind("off_newhdr", &off_newhdr)

In order to use the variable I'll have to initilize it in tcl like
LL/NewProtocol set off_newhdr 0
right?

Where would a good place be to put such initialization? In ns-packet.tcl before
the offsets are computed or somewhere else?

Best regards, Henrik Eriksson