summaryrefslogtreecommitdiffstats
path: root/sys/netpfil/pf
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/netpfil/pf
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/netpfil/pf')
-rw-r--r--sys/netpfil/pf/if_pfsync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
index 93f0729..1ee9976 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -1505,7 +1505,7 @@ pfsync_sendout(int schedswi)
return;
}
- m = m_get2(M_NOWAIT, MT_DATA, M_PKTHDR, max_linkhdr + sc->sc_len);
+ m = m_get2(max_linkhdr + sc->sc_len, M_NOWAIT, MT_DATA, M_PKTHDR);
if (m == NULL) {
sc->sc_ifp->if_oerrors++;
V_pfsyncstats.pfsyncs_onomem++;
OpenPOWER on IntegriCloud