[haiku-bugs] Re: [Haiku] #6489: ifconfig needs to validate availability of ipv6 module prior to utilization

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Mon, 23 Aug 2010 21:36:32 -0000

#6489: ifconfig needs to validate availability of ipv6 module prior to 
utilization
--------------------------------------+-------------------------------------
  Reporter:  kallisti5                |         Owner:  axeld         
      Type:  bug                      |        Status:  new           
  Priority:  normal                   |     Milestone:  R1            
 Component:  Network & Internet/IPv6  |       Version:  R1/Development
Resolution:                           |      Keywords:                
Blocked By:                           |   Has a Patch:  0             
  Platform:  All                      |      Blocking:                
--------------------------------------+-------------------------------------

Comment (by kallisti5):

 Here is a little clearer example:  (r38311)
 {{{
 ~> ifconfig -a
 loop    Hardware Type: Local Loopback, Address: none
         inet addr: 127.0.0.1, Mask: 255.0.0.0
         MTU: 16384, Metric: 0, up loopback link
         Receive: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
         Transmit: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
         Collisions: 0

 /dev/net/broadcom570x/0
         Hardware Type: Ethernet, Address: 00:15:60:c0:17:a5
         Media Type: 100 MBit, 100BASE-TX
         inet addr: 10.21.17.79, Bcast: 10.255.255.255, Mask: 255.255.254.0
         MTU: 1500, Metric: 0, up broadcast link auto-configured
         Receive: 20589 packets, 0 errors, 10253833 bytes, 0 mcasts, 0
 dropped
         Transmit: 4690 packets, 0 errors, 329797 bytes, 0 mcasts, 0
 dropped
         Collisions: 0




 ~> ifconfig loop:0 inet6 ::1 up
 usage: ifconfig [<interface> [<address family>] [<address> [<mask>] |
 auto-config] [<option/flags>...]]
         ifconfig --delete interface [...]

 Where <option> can be the following:
   netmask <addr>     - networking subnet mask
   prefixlen <number> - subnet mask length in bits
   broadcast <addr>   - set broadcast address
   peer <addr>        - ppp-peer address
   mtu <bytes>        - maximal transfer unit
   metric <number>    - metric number to use (defaults to 0)
   media <media>      - media type to use (defaults to auto)
 For All <media> can be one of: auto
 For Ethernet <media> can be one of: 10baseT 100baseTX 1000baseT 1000baseSX
 And <flags> can be: up, down, [-]promisc, [-]allmulti, [-]bcast, loopback
 If you specify "auto-config" instead of an address, it will be configured
 automatically.

 Example:
         ifconfig loop 127.0.0.1 255.0.0.0 up



 ~> ifconfig -a
 loop    Hardware Type: Local Loopback, Address: none
         inet addr: 127.0.0.1, Mask: 255.0.0.0
         MTU: 16384, Metric: 0, up loopback link
         Receive: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
         Transmit: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
         Collisions: 0

 /dev/net/broadcom570x/0
         Hardware Type: Ethernet, Address: 00:15:60:c0:17:a5
         Media Type: 100 MBit, 100BASE-TX
         inet addr: 10.21.17.79, Bcast: 10.255.255.255, Mask: 255.255.254.0
         MTU: 1500, Metric: 0, up broadcast link auto-configured
         Receive: 20661 packets, 0 errors, 10261088 bytes, 0 mcasts, 0
 dropped
         Transmit: 4690 packets, 0 errors, 329797 bytes, 0 mcasts, 0
 dropped
         Collisions: 0

 loop:0  Hardware Type: Local Loopback, Address: none
         inet addr: , Mask:
         MTU: 16384, Metric: 0, loopback link
         Receive: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
         Transmit: 0 packets, 0 errors, 0 bytes, 0 mcasts, 0 dropped
         Collisions: 0

 ~>
 }}}

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

Other related posts: