ROHC compression/decompression library
Functions
c_tcp_irregular.h File Reference

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

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

Go to the source code of this file.

Functions

int tcp_code_irreg_chain (struct rohc_comp_ctxt *const context, const struct ip_packet *const ip, const uint8_t ip_inner_ecn, const struct tcphdr *const tcp, uint8_t *const rohc_pkt, const size_t rohc_pkt_max_len)
 Code the irregular chain of one CO packet. More...
 

Detailed Description

Handle the irregular chain of the TCP compression profile.

Author
FWX rohc_.nosp@m.team.nosp@m.@dial.nosp@m.ine..nosp@m.fr
Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org
Didier Barvaux didie.nosp@m.r.ba.nosp@m.rvaux.nosp@m.@tou.nosp@m.louse.nosp@m..viv.nosp@m.eris..nosp@m.com

Function Documentation

◆ tcp_code_irreg_chain()

int tcp_code_irreg_chain ( struct rohc_comp_ctxt *const  context,
const struct ip_packet *const  ip,
const uint8_t  ip_inner_ecn,
const struct tcphdr *const  tcp,
uint8_t *const  rohc_pkt,
const size_t  rohc_pkt_max_len 
)

Code the irregular chain of one CO packet.

Parameters
contextThe compression context
ipThe outer IP header
ip_inner_ecnThe ECN flags of the innermost IP header
tcpThe uncompressed TCP header
rohc_pktOUT: The ROHC packet
rohc_pkt_max_lenThe maximum length of the ROHC packet
Returns
The length of the ROHC packet if successful, -1 otherwise