[haiku-bugs] [Haiku] #6280: Long network interface names cause problems

  • From: "atis.elsts" <trac@xxxxxxxxxxxx>
  • Date: Wed, 07 Jul 2010 13:44:51 -0000

#6280: Long network interface names cause problems
----------------------------------+-----------------------------------------
   Reporter:  atis.elsts          |        Owner:  nobody   
       Type:  bug                 |       Status:  new      
   Priority:  normal              |    Milestone:  R1       
  Component:  Network & Internet  |      Version:  R1/alpha2
   Keywords:                      |   Blocked By:           
Has a Patch:  0                   |     Platform:  All      
   Blocking:                      |  
----------------------------------+-----------------------------------------
 There is a potential crash when the length of an interface name is equal
 to IF_NAMESIZE. In this case the C string in the ifr_name field may not be
 null-terminated. This situation should be taken in account everywhere when
 the struct ifreq is used in the kernel and in the userspace.

 To repeat: try to configure intarface alias with name
 '/dev/net/etherpci/0:123456789012':
 ifconfig /dev/net/etherpci/0:123456789012 1.2.3.4

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

Other related posts: