[haiku-bugs] Re: [Haiku] #17796: NetworkStatus keeps showing interfaces that aren't present anymore

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 13 Jun 2022 07:12:06 -0000

#17796: NetworkStatus keeps showing interfaces that aren't present anymore
-----------------------------------------+----------------------------
  Reporter:  fatigatti                   |      Owner:  nobody
      Type:  bug                         |     Status:  closed
  Priority:  normal                      |  Milestone:  Unscheduled
 Component:  Applications/NetworkStatus  |    Version:  R1/Development
Resolution:  no change required          |   Keywords:
Blocked By:                              |   Blocking:
  Platform:  All                         |
-----------------------------------------+----------------------------
Comment (by fatigatti):

 I get the idea, but I personally think it's not the right approach. You
 click it and nothing happens (or an empty info box opens, I don't
 remember) and besides, when you open the Network preflet (or ifconfig, for
 that matter) the interface is not shown. So while NetworkStatus says one
 thing, the Network preflet says otherwise. At the very least this should
 be consistent between this two apps. Then it's a matter of deciding which
 way to go.

 I can only speak for myself, but when I first saw this the feeling was
 "this is bugged, it is not updating the list". Then for some reason every
 once in a while the usb_rndis driver takes a different interface number
 (/dev/net/usb_rndis/1 instead of 0) and I'm left seeing two different
 interfaces in NetworkStatus, one of them is there, the other isn't, when I
 open the preflet I just see one... I don't know, it just doesn't feel
 right.

 A moment after I opened this I tought maybe this wasn't so difficult to
 fix so I went ahead and finished a patch just before seeing your message
 (I'm taking babysteps learning to code). It's working for me here if you
 want to review it.

 Thanks for the effort in reviewing all of this :)
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/17796#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: