I am new to tcl. I have the following code in tcl:
proc ::SMB::SmbSetDefaultConfig {{names all}} {
variable SmbInfo
variable SmbPortId
if {$names == "all"} {
set ports $SmbPortId
} else {
set ports $names
}
foreach name $ports {
set SmbInfo($name-SmbSetTxActive) 0
set SmbInfo($name-SmbSetSpeed) 1000
set SmbInfo($name-SmbSetDuplex) FDX
}
}
I am trying to know the data structure of SmbInfo which is declared as a variable. The other parameters (SmbSetTxActive, SmbSetSpeed, SmbSetDuplex) look like are creating an associative array with $name. But, I could not find the type of variable which helps to create such structure. Please help.