diff --git a/sys/include/net/gnrc/ipv6/ext.h b/sys/include/net/gnrc/ipv6/ext.h index 5ea3eb49a7..84fdf17d83 100644 --- a/sys/include/net/gnrc/ipv6/ext.h +++ b/sys/include/net/gnrc/ipv6/ext.h @@ -10,9 +10,7 @@ * @defgroup net_gnrc_ipv6_ext IPv6 extension headers. * @ingroup net_gnrc_ipv6 * @brief Implementation of IPv6 extension headers - * @see - * RFC 2460, section 4 - * + * @see [RFC 8200, section 4](https://tools.ietf.org/html/rfc8200#section-4) * @{ * * @file diff --git a/sys/include/net/ipv6.h b/sys/include/net/ipv6.h index c7f66153c8..90a7dd5289 100644 --- a/sys/include/net/ipv6.h +++ b/sys/include/net/ipv6.h @@ -11,9 +11,7 @@ * @ingroup net * @brief Provides types and helper functions related to Internet Protocol * version 6 (IPv6) - * @see - * RFC 2460 - * et al. + * @see [RFC 8200](http://tools.ietf.org/html/rfc8200) et al. * @{ * * @file @@ -35,9 +33,7 @@ extern "C" { /** * @brief minimum **M**aximum **T**ransition **U**nit * - * @see - * RFC 2460, section 5.3 - * + * @see [RFC 8200, section 5](https://tools.ietf.org/html/rfc8200#section-5) */ #define IPV6_MIN_MTU (1280) diff --git a/sys/include/net/ipv6/ext.h b/sys/include/net/ipv6/ext.h index 6dee6dcfa8..7f586b63f2 100644 --- a/sys/include/net/ipv6/ext.h +++ b/sys/include/net/ipv6/ext.h @@ -34,9 +34,7 @@ extern "C" { /** * @brief IPv6 extension headers. * - * @see - * RFC 2460, section 4.1 - * + * @see [RFC 8200, section 4](https://tools.ietf.org/html/rfc8200#section-4) */ typedef struct __attribute__((packed)) { uint8_t nh; /**< next header */ diff --git a/sys/include/net/ipv6/ext/rh.h b/sys/include/net/ipv6/ext/rh.h index fa22634c77..39848d6c8c 100644 --- a/sys/include/net/ipv6/ext/rh.h +++ b/sys/include/net/ipv6/ext/rh.h @@ -44,9 +44,7 @@ extern "C" { /** * @brief IPv6 routing extension header. * - * @see - * RFC 2460, section 4.4 - * + * @see [RFC 8200](https://tools.ietf.org/html/rfc8200#section-4.4) * * @extends ipv6_ext_t */ diff --git a/sys/include/net/ipv6/hdr.h b/sys/include/net/ipv6/hdr.h index 9351a3abe3..771a0b9eaa 100644 --- a/sys/include/net/ipv6/hdr.h +++ b/sys/include/net/ipv6/hdr.h @@ -61,9 +61,7 @@ extern "C" { * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * - * @see - * RFC 2460, section 3 - * + * @see [RFC 8200, section 3](http://tools.ietf.org/html/rfc8200#section-3) */ typedef struct __attribute__((packed)) { /** @@ -268,9 +266,7 @@ static inline uint32_t ipv6_hdr_get_fl(const ipv6_hdr_t *hdr) /** * @brief Calculates the Internet Checksum for the IPv6 Pseudo Header. * - * @see - * RFC 2460, section 8.1 - * + * @see [RFC 8200, section 8.1](https://tools.ietf.org/html/rfc8200#section-8.1) * * @param[in] sum Preinialized value of the sum. * @param[in] prot_num The @ref net_protnum you want to calculate the diff --git a/sys/net/gnrc/transport_layer/udp/gnrc_udp.c b/sys/net/gnrc/transport_layer/udp/gnrc_udp.c index 859117b79f..2bc293f4b4 100644 --- a/sys/net/gnrc/transport_layer/udp/gnrc_udp.c +++ b/sys/net/gnrc/transport_layer/udp/gnrc_udp.c @@ -87,7 +87,7 @@ static uint16_t _calc_csum(gnrc_pktsnip_t *hdr, gnrc_pktsnip_t *pseudo_hdr, } /* return inverted results */ if (csum == 0xFFFF) { - /* https://tools.ietf.org/html/rfc2460#section-8.1 + /* https://tools.ietf.org/html/rfc8200#section-8.1 * bullet 4 * "if that computation yields a result of zero, it must be changed * to hex FFFF for placement in the UDP header." @@ -137,7 +137,7 @@ static void _receive(gnrc_pktsnip_t *pkt) /* validate checksum */ if (byteorder_ntohs(hdr->checksum) == 0) { - /* RFC 2460 Section 8.1 + /* RFC 8200 Section 8.1 * "IPv6 receivers must discard UDP packets containing a zero checksum, * and should log the error." */ diff --git a/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.c b/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.c index fdfdc10e4e..39a0a05274 100644 --- a/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.c +++ b/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.c @@ -204,7 +204,7 @@ static void test_gnrc_udp__csum_zero(void) int status = _compute_checksum(payload_data, sizeof(payload_data), &checksum); TEST_ASSERT_EQUAL_INT(0, status); - /* https://tools.ietf.org/html/rfc2460#section-8.1 + /* https://tools.ietf.org/html/rfc8200#section-8.1 * bullet 4 * "if that computation yields a result of zero, it must be changed * to hex FFFF for placement in the UDP header." @@ -228,7 +228,7 @@ static void test_gnrc_udp__csum_all(void) TEST_ASSERT_EQUAL_INT(0, status); if (i == 0xFFFF) { - /* https://tools.ietf.org/html/rfc2460#section-8.1 + /* https://tools.ietf.org/html/rfc8200#section-8.1 * bullet 4 * "if that computation yields a result of zero, it must be changed * to hex FFFF for placement in the UDP header."