We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f74ded commit 9265521Copy full SHA for 9265521
dc/s2n-quic-dc/src/msg/segment.rs
@@ -46,6 +46,7 @@ const MAX_TOTAL_IPV4: u16 = if cfg!(target_os = "linux") {
46
47
/// The maximum payload allowed in sendmsg calls using IPv6+UDP
48
const MAX_TOTAL_IPV6: u16 = if cfg!(target_os = "linux") {
49
+ // The IPV6_HEADER_LEN is required in this calculation to accomodate older kernels (such as kernel 5.10)
50
u16::MAX - IPV6_HEADER_LEN - UDP_HEADER_LEN
51
} else {
52
9001 - IPV6_HEADER_LEN - UDP_HEADER_LEN
0 commit comments