hrev56181 adds 1 changeset to branch 'master'
old head: fe476826e75a6b66b479330df6152944770a9527
new head: ca76d4c33634dfed6c10109d19b9bb9b38f52df7
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=ca76d4c33634+%5Efe476826e75a
----------------------------------------------------------------------------
ca76d4c33634: freebsd_network: Add missing case for MCLBYTES in m_get2.
The first case is really just a standard mbuf without a cluster.
MCLBYTES should be the second case. This matches what FreeBSD does.
[ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev56181
Commit: ca76d4c33634dfed6c10109d19b9bb9b38f52df7
URL: https://git.haiku-os.org/haiku/commit/?id=ca76d4c33634
Author: Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date: Fri Jun 10 18:33:05 2022 UTC
----------------------------------------------------------------------------
1 file changed, 2 insertions(+)
src/libs/compat/freebsd_network/mbuf.c | 2 ++
----------------------------------------------------------------------------
diff --git a/src/libs/compat/freebsd_network/mbuf.c
b/src/libs/compat/freebsd_network/mbuf.c
index d9389341c8..906feb9098 100644
--- a/src/libs/compat/freebsd_network/mbuf.c
+++ b/src/libs/compat/freebsd_network/mbuf.c
@@ -171,6 +171,8 @@ struct mbuf *
m_get2(int size, int how, short type, int flags)
{
if (size <= MHLEN || (size <= MLEN && (flags & M_PKTHDR) == 0)) {
+ return _m_get(how, type, flags);
+ } else if (size <= MCLBYTES) {
size = MCLBYTES;
} else if (size <= MJUMPAGESIZE) {
size = MJUMPAGESIZE;