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

[ns] remove-packet-header



I try the following code (copied from ns manual) in my tcl:
 
remove-all-packet-headers
add-packet-header IP TCP
set ns [new Simulator]
...
 
When I run the code, ns complains:
 
invalid command name
"remove-all-packet-headers"
    while executing
"remove-all-packet-headers"
 
Anyone knows what's wrong? Thank you for any help.