Handle the replicate chain of the TCP compression profile.  
More...
 | 
| static int  | tcp_code_replicate_ipv4_part (const struct rohc_comp_ctxt *const context, ip_context_t *const ip_context, const struct ipv4_hdr *const ipv4, const rohc_ip_id_behavior_t ip_id_behavior, const bool ttl_changed, uint8_t *const rohc_data, const size_t rohc_max_len) | 
|   | Build the replicate part of the IPv4 header.  More...
  | 
|   | 
| static int  | tcp_code_replicate_ipv6_part (const struct rohc_comp_ctxt *const context, ip_context_t *const ip_context, const struct ipv6_hdr *const ipv6, uint8_t *const rohc_data, const size_t rohc_max_len) | 
|   | Build the replicate part of the IPv6 header.  More...
  | 
|   | 
| static int  | tcp_code_replicate_ipv6_opt_part (const struct rohc_comp_ctxt *const context, const struct rohc_pkt_ip_ext_hdr *const ext, uint8_t *const rohc_data, const size_t rohc_max_len) | 
|   | Build the replicate part of the IPv6 option header.  More...
  | 
|   | 
| static int  | tcp_code_replicate_tcp_part (const struct rohc_comp_ctxt *const context, const struct rohc_pkt_hdrs *const uncomp_pkt_hdrs, struct tcp_tmp_variables *const tmp, uint8_t *const rohc_data, const size_t rohc_max_len) | 
|   | Build the replicate part of the TCP header.  More...
  | 
|   | 
| int  | tcp_code_replicate_chain (struct rohc_comp_ctxt *const context, const struct rohc_pkt_hdrs *const uncomp_pkt_hdrs, struct tcp_tmp_variables *const tmp, uint8_t *const rohc_pkt, const size_t rohc_pkt_max_len) | 
|   | Code the replicate chain of an IR packet.  More...
  | 
|   | 
Handle the replicate chain of the TCP compression profile. 
- Author
 - Didier Barvaux didie.nosp@m.r@ba.nosp@m.rvaux.nosp@m..org 
 
 
◆ tcp_code_replicate_chain()
Code the replicate chain of an IR packet. 
- Parameters
 - 
  
     | context | The compression context  | 
     | uncomp_pkt_hdrs | The uncompressed headers to encode  | 
     | tmp | The temporary state for the compressed packet  | 
    | [out] | rohc_pkt | The ROHC packet being built  | 
     | rohc_pkt_max_len | The maximum length of the ROHC packet  | 
  
   
- Returns
 - The length of the ROHC packet if successful, -1 otherwise 
 
 
 
◆ tcp_code_replicate_ipv4_part()
Build the replicate part of the IPv4 header. 
- Parameters
 - 
  
     | context | The compression context  | 
     | ip_context | The specific IP compression context  | 
     | ipv4 | The IPv4 header  | 
     | ip_id_behavior | The IP-ID behavior of the IPv4 header  | 
     | ttl_changed | Whether the IP TTL changed  | 
    | [out] | rohc_data | The ROHC packet being built  | 
     | rohc_max_len | The max remaining length in the ROHC buffer  | 
  
   
- Returns
 - The length appended in the ROHC buffer if positive, -1 in case of error 
 
 
 
◆ tcp_code_replicate_ipv6_opt_part()
  
  
      
        
          | static int tcp_code_replicate_ipv6_opt_part  | 
          ( | 
          const struct rohc_comp_ctxt *const  | 
          context,  | 
         
        
           | 
           | 
          const struct rohc_pkt_ip_ext_hdr *const  | 
          ext,  | 
         
        
           | 
           | 
          uint8_t *const  | 
          rohc_data,  | 
         
        
           | 
           | 
          const size_t  | 
          rohc_max_len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Build the replicate part of the IPv6 option header. 
- Parameters
 - 
  
     | context | The compression context  | 
     | ext | The IPv6 extension header  | 
    | [out] | rohc_data | The ROHC packet being built  | 
     | rohc_max_len | The max remaining length in the ROHC buffer  | 
  
   
- Returns
 - The length appended in the ROHC buffer if positive, -1 in case of error 
 
 
 
◆ tcp_code_replicate_ipv6_part()
  
  
      
        
          | static int tcp_code_replicate_ipv6_part  | 
          ( | 
          const struct rohc_comp_ctxt *const  | 
          context,  | 
         
        
           | 
           | 
          ip_context_t *const  | 
          ip_context,  | 
         
        
           | 
           | 
          const struct ipv6_hdr *const  | 
          ipv6,  | 
         
        
           | 
           | 
          uint8_t *const  | 
          rohc_data,  | 
         
        
           | 
           | 
          const size_t  | 
          rohc_max_len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Build the replicate part of the IPv6 header. 
- Parameters
 - 
  
     | context | The compression context  | 
     | ip_context | The specific IP compression context  | 
     | ipv6 | The IPv6 header  | 
    | [out] | rohc_data | The ROHC packet being built  | 
     | rohc_max_len | The max remaining length in the ROHC buffer  | 
  
   
- Returns
 - The length appended in the ROHC buffer if positive, -1 in case of error 
 
 
 
◆ tcp_code_replicate_tcp_part()
  
  
      
        
          | static int tcp_code_replicate_tcp_part  | 
          ( | 
          const struct rohc_comp_ctxt *const  | 
          context,  | 
         
        
           | 
           | 
          const struct rohc_pkt_hdrs *const  | 
          uncomp_pkt_hdrs,  | 
         
        
           | 
           | 
          struct tcp_tmp_variables *const  | 
          tmp,  | 
         
        
           | 
           | 
          uint8_t *const  | 
          rohc_data,  | 
         
        
           | 
           | 
          const size_t  | 
          rohc_max_len  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Build the replicate part of the TCP header. 
- Parameters
 - 
  
     | context | The compression context  | 
     | uncomp_pkt_hdrs | The uncompressed headers to encode  | 
     | tmp | The temporary state for the compressed packet  | 
    | [out] | rohc_data | The ROHC packet being built  | 
     | rohc_max_len | The max remaining length in the ROHC buffer  | 
  
   
- Returns
 - The length appended in the ROHC buffer if positive, -1 in case of error