if_loop.c (8cdfefbd0c98c63ed30e8659bb1a2b026c87e0ae) if_loop.c (23620bde07c7adbb945c7da3354d2606eb729325)
1/*
2 * Copyright (c) 1982, 1986, 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

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

317 n = &m0;
318 }
319 bpf_mtap(ifp, n);
320 }
321
322 /* Strip away media header */
323 if (hlen > 0) {
324 m_adj(m, hlen);
1/*
2 * Copyright (c) 1982, 1986, 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

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

317 n = &m0;
318 }
319 bpf_mtap(ifp, n);
320 }
321
322 /* Strip away media header */
323 if (hlen > 0) {
324 m_adj(m, hlen);
325#ifdef __alpha__
325#if defined(__alpha__) || defined(__ia64__)
326 /* The alpha doesn't like unaligned data.
327 * We move data down in the first mbuf */
328 if (mtod(m, vm_offset_t) & 3) {
329 KASSERT(hlen >= 3, ("if_simloop: hlen too small"));
330 bcopy(m->m_data,
331 (char *)(mtod(m, vm_offset_t)
332 - (mtod(m, vm_offset_t) & 3)),
333 m->m_len);

--- 129 unchanged lines hidden ---
326 /* The alpha doesn't like unaligned data.
327 * We move data down in the first mbuf */
328 if (mtod(m, vm_offset_t) & 3) {
329 KASSERT(hlen >= 3, ("if_simloop: hlen too small"));
330 bcopy(m->m_data,
331 (char *)(mtod(m, vm_offset_t)
332 - (mtod(m, vm_offset_t) & 3)),
333 m->m_len);

--- 129 unchanged lines hidden ---