@@ -137,7 +137,7 @@ create_mlme_long_ie_descriptor(uint8_t *buf, uint8_t sub_id, int ie_len)
137137/* Header IE. ACK/NACK time correction. Used in enhanced ACKs */ 
138138int 
139139frame80215e_create_ie_header_ack_nack_time_correction (uint8_t  * buf , int  len ,
140-     struct  ieee802154_ies  * ies )
140+     const   struct  ieee802154_ies  * ies )
141141{
142142  int  ie_len  =  2 ;
143143  if (len  >= 2  +  ie_len  &&  ies  !=  NULL ) {
@@ -203,7 +203,8 @@ frame80215e_create_ie_payload_list_termination(uint8_t *buf, int len,
203203#if  TSCH_WITH_SIXTOP 
204204/* Payload IE. 6top. Used to nest sub-IEs */ 
205205int 
206- frame80215e_create_ie_ietf (uint8_t  * buf , int  len , struct  ieee802154_ies  * ies )
206+ frame80215e_create_ie_ietf (uint8_t  * buf , int  len ,
207+     const  struct  ieee802154_ies  * ies )
207208{
208209  if (len  >= 2  &&  ies  !=  NULL ) {
209210    create_payload_ie_descriptor (buf ,
@@ -218,7 +219,7 @@ frame80215e_create_ie_ietf(uint8_t *buf, int len, struct ieee802154_ies *ies)
218219/* Payload IE. MLME. Used to nest sub-IEs */ 
219220int 
220221frame80215e_create_ie_mlme (uint8_t  * buf , int  len ,
221-     struct  ieee802154_ies  * ies )
222+     const   struct  ieee802154_ies  * ies )
222223{
223224  int  ie_len  =  0 ;
224225  if (len  >= 2  +  ie_len  &&  ies  !=  NULL ) {
@@ -233,7 +234,7 @@ frame80215e_create_ie_mlme(uint8_t *buf, int len,
233234/* MLME sub-IE. TSCH synchronization. Used in EBs: ASN and join priority */ 
234235int 
235236frame80215e_create_ie_tsch_synchronization (uint8_t  * buf , int  len ,
236-     struct  ieee802154_ies  * ies )
237+     const   struct  ieee802154_ies  * ies )
237238{
238239  int  ie_len  =  6 ;
239240  if (len  >= 2  +  ie_len  &&  ies  !=  NULL ) {
@@ -253,7 +254,7 @@ frame80215e_create_ie_tsch_synchronization(uint8_t *buf, int len,
253254/* MLME sub-IE. TSCH slotframe and link. Used in EBs: initial schedule */ 
254255int 
255256frame80215e_create_ie_tsch_slotframe_and_link (uint8_t  * buf , int  len ,
256-     struct  ieee802154_ies  * ies )
257+     const   struct  ieee802154_ies  * ies )
257258{
258259  if (ies  !=  NULL ) {
259260    int  i ;
@@ -290,7 +291,7 @@ frame80215e_create_ie_tsch_slotframe_and_link(uint8_t *buf, int len,
290291/* MLME sub-IE. TSCH timeslot. Used in EBs: timeslot template (timing) */ 
291292int 
292293frame80215e_create_ie_tsch_timeslot (uint8_t  * buf , int  len ,
293-     struct  ieee802154_ies  * ies )
294+     const   struct  ieee802154_ies  * ies )
294295{
295296  int  ie_len ;
296297  if (ies  ==  NULL ) {
@@ -316,7 +317,7 @@ frame80215e_create_ie_tsch_timeslot(uint8_t *buf, int len,
316317/* MLME sub-IE. TSCH channel hopping sequence. Used in EBs: hopping sequence */ 
317318int 
318319frame80215e_create_ie_tsch_channel_hopping_sequence (uint8_t  * buf , int  len ,
319-     struct  ieee802154_ies  * ies )
320+     const   struct  ieee802154_ies  * ies )
320321{
321322  int  ie_len ;
322323  if (ies  ==  NULL  ||  ies -> ie_hopping_sequence_len  >  sizeof (ies -> ie_hopping_sequence_list )) {
0 commit comments