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:
Mariano Alvira 2012-12-02 14:25:39 -05:00
parent a25fcc53e8
commit b3bb3ff53d

View file

@ -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");