Skip to content

Commit 39fe6ba

Browse files
Jarkko Pasojuhhei01
authored andcommitted
Added missing HAVE_RPL compiler flag
(cherry picked from commit b838f8d2eb6504e5987b2db840a239fcd90fb335)
1 parent 16a1bc5 commit 39fe6ba

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

source/6LoWPAN/Bootstraps/Generic/protocol_6lowpan_bootstrap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,11 @@ static bool mle_parent_link_req_cb(int8_t interface_id, uint16_t msgId, bool use
845845
tr_debug("Link synch fail %u", cur->nwk_bootstrap_state);
846846
bootsrap_next_state_kick(ER_BOOTSTRAP_CONNECTION_DOWN, cur);
847847
break;
848+
#ifdef HAVE_RPL
848849
case ER_ROUTER_SYNCH:
849850
bootsrap_next_state_kick(ER_RPL_MC, cur);
850851
break;
852+
#endif // HAVE_RPL
851853
default:
852854
break;
853855
}

source/NWK_INTERFACE/Include/protocol.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ typedef enum icmp_state {
102102
ER_MLE_LINK_REQ = 13,
103103
ER_MLE_LINK_SHORT_SYNCH = 14,
104104
ER_MLE_LINK_ADDRESS_SYNCH = 15,
105+
#ifdef HAVE_RPL
105106
ER_ROUTER_SYNCH = 17,
107+
#endif
106108
ER_PANA_PING = 18,
107109
ER_PARENT_SYNCH_LOST = 19,
108110
ER_MLE_SCAN = 20,

0 commit comments

Comments
 (0)