TSCH: make *dest_addr const (tsch_packet_create_eack)

This commit is contained in:
Yasuyuki Tanaka 2016-12-14 16:50:28 +01:00
parent 667dd6a210
commit 0b81c0de18
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@
/* Construct enhanced ACK packet and return ACK length */ /* Construct enhanced ACK packet and return ACK length */
int int
tsch_packet_create_eack(uint8_t *buf, int buf_size, tsch_packet_create_eack(uint8_t *buf, int buf_size,
linkaddr_t *dest_addr, uint8_t seqno, int16_t drift, int nack) const linkaddr_t *dest_addr, uint8_t seqno, int16_t drift, int nack)
{ {
int ret; int ret;
uint8_t curr_len = 0; uint8_t curr_len = 0;

View file

@ -88,7 +88,7 @@ by default, useful in case of duplicate seqno */
/* Construct enhanced ACK packet and return ACK length */ /* Construct enhanced ACK packet and return ACK length */
int tsch_packet_create_eack(uint8_t *buf, int buf_size, int tsch_packet_create_eack(uint8_t *buf, int buf_size,
linkaddr_t *dest_addr, uint8_t seqno, int16_t drift, int nack); const linkaddr_t *dest_addr, uint8_t seqno, int16_t drift, int nack);
/* Parse enhanced ACK packet, extract drift and nack */ /* Parse enhanced ACK packet, extract drift and nack */
int tsch_packet_parse_eack(const uint8_t *buf, int buf_size, int tsch_packet_parse_eack(const uint8_t *buf, int buf_size,
uint8_t seqno, frame802154_t *frame, struct ieee802154_ies *ies, uint8_t *hdr_len); uint8_t seqno, frame802154_t *frame, struct ieee802154_ies *ies, uint8_t *hdr_len);