ipv6_ext_rh: define RH type numbers at central place

This moves the type numbers for routing headers to a central place, as
we did it with other IANA-registered numbers.
This commit is contained in:
Martine Lenders 2018-10-24 19:08:48 +02:00 committed by Martine Lenders
parent 959e4491fa
commit 3c4bd0ac57

View File

@ -32,6 +32,34 @@
extern "C" { extern "C" {
#endif #endif
/**
* @name Routing header types
* @see [IANA, IPv6 parameters](https://www.iana.org/assignments/ipv6-parameters/ipv6-parameters.xhtml#ipv6-parameters-3)
* @{
*/
/**
* @brief Type 0 routing header (deprecated)
*/
#define IPV6_EXT_RH_TYPE_0 (0U)
/**
* @brief Nimrod routing header (deprecated)
*/
#define IPV6_EXT_RH_TYPE_NIMROD (1U)
/**
* @brief Type 2 routing header
* @see [RFC 6275, section 6.4](https://tools.ietf.org/html/rfc6275#section-6.4)
*/
#define IPV6_EXT_RH_TYPE_2 (2U)
/**
* @brief RPL source routing header
* @see [RFC 6554](https://tools.ietf.org/html/rfc6554)
*/
#define IPV6_EXT_RH_TYPE_RPL_SRH (3U)
/** @} */
/** /**
* @brief IPv6 routing extension header. * @brief IPv6 routing extension header.
* *