Skip to content

Commit

Permalink
Merge pull request #1679 from tickerguy/tickerguy-patch-1
Browse files Browse the repository at this point in the history
BridgeUnix.c: Disable MTU changes on FreeBSD
  • Loading branch information
chipitsine committed Apr 19, 2024
2 parents 41f83c9 + 0643ae7 commit 74f7269
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Cedar/BridgeUnix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 74f7269

Please sign in to comment.