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 10c973d commit 2675bd1Copy full SHA for 2675bd1
dc/s2n-quic-dc/src/msg/segment.rs
@@ -46,8 +46,8 @@ 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
- // IPv6 doesn't include the IP header size in the calculation
50
- u16::MAX - UDP_HEADER_LEN
+ // The IPV6_HEADER_LEN is required in this calculation to accommodate older kernels (such as kernel 5.10)
+ u16::MAX - IPV6_HEADER_LEN - UDP_HEADER_LEN
51
} else {
52
9001 - IPV6_HEADER_LEN - UDP_HEADER_LEN
53
};
0 commit comments