net: if: Remove IPv6 auto addresses if the prefix is removed

The autoconfigured IPv6 addresses that are related to removed
prefix, need also removed.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2018-08-17 13:33:20 +03:00
commit 57a41a2330
2 changed files with 48 additions and 2 deletions

View file

@ -115,6 +115,9 @@ struct net_if_ipv6_prefix {
/** IPv6 prefix */
struct in6_addr prefix;
/** Backpointer to network interface where this prefix is used */
struct net_if *iface;
/** Prefix length */
u8_t len;