diff options
author | glebius <glebius@FreeBSD.org> | 2012-01-09 14:35:05 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-01-09 14:35:05 +0000 |
commit | 5b2011f996582d2355336fa0cb0104ebb253cfc2 (patch) | |
tree | 3e3fabbd640d2d15090616738aeb4539c616025a /sys/contrib | |
parent | ac80dd6d9e2fcb5f074b9ac7d8acace551fc7177 (diff) | |
download | FreeBSD-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.c | 3 |
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 |