Skip to content

Commit 71d127f

Browse files
committed
Enable TcpMaxSeg socket option for apple targets
1 parent 003bfe4 commit 71d127f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/2603.added.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added the TcpMaxSeg socket option for apple targets

src/sys/socket/sockopt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ sockopt_impl!(
698698
u32
699699
);
700700
cfg_if! {
701-
if #[cfg(linux_android)] {
701+
if #[cfg(any(linux_android, apple_targets))] {
702702
sockopt_impl!(
703703
/// The maximum segment size for outgoing TCP packets.
704704
TcpMaxSeg, Both, libc::IPPROTO_TCP, libc::TCP_MAXSEG, u32);

0 commit comments

Comments
 (0)