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.
bool rohc_is_ipv6_opt (const uint8_t protocol)
 Whether the given protocol is an IPv6 option.

Detailed Description

Defines the IPv4 protocol numbers.

Author:
Didier Barvaux <didier@barvaux.org>

Function Documentation

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