Skip to content

Commit 3d80b5e

Browse files
committed
standardized all RFC links
1 parent 8219eb0 commit 3d80b5e

File tree

14 files changed

+39
-36
lines changed

14 files changed

+39
-36
lines changed

ice/src/tcp_type/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod tcp_type_test;
44
use std::fmt;
55

66
// TCPType is the type of ICE TCP candidate as described in
7-
// ttps://tools.ietf.org/html/rfc6544#section-4.5
7+
// https://tools.ietf.org/html/rfc6544#section-4.5
88
#[derive(PartialEq, Eq, Debug, Copy, Clone)]
99
pub enum TcpType {
1010
/// The default value. For example UDP candidates do not need this field.

ice/src/udp_mux/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl UDPMuxDefault {
137137

138138
let s = match String::from_utf8(attr.value) {
139139
// Per the RFC this shouldn't happen
140-
// https://datatracker.ietf.org/doc/html/rfc5389#section-15.3
140+
// https://tools.ietf.org/html/rfc5389#section-15.3
141141
Err(err) => {
142142
log::warn!(
143143
"Failed to decode USERNAME from STUN message as UTF-8: {}",

interceptor/src/stats/interceptor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ impl RTPWriter for RTPWriteRecorder {
787787
}
788788

789789
/// Calculate the round trip time for a given peer as described in
790-
/// [RFC3550 6.4.1](https://datatracker.ietf.org/doc/html/rfc3550#section-6.4.1).
790+
/// [RFC3550 6.4.1](https://tools.ietf.org/html/rfc3550#section-6.4.1).
791791
///
792792
/// ## Params
793793
///

interceptor/src/stats/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ mod outbound {
362362
remote_round_trip_time_measurements: u64,
363363

364364
/// The fraction of packets lost reported for this stream.
365-
/// Calculated as defined in [RFC3550](https://www.rfc-editor.org/rfc/rfc3550) section 6.4.1 and Appendix A.3.
365+
/// Calculated as defined in [RFC3550](https://tools.ietf.org/html/rfc3550) section 6.4.1 and Appendix A.3.
366366
remote_fraction_lost: Option<f64>,
367367
}
368368

interceptor/src/twcc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct PktInfo {
1919

2020
/// Recorder records incoming RTP packets and their delays and creates
2121
/// transport wide congestion control feedback reports as specified in
22-
/// https://datatracker.ietf.org/doc/html/draft-holmer-rmcat-transport-wide-cc-extensions-01
22+
/// https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01
2323
#[derive(Default, Debug, PartialEq, Clone)]
2424
pub struct Recorder {
2525
received_packets: Vec<PktInfo>,

interceptor/src/twcc/receiver/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct ReceiverInternal {
6969
}
7070

7171
/// Receiver sends transport wide congestion control reports as specified in:
72-
/// https://datatracker.ietf.org/doc/html/draft-holmer-rmcat-transport-wide-cc-extensions-01
72+
/// https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01
7373
pub struct Receiver {
7474
internal: Arc<ReceiverInternal>,
7575

rtp/src/codecs/h265/mod.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ mod h265_test;
1111
///
1212
1313
const H265NALU_HEADER_SIZE: usize = 2;
14-
/// https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
14+
/// https://tools.ietf.org/html/rfc7798#section-4.4.2
1515
const H265NALU_AGGREGATION_PACKET_TYPE: u8 = 48;
16-
/// https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.3
16+
/// https://tools.ietf.org/html/rfc7798#section-4.4.3
1717
const H265NALU_FRAGMENTATION_UNIT_TYPE: u8 = 49;
18-
/// https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.4
18+
/// https://tools.ietf.org/html/rfc7798#section-4.4.4
1919
const H265NALU_PACI_PACKET_TYPE: u8 = 50;
2020

2121
/// H265NALUHeader is a H265 NAL Unit Header
22-
/// https://datatracker.ietf.org/doc/html/rfc7798#section-1.1.4
22+
/// https://tools.ietf.org/html/rfc7798#section-1.1.4
2323
/// +---------------+---------------+
2424
/// |0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|
2525
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -97,7 +97,7 @@ impl H265NALUHeader {
9797
/// | :...OPTIONAL RTP padding |
9898
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
9999
///
100-
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.1
100+
/// Reference: https://tools.ietf.org/html/rfc7798#section-4.4.1
101101
#[derive(Default, Debug, Clone, PartialEq, Eq)]
102102
pub struct H265SingleNALUnitPacket {
103103
/// payload_header is the header of the H265 packet.
@@ -186,7 +186,7 @@ impl H265SingleNALUnitPacket {
186186
/// | :
187187
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
188188
///
189-
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
189+
/// Reference: https://tools.ietf.org/html/rfc7798#section-4.4.2
190190
#[derive(Default, Debug, Clone, PartialEq, Eq)]
191191
pub struct H265AggregationUnitFirst {
192192
donl: Option<u16>,
@@ -226,7 +226,7 @@ impl H265AggregationUnitFirst {
226226
/// | :
227227
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
228228
///
229-
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
229+
/// Reference: https://tools.ietf.org/html/rfc7798#section-4.4.2
230230
#[derive(Default, Debug, Clone, PartialEq, Eq)]
231231
pub struct H265AggregationUnit {
232232
dond: Option<u8>,
@@ -266,7 +266,7 @@ impl H265AggregationUnit {
266266
/// | :...OPTIONAL RTP padding |
267267
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
268268
///
269-
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.2
269+
/// Reference: https://tools.ietf.org/html/rfc7798#section-4.4.2
270270
#[derive(Default, Debug, Clone, PartialEq, Eq)]
271271
pub struct H265AggregationPacket {
272272
first_unit: Option<H265AggregationUnitFirst>,
@@ -427,7 +427,7 @@ impl H265FragmentationUnitHeader {
427427
/// | :...OPTIONAL RTP padding |
428428
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
429429
///
430-
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.3
430+
/// Reference: https://tools.ietf.org/html/rfc7798#section-4.4.3
431431
#[derive(Default, Debug, Clone, PartialEq, Eq)]
432432
pub struct H265FragmentationUnitPacket {
433433
/// payload_header is the header of the H265 packet.
@@ -526,7 +526,7 @@ impl H265FragmentationUnitPacket {
526526
/// | :...OPTIONAL RTP padding |
527527
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
528528
///
529-
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.4.4
529+
/// Reference: https://tools.ietf.org/html/rfc7798#section-4.4.4
530530
#[derive(Default, Debug, Clone, PartialEq, Eq)]
531531
pub struct H265PACIPacket {
532532
/// payload_header is the header of the H265 packet.
@@ -655,7 +655,7 @@ impl H265PACIPacket {
655655
///
656656
657657
/// H265TSCI is a Temporal Scalability Control Information header extension.
658-
/// Reference: https://datatracker.ietf.org/doc/html/rfc7798#section-4.5
658+
/// Reference: https://tools.ietf.org/html/rfc7798#section-4.5
659659
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq)]
660660
pub struct H265TSCI(pub u32);
661661

sctp/src/association/association_internal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ impl AssociationInternal {
665665
..Default::default()
666666
};
667667

668-
// According to RFC https://datatracker.ietf.org/doc/html/rfc4960#section-3.2.2
668+
// According to RFC https://tools.ietf.org/html/rfc4960#section-3.2.2
669669
// We report unknown parameters with a paramtype with bit 14 set as unrecognized
670670
let unrecognized_params_from_init = i
671671
.params
@@ -2174,7 +2174,7 @@ impl AssociationInternal {
21742174
self.handle_shutdown_complete(c).await?
21752175
} else {
21762176
/*
2177-
https://datatracker.ietf.org/doc/html/rfc4960#section-3
2177+
https://tools.ietf.org/html/rfc4960#section-3
21782178
21792179
00 - Stop processing this SCTP packet and discard it, do not
21802180
process any further chunks within it.

sctp/src/param/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub(crate) fn build_param(raw_param: &Bytes) -> Result<Box<dyn Param + Send + Sy
7575
ParamType::OutSsnResetReq => Ok(Box::new(ParamOutgoingResetRequest::unmarshal(raw_param)?)),
7676
ParamType::ReconfigResp => Ok(Box::new(ParamReconfigResponse::unmarshal(raw_param)?)),
7777
_ => {
78-
// According to RFC https://datatracker.ietf.org/doc/html/rfc4960#section-3.2.1
78+
// According to RFC https://tools.ietf.org/html/rfc4960#section-3.2.1
7979
let stop_processing = ((raw_type >> 15) & 0x01) == 0;
8080
if stop_processing {
8181
Err(Error::ErrParamTypeUnhandled { typ: raw_type })

webrtc/src/ice_transport/ice_server.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ use crate::ice_transport::ice_credential_type::RTCIceCredentialType;
77
/// the ICE Agent to establish a connection with a peer.
88
#[derive(Default, Debug, Clone, Serialize, Deserialize, Hash)]
99
pub struct RTCIceServer {
10-
/// A sequence of [STUN](https://www.rfc-editor.org/rfc/rfc5389)
11-
/// or [TURN](https://www.rfc-editor.org/rfc/rfc5928) URIs to be used by
10+
/// A sequence of [STUN](https://tools.ietf.org/html/rfc5389)
11+
/// or [TURN](https://tools.ietf.org/html/rfc5928) URIs to be used by
1212
/// the ICE Agent to establish a connection with a peer.
1313
///
14-
/// STUN URIs (defined in [RFC7064](https://www.rfc-editor.org/rfc/rfc7064))
14+
/// STUN URIs (defined in [RFC7064](https://tools.ietf.org/html/rfc7064))
1515
/// allow for the discovery of server-reflexive candidates.
1616
///
17-
/// TURN URIs (defined in [RFC7065](https://www.rfc-editor.org/rfc/rfc7065))
17+
/// TURN URIs (defined in [RFC7065](https://tools.ietf.org/html/rfc7065))
1818
/// allow for the discovery of relayed candidates.
1919
pub urls: Vec<String>,
2020

@@ -26,7 +26,7 @@ pub struct RTCIceServer {
2626
/// If this [`RTCIceServer`] object represents a TURN server, then this attribute
2727
/// specifies the credential to use during the authentication process with the
2828
/// TURN server. It represents a long-term authentication password, as described
29-
/// in [RFC5389](https://www.rfc-editor.org/rfc/rfc5389).
29+
/// in [RFC5389](https://tools.ietf.org/html/rfc5389).
3030
pub credential: String,
3131

3232
/// **NOT IN SPEC:** If this [`RTCIceServer`] object represents a TURN server,

0 commit comments

Comments
 (0)