uipc_mbuf.c (218909) | uipc_mbuf.c (230587) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 218909 2011-02-21 09:01:34Z brucec $"); | 33__FBSDID("$FreeBSD: head/sys/kern/uipc_mbuf.c 230587 2012-01-26 16:35:09Z ken $"); |
34 35#include "opt_param.h" 36#include "opt_mbuf_stress_test.h" 37#include "opt_mbuf_profiling.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> --- 1363 unchanged lines hidden (view full) --- 1405 1406void 1407m_print(const struct mbuf *m, int maxlen) 1408{ 1409 int len; 1410 int pdata; 1411 const struct mbuf *m2; 1412 | 34 35#include "opt_param.h" 36#include "opt_mbuf_stress_test.h" 37#include "opt_mbuf_profiling.h" 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> --- 1363 unchanged lines hidden (view full) --- 1405 1406void 1407m_print(const struct mbuf *m, int maxlen) 1408{ 1409 int len; 1410 int pdata; 1411 const struct mbuf *m2; 1412 |
1413 if (m == NULL) { 1414 printf("mbuf: %p\n", m); 1415 return; 1416 } 1417 |
|
1413 if (m->m_flags & M_PKTHDR) 1414 len = m->m_pkthdr.len; 1415 else 1416 len = -1; 1417 m2 = m; 1418 while (m2 != NULL && (len == -1 || len)) { 1419 pdata = m2->m_len; 1420 if (maxlen != -1 && pdata > maxlen) --- 701 unchanged lines hidden --- | 1418 if (m->m_flags & M_PKTHDR) 1419 len = m->m_pkthdr.len; 1420 else 1421 len = -1; 1422 m2 = m; 1423 while (m2 != NULL && (len == -1 || len)) { 1424 pdata = m2->m_len; 1425 if (maxlen != -1 && pdata > maxlen) --- 701 unchanged lines hidden --- |