if_ethersubr.c (11819) | if_ethersubr.c (11921) |
---|---|
1/* 2 * Copyright (c) 1982, 1989, 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1989, 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93 |
34 * $Id: if_ethersubr.c,v 1.9 1995/06/11 19:31:39 rgrimes Exp $ | 34 * $Id: if_ethersubr.c,v 1.10 1995/10/26 20:30:09 julian Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/malloc.h> 41#include <sys/mbuf.h> 42#include <sys/protosw.h> --- 279 unchanged lines hidden (view full) --- 322void 323ether_input(ifp, eh, m) 324 struct ifnet *ifp; 325 register struct ether_header *eh; 326 struct mbuf *m; 327{ 328 register struct ifqueue *inq; 329 register struct llc *l; | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/kernel.h> 40#include <sys/malloc.h> 41#include <sys/mbuf.h> 42#include <sys/protosw.h> --- 279 unchanged lines hidden (view full) --- 322void 323ether_input(ifp, eh, m) 324 struct ifnet *ifp; 325 register struct ether_header *eh; 326 struct mbuf *m; 327{ 328 register struct ifqueue *inq; 329 register struct llc *l; |
330 struct arpcom *ac = (struct arpcom *)ifp; | |
331 u_short ether_type; 332 int s; 333 334 if ((ifp->if_flags & IFF_UP) == 0) { 335 m_freem(m); 336 return; 337 } 338 ifp->if_lastchange = time; --- 373 unchanged lines hidden --- | 330 u_short ether_type; 331 int s; 332 333 if ((ifp->if_flags & IFF_UP) == 0) { 334 m_freem(m); 335 return; 336 } 337 ifp->if_lastchange = time; --- 373 unchanged lines hidden --- |