if_loop.c (b6f5c0b8243365a1b5bfad4b1f3edd40e2cadd20) | if_loop.c (4590fd3a2a5539b8a1ce2ad488707123c8b7c8c8) |
---|---|
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 --- 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_loop.c 8.1 (Berkeley) 6/10/93 | 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 --- 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_loop.c 8.1 (Berkeley) 6/10/93 |
34 * $Id: if_loop.c,v 1.10 1995/05/30 08:08:06 rgrimes Exp $ | 34 * $Id: if_loop.c,v 1.11 1995/08/30 00:33:18 bde Exp $ |
35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40#include "loop.h" 41#if NLOOP > 0 42 --- 27 unchanged lines hidden (view full) --- 70 71#ifdef ISO 72#include <netiso/iso.h> 73#include <netiso/iso_var.h> 74#endif 75 76#include "bpfilter.h" 77 | 35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40#include "loop.h" 41#if NLOOP > 0 42 --- 27 unchanged lines hidden (view full) --- 70 71#ifdef ISO 72#include <netiso/iso.h> 73#include <netiso/iso_var.h> 74#endif 75 76#include "bpfilter.h" 77 |
78static void loopattach __P((caddr_t)); | 78static void loopattach __P((void *)); |
79PSEUDO_SET(loopattach, if_loop); 80 81#ifdef TINY_LOMTU 82#define LOMTU (1024+512) 83#else 84#define LOMTU 16384 85#endif 86 87struct ifnet loif[NLOOP]; 88 89/* ARGSUSED */ 90static void 91loopattach(udata) | 79PSEUDO_SET(loopattach, if_loop); 80 81#ifdef TINY_LOMTU 82#define LOMTU (1024+512) 83#else 84#define LOMTU 16384 85#endif 86 87struct ifnet loif[NLOOP]; 88 89/* ARGSUSED */ 90static void 91loopattach(udata) |
92 caddr_t udata; | 92 void *udata; |
93{ 94 register struct ifnet *ifp; 95 register int i = 0; 96 97 for (ifp = loif; i < NLOOP; ifp++) { 98 ifp->if_name = "lo"; 99 ifp->if_next = NULL; 100 ifp->if_unit = i++; --- 163 unchanged lines hidden --- | 93{ 94 register struct ifnet *ifp; 95 register int i = 0; 96 97 for (ifp = loif; i < NLOOP; ifp++) { 98 ifp->if_name = "lo"; 99 ifp->if_next = NULL; 100 ifp->if_unit = i++; --- 163 unchanged lines hidden --- |