ROHC compression/decompression library
Functions
c_tcp_replicate.h File Reference

Handle the replicate chain of the TCP compression profile. More...

#include "rohc_comp_internals.h"
#include "ip.h"
#include <stdint.h>
#include <stdlib.h>
Include dependency graph for c_tcp_replicate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int tcp_code_replicate_chain (struct rohc_comp_ctxt *const context, const struct ip_packet *const ip, uint8_t *const rohc_pkt, const size_t rohc_pkt_max_len, size_t *const parsed_len)
 Code the replicate chain of an IR packet. More...
 

Detailed Description

Handle the replicate chain of the TCP compression profile.

Author
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org

Function Documentation

◆ tcp_code_replicate_chain()

int tcp_code_replicate_chain ( struct rohc_comp_ctxt *const  context,
const struct ip_packet *const  ip,
uint8_t *const  rohc_pkt,
const size_t  rohc_pkt_max_len,
size_t *const  parsed_len 
)

Code the replicate chain of an IR packet.

Parameters
contextThe compression context
ipThe outer IP header
rohc_pktOUT: The ROHC packet
rohc_pkt_max_lenThe maximum length of the ROHC packet
[out]parsed_lenThe length of uncompressed data parsed
Returns
The length of the ROHC packet if successful, -1 otherwise