Opened 9 years ago

Last modified 5 years ago

#6489 new bug

ifconfig needs to validate availability of ipv6 module prior to utilization

Reported by: kallisti5 Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Network & Internet/IPv6 Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

executing ' ifconfig loop:0 inet6 ::1 up ' results in the following when no ipv6 module is installed:

usage (--help) output appears as nothing has happened.

However:

loop:0 created inet addr: , Mask:

Change History (3)

comment:1 Changed 9 years ago by kallisti5

Here is a little clearer example: (hrev38311)

~> 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

~> 

comment:2 Changed 9 years ago by kallisti5

~> ls /system/add-ons/kernel/network/protocols/
icmp  ipv4  tcp  udp  unix

comment:3 Changed 5 years ago by luroh

Milestone: R1Unscheduled

Moving IPv6 related tickets out of R1 milestone.

Note: See TracTickets for help on using tickets.