ROHC compression/decompression library
|
Offset IP-ID encoding. More...
#include "ip_id_offset.h"
Functions | |
bool | is_ip_id_increasing (const uint16_t old_id, const uint16_t new_id) |
Whether the new IP-ID is increasing. More... | |
Offset IP-ID encoding.
bool is_ip_id_increasing | ( | const uint16_t | old_id, |
const uint16_t | new_id | ||
) |
Whether the new IP-ID is increasing.
The new IP-ID is considered as increasing if the new value is greater by a small delta then the previous IP-ID. Wraparound shall be taken into account.
old_id | The IP-ID of the previous IPv4 header |
new_id | The IP-ID of the current IPv4 header |