mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-15 12:27:50 +00:00
TSCH: make *dest_addr const (tsch_packet_create_eack)
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user