On Fri, 1 Jun 2007, ???? Euler Tao wrote:
What's the problem?
The problem is that the 'link_mode' NDD variable can not be relied upon to exist. Indeed, you generally can not assume NDD variables have any stability at all. The perl programme you're using simply is bust (and the book perhaps is remiss in recommending that ndd variables be looked at).
A better way to get an idea of link-state is to examine the interface flags: The IFF_RUNNING flag should (broadly) reflect link-state, for drivers that report link-state via DLPI (in theory that should be all NIC drivers..).
You can just use 'ifconfig' to see whether the flag is there or not. regards, -- Paul Jakma, Solaris Networking Sun Microsystems, Scotland http://opensolaris.org/os/project/quagga tel: EMEA x73150 / +44 15066 73150
_______________________________________________ networking-discuss mailing list [email protected]
