[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] control classifier
Hi,
I look at the Classifier::command()
{
if (strcmp(argv[1], "defaulttarget") == 0)
...
if (strcmp(argv[1],"alloc-port") == 0)
...
if (strcmp(argv[1], "installNext")
....
if (strcmp(argv[1], "slot") == 0)
...
if (strcmp(argv[1], "defaulttarget") == 0)
....
if (strcmp(argv[1], "install") == 0)
....
}
That mean there are some ways to give commmands for classifier to control
classifier.
I guess to give the command for calssifier could be like: (tcl file>
testclassifier.tcl
########################
set ns [new Simulator]
...
set no [$ns node]
set classifier0 [$ns Classifier]
# attach classifier to n0
$n0 attach classifier0 n0
## and the control that particular node n0
$ns "$classifier alloc-port 35"
......
#######################################
However it seems not work for this tcl file.
Can anyone help how to give command to this node to controlclassifier?
Thanks,
C.L. Wu
****************************************************************************
Chien-Lung Wu cwu4@eos.ncsu.edu
Graduate Student of ECE (O) 919-513-1894
at North Carolina State University (H) 919-233-6724
****************************************************************************