svn commit: r332406 - user/markj/netdump/sys/kern

Mark Johnston markj at FreeBSD.org
Wed Apr 11 14:24:12 UTC 2018


Author: markj
Date: Wed Apr 11 14:24:11 2018
New Revision: 332406
URL: https://svnweb.freebsd.org/changeset/base/332406

Log:
  Don't hard-code the cluster size.

Modified:
  user/markj/netdump/sys/kern/kern_mbuf.c

Modified: user/markj/netdump/sys/kern/kern_mbuf.c
==============================================================================
--- user/markj/netdump/sys/kern/kern_mbuf.c	Wed Apr 11 13:33:12 2018	(r332405)
+++ user/markj/netdump/sys/kern/kern_mbuf.c	Wed Apr 11 14:24:11 2018	(r332406)
@@ -443,7 +443,7 @@ nd_pack_import(void *arg __unused, void **store, int c
 			m_free(m);
 			break;
 		}
-		mb_ctor_clust(clust, MCLBYTES, m, 0);
+		mb_ctor_clust(clust, nd_clsize, m, 0);
 		store[i] = m;
 	}
 	return (i);


More information about the svn-src-user mailing list