Deleted Added
full compact
if_arcsubr.c (105598) if_arcsubr.c (106939)
1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */
1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */
2/* $FreeBSD: head/sys/net/if_arcsubr.c 105598 2002-10-21 02:51:56Z brooks $ */
2/* $FreeBSD: head/sys/net/if_arcsubr.c 106939 2002-11-15 00:00:15Z sam $ */
3
4/*
5 * Copyright (c) 1994, 1995 Ignatios Souvatzis
6 * Copyright (c) 1982, 1989, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions

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

206 M_PREPEND(m, ARC_HDRLEN, M_DONTWAIT);
207 if (m == 0)
208 senderr(ENOBUFS);
209 ah = mtod(m, struct arc_header *);
210 ah->arc_type = atype;
211 ah->arc_dhost = adst;
212 ah->arc_shost = *IF_LLADDR(ifp);
213
3
4/*
5 * Copyright (c) 1994, 1995 Ignatios Souvatzis
6 * Copyright (c) 1982, 1989, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions

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

206 M_PREPEND(m, ARC_HDRLEN, M_DONTWAIT);
207 if (m == 0)
208 senderr(ENOBUFS);
209 ah = mtod(m, struct arc_header *);
210 ah->arc_type = atype;
211 ah->arc_dhost = adst;
212 ah->arc_shost = *IF_LLADDR(ifp);
213
214 if (ifp->if_bpf)
215 bpf_mtap(ifp, m);
214 BPF_MTAP(ifp, m);
216
217#if __FreeBSD_version < 500000
218 s = splimp();
219
220 /*
221 * Queue message on interface, and start output if interface
222 * not yet active.
223 */

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

536 return;
537 }
538
539 /* possibly defragment: */
540 m = arc_defrag(ifp, m);
541 if (m == NULL)
542 return;
543
215
216#if __FreeBSD_version < 500000
217 s = splimp();
218
219 /*
220 * Queue message on interface, and start output if interface
221 * not yet active.
222 */

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

535 return;
536 }
537
538 /* possibly defragment: */
539 m = arc_defrag(ifp, m);
540 if (m == NULL)
541 return;
542
544 if (ifp->if_bpf)
545 bpf_mtap(ifp, m);
543 BPF_MTAP(ifp, m);
546
547 ah = mtod(m, struct arc_header *);
548
549 ifp->if_ibytes += m->m_pkthdr.len;
550
551 if (arcbroadcastaddr == ah->arc_dhost) {
552 m->m_flags |= M_BCAST|M_MCAST;
553 ifp->if_imcasts++;

--- 224 unchanged lines hidden ---
544
545 ah = mtod(m, struct arc_header *);
546
547 ifp->if_ibytes += m->m_pkthdr.len;
548
549 if (arcbroadcastaddr == ah->arc_dhost) {
550 m->m_flags |= M_BCAST|M_MCAST;
551 ifp->if_imcasts++;

--- 224 unchanged lines hidden ---