ROHC compression/decompression library
Data Structures | Functions | Variables
d_udp_lite.c File Reference

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

#include "d_udp_lite.h"
#include "d_udp.h"
#include "d_generic.h"
#include "rohc_bit_ops.h"
#include "rohc_traces.h"
#include "rohc_debug.h"
#include "rohc_packets.h"
#include "crc.h"
#include "protocols/udp_lite.h"
#include "config.h"
Include dependency graph for d_udp_lite.c:

Data Structures

struct  d_udp_lite_context
 Define the UDP-Lite part of the decompression profile context. More...

Functions

void * d_udp_lite_create (void)
 Create the UDP-Lite decompression context.
int d_udp_lite_decode (struct rohc_decomp *decomp, struct d_context *context, const unsigned char *const rohc_packet, const unsigned int rohc_length, const size_t add_cid_len, const size_t large_cid_len, unsigned char *dest)
 Decode one IR, IR-DYN or UO* packet for UDP-Lite profile.

Variables

struct d_profile d_udplite_profile
 Define the decompression part of the UDP-Lite profile as described in the RFC 4019.

Detailed Description

ROHC decompression context for the UDP-Lite profile.

Author:
Didier Barvaux <didier.barvaux@toulouse.viveris.com>
Didier Barvaux <didier@barvaux.org>
The hackers from ROHC for Linux

Function Documentation

void* d_udp_lite_create ( void  )
int d_udp_lite_decode ( struct rohc_decomp decomp,
struct d_context context,
const unsigned char *const  rohc_packet,
const unsigned int  rohc_length,
const size_t  add_cid_len,
const size_t  large_cid_len,
unsigned char *  dest 
)

Decode one IR, IR-DYN or UO* packet for UDP-Lite profile.

This function is one of the functions that must exist in one profile for the framework to work.

Parameters:
decompThe ROHC decompressor
contextThe decompression context
rohc_packetThe ROHC packet to decode
rohc_lengthThe length of the ROHC packet
add_cid_lenThe length of the optional Add-CID field
large_cid_lenThe length of the optional large CID field
destThe decoded IP packet
Returns:
The length of the uncompressed IP packet or ROHC_ERROR if an error occurs

References d_udp_lite_context::cce_packet, d_generic_decode(), rohc_debugf, ROHC_ERROR, d_context::specific, and d_generic_context::specific.


Variable Documentation

Initial value:
{
        ROHC_PROFILE_UDPLITE,        
        "UDP-Lite / Decompressor",   
        d_udp_lite_decode,           
        d_udp_lite_create,
        d_udp_lite_destroy,
        d_generic_get_sn,
}

Define the decompression part of the UDP-Lite profile as described in the RFC 4019.