/* send an echo message: expect a reply */
int8_t rc_proto_send_echo_ans(uint64_t addr, void *data, uint8_t data_len,
- int8_t power)
+ int8_t power, uint16_t timestamp)
{
struct rc_proto_echo_ans hdr;
struct xbee_msg msg;
hdr.type = RC_PROTO_ECHO_ANS;
hdr.datalen = data_len;
+ hdr.timestamp = timestamp;
msg.iovlen = 2;
msg.iov[0].buf = &hdr;
stats.echo_req_rx++;
if (rc_proto_send_echo_ans(ntohll(recvframe->srcaddr),
- rce->data, rce->datalen, power) < 0)
+ rce->data, rce->datalen, power,
+ rce->timestamp) < 0)
return -1;
return 0;