Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storage
to another mbuf.
This commit is contained in:
parent
ac80dd6d9e
commit
5b2011f996
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user