wn-upf / Komondor

Komondor Wireless Networks Simulator
GNU General Public License v3.0
65 stars 19 forks source link

Buffer dynamics and new packet handling #80

Closed sergiobarra closed 6 years ago

sergiobarra commented 6 years ago

The buffer is no longer a logical entity, but a virtual buffer containing different "Notification" packets. Therefore, when a new packet is generated, a corresponding Notification must be put in the buffer with the corresponding timestamp and packet id.

The current code strongly relies on counters like packet_id and num_packets_in_buffer . Fix it accordingly.