ROHC compression/decompression library
Functions
d_udp.h File Reference

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

#include "d_generic.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 unsigned char *packet, size_t length, struct rohc_extr_bits *const bits)
 Parse the UDP static part of the ROHC packet.
void udp_update_context (const struct rohc_decomp_ctxt *context, const struct rohc_decoded_values decoded)
 Update context with decoded UDP values.

Detailed Description

ROHC decompression context for the UDP profile.

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

Function Documentation

int udp_parse_static_udp ( const struct rohc_decomp_ctxt *const  context,
const unsigned char *  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
void udp_update_context ( const struct rohc_decomp_ctxt context,
const struct rohc_decoded_values  decoded 
)

Update context with decoded UDP values.

The following decoded values are updated in context:

  • UDP source port
  • UDP destination port
Parameters:
contextThe decompression context
decodedThe decoded values to update in the context