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

Submitter:  Jan Breuer <jan_breuer>
Submitted:  Fri 06 May 2016 07:32:42 PM UTC
   
 
Category:  IPv6 Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned 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>
Group administrator
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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-23 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed
    2016-05-06 jan_breuer Attached File- Added 0001-nd6-add-cleanup-function.patch, #37092

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code