ROHC compression/decompression library
Functions
d_tcp_irregular.h File Reference
#include "rohc_decomp_internals.h"
#include "d_tcp_defines.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for d_tcp_irregular.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool tcp_parse_irreg_chain (const struct rohc_decomp_ctxt *const context, const uint8_t *const rohc_packet, const size_t rohc_length, const rohc_ip_id_behavior_t innermost_ip_id_behavior, struct rohc_tcp_extr_bits *const bits, size_t *const parsed_len)
 Parse the irregular chain of the ROHC packet. More...
 

Function Documentation

◆ tcp_parse_irreg_chain()

bool tcp_parse_irreg_chain ( const struct rohc_decomp_ctxt *const  context,
const uint8_t *const  rohc_packet,
const size_t  rohc_length,
const rohc_ip_id_behavior_t  innermost_ip_id_behavior,
struct rohc_tcp_extr_bits *const  bits,
size_t *const  parsed_len 
)

Parse the irregular chain of the ROHC packet.

Parameters
contextThe decompression context
rohc_packetThe remaining part of the ROHC packet
rohc_lengthThe remaining length (in bytes) of ROHC packet
innermost_ip_id_behaviorThe behavior of the innermost IP-ID
[out]bitsThe bits extracted from the irregular chain in case of success
[out]parsed_lenThe length (in bytes) of irregular chain in case of success
Returns
true in the irregular chain was successfully parsed, false if the ROHC packet was malformed