Author: glebius
Date: Mon Jan  9 14:35:05 2012
New Revision: 229857
URL: http://svn.freebsd.org/changeset/base/229857

Log:
  Can't pass MSIZE to m_cljget(), an mbuf can't be attached as external storage
  to another mbuf.

Modified:
  head/sys/contrib/pf/net/if_pfsync.c

Modified: head/sys/contrib/pf/net/if_pfsync.c
==============================================================================
--- head/sys/contrib/pf/net/if_pfsync.c Mon Jan  9 14:23:18 2012        
(r229856)
+++ head/sys/contrib/pf/net/if_pfsync.c Mon Jan  9 14:35:05 2012        
(r229857)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to