Deleted Added
full compact
if_vx.c (104259) if_vx.c (104363)
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * 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

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

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * 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

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

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/dev/vx/if_vx.c 104259 2002-10-01 00:59:40Z brooks $
30 * $FreeBSD: head/sys/dev/vx/if_vx.c 104363 2002-10-02 09:09:25Z phk $
31 *
32 */
33
34/*
35 * Created from if_ep.c driver by Fred Gray (fgray@rice.edu) to support
36 * the 3c590 family.
37 */
38

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

399
400startagain:
401 /* Sneak a peek at the next packet */
402 m = ifp->if_snd.ifq_head;
403 if (m == NULL) {
404 return;
405 }
406 /* We need to use m->m_pkthdr.len, so require the header */
31 *
32 */
33
34/*
35 * Created from if_ep.c driver by Fred Gray (fgray@rice.edu) to support
36 * the 3c590 family.
37 */
38

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

399
400startagain:
401 /* Sneak a peek at the next packet */
402 m = ifp->if_snd.ifq_head;
403 if (m == NULL) {
404 return;
405 }
406 /* We need to use m->m_pkthdr.len, so require the header */
407 if ((m->m_flags & M_PKTHDR) == 0)
407 if ((m->m_flags & M_PKTHDR) == 0)
408 panic("vxstart: no header mbuf");
408 panic("vxstart: no header mbuf");
409 len = m->m_pkthdr.len;
409 len = m->m_pkthdr.len;
410
410
411 pad = (4 - len) & 3;
411 pad = (4 - len) & 3;
412
413 /*
414 * The 3c509 automatically pads short packets to minimum ethernet length,
415 * but we drop packets that are too large. Perhaps we should truncate
416 * them instead?
417 */
418 if (len + pad > ETHER_MAX_LEN) {
419 /* packet is obviously too large: toss it */

--- 617 unchanged lines hidden ---
412
413 /*
414 * The 3c509 automatically pads short packets to minimum ethernet length,
415 * but we drop packets that are too large. Perhaps we should truncate
416 * them instead?
417 */
418 if (len + pad > ETHER_MAX_LEN) {
419 /* packet is obviously too large: toss it */

--- 617 unchanged lines hidden ---