ROHC compression/decompression library
Functions
ip_numbers.c File Reference

Defines the IPv4 protocol numbers. More...

#include "ip_numbers.h"
Include dependency graph for ip_numbers.c:

Functions

bool rohc_is_tunneling (const uint8_t protocol)
 Whether the given protocol is IP tunneling. More...
 
bool rohc_is_ipv6_opt (const uint8_t protocol)
 Whether the given protocol is an IPv6 option. More...
 
const char * rohc_get_ip_proto_descr (const uint8_t protocol)
 Give a description for the given IP protocol. More...
 

Detailed Description

Defines the IPv4 protocol numbers.

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

Function Documentation

const char* rohc_get_ip_proto_descr ( const uint8_t  protocol)

Give a description for the given IP protocol.

Parameters
protocolThe IP protocol to get a description for
Returns
A string that describes the given IP protocol
bool rohc_is_ipv6_opt ( const uint8_t  protocol)

Whether the given protocol is an IPv6 option.

Handle GRE, Authentication (AH), MINE, and all IPv6 extension headers.

The list of IPv6 extension headers was retrieved from the registry maintained by IANA at: http://www.iana.org/assignments/ipv6-parameters/ipv6-parameters.xhtml Remember to update get_index_ipv6_table if you update the list.

Parameters
protocolThe protocol number to check for
Returns
true if the protocol is an IPv6 option, false otherwise
bool rohc_is_tunneling ( const uint8_t  protocol)

Whether the given protocol is IP tunneling.

Parameters
protocolThe protocol number to check for
Returns
true if the protocol is IP/IP or IPv6, false otherwise