summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-01-09 14:35:05 +0000
committerglebius <glebius@FreeBSD.org>2012-01-09 14:35:05 +0000
commit5b2011f996582d2355336fa0cb0104ebb253cfc2 (patch)
tree3e3fabbd640d2d15090616738aeb4539c616025a /sys/contrib
parentac80dd6d9e2fcb5f074b9ac7d8acace551fc7177 (diff)
downloadFreeBSD-src-5b2011f996582d2355336fa0cb0104ebb253cfc2.zip
FreeBSD-src-5b2011f996582d2355336fa0cb0104ebb253cfc2.tar.gz
Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storage
to another mbuf.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/pf/net/if_pfsync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c
index 8e1e44c..2ccc46e 100644
--- a/sys/contrib/pf/net/if_pfsync.c
+++ b/sys/contrib/pf/net/if_pfsync.c
@@ -2163,8 +2163,7 @@ pfsync_sendout(void)
if (pktlen > MHLEN) {
/* Find the right pool to allocate from. */
/* XXX: This is ugly. */
- m_cljget(m, M_DONTWAIT, pktlen <= MSIZE ? MSIZE :
- pktlen <= MCLBYTES ? MCLBYTES :
+ m_cljget(m, M_DONTWAIT, pktlen <= MCLBYTES ? MCLBYTES :
#if MJUMPAGESIZE != MCLBYTES
pktlen <= MJUMPAGESIZE ? MJUMPAGESIZE :
#endif
OpenPOWER on IntegriCloud