From 7742b05d8cc5976c27c365c517699b403944b3b1 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Sun, 17 Mar 2013 23:49:32 +0100 Subject: [PATCH] Major bugfix: when nullrdc is asked to send a list of packets, send the list of packets and not just the first packet - this is essential for retransmissions of fragmented IP packets to work --- core/net/mac/nullrdc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/mac/nullrdc.c b/core/net/mac/nullrdc.c index 1ba5d939b..9321c3ede 100644 --- a/core/net/mac/nullrdc.c +++ b/core/net/mac/nullrdc.c @@ -208,9 +208,10 @@ send_packet(mac_callback_t sent, void *ptr) static void send_list(mac_callback_t sent, void *ptr, struct rdc_buf_list *buf_list) { - if(buf_list != NULL) { + while(buf_list != NULL) { queuebuf_to_packetbuf(buf_list->buf); send_packet(sent, ptr); + buf_list = buf_list->next; } } /*---------------------------------------------------------------------------*/