Opened 6 years ago

Last modified 5 years ago

#9594 new bug

[net_server] IPv6 Link Local prevents proper interface deletion

Reported by: diver Owned by: kallisti5
Priority: normal Milestone: R1
Component: Servers/net_server Version: R1/Development
Keywords: Cc: shade
Blocked By: Blocking: #11276
Has a Patch: no Platform: All

Description

This is hrev45432.

ifconfig del /dev/net/ipro1000/0 

deletes the interface from ifconfig, but leaves it in net_device_interfaces list. So if one tries to bring back the interface he will get an error:

ifconfig /dev/net/ipro1000/0 up
ifconfig: Couldn't add interface: General system error

Removing /system/add-ons/kernel/network/protocols/ipv6 module or commenting out _ConfigureIPv6LinkLocal fixes it.

Change History (9)

comment:1 Changed 6 years ago by kallisti5

Thanks for catching this one... looking into it now.

comment:2 Changed 6 years ago by diver

Deleting the ipv4 and ipv6 address from the interface prior to deleting it itself doesn't help.

~> ifconfig /dev/net/ipro1000/0
/dev/net/ipro1000/0
        Hardware type: Ethernet, Address: 08:00:27:b8:ae:41
        Media type: 1 GBit, 1000BASE-T
        inet addr: 10.0.2.15, Bcast: 10.0.2.255, Mask: 255.255.255.0
        inet6 addr: fe80::a00:27ff:feb8:ae41, Bcast: ffff:ffff:ffff:ffff::, Prefix Length: 64
        MTU: 1500, Metric: 0, up broadcast link auto-configured
        Receive: 5 packets, 0 errors, 1872 bytes, 0 mcasts, 0 dropped
        Transmit: 5 packets, 0 errors, 824 bytes, 0 mcasts, 0 dropped
        Collisions: 0

~> ifconfig del /dev/net/ipro1000/0 10.0.2.15
~> ifconfig del /dev/net/ipro1000/0 fe80::a00:27ff:feb8:ae41

~> ifconfig /dev/net/ipro1000/0
/dev/net/ipro1000/0
        Hardware type: Ethernet, Address: 08:00:27:b8:ae:41
        Media type: 1 GBit, 1000BASE-T
        MTU: 1500, Metric: 0, up broadcast link auto-configured
        Receive: 5 packets, 0 errors, 1872 bytes, 0 mcasts, 0 dropped
        Transmit: 5 packets, 0 errors, 824 bytes, 0 mcasts, 0 dropped
        Collisions: 0

~> ifconfig del /dev/net/ipro1000/0
~> ifconfig /dev/net/ipro1000/0 up
ifconfig: Could not add interface: General system error

~> ifconfig /dev/net/ipro1000/0
/dev/net/ipro1000/0
        Hardware type: Ethernet, Address: 08:00:27:b8:ae:41
        MTU: 0, Metric: 0

comment:3 Changed 6 years ago by diver

Blocking: 9695 added

comment:4 Changed 6 years ago by kallisti5

I'm thinking of disabling the local link stuff.. our v6 stack just isn't ready yet. i'm even seeing a local link route with a prefix of -2147454933 in route.

comment:5 Changed 6 years ago by kallisti5

I disabled the link local address in hrev45736 for now. Since we lack v6 address scope, it seems to cause more problems than solve at the moment.

Last edited 6 years ago by kallisti5 (previous) (diff)

comment:6 Changed 6 years ago by diver

Note that ::/-2147454933 loop, host local is still there in hrev45736.

comment:7 Changed 6 years ago by diver

Blocking: 9695 removed

(In #9695) Still here in hrev45736.

comment:8 in reply to:  6 Changed 6 years ago by kallisti5

Replying to diver:

Note that ::/-2147454933 loop, host local is still there in hrev45736.

The main reason I decided to disable it. If we can't seem to get the loopback correct... the local link up is a little early :)

I have native IPv6 on my home network again, so I'm going to see if I can figure out whats going on here.

comment:9 Changed 5 years ago by diver

Blocking: 11276 added

(In #11276) Ok then :)

Note: See TracTickets for help on using tickets.