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.
const char * rohc_get_ip_proto_descr (const uint8_t protocol)
 Give a description for the given IP protocol.

Detailed Description

Defines the IPv4 protocol numbers.

Author:
Didier Barvaux <didier@barvaux.org>

Function Documentation

const char* rohc_get_ip_proto_descr ( const uint8_t  protocol  ) 

Give a description for the given IP protocol.

Parameters:
protocol The 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:
protocol The 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:
protocol The protocol number to check for
Returns:
true if the protocol is IP/IP or IPv6, false otherwise

Generated on 4 Jul 2018 for ROHC compression/decompression library by  doxygen 1.6.1