[haiku-bugs] Re: [Haiku] #10183: Incorrect handling of non-existing network devices

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Sat, 09 Nov 2013 09:18:21 -0000

#10183: Incorrect handling of non-existing network devices
----------------------------------------+----------------------------
   Reporter:  jackburton                |      Owner:  axeld
       Type:  bug                       |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Network & Internet/Stack  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by jackburton):

 Interestingly, this allows for things like

 {{{
 ~/Desktop> ifconfig /dev/net/../zero auto-config
 ~/Desktop> ifconfig /dev/net/../zero up
 ifconfig: Setting flags failed: Operation not allowed
 }}}

 or

 {{{
 ~/Desktop> ifconfig /dev/net/../../system auto-config
 ~/Desktop> ifconfig /dev/net/../../system up
 ifconfig: Setting flags failed: Is a directory
 }}}

 But the interface exists, and the net_stack will happily try to assign an
 address via DHCP.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10183#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: