feedback_parse.h File Reference

Function to parse ROHC feedback. More...

#include <rohc/rohc_buf.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
Include dependency graph for feedback_parse.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool rohc_packet_is_feedback (const uint8_t byte)
 Find out whether a ROHC packet is a Feedback packet or not.
bool rohc_feedback_get_size (const struct rohc_buf rohc_data, size_t *const feedback_hdr_len, size_t *const feedback_data_len)
 Find out the lengths of the feedback header and data.

Detailed Description

Function to parse ROHC feedback.

Author:
Didier Barvaux <didier.barvaux@toulouse.viveris.com>
Didier Barvaux <didier@barvaux.org>

Function Documentation

bool rohc_feedback_get_size ( const struct rohc_buf  rohc_data,
size_t *const   feedback_hdr_len,
size_t *const   feedback_data_len 
)

Find out the lengths of the feedback header and data.

See 5.2.2 in the RFC 3095 for details.

Parameters:
rohc_data The ROHC data to get feedback lengths from
[out] feedback_hdr_len The length of the feedback header (in bytes)
[out] feedback_data_len The length of the feedback data (in bytes)
Returns:
true if feedback parsing was successful, false if feedback is malformed
bool rohc_packet_is_feedback ( const uint8_t  byte  ) 

Find out whether a ROHC packet is a Feedback packet or not.

Parameters:
byte The first byte of ROHC packet to analyze
Returns:
Whether the ROHC packet is a Feedback packet or not

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