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
|
#ifdef CONFIG_NET_ICMPv6_ROUTER_MANUAL
|
||||||
/* Copy the configured prefex */
|
/* Copy the configured prefex */
|
||||||
|
|
||||||
|
prefix->preflen = CONFIG_NET_ICMPv6_PREFLEN;
|
||||||
net_ipv6addr_copy(prefix->prefix, g_ipv6_prefix);
|
net_ipv6addr_copy(prefix->prefix, g_ipv6_prefix);
|
||||||
#else
|
#else
|
||||||
/* Set the prefix and prefix length based on net driver IP and netmask */
|
/* Set the prefix and prefix length based on net driver IP and netmask */
|
||||||
|
Loading…
Reference in New Issue
Block a user