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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)if_loop.c 8.2 (Berkeley) 1/9/95 |
30 * $FreeBSD: head/sys/net/if_loop.c 215701 2010-11-22 19:32:54Z dim $ |
31 */ 32 33/* 34 * Loopback interface driver for protocol testing and timing. 35 */ 36 37#include "opt_atalk.h" 38#include "opt_inet.h" --- 62 unchanged lines hidden (view full) --- 101int looutput(struct ifnet *ifp, struct mbuf *m, 102 struct sockaddr *dst, struct route *ro); 103static int lo_clone_create(struct if_clone *, int, caddr_t); 104static void lo_clone_destroy(struct ifnet *); 105 106VNET_DEFINE(struct ifnet *, loif); /* Used externally */ 107 108#ifdef VIMAGE |
109static VNET_DEFINE(struct ifc_simple_data, lo_cloner_data); 110static VNET_DEFINE(struct if_clone, lo_cloner); |
111#define V_lo_cloner_data VNET(lo_cloner_data) 112#define V_lo_cloner VNET(lo_cloner) 113#endif 114 115IFC_SIMPLE_DECLARE(lo, 1); 116 117static void 118lo_clone_destroy(struct ifnet *ifp) --- 331 unchanged lines hidden --- |