mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
fix very incorrect insert_at_rx_head; the bugged version would make
the rest of the rx list dangling. this is used to insert the ack packet needed by the upper layers in the netstack.
This commit is contained in:
parent
a25fcc53e8
commit
b3bb3ff53d
@ -559,7 +559,8 @@ void insert_at_rx_head(volatile packet_t *p) {
|
||||
} else {
|
||||
rx_head->right = p;
|
||||
p->left = rx_head;
|
||||
rx_head = p; rx_head->left = 0;
|
||||
p->right = 0;
|
||||
rx_head = p;
|
||||
}
|
||||
|
||||
// print_packets("insert at rx head");
|
||||
|
Loading…
Reference in New Issue
Block a user