[haiku-bugs] [Haiku] #9393: NetworkInterfaces don't identify themselves properly while disabled

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Sun, 20 Jan 2013 23:23:49 -0000

#9393: NetworkInterfaces don't identify themselves properly while disabled
-------------------------------------------------+-------------------------
 Reporter:  kallisti5                            |        Owner:  axeld
     Type:  bug                                  |       Status:  new
 Priority:  normal                               |    Milestone:
Component:  Network & Internet/Stack             |  Unscheduled
 Keywords:  IsWireless  IsEthernet               |      Version:
  BNetworkDevice                                 |  R1/Development
 Blocking:                                       |   Blocked By:
 Platform:  All                                  |  Has a Patch:  0
-------------------------------------------------+-------------------------
 kits/network/libnetapi/NetworkDevice.cpp:BNetworkDevice::IsEthernet()
 kits/network/libnetapi/NetworkDevice.cpp:BNetworkDevice::IsWireless()

 While an interface is disabled, both IsEthernet and IsWireless return
 false making identification of network devices difficult while they are
 disabled.

 IsWireless checks for a media type of "IFM_IEEE80211"
 IsEthernet checks for a media type of "IFM_ETHER"

 As far as I can tell, these are both set properly at the freebsd glue
 layer. My guess is that this failure might be comming from the
 "do_request(request, Name(), SIOCGIFMEDIA) != B_OK" check in
 BNetworkDevice::Media.

 Maybe we should be identifying these devices using some other metric?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9393>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: