ROHC compression/decompression library
|
Defines the IPv4 protocol numbers. More...
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Enumerations | |
enum | { ROHC_IPPROTO_HOPOPTS = 0, ROHC_IPPROTO_IPIP = 4, ROHC_IPPROTO_TCP = 6, ROHC_IPPROTO_UDP = 17, ROHC_IPPROTO_IPV6 = 41, ROHC_IPPROTO_ROUTING = 43, ROHC_IPPROTO_FRAGMENT = 44, ROHC_IPPROTO_GRE = 47, ROHC_IPPROTO_ESP = 50, ROHC_IPPROTO_AH = 51, ROHC_IPPROTO_MINE = 55, ROHC_IPPROTO_DSTOPTS = 60, ROHC_IPPROTO_MOBILITY = 135, ROHC_IPPROTO_UDPLITE = 136, ROHC_IPPROTO_HIP = 139, ROHC_IPPROTO_SHIM = 140, ROHC_IPPROTO_RESERVED1 = 253, ROHC_IPPROTO_RESERVED2 = 254, ROHC_IPPROTO_MAX = 255 } |
The IP numbers defined by IANA. More... | |
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... | |
Defines the IPv4 protocol numbers.
This file contains some parts from the GNU C library. It is copied here to be portable on all platforms, even the platforms that miss the declarations or got different declarations, such as Microsoft Windows or FreeBSD.
The copyright statement of the GNU C library is: Copyright (C) 1991-2001, 2003, 2004, 2006, 2007, 2008, 2011, 2012 Free Software Foundation, Inc.
anonymous enum |
The IP numbers defined by IANA.
Full list at: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml
const char* rohc_get_ip_proto_descr | ( | const uint8_t | protocol | ) |
Give a description for the given IP protocol.
protocol | The IP protocol to get a description for |
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.
protocol | The protocol number to check for |
bool rohc_is_tunneling | ( | const uint8_t | protocol | ) |
Whether the given protocol is IP tunneling.
protocol | The protocol number to check for |