Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dc/s2n-quic-dc/src/msg/segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const MAX_TOTAL_IPV4: u16 = if cfg!(target_os = "linux") {

/// The maximum payload allowed in sendmsg calls using IPv6+UDP
const MAX_TOTAL_IPV6: u16 = if cfg!(target_os = "linux") {
// IPv6 doesn't include the IP header size in the calculation
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
} else {
9001 - IPV6_HEADER_LEN - UDP_HEADER_LEN
};
Expand Down
Loading