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

RE: [ns] Checking packet type



i am writing this procedure :
Agent instproc packet-type {} {
       $self instvar type_
       return $type_
    }

its giving me error as "cant read type_ no scuh varaible"
i am calling it as:

$tcp1 packet-type   in my tcl script...

any coments???


sameer
>===== Original Message From Debojyoti Dutta <[email protected]> =====
>one simple way is to write a small command for the class Agent that will
>return the packet type.
>
>cheers
>debo
>
>On Wed, 7 Feb 2001, sameer wrote:
>
>> If i want to check the packet type(whether udp or tcp) whithin my tcl
>> script(to perform certain operation) can i do that...
>> if yes then what variable i have to check ???
>>
>> thanks
>>
>> sameer
>>
>>