buglwIP - A Lightweight TCP/IP stack - Bugs: bug #47867, Incorrect handling of IPv6...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47867: Incorrect handling of IPv6 addresses reconfiguration after netif down

Submitted by:  Jan Breuer <jan_breuer>
Submitted on:  Fri 06 May 2016 07:32:42 PM UTC  
 
Category: IPv6Severity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Mon 23 May 2016 07:47:50 AM UTC, comment #1:

Done, thanks for the patch

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Fri 06 May 2016 07:32:42 PM UTC, original submission:

I would like to implement network reconfiguration on the fly without restarting whole MCU.

Imagine two modes - autoconfiguration and static IP configuration.

After changing from one mode to another, I don't want old addresses to persist I do following steps

netif_set_down(netif);
foreach(ip6_addr) {
netif_ip6_addr_set(netif, i, IP6_ADDR_ANY6);
netif_ip6_addr_set_state(netif, i, IP6_ADDR_INVALID);
}
netif_create_ip6_linklocal_address(netif, 1);
netif->ip6_autoconfig_enabled = MODE;
netif_set_up(netif);

But after performing these steps twice with MODE=1, no autoconfiguration address is assigned after second run.

After some investigation I found, that there is missing something like nd6_cleanup_netif in netif_set_down

After implementing it and calling it from netif_set_down, it starts working.

In the attachement, there is simple implementation of nd6_cleanup_netif. I may not be correct in handling of default_route cleanup.

Jan Breuer <jan_breuer>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by jan_breuer (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 May 2016 07:47:50 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed
    Fri 06 May 2016 07:32:42 PM UTCjan_breuerAttached File-=>Added 0001-nd6-add-cleanup-function.patch, #37092

    Back to the top


    Powered by Savane 3.1-cleanup1