Deleted Added
full compact
kern_mbuf.c (153232) kern_mbuf.c (153294)
1/*-
2 * Copyright (c) 2004, 2005,
3 * Bosko Milekic <bmilekic@FreeBSD.org>. 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

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2004, 2005,
3 * Bosko Milekic <bmilekic@FreeBSD.org>. 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

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/kern/kern_mbuf.c 153232 2005-12-08 13:13:06Z andre $");
29__FBSDID("$FreeBSD: head/sys/kern/kern_mbuf.c 153294 2005-12-10 15:21:04Z andre $");
30
31#include "opt_mac.h"
32#include "opt_param.h"
33
34#include <sys/param.h>
35#include <sys/mac.h>
36#include <sys/malloc.h>
37#include <sys/systm.h>

--- 335 unchanged lines hidden (view full) ---

373 trash_ctor(mem, size, arg, how);
374#endif
375 m = (struct mbuf *)arg;
376 if (m != NULL) {
377 switch (size) {
378 case MCLBYTES:
379 type = EXT_CLUSTER;
380 break;
30
31#include "opt_mac.h"
32#include "opt_param.h"
33
34#include <sys/param.h>
35#include <sys/mac.h>
36#include <sys/malloc.h>
37#include <sys/systm.h>

--- 335 unchanged lines hidden (view full) ---

373 trash_ctor(mem, size, arg, how);
374#endif
375 m = (struct mbuf *)arg;
376 if (m != NULL) {
377 switch (size) {
378 case MCLBYTES:
379 type = EXT_CLUSTER;
380 break;
381#if MJUM4BYTES != MCLBYTES
381 case MJUM4BYTES:
382 type = EXT_JUMBO4;
383 break;
382 case MJUM4BYTES:
383 type = EXT_JUMBO4;
384 break;
385#endif
384 case MJUM9BYTES:
385 type = EXT_JUMBO9;
386 break;
387 case MJUM16BYTES:
388 type = EXT_JUMBO16;
389 break;
390 default:
391 panic("unknown cluster size");

--- 141 unchanged lines hidden ---
386 case MJUM9BYTES:
387 type = EXT_JUMBO9;
388 break;
389 case MJUM16BYTES:
390 type = EXT_JUMBO16;
391 break;
392 default:
393 panic("unknown cluster size");

--- 141 unchanged lines hidden ---