summaryrefslogtreecommitdiffstats
path: root/sys/netinet/libalias
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-03-12 13:42:47 +0000
committerglebius <glebius@FreeBSD.org>2013-03-12 13:42:47 +0000
commit37a43650ed6f70f82ffd2fd8eb0c7e37a6bce7b7 (patch)
tree91f9ed9ed6b18b31bb287141a8f82517e9e22a5a /sys/netinet/libalias
parent10b41426ff5ea82631f26e69e78bd268dc471911 (diff)
downloadFreeBSD-src-37a43650ed6f70f82ffd2fd8eb0c7e37a6bce7b7.zip
FreeBSD-src-37a43650ed6f70f82ffd2fd8eb0c7e37a6bce7b7.tar.gz
Functions m_getm2() and m_get2() have different order of arguments,
and that can drive someone crazy. While m_get2() is young and not documented yet, change its order of arguments to match m_getm2(). Sorry for churn, but better now than later.
Diffstat (limited to 'sys/netinet/libalias')
-rw-r--r--sys/netinet/libalias/alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c
index 3b2068b..33876c4 100644
--- a/sys/netinet/libalias/alias.c
+++ b/sys/netinet/libalias/alias.c
@@ -1760,7 +1760,7 @@ m_megapullup(struct mbuf *m, int len) {
if (m->m_next == NULL && M_WRITABLE(m) && M_TRAILINGSPACE(m) >= RESERVE)
return (m);
- mcl = m_get2(M_NOWAIT, MT_DATA, M_PKTHDR, len + RESERVE);
+ mcl = m_get2(len + RESERVE, M_NOWAIT, MT_DATA, M_PKTHDR);
if (mcl == NULL)
goto bad;
OpenPOWER on IntegriCloud