Merge pull request #1679 from tickerguy/tickerguy-patch-1

BridgeUnix.c: Disable MTU changes on FreeBSD
This commit is contained in:
Ilya Shipitsin authored and GitHub committed 2024-04-19 16:46:16 +02:00
commit 74f7269ef6
1 file changed
+5
+5
View File
@@ -805,7 +805,12 @@ bool EthIsChangeMtuSupported(ETH *e)
return false;
}
// FreeBSD seriously dislikes MTU changes; disable if compiled on that platform
#ifndef __FreeBSD__
return true;
#else
return false;
#endif
#else // defined(UNIX_LINUX) || defined(UNIX_BSD) || defined(UNIX_SOLARIS)
return false;
#endif // defined(UNIX_LINUX) || defined(UNIX_BSD) || defined(UNIX_SOLARIS)