ROHC compression/decompression library
Functions
d_udp.h File Reference

ROHC decompression context for the UDP profile. More...

#include "rohc_decomp_rfc3095.h"
Include dependency graph for d_udp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int udp_parse_static_udp (const struct rohc_decomp_ctxt *const context, const uint8_t *packet, size_t length, struct rohc_extr_bits *const bits)
 Parse the UDP static part of the ROHC packet. More...
 

Detailed Description

ROHC decompression context for the UDP profile.

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

Function Documentation

int udp_parse_static_udp ( const struct rohc_decomp_ctxt *const  context,
const uint8_t *  packet,
size_t  length,
struct rohc_extr_bits *const  bits 
)

Parse the UDP static part of the ROHC packet.

Parameters
contextThe decompression context
packetThe ROHC packet to parse
lengthThe length of the ROHC packet
bitsOUT: The bits extracted from the ROHC header
Returns
The number of bytes read in the ROHC packet, -1 in case of failure