net/icmpv6/icmpv6_radvertise.c: set the prefix length to preconfigured value
This commit is contained in:
parent
795e884aea
commit
d741185c91
|
@ -226,6 +226,7 @@ void icmpv6_radvertise(FAR struct net_driver_s *dev)
|
|||
#ifdef CONFIG_NET_ICMPv6_ROUTER_MANUAL
|
||||
/* Copy the configured prefex */
|
||||
|
||||
prefix->preflen = CONFIG_NET_ICMPv6_PREFLEN;
|
||||
net_ipv6addr_copy(prefix->prefix, g_ipv6_prefix);
|
||||
#else
|
||||
/* Set the prefix and prefix length based on net driver IP and netmask */
|
||||
|
|
Loading…
Reference in New Issue