From ca0fe0153f6c8cebb0232eee0b1a39f40a92aed4 Mon Sep 17 00:00:00 2001 From: Heiner Date: Tue, 29 Oct 2013 09:41:30 +0100 Subject: [PATCH] fixed length for DAO ACK --- sys/net/rpl/rpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/rpl/rpl.c b/sys/net/rpl/rpl.c index 8d573af9bd..f0858fb9a1 100644 --- a/sys/net/rpl/rpl.c +++ b/sys/net/rpl/rpl.c @@ -448,7 +448,7 @@ void send_DAO_ACK(ipv6_addr_t *destination) rpl_send_dao_ack_buf->dao_sequence = my_dodag->dao_seq; rpl_send_dao_ack_buf->status = 0; - uint16_t plen = ICMPV6_HDR_LEN + DIS_BASE_LEN; + uint16_t plen = ICMPV6_HDR_LEN + DAO_ACK_LEN; rpl_send(destination, (uint8_t *)icmp_send_buf, plen, IPV6_PROTO_NUM_ICMPV6, NULL); mutex_unlock(&rpl_send_mutex); }