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__((nonnull(1)));
    67         __attribute__((warn_unused_result, nonnull(1)));
 size_t len
Definition: net_pkt.h:44
 
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:116
 
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
 
void 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:41
 
struct ip_packet inner_ip
Definition: net_pkt.h:48
 
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:46
 
const uint8_t * data
Definition: net_pkt.h:43
 
rohc_trace_callback2_t trace_callback
Definition: net_pkt.h:53
 
A network buffer for the ROHC library. 
Definition: rohc_buf.h:102
 
struct rohc_ts time
Definition: net_pkt.h:41
 
A timestamp for the ROHC library. 
Definition: rohc_time.h:51
 
struct ip_packet outer_ip
Definition: net_pkt.h:47
 
struct net_hdr * transport
Definition: net_pkt.h:50
 
ROHC definitions for traces. 
 
Defines an IP-agnostic packet that can handle an IPv4 or IPv6 packet. 
Definition: ip.h:77
 
rohc_trace_entity_t
The different entities concerned by the traces. 
Definition: rohc_traces.h:81