There is none.
You use a system specific kludge.
There is no direct hardware interface to get this info.
You can grab it from a system utility using regexp.
Excuse the slop but the regexp here is too unwieldy for
this site.
Code:
set nicids [exec /sbin/ifconfig]
foreach line [split $nicids "\n"] {
if {[regexp "HW.*(\[A-Z0-9\]+:\[A-Z0-9\]+:\[A-Z0-9\]+:\[A-Z0-9\]+:\[A-Z0-9\]+:\[A-Z0-9\]+)" $line all out]} {
puts "$line, address = $out"
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.