ip_id_offset.h File Reference

Offset IP-ID encoding. More...

#include <stdint.h>
#include <stdbool.h>
Include dependency graph for comp/schemes/ip_id_offset.h:

Go to the source code of this file.

Functions

bool is_ip_id_increasing (const uint16_t old_id, const uint16_t new_id)
 Whether the new IP-ID is increasing.

Detailed Description

Offset IP-ID encoding.

Author:
Didier Barvaux <didier@barvaux.org>

Function Documentation

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.

Parameters:
old_id The IP-ID of the previous IPv4 header
new_id The IP-ID of the current IPv4 header
Returns:
Whether the IP-ID is increasing

Generated on 4 Jul 2018 for ROHC compression/decompression library by  doxygen 1.6.1