rohc_decomp_get_mrru

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS
STRUCTURES
RETURN VALUE
SEE ALSO

NAME

rohc_decomp_get_mrru − Get the Maximum Reconstructed Reception Unit (MRRU).

SYNOPSIS

#include <rohc/rohc_decomp.h>

bool rohc_decomp_get_mrru(
const struct rohc_decomp *const decomp
,
size_t *const mrru

);

DESCRIPTION

Get the current Maximum Reconstructed Reception Unit (MRRU).

The MRRU is the largest cumulative length (in bytes) of the ROHC segments that are parts of the same ROHC packet. In short, the ROHC decompressor does not expect to reassemble ROHC segments whose total length is larger than MRRU. So, the ROHC compressor shall not segment ROHC packets greater than the MRRU.

The MRRU value must be in range [0 ; ROHC_MAX_MRRU]. Remember that the MRRU includes the 32−bit CRC that protects it. If MRRU value is 0, segmentation is disabled.

If segmentation is enabled and used by the compressor, the function rohc_decompress3 will return ROHC_OK and one empty uncompressed packet upon decompression until the last segment is received (or a non−segment is received). Decompressed data will be returned at that time.

PARAMETERS

decomp

The ROHC decompressor

mrru [output]

The current MRRU value (in bytes)

STRUCTURES

RETURN VALUE

true if MRRU was successfully retrieved, false otherwise

SEE ALSO

rohc_decomp.h(3), ROHC_MAX_MRRU(3), rohc_decompress3(3), rohc_decomp_set_mrru(3), rohc_comp_set_mrru(3), rohc_comp_get_mrru(3)