ROHC compression/decompression library
|
Network packet (may contains several IP headers) More...
Functions | |
bool | net_pkt_parse (struct net_pkt *const packet, const struct rohc_buf data, rohc_trace_callback_t trace_cb, rohc_trace_callback2_t trace_cb2, void *const trace_cb_priv, rohc_trace_entity_t trace_entity) |
Parse a network packet. | |
size_t | net_pkt_get_payload_offset (const struct net_pkt *const packet) |
Get the offset of the IP payload in the given packet. |
Network packet (may contains several IP headers)
size_t net_pkt_get_payload_offset | ( | const struct net_pkt *const | packet | ) |
Get the offset of the IP payload in the given packet.
The payload begins after the innermost IP header (and its extension headers).
packet | The packet to get the payload offset for |
bool net_pkt_parse | ( | struct net_pkt *const | packet, |
const struct rohc_buf | data, | ||
rohc_trace_callback_t | trace_cb, | ||
rohc_trace_callback2_t | trace_cb2, | ||
void *const | trace_cb_priv, | ||
rohc_trace_entity_t | trace_entity | ||
) |
Parse a network packet.
[out] | packet | The parsed packet |
data | The data to parse | |
trace_cb | The old function to call for printing traces | |
trace_cb2 | The new function to call for printing traces | |
trace_cb_priv | An optional private context, may be NULL | |
trace_entity | The entity that emits the traces |