Linked list update after the packet has been read from the buffer
The read block should be:
- Removed from queue(I). Two cases can occur:
- It was the last block in queue(I) ? remove_oneElement function
- Queue(I) had more than one element ? remove_normal function
- Added to free_space. Two cases can occur:
- Free_space is empty ? add_empty function
- Free_space is not empty ? add_normal function