ROHC compression/decompression library
|
ROHC decompression context for the UDP profile. More...
Go to the source code of this file.
Data Structures | |
struct | d_udp_context |
Define the UDP part of the decompression profile context. More... | |
Functions | |
int | udp_parse_static_udp (struct d_generic_context *context, const unsigned char *packet, unsigned int length, struct rohc_extr_bits *const bits) |
Parse the UDP static part of the ROHC packet. | |
void | udp_update_context (const struct d_context *context, const struct rohc_decoded_values decoded) |
Update context with decoded UDP values. |
ROHC decompression context for the UDP profile.
int udp_parse_static_udp | ( | struct d_generic_context * | context, |
const unsigned char * | packet, | ||
unsigned int | length, | ||
struct rohc_extr_bits *const | bits | ||
) |
Parse the UDP static part of the ROHC packet.
context | The generic decompression context |
packet | The ROHC packet to parse |
length | The length of the ROHC packet |
bits | OUT: The bits extracted from the ROHC header |
References GET_NEXT_16_BITS, rohc_debugf, rohc_extr_bits::udp_dst, rohc_extr_bits::udp_dst_nr, rohc_extr_bits::udp_src, and rohc_extr_bits::udp_src_nr.
Referenced by d_udp_create(), and d_udp_lite_create().
void udp_update_context | ( | const struct d_context * | context, |
const struct rohc_decoded_values | decoded | ||
) |
Update context with decoded UDP values.
The following decoded values are updated in context:
context | The decompression context |
decoded | The decoded values to update in the context |
References udphdr::dest, d_generic_changes::next_header, d_generic_context::outer_ip_changes, udphdr::source, d_context::specific, rohc_decoded_values::udp_dst, and rohc_decoded_values::udp_src.
Referenced by d_udp_create(), and d_udp_lite_create().