http://defect.opensolaris.org/bz/show_bug.cgi?id=8519
Darren Kenny <dkenny at opensolaris.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dkenny at opensolaris.org
--- Comment #1 from Darren Kenny <dkenny at opensolaris.org> 2009-04-30
05:44:57 ---
I'm also seeing this when I'm trying to figure out the correct event sequence
when a link goes up and down, but I'm seeing strange output when I run nwamadm
interact -v.
The LINK_STATE appears to be always "up" - even with the cable removed.
IF_STATE changes w.r.t the index and flags, but seems to output twice:
*UNPLUG CABLE*
LINK_STATE e1000g0 -> state up
IF_STATE e1000g0 -> state (10) flags 1004803
IF_STATE e1000g0 -> state (0) flags 1
*PLUG CABLE IN*
LINK_STATE e1000g0 -> state up
IF_STATE e1000g0 -> state (0) flags 1
IF_STATE e1000g0 -> state (10) flags 1004843
IF_STATE e1000g0 -> state index 10 flags 0x1 address
129.156.226
IF_STATE e1000g0 -> state (10) flags 1004842
IF_STATE e1000g0 -> state (10) flags 1004843
IF_STATE e1000g0 -> state index 10 flags 0x1 address
129.156.226
*UNPLUG CABLE*
LINK_STATE e1000g0 -> state up
IF_STATE e1000g0 -> state (0) flags 1
IF_STATE e1000g0 -> state (10) flags 1004803
*PLUG CABLE IN*
LINK_STATE e1000g0 -> state up
IF_STATE e1000g0 -> state (0) flags 1
IF_STATE e1000g0 -> state (10) flags 1004843
IF_STATE e1000g0 -> state index 10 flags 0x1 address
129.156.226
IF_STATE e1000g0 -> state (10) flags 1004842
IF_STATE e1000g0 -> state (10) flags 1004843
IF_STATE e1000g0 -> state index 10 flags 0x1 address
129.156.226
As a result of this, I'm not really sure how I'm supposed to know if a given
interface is up or down w.r.t. the user's point of view.
BTW - what is the "index" in the if_state, and is it important to me?
What I was assuming was that the LINK_STATE would be down for a device where
the
cable is unplugged - so I could use this to know when an interface was taken
down. (as in phase 0.5 deInterfaceDown event).
For an interface to be seen as connected, I was assuming that IF_STATE with
"event->data.if_state.addr_valid" being true, would be the best match towards
telling the user that they should have a working connection - but I'm also not
sure about this since I've seen it be valid with an address of 0.0.0.0...
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.