ROHC compression/decompression library
Macros | Functions
feedback_parse.c File Reference

Function to parse ROHC feedback. More...

#include "feedback_parse.h"
#include "rohc_bit_ops.h"
Include dependency graph for feedback_parse.c:

Macros

#define D_FEEDBACK   (0xf0 >> 3)
 

Functions

bool rohc_packet_is_feedback (const uint8_t byte)
 Find out whether a ROHC packet is a Feedback packet or not. More...
 
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. More...
 

Detailed Description

Function to parse ROHC feedback.

Author
Didier Barvaux didie.nosp@m.r.ba.nosp@m.rvaux.nosp@m.@tou.nosp@m.louse.nosp@m..viv.nosp@m.eris..nosp@m.com
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Macro Definition Documentation

#define D_FEEDBACK   (0xf0 >> 3)

The magic bits to find out whether a ROHC packet is a feedback packet

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_dataThe ROHC data to get feedback lengths from
[out]feedback_hdr_lenThe length of the feedback header (in bytes)
[out]feedback_data_lenThe 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
byteThe first byte of ROHC packet to analyze
Returns
Whether the ROHC packet is a Feedback packet or not