if_loop.c (201c2527a9624c5f374341262c4318b0d02071c5) | if_loop.c (05b3ccef36c627d92c7b20686d0d1689d6dd5aba) |
---|---|
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.34 1998/06/12 20:03:26 julian Exp $ | 34 * $Id: if_loop.c,v 1.35 1998/06/14 20:58:15 julian Exp $ |
35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40#include "loop.h" 41#if NLOOP > 0 42 --- 103 unchanged lines hidden (view full) --- 146 ifp->if_obytes += m->m_pkthdr.len; 147#if 1 /* XXX */ 148 switch (dst->sa_family) { 149 case AF_INET: 150 case AF_IPX: 151 case AF_NS: 152 case AF_ISO: 153 case AF_APPLETALK: | 35 */ 36 37/* 38 * Loopback interface driver for protocol testing and timing. 39 */ 40#include "loop.h" 41#if NLOOP > 0 42 --- 103 unchanged lines hidden (view full) --- 146 ifp->if_obytes += m->m_pkthdr.len; 147#if 1 /* XXX */ 148 switch (dst->sa_family) { 149 case AF_INET: 150 case AF_IPX: 151 case AF_NS: 152 case AF_ISO: 153 case AF_APPLETALK: |
154 break; |
|
154 default: 155 printf("looutput: af=%d unexpected", dst->sa_family); 156 m_freem(m); 157 return (EAFNOSUPPORT); 158 } 159#endif 160 return(if_simloop(ifp, m, dst, 0)); 161} --- 186 unchanged lines hidden --- | 155 default: 156 printf("looutput: af=%d unexpected", dst->sa_family); 157 m_freem(m); 158 return (EAFNOSUPPORT); 159 } 160#endif 161 return(if_simloop(ifp, m, dst, 0)); 162} --- 186 unchanged lines hidden --- |