RFC links: Provide consistency for links to RFCs

Use https://rfc-editor.org/rfc/rfc.... instead of
https://tools.ietf.org/html/rfc.... for the RFC links.

Use https://rfc-editor.org/rfc/rfc.... instead of
https://datatracker.ietf.org/doc/html/rfc.... for the RFC links.
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2022-12-20 20:36:53 +00:00
1 parent 4821daf366
commit 7aa003bbe7
11 files changed
+39 -39

No files matched your search

+1 -1
View File
@@ -2104,7 +2104,7 @@ coap_block_build_body(coap_binary_t *body_data, size_t length,
else {
/*
* total may be inaccurate as per
* https://tools.ietf.org/html/rfc7959#section-4
* https://rfc-editor.org/rfc/rfc7959#section-4
* o In a request carrying a Block1 Option, to indicate the current
* estimate the client has of the total size of the resource
* representation, measured in bytes ("size indication").
+3 -3
View File
@@ -24,11 +24,11 @@ is_cache_key(uint16_t option_type, size_t cache_ignore_count,
const uint16_t *cache_ignore_options) {
size_t i;
/* https://tools.ietf.org/html/rfc7252#section-5.4.6 Nocachekey definition */
/* https://rfc-editor.org/rfc/rfc7252#section-5.4.6 Nocachekey definition */
if ((option_type & 0x1e) == 0x1c)
return 0;
/*
* https://tools.ietf.org/html/rfc7641#section-2 Observe is not a
* https://rfc-editor.org/rfc/rfc7641#section-2 Observe is not a
* part of the cache-key.
*/
if (option_type == COAP_OPTION_OBSERVE)
@@ -111,7 +111,7 @@ coap_cache_derive_key_w_ignore(const coap_session_t *session,
}
/* The body of a FETCH payload is part of the cache key,
* see https://tools.ietf.org/html/rfc8132#section-2 */
* see https://rfc-editor.org/rfc/rfc8132#section-2 */
if (pdu->code == COAP_REQUEST_CODE_FETCH) {
size_t len;
const uint8_t *data;
+4 -4
View File
@@ -202,8 +202,8 @@ coap_recvc(void *arg, struct udp_pcb *upcb, struct pbuf *p,
error:
/*
* https://tools.ietf.org/html/rfc7252#section-4.2 MUST send RST
* https://tools.ietf.org/html/rfc7252#section-4.3 MAY send RST
* https://rfc-editor.org/rfc/rfc7252#section-4.2 MUST send RST
* https://rfc-editor.org/rfc/rfc7252#section-4.3 MAY send RST
*/
if (session)
coap_send_rst(session, pdu);
@@ -290,8 +290,8 @@ coap_recvs(void *arg, struct udp_pcb *upcb, struct pbuf *p,
error:
/*
* https://tools.ietf.org/html/rfc7252#section-4.2 MUST send RST
* https://tools.ietf.org/html/rfc7252#section-4.3 MAY send RST
* https://rfc-editor.org/rfc/rfc7252#section-4.2 MUST send RST
* https://rfc-editor.org/rfc/rfc7252#section-4.3 MAY send RST
*/
if (session)
coap_send_rst(session, pdu);
+6 -6
View File
@@ -1127,7 +1127,7 @@ coap_send(coap_session_t *session, coap_pdu_t *pdu) {
if (session->last_token &&
coap_binary_equal(&token, session->last_token)) {
coap_log_debug("Token reused - see https://www.rfc-editor.org/rfc/rfc9175.html#section-4.2\n");
coap_log_debug("Token reused - see https://rfc-editor.org/rfc/rfc9175.html#section-4.2\n");
}
coap_delete_bin_const(session->last_token);
session->last_token = coap_new_bin_const(token.s, token.length);
@@ -1237,7 +1237,7 @@ coap_send_internal(coap_session_t *session, coap_pdu_t *pdu) {
if (pdu->code == COAP_RESPONSE_CODE(508)) {
/*
* Need to prepend our IP identifier to the data as per
* https://www.rfc-editor.org/rfc/rfc8768.html#section-4
* https://rfc-editor.org/rfc/rfc8768.html#section-4
*/
char addr_str[INET6_ADDRSTRLEN + 8 + 1];
coap_opt_t *opt;
@@ -1356,7 +1356,7 @@ coap_send_internal(coap_session_t *session, coap_pdu_t *pdu) {
/*
* Need to check that this instance is not sending any block options as
* the remote end via CSM has not informed us that there is support
* https://tools.ietf.org/html/rfc8323#section-5.3.2
* https://rfc-editor.org/rfc/rfc8323#section-5.3.2
* This includes potential BERT blocks.
*/
if (coap_check_option(pdu, COAP_OPTION_BLOCK1, &opt_iter) != NULL) {
@@ -2047,8 +2047,8 @@ coap_handle_dgram(coap_context_t *ctx, coap_session_t *session,
error:
/*
* https://tools.ietf.org/html/rfc7252#section-4.2 MUST send RST
* https://tools.ietf.org/html/rfc7252#section-4.3 MAY send RST
* https://rfc-editor.org/rfc/rfc7252#section-4.2 MUST send RST
* https://rfc-editor.org/rfc/rfc7252#section-4.3 MAY send RST
*/
coap_send_rst(session, pdu);
coap_delete_pdu(pdu);
@@ -2197,7 +2197,7 @@ coap_new_error_response(const coap_pdu_t *request, coap_pdu_code_t code,
/*
* Need space for IP for 5.08 response which is filled in in
* coap_send_internal()
* https://www.rfc-editor.org/rfc/rfc8768.html#section-4
* https://rfc-editor.org/rfc/rfc8768.html#section-4
*/
phrase = NULL;
size += INET6_ADDRSTRLEN;
+1 -1
View File
@@ -730,7 +730,7 @@ coap_add_observer(coap_resource_t *resource,
coap_cache_key_t *cache_key = NULL;
size_t len;
const uint8_t *data;
/* https://tools.ietf.org/html/rfc7641#section-3.6 */
/* https://rfc-editor.org/rfc/rfc7641#section-3.6 */
static const uint16_t cache_ignore_options[] = { COAP_OPTION_ETAG };
assert( session );