net/net_if: When IPv6 DAD is disabled, added address gets final state
There is no transition from tentative state etc... It should directly go to preferred. This is fixing ND processing when DAD is disabled: source address was never set, as tentative state is not a valid in is_proper_ipv6_address(). Change-Id: I6f0a0fdd99dd13d28849f9749f89ec21fdd370d8 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
53b9c45f11
commit
178589fc31
1 changed files with 5 additions and 1 deletions
|
@ -443,7 +443,11 @@ void net_if_start_dad(struct net_if *iface)
|
|||
}
|
||||
}
|
||||
#else
|
||||
#define net_if_ipv6_start_dad(...)
|
||||
static inline void net_if_ipv6_start_dad(struct net_if *iface,
|
||||
struct net_if_addr *ifaddr)
|
||||
{
|
||||
ifaddr->addr_state = NET_ADDR_PREFERRED;
|
||||
}
|
||||
#endif /* CONFIG_NET_IPV6_DAD */
|
||||
|
||||
#if defined(CONFIG_NET_IPV6_ND)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue