26 #ifndef ROHC_COMMON_NET_PKT_H
27 #define ROHC_COMMON_NET_PKT_H
29 #include <rohc/rohc_buf.h>
62 void *
const trace_cb_priv,
64 __attribute__((warn_unused_result, nonnull(1)));
67 __attribute__((warn_unused_result, nonnull(1)));
size_t len
Definition: net_pkt.h:42
size_t net_pkt_get_payload_offset(const struct net_pkt *const packet)
Get the offset of the IP payload in the given packet.
Definition: net_pkt.c:154
void(* rohc_trace_callback2_t)(void *const priv_ctxt, const rohc_trace_level_t level, const rohc_trace_entity_t entity, const int profile, const char *const format,...)
The function prototype for the trace callback.
Definition: rohc_traces.h:118
struct ip_packet inner_ip
Definition: net_pkt.h:46
rohc_ctxt_key_t key
Definition: net_pkt.h:50
bool net_pkt_parse(struct net_pkt *const packet, const struct rohc_buf data, rohc_trace_callback2_t trace_cb, void *const trace_cb_priv, rohc_trace_entity_t trace_entity)
Parse a network packet.
Definition: net_pkt.c:44
void * trace_callback_priv
Definition: net_pkt.h:55
uint32_t rohc_ctxt_key_t
Definition: net_pkt.h:35
size_t ip_hdr_nr
Definition: net_pkt.h:44
const uint8_t * data
Definition: net_pkt.h:41
rohc_trace_callback2_t trace_callback
Definition: net_pkt.h:53
A network buffer for the ROHC library.
Definition: rohc_buf.h:104
struct ip_packet outer_ip
Definition: net_pkt.h:45
struct net_hdr * transport
Definition: net_pkt.h:48
ROHC definitions for traces.
Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet.
Definition: ip.h:81
rohc_trace_entity_t
The different entities concerned by the traces.
Definition: rohc_traces.h:81
uint8_t * data
Definition: ip.h:72