diff options
author | glebius <glebius@FreeBSD.org> | 2013-03-12 13:42:47 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-03-12 13:42:47 +0000 |
commit | 37a43650ed6f70f82ffd2fd8eb0c7e37a6bce7b7 (patch) | |
tree | 91f9ed9ed6b18b31bb287141a8f82517e9e22a5a /sys/net/bpf.c | |
parent | 10b41426ff5ea82631f26e69e78bd268dc471911 (diff) | |
download | FreeBSD-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/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index ba31c66..ce83e4a 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -525,7 +525,7 @@ bpf_movein(struct uio *uio, int linktype, struct ifnet *ifp, struct mbuf **mp, if (len < hlen || len - hlen > ifp->if_mtu) return (EMSGSIZE); - m = m_get2(M_WAITOK, MT_DATA, M_PKTHDR, len); + m = m_get2(len, M_WAITOK, MT_DATA, M_PKTHDR); if (m == NULL) return (EIO); m->m_pkthdr.len = m->m_len = len; |