mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 06:19:54 +00:00
[network-data] fix compile error when building service without border router (#4443)
This commit is contained in:
committed by
Jonathan Hui
parent
77ae260c77
commit
4fec70b67d
@@ -350,8 +350,9 @@ void Local::UpdateRloc(void)
|
||||
|
||||
otError Local::SendServerDataNotification(void)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
uint16_t rloc = Get<Mle::MleRouter>().GetRloc16();
|
||||
otError error = OT_ERROR_NONE;
|
||||
uint16_t rloc = Get<Mle::MleRouter>().GetRloc16();
|
||||
bool isConsistent = true;
|
||||
|
||||
#if OPENTHREAD_FTD
|
||||
|
||||
@@ -366,15 +367,14 @@ otError Local::SendServerDataNotification(void)
|
||||
|
||||
UpdateRloc();
|
||||
|
||||
VerifyOrExit(
|
||||
#if OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
|
||||
!IsOnMeshPrefixConsistent() || !IsExternalRouteConsistent()
|
||||
isConsistent = isConsistent && IsOnMeshPrefixConsistent() && IsExternalRouteConsistent();
|
||||
#endif
|
||||
#if OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
|
||||
|| !IsServiceConsistent()
|
||||
isConsistent = isConsistent && IsServiceConsistent();
|
||||
#endif
|
||||
,
|
||||
ClearResubmitDelayTimer());
|
||||
|
||||
VerifyOrExit(!isConsistent, ClearResubmitDelayTimer());
|
||||
|
||||
if (mOldRloc == rloc)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user