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/netpfil | |
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/netpfil')
-rw-r--r-- | sys/netpfil/pf/if_pfsync.c | 2 |
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++; |