ROHC compression/decompression library
|
ROHC decompression context for the UDP-Lite profile. More...
#include <netinet/ip.h>
#include <netinet/udp.h>
#include "d_generic.h"
#include "d_udp.h"
#include "udp_lite.h"
Go to the source code of this file.
Data Structures | |
struct | d_udp_lite_context |
Define the UDP-Lite part of the decompression profile context. More... | |
Functions | |
int | udp_lite_decode_dynamic_udp (struct d_generic_context *context, const unsigned char *packet, unsigned int length, unsigned char *dest) |
Decode the UDP-Lite dynamic part of the ROHC packet. | |
int | udp_lite_build_uncompressed_udp (struct d_generic_context *context, struct d_generic_changes *active, unsigned char *dest, int payload_size) |
Build an uncompressed UDP-Lite header. |
ROHC decompression context for the UDP-Lite profile.
int udp_lite_build_uncompressed_udp | ( | struct d_generic_context * | context, |
struct d_generic_changes * | active, | ||
unsigned char * | dest, | ||
int | payload_size | ||
) |
Build an uncompressed UDP-Lite header.
context | The generic decompression context |
active | The UDP-Lite header changes |
dest | The buffer to store the UDP-Lite header (MUST be at least of sizeof(struct udphdr) length) |
payload_size | The length of the UDP-Lite payload |
References d_udp_lite_context::cce_packet, d_udp_lite_context::cfi, d_udp_lite_context::cfp, d_generic_changes::next_header, rohc_debugf, and d_generic_context::specific.
Referenced by d_udp_lite_create().
int udp_lite_decode_dynamic_udp | ( | struct d_generic_context * | context, |
const unsigned char * | packet, | ||
unsigned int | length, | ||
unsigned char * | dest | ||
) |
Decode the UDP-Lite dynamic part of the ROHC packet.
context | The generic decompression context |
packet | The ROHC packet to decode |
length | The length of the ROHC packet |
dest | The decoded UDP header |
References d_udp_lite_context::cfi, d_udp_lite_context::cfp, GET_NEXT_16_BITS, ip_decode_dynamic_ip(), PACKET_IR, PACKET_IR_DYN, d_generic_context::packet_type, rohc_debugf, and d_generic_context::specific.
Referenced by d_udp_lite_create().