Skip to content

Commit af39d86

Browse files
committed
add warning about greater than 60s RFC violation
1 parent 6e2d075 commit af39d86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/iface/interface.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ let iface = builder.finalize(&mut device);
400400

401401
#[cfg(feature = "proto-sixlowpan-fragmentation")]
402402
pub fn sixlowpan_fragments_cache_timeout(mut self, timeout: Duration) -> Self {
403+
if timeout > Duration::from_secs(60) {
404+
net_debug!("RFC 4944 specifies that the reassembly timeout MUST be set to a maximum of 60 seconds");
405+
}
403406
self.sixlowpan_fragments_cache_timeout = timeout;
404407
self
405408
}

0 commit comments

Comments
 (0)