| 
    ROHC compression/decompression library
   
    
   
   | 
  
  
  
 
ROHC compression context for the IP-only profile. More...

Functions | |
| int | c_ip_check_context (const struct c_context *context, const struct ip_packet *ip) | 
| Check if an IP packet belongs to the context.   | |
Variables | |
| struct c_profile | c_ip_profile | 
| Define the compression part of the IP-only profile as described in the RFC 3843.   | |
ROHC compression context for the IP-only profile.
| int c_ip_check_context | ( | const struct c_context * | context, | 
| const struct ip_packet * | ip | ||
| ) | 
Check if an IP packet belongs to the context.
Conditions are:
This function is one of the functions that must exist in one profile for the framework to work.
| context | The compression context | 
| ip | The IP packet to check | 
References ip_header_info::info, c_generic_context::ip2_flags, c_generic_context::ip_flags, ip_get_inner_packet(), ip_get_protocol(), ip_get_version(), IPV4, ipv4_get_daddr(), ipv4_get_saddr(), IPV6, IPV6_ADDR_CMP, ipv6_get_daddr(), IPV6_GET_FLOW_LABEL, ipv6_get_flow_label(), ipv6_get_saddr(), c_generic_context::is_ip2_initialized, ipv4_header_info::old_ip, ipv6_header_info::old_ip, rohc_debugf, c_context::specific, ip_header_info::v4, ip_header_info::v6, version, and ip_header_info::version.
| struct c_profile c_ip_profile | 
{
        0,                  
        NULL,               
        ROHC_PROFILE_IP,    
        "IP / Compressor",  
        c_generic_create,   
        c_generic_destroy,
        c_ip_check_context,
        c_generic_encode,
        c_generic_feedback,
}
Define the compression part of the IP-only profile as described in the RFC 3843.
 1.7.6.1